<!--
//function is called by the top level nav - set to close the sub-nav unless the clearTimeout(t) is called by the mouseover() of the nav layers.
//copyright- swiftview inc. : copyleft - Marty Weldon 10/03
var t=null;//variable to hold value of setTimeout()
var s=null;//variable to hold value of setTimeoutSub()
//var p=null;//variable to hold the current page url
var a=null;//variable to hold the menu item currently active, as defined by the current page url.

//<a href="#" onClick="javascript:alerter()"> Click</a>
function setT(){
	a="t";
	}

function clickCloseIt(name){
	if (a=="t"){
		switch(name){
			case "products":
				a="f";
				closeItTimeout=setTimeout("MM_showHideLayers('top','','inherit','prodlayer','','show','subtools','','hide','subapps','','hide','download','','hide','prices','','hide','customers','','hide','partner','','hide','support','','hide','corp','','hide')",500);
				noClose();
			break;

			case "download":
				a="f";
				closeItTimeout=setTimeout("MM_showHideLayers('prodlayer','','hide','subtools','','hide','subapps','','hide','download','','show','prices','','hide','customers','','hide','partner','','hide','support','','hide','corp','','hide')",500);
				noClose();
			break;

			case "prices":
				a="f";
				closeItTimeout=setTimeout(	"MM_showHideLayers('prodlayer','','hide','subtools','','hide','subapps','','hide','download','','hide','prices','','show','customers','','hide','partner','','hide','support','','hide','corp','','hide')",500);
				noClose();
			break;

			case "customers":
				a="f";
				closeItTimeout=setTimeout("MM_showHideLayers('prodlayer','','hide','subtools','','hide','subapps','','hide','download','','hide','prices','','hide','customers','','show','partner','','hide','support','','hide','corp','','hide')",500);
				noClose();
			break;

			case "partners":
				a="f";
				closeItTimeout=setTimeout("MM_showHideLayers('prodlayer','','hide','subtools','','hide','subapps','','hide','download','','hide','prices','','hide','customers','','hide','partner','','show','support','','hide','corp','','hide')",500);
				noClose();
			break;

			case "support":
				a="f";
				closeItTimeout=setTimeout("MM_showHideLayers('prodlayer','','hide','subtools','','hide','subapps','','hide','download','','hide','prices','','hide','customers','','hide','partner','','hide','support','','show','corp','','hide')",500);
				noClose();
			break;

			case "about":
				a="f";
				closeItTimeout=setTimeout("MM_showHideLayers('prodlayer','','hide','subtools','','hide','subapps','','hide','download','','hide','prices','','hide','customers','','hide','partner','','hide','support','','hide','corp','','show')",500);
				noClose();
			break;

		}//end switch
	}//end if
	else{//the page already loaded
		switch(name){
			case "products":
				clearTimeout(closeItTimeout);
				MM_showHideLayers('top','','inherit','prodlayer','','show','subtools','','hide','subapps','','hide','download','','hide','prices','','hide','customers','','hide','partner','','hide','support','','hide','corp','','hide');
				noClose();
			break;

			case "download":
				clearTimeout(closeItTimeout);
				MM_showHideLayers('prodlayer','','hide','subtools','','hide','subapps','','hide','download','','show','prices','','hide','customers','','hide','partner','','hide','support','','hide','corp','','hide');
				noClose();
			break;

			case "prices":
				clearTimeout(closeItTimeout);
				MM_showHideLayers('prodlayer','','hide','subtools','','hide','subapps','','hide','download','','hide','prices','','show','customers','','hide','partner','','hide','support','','hide','corp','','hide');
				noClose();
			break;

			case "customers":
				clearTimeout(closeItTimeout);
				MM_showHideLayers('prodlayer','','hide','subtools','','hide','subapps','','hide','download','','hide','prices','','hide','customers','','show','partner','','hide','support','','hide','corp','','hide');
				noClose();
			break;

			case "partners":
				clearTimeout(closeItTimeout);
				MM_showHideLayers('prodlayer','','hide','subtools','','hide','subapps','','hide','download','','hide','prices','','hide','customers','','hide','partner','','show','support','','hide','corp','','hide');
				noClose();
			break;

			case "support":
				clearTimeout(closeItTimeout);
				MM_showHideLayers('prodlayer','','hide','subtools','','hide','subapps','','hide','download','','hide','prices','','hide','customers','','hide','partner','','hide','support','','show','corp','','hide');
				noClose();
			break;

			case "about":
				clearTimeout(closeItTimeout);
				MM_showHideLayers('prodlayer','','hide','subtools','','hide','subapps','','hide','download','','hide','prices','','hide','customers','','hide','partner','','hide','support','','hide','corp','','show');
				noClose();
			break;

			}//end switch
		}//end else
	}//end fucntion

	
function timeout(){
	noClose();//reset the timeout.
	t = setTimeout("closeIt()",500);//set the timeout and give it an ID for clearing with noCLose().   2nd value defines how long before the nav shuts off.
	}
	
	
function closeIt(){//the closeIt method is called only by the timeout() function.
	MM_showHideLayers('prodlayer','','hide','subtools','','hide','subapps','','hide','download','','hide','prices','','hide','customers','','hide','partner','','hide','support','','hide','corp','','hide');
	}
	
	
function timeoutSub(){//function to ensure that the Products sub menu does not close inadvertantly
	noCloseSub();//reset the timeout.
	s = setTimeout("closeItSub()",200);//set the timeout and give it an ID for clearing with noCLose().   2nd value defines how long before the nav shuts off.
	}


function closeItSub(){//the closeIt method is called only by the timeoutSub() function for the sub menu only.
	MM_showHideLayers('subtools','','hide','subapps','','hide');
	}


function noClose(){//noCLose is called to cancel the closeIt() function
	//alert('hi')
	clearTimeout(t);
	}

function noCloseSub(){	//noCLose is called to cancel the closeItsub() function
	clearTimeout(s);
	}

//macromedia functions
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
//-->

//General Timer - not currently used.
var gTimer1 = null
var gTimer1Count = 0;

function Timer1()
{
  gTimer1Count++;
  window.status = "Timer1 Running - " + gTimer1Count;
  gTimer1 = window.setTimeout("Timer1()",1000);
}
//Timer1(); 



function hidemail(who,subj,lang) {//Function is used to obsfucate email links to hide from spamer harvesters.  05/11/03

switch(lang){//the "lang" parameter is sent by the function call, and defines the language of the user.  This is set in the i18n.php file included in pntop*.htm
		
		case "en":
        	lang = "";
		break;
			
		case "es":
        	lang = "Spanish";
		break;
		
		case "fr":
        	lang = "French";
		break;
		
		case "it":
        	lang = "Italian";
		break;

		case "de":
        	lang = "German";
		break;
		
}
	/*initialize to "" so that one return statement will work for all.  Otherwise, those email addresses that have less than the maximum cmd's will not try to apend with non declared variables.*/
	cmd0 = ""
	cmd1 = ""
	cmd2 = ""
	cmd3 = ""
	cmd4 = ""
	cmd5 = ""
	cmd6 = ""
	cmd7 = ""
	cmd8 = ""
	cmd9 = ""
	cmd10 = ""
	cmd11="?Su"
	cmd12="bje"
	cmd13="ct="
	cmd14=""
	cmd15=subj
	cmd16=""
	cmd17="&body="
	cmd18="Please note: My native language is "
	cmd19=lang
	cmd20=""

	
	if(lang=="")//no message if the language is english
	{
		cmd17="";
	cmd18="";
	cmd19="";
	cmd20="";
	}
	
	
	
	switch(who){//the "who" parameter is sent by the function call, and defines which email address is to be hidden
		
		case "tech":
        	 cmd8 = "om";    cmd7 = "w.c";   cmd5 = "ift";   cmd1 = "lto";
			 cmd4 = "@sw";   cmd3 = "ech";   cmd2 = ": t";   cmd0 = "mai";
			 cmd6 = "vie";
		break;
			
		case "help":
			cmd8 = "om";    cmd3 = "elp";   cmd7 = "d.c";   cmd5 = "ift";
       		cmd1 = "lto";   cmd4 = "@sw";   cmd0 = "mai";   cmd6 = "sen";
	        cmd2 = ": h";
    	break;
		
		case "ap":
			cmd9 = "ew.";   cmd7 = "wif";   cmd4 = "iva";   cmd1 = "lto";
			cmd5 = "ble";   cmd3 = "ece";   cmd0 = "mai";   cmd6 = "s@s";
	        cmd8 = "tvi";   cmd2 = ": r";  cmd10 = "com";
    	break;
		
		case "info":
			cmd8 = "om";    cmd6 = "vie";   cmd5 = "ift";   cmd1 = "lto";
        	cmd4 = "@sw";   cmd0 = "mai";   cmd7 = "w.c";   cmd2 = ": i";
        	cmd3 = "nfo";
		break;
		
		case "marketing":
			 cmd10 = "m";    cmd5 = "ng@";   cmd2 = ": m";   cmd1 = "lto";
       		 cmd8 = "iew";   cmd9 = ".co";   cmd4 = "eti";   cmd6 = "swi";
       		 cmd7 = "ftv";   cmd0 = "mai";   cmd3 = "ark";
    	break;
		
		case "pr":
		cmd8 = "";      cmd3 = "r@s";   cmd6 = "ew.";   cmd2 = ": p";
  		cmd1 = "lto";   cmd4 = "wif";   cmd0 = "mai";   cmd5 = "tvi";
        	cmd7 = "com";
    	break;

		case "sales":
		cmd9 = "";      cmd7 = "ew.";   cmd4 = "s@s";   cmd1 = "lto";
	        cmd5 = "wif";   cmd2 = ": s";   cmd3 = "ale";   cmd0 = "mai";
    		cmd6 = "tvi";   cmd8 = "com";
    	break;
		
		case "marketing":
		 cmd10 = "m";    cmd5 = "ng@";   cmd2 = ": m";   cmd1 = "lto";
       		 cmd8 = "iew";   cmd9 = ".co";   cmd4 = "eti";   cmd6 = "swi";
       		 cmd7 = "ftv";   cmd0 = "mai";   cmd3 = "ark";
    	break;		
		
		case "jobs":
		 cmd5 = "@el";   cmd2 = ": c";   cmd1 = "lto";
       		 cmd8 = "m";   cmd4 = "ers";   cmd6 = "ynx";
       		 cmd7 = ".co";   cmd0 = "mai";   cmd3 = "are";
    	break;		
		
		case "angie":
		cmd7 = "om";    cmd2 = ": a";   cmd1 = "lto";   cmd3 = "ngi";
		cmd4 = "e@s";   cmd0 = "mai";   cmd6 = "r.c";   cmd5 = "d-p";
    	break;		
		
		case "crystal":
		cmd10 = "";     cmd8 = "ew.";   cmd5 = "m@s";   cmd4 = "tal";
	        cmd3 = "rys";   cmd1 = "lto";   cmd2 = ": c";   cmd6 = "wif";
    	    cmd0 = "mai";   cmd7 = "tvi";   cmd9 = "com";
    	break;		
		
		case "stevesch":
		cmd10 = "";     cmd4 = "esc";   cmd8 = "ew.";   cmd5 = "h@s";
	        cmd1 = "lto";   cmd3 = "tev";   cmd6 = "wif";   cmd2 = ": s";
	        cmd0 = "mai";   cmd7 = "tvi";   cmd9 = "com";
    	break;		
		
		case "ryan":
		cmd10 = "m";    cmd3 = "y";   cmd1 = "lto";   cmd8 = "iew";
	        cmd4 = "a";   cmd9 = ".co";   cmd6 = "swi";   cmd7 = "ftv";
    	        cmd0 = "mai";   cmd5 = "n@";   cmd2 = ": r";    	
		break;		
		
		case "jonathant":
		cmd10 = "m";    cmd3 = "ona";   cmd1 = "lto";   cmd8 = "iew";
	        cmd4 = "tha";   cmd9 = ".co";   cmd6 = "swi";   cmd7 = "ftv";
    	        cmd0 = "mai";   cmd5 = "nt@";   cmd2 = ": j";    	
		break;		
		
		case "sssales":
		cmd9 = "";      cmd7 = "nd.";   cmd4 = "s@s";   cmd1 = "lto";
	        cmd5 = "wif";   cmd2 = ": s";   cmd3 = "ale";   cmd0 = "mai";
    		cmd6 = "tse";   cmd8 = "com";
    	break;
		
		case "partnersales":
		cmd9 = "ew.com";cmd7 = "wif";   cmd4 = "ners";   cmd1 = "lto";
	        cmd5 = "ale";   cmd2 = ": p";   cmd3 = "art";   cmd0 = "mai";
    		cmd6 = "s@s";   cmd8 = "tvi"; cmd10 = ""; 
    	break;
		default:
		cmd10 = "m";    cmd3 = "";   cmd1 = "lto";   cmd8 = "iew";
	        cmd4 = who;   cmd9 = ".co";   cmd6 = "swi";   cmd7 = "ftv";
    	        cmd0 = "mai";   cmd5 = "@";   cmd2 = ": ";    	
		}
		
		if (cmd15 == undefined){
			cmd15=" ";
		}

		location.href = cmd0 + cmd1 + cmd2 + cmd3 + cmd4 + cmd5 + cmd6 + cmd7 + cmd8 + cmd9 + cmd10 + cmd11 + cmd12 + cmd13 + cmd14 + cmd15 + cmd16 + cmd17 + cmd18 + cmd19 + cmd20;

}


/*function setStatus(){ NOT CURRENTLY USED
	msg  = "Loading...";
	window.status = msg;
	}
*/
