<!--
	var toid = null;
	var menubasename = "NavMenu";  // Base name of all menu layers (ie.  NavMenu0, NavMenu1, NavMenuX)
	var menutimeout = 10000;  // Time that menus stay visible before automatically dissappearing.
	var menuY = 0;  // Menu Top Pixel Setting.  Where the top of the menu layers starts.
	
	menu=0;menu=1;menu=2;menu=3;menu=4;menu=5;menu=6;menu=7;menu=8;menu=9;
		// Sets menu to be the number of menu items.  Has to be done this way because TeamSite wont tell you the Length or Count of items in a replicant
	
	// Browser Dectector cut down to get the basics
	var agt=navigator.userAgent.toLowerCase(); 
	var is_major = parseInt(navigator.appVersion); 
	var is_minor = parseFloat(navigator.appVersion); 
	var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) 
		&& (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) 
		&& (agt.indexOf('webtv')==-1)); 
	var is_nav2 = (is_nav && (is_major == 2)); 
	var is_nav3 = (is_nav && (is_major == 3)); 
	var is_nav4 = (is_nav && (is_major == 4)); 
	var is_nav4up = (is_nav && (is_major >= 4)); 
	var is_navonly      = (is_nav && ((agt.indexOf(";nav") != -1) 
		|| (agt.indexOf("; nav") != -1)) ); 
	var is_nav5 = (is_nav && (is_major == 5)); 
	var is_nav5up = (is_nav && (is_major >= 5)); 
	var is_ie   = (agt.indexOf("msie") != -1); 
	var is_ie3  = (is_ie && (is_major < 4)); 
	var is_ie4  = (is_ie && (is_major == 4) && (agt.indexOf("msie 4.")!=-1) ); 
	var is_ie4up  = (is_ie  && (is_major >= 4)); 
	var is_ie5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.")!=-1) ); 
	var is_ie55  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.5")!=-1) ); 
	if(!is_ie5){ var is_ie5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.")!=-1) ); } 
		//quick fix for header so if ie6 then reports ie5 to js
	var is_ie5up  = (is_ie && !is_ie3 && !is_ie4); 
	var is_ie6  = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.")!=-1) ); 
	var is_ie6up  = (is_ie && !is_ie3 && !is_ie4 && !is_ie5); 
	var is_opera = (agt.indexOf("opera") != -1); 
	var is_webtv = (agt.indexOf("webtv") != -1); 
	var is_gecko = (agt.indexOf("gecko") != -1);
	var is_gecko5  = (is_gecko && (is_major == 5)); 
	var is_gecko5up  = (is_gecko  && (is_major >= 5)); 
	
	function is_pllayer(layername)
	{
		islayer = null;
		if(is_gecko5up && document.getElementById(layername)){	islayer = 1;	}
		if(is_ie5 && document.all(layername)){	islayer = 1;	}
		if(is_ie4 && document.all(layername)){	islayer = 1;	}
		if(is_nav4 && document.layers[layername]){	islayer = 1;	}
		return islayer;
	}	
	
	//	change layers visibility to visible
	function layerplshow(layername)
	{
		if(is_pllayer(layername))
		{
			if(is_gecko5up || is_ie5){	document.getElementById(layername).style.visibility = 'visible';	}
			if(is_ie4){	document.all(layername).style.visibility = 'visible';	}
			if(is_nav4){	document.layers[layername].visibility = 'visible';	}
		}
	}
	
	//	change layers visibility to hidden
	function layerplhide(layername)
	{
		if(is_pllayer(layername))
		{
			if(is_gecko5up || is_ie5){	document.getElementById(layername).style.visibility = 'hidden';	}
			if(is_ie4){	document.all(layername).style.visibility = 'hidden';	}
			if(is_nav4){	document.layers[layername].visibility = 'hidden';
							document.layers[layername].visibility = 'hide';	}
		}
	}
	
	//	position layer at given coordinates
	//	layerplpos('layername', xposition, yposition);
	function layerplpos(layername, x, y)
	{
		if(is_pllayer(layername))
		{
			x = parseInt(x);
			y = parseInt(y);
			
			if(is_gecko5up){	
				document.getElementById(layername).style.left =  x+'px';
				document.getElementById(layername).style.top =  y+'px';	
			}
			if(is_ie4 || is_ie5){	
				//document.all(layername).style.top = y;
				//document.all(layername).style.left = x;
				
				//document.all(layername).style.top = menuY;
				document.all(layername).style.left = x;
			}
			if(is_nav4){	
				document.layers[layername].top = y;
				document.layers[layername].left = x;
			}
		}
	}
	
	function showplMenu(menunum,alignImg)
	{
		var elm = document.getElementById("NavMenu"+menunum);
		hideplMenus();
		if(is_pllayer(menubasename+menunum)){	
			//layerplpos(menubasename+menunum,  0, menuY);
			elm.style.left = getRealLeft(alignImg);
			elm.style.top = getRealTop(alignImg)+18;
			layerplshow(menubasename+menunum);
		}
		toid = setTimeout("hideplMenus();", menutimeout);
		
	}
	
	function hideplMenus()
	{
		for(i=0; i<menu+1; i++)
		{
			menunum = i;
			if(is_pllayer(menubasename+menunum)){	layerplhide(menubasename+menunum);	}
		}
		clearTimeout(toid);
	}
	
	function reloader()
	{
		if(is_nav4)
		{	
			// Reloads/Refreshes the page if window is resized and is netscape.
			location.reload();
		}
	}
	
	/**
	 * - gets the left position of the nav item
	 */		 
	function getRealLeft(imgElem) {
		xPos = document.getElementById(imgElem).offsetLeft;
		tempEl = document.getElementById(imgElem).offsetParent;
	  	while (tempEl != null) {
	  		xPos += tempEl.offsetLeft;
	  		tempEl = tempEl.offsetParent;
	  	}
		return xPos;
	}
	
	/**
	 * - gets the top position of the nav item
	 */					
	function getRealTop(imgElem) {
		yPos = document.getElementById(imgElem).offsetTop;
		tempEl = document.getElementById(imgElem).offsetParent;
		while (tempEl != null) {
	  		yPos += tempEl.offsetTop;
	  		tempEl = tempEl.offsetParent;
	  	}
		return yPos;
	}
	
	function popUpWindow(url){
		var puwin = window.open(url,"popup","toolbar=no,resizable=no,width=320,height=370",true);
		puwin.moveTo((screen.availWidth/2)-puWidth/2,(screen.availHeight/2)-puHeight/2);
	}		
	
	// This puts in the body tag with margin attributes if you are testing the header seperate from an HTML page
	// The <bo"+"dy> tag has been split in the Javascript statement to ensure the browser does not try and read it and override the current page body tag
	if(!document.title){	document.write("<bo"+"dy bgcolor=#ffffff margin=0 marginwidth=0 marginheight=0 topmargin=0 bottommargin=0 rightmargin=0 leftmargin=0>");	}

function phoneCombine(p1,p2,p3,pe,p) {
        if(p1.value != '' || p2.value != '' || p3.value != '')
                p.value = p1.value+"-"+p2.value+"-"+p3.value;

        if(pe != null && pe.value != null && pe.value != '')
                p.value += " x"+pe.value;
}
//-->
