// Code to encrypt email address

/*<script type="text/javascript">*/

/***********************************************
* Encrypt Email script- Please keep notice intact.
* Tool URL: http://www.dynamicdrive.com/emailriddler/
* **********************************************/

var emailarray3355= new Array(114,97,106,64,110,105,100,119,97,110,110,97,121,97,46,99,111,109)
var postemail3355=''
for (i=0;i<emailarray3355.length;i++)
postemail3355+=String.fromCharCode(emailarray3355[i])

//document.write('<a href="mailto:'+postemail3355+'?subject=Please Contact Me">'+postemail3355+'</a>')

/*</script>*/

//------------------------------------------------------------------------------
// Code for Flash Playback

function playFlash(f,w,h)
{ 
document.write('<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width= '+ w+' height= '+ h+' ><param name="movie" value= '+ f+' ><param name="LOOP" value="false"><param name="quality" value=high><embed src=" '+ f+' "quality=high loop="false" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width= '+ w+' height= '+ h+' ></embed></object>'); 
}

//------------------------------------------------------------------------------
// Code for viewing generic HTML with specified image in a pop-up window

function imgWindow(url,file,project,title){
  // initialize winX and winY to default values
  // for cases where Screen object isn't supported
  var winX = 0;
  var winY = 0;
  var w = 440;
  var h = 384;
  
  // only set new values if 4.0 browser
  if (parseInt(navigator.appVersion) >= 4) {
    winX = (screen.availWidth - w)*0.5;
    winY = (screen.availHeight - h)*0.5;
  }

  window.open(url+"?file="+file+"&project="+project+"&title="+title,"popup","scrollbars=no,resizable=no,status=no,width="+w+",height="+h+",left="+winX+",top="+winY);
}

//------------------------------------------------------------------------------
// Code for viewing generic HTML with specified movie in a pop-up window

function movWindow(url,file,project,title){
  // initialize winX and winY to default values
  // for cases where Screen object isn't supported
  var winX = 0;
  var winY = 0;
  var w = 440;
  var h = 400;
  
  // only set new values if 4.0 browser
  if (parseInt(navigator.appVersion) >= 4) {
    winX = (screen.availWidth - w)*0.5;
    winY = (screen.availHeight - h)*0.5;
  }

  window.open(url+"?file="+file+"&project="+project+"&title="+title,"popup","scrollbars=no,resizable=no,status=no,width="+w+",height="+h+",left="+winX+",top="+winY);
}

//------------------------------------------------------------------------------
// Code for viewing generic HTML with specified flv in a pop-up window

function flvWindow(url,file,project,title){
  // initialize winX and winY to default values
  // for cases where Screen object isn't supported
  var winX = 0;
  var winY = 0;
  var w = 680;
  var h = 560;
  
  // only set new values if 4.0 browser
  if (parseInt(navigator.appVersion) >= 4) {
    winX = (screen.availWidth - w)*0.5;
    winY = (screen.availHeight - h)*0.5;
  }

  window.open(url+"?file="+file+"&project="+project+"&title="+title,"popup","scrollbars=no,resizable=no,status=no,width="+w+",height="+h+",left="+winX+",top="+winY);
}

//------------------------------------------------------------------------------
// Code for viewing generic HTML with specified swf in a pop-up window

function swfWindow(url,file,w,h){
  // initialize winX and winY to default values
  // for cases where Screen object isn't supported
  var winX = 0;
  var winY = 0;
  var width = getParm(passed,'w');
  var height = getParm(passed,'h');
  
  // only set new values if 4.0 browser
  if (parseInt(navigator.appVersion) >= 4) {
    winX = (screen.availWidth - width)*0.5;
    winY = (screen.availHeight - height)*0.5;
  }

  window.open(url+"?file="+file+"&width="+width+"&height="+height,"popup","scrollbars=no,resizable=no,status=no,width="+width+",height="+height+",left="+winX+",top="+winY);
}

//------------------------------------------------------------------------------
// Code for viewing specific HTML in a pop-up window

//function MM_openBrWindow(theURL,winName,features) { //v2.0
//  // initialize winX and winY to default values
//  // for cases where Screen object isn't supported
//  var winX = 0;
//  var winY = 0;
//  var w = 440;
//  var h = 400;
//  
//  // only set new values if 4.0 browser
//  if (parseInt(navigator.appVersion) >= 4) {
//    winX = (screen.availWidth - w)*0.5;
//    winY = (screen.availHeight - h)*0.5;
//  }
//  
//  var features = features+",left="+winX+",top="+winY;
//  
//  window.open(theURL,winName,features);
//}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
