

			var ua = navigator.userAgent.toLowerCase();	/* // Browser-versions in lower case */
			var an = navigator.appName.toLowerCase();	/* // Browser-names in lower case */
			var MAC = ua.indexOf("mac") != -1; /* // Macintosh-hardware */
			var OLD = navigator.userAgent.substring(7+navigator.userAgent.indexOf("ozilla"),8+navigator.userAgent.indexOf("ozilla"))<="3";	/* // Mozilla lesser than version 4 */
			var MSIE = ua.indexOf("msie")>-1;		/* // Microsoft Internet Explorer in general */
			var NTSC = an.indexOf("netscape")>-1;	/* // Netscape in general */
			var OPERA = ua.indexOf("opera")>-1;	/* // Opera in general */
			var IE5 = ua.indexOf("msie 5")>-1;	/* // Internetexplorer version 5.x PC and MACintosh */
			var IE4 = ua.indexOf("msie 4")>-1;	/* // Internetexplorer version 4.x PC and MACintosh */
			var N6_1 = ua.indexOf('netscape6/6.1')>-1;	/* // Netscape version 6.1 PC and MACintosh */
			var N6 = ua.indexOf('netscape6')>-1;	/* // Netscape version 6.x PC and MACintosh */
			var N4 = navigator.userAgent.substring(7+navigator.userAgent.indexOf("ozilla"),8+navigator.userAgent.indexOf("ozilla"))<="4" && NTSC;	/* // Netscape version 4.x PC and MAC */
			var OPERA5 = ua.indexOf('opera 5')>-1;	/* // Opera 5.x in MSIE 5 compatible mode */
			var OPERA6 = ua.indexOf('opera 6')>-1;	/* // Opera 6.x in MSIE 5 compatible mode */
			var OTHERS = !MSIE && !NTSC && !OPERA && !OLD; 	/* // All non-specified browsers version 4.x on all platforms */
			var MACMSIE = MAC && MSIE;		/* // Microsoft Internet Explorer in general on MACintosh */
			var MACIE51 = ua.indexOf("msie 5.1")>-1 && MAC;	/* // Internetexplorer version 5.1 on MACintosh */
			var MACIE5 = IE5 && MAC;		/* // Internetexplorer version 5.x on MACintosh */
			var MACIE4 = IE4 && MAC;		/* // Internetexplorer version 4.x on MACintosh */
			var MACN6_1 = N6_1 && MAC;		/* // Netscape version 6.1 on MACintosh */
			var MACN6 = N6 && MAC;		/* // Netscape version 6.0 on MACintosh */
			var MACN4 = N4 && MAC;		/* // Netscape version 4.x PC and MACintosh */
			var MACOTHERS = OTHERS && MAC; /* // MACintosh and all non-specified browsers version 4.x */
		



			var tempSize = 0;
			var divHeight = 0;
			var navHeight = 0;
			var lineWidth = 0;
			var lineHeight = 0;
			var tempHeight = 0;
			var tempScroll = 0;

			var arraySelects = new Array();
			var isArraySelectsLoaded = 1;

	

function reloadMac()
	{
	if (IE5)
	{
		tempHeight = document.body.offsetHeight;
		if ((self.name != "loadmenot") && (document.body.offsetHeight <= document.body.scrollHeight))
		{
//			setTimeout("this.location.reload()", 2000);
		}
		self.name = "loadmenot";
	}
	else if (IE4)
	{
		if ((self.name != "loadmenot" + '&' + tempHeight) && (self.name != "loadme" + '&' + tempHeight))
		{
			tempHeight = document.body.offsetHeight;
			self.name = "loadmenot" + '&' + tempHeight;
		}
		else if (self.name != "loadmenot" + '&' + tempHeight)
	{
			setTimeout("this.location.reload()", 500);
		}
		self.name = "loadmenot" + '&' + tempHeight;
		setTimeout("self.name = 'loadme' + '&' + tempHeight", 1000);
	}
}



function floating()
	{
	if (OLD)
	{
		;
	}
	else if (N6)
	{
		if (window.innerHeight + window.pageYOffset + window.innerWidth + window.pageXOffset != tempSize)
		{
			var posX = 0;
			var posY = window.innerHeight + window.pageYOffset - 19;
			lineWidth = window.innerWidth + window.pageXOffset;

			//document.getElementById("footerNav").style.left = posX;
			//document.getElementById("footerNav").style.top = posY;
			//document.getElementById("footerNav").style.borderTop = "1px solid #cccccc";
			tempSize = window.innerHeight + window.pageYOffset + window.innerWidth + window.pageXOffset;
		}
	}
	else if (MSIE)
	{
		if (isArraySelectsLoaded){
			fnSelectsToHide();
		}
		if (document.body.clientHeight + document.body.scrollTop != tempSize)
	{
			// document.all["footerNav"].style.visibility = "hidden";
			var posX = 0;
			lineWidth = document.body.scrollWidth;
			
	      	//document.all["footerNav"].style.borderTop = "1px solid #cccccc";
	      	//document.all["footerNav"].style.width = lineWidth;
	      	//document.all["footerNav"].style.left = posX;
	      	//document.all["footerNav"].style.top = document.body.clientHeight + document.body.scrollTop - 18;
	      	//hideSelects(); // IE Only.  Hides select elements as they always appear on top of the footer if not hidden.
	      	//var hideSelX = document.all["footerNav"].style.top;
			divHeight = posY - 3 - navColtop;
			lineHeight = posY - 3 - navLinetop;
			tempSize = document.body.clientHeight + document.body.scrollTop;
			// document.all["footerNav"].style.visibility = "visible";
		}
	}
	else if (MACIE4)
	{
		if (document.body.scrollHeight + document.body.scrollTop + document.body.scrollWidth + document.body.scrollLeft != tempSize)
		{
			var splitName = self.name.split('&');
			var realHeight = splitName[1];
			var navColtop = parseInt(document.all["naviColor"].style.top);
			var navLinetop = parseInt(document.all["naviLine"].style.top);
			var posX = 0;
			var posY = document.body.scrollHeight + document.body.scrollTop - 16;
			if ((realHeight != document.body.offsetHeight) && (document.body.scrollTop == tempScroll))
			{
				eval(reloadMac());
			}
			if (document.body.offsetHeight < realHeight | typeof realHeight == 'undefined')
	{
				posY = document.body.offsetHeight - 18;
			}
			else if (document.body.scrollHeight + document.body.scrollTop < realHeight | document.body.scrollTop != tempScroll | document.body.scrollLeft > 0)
	{
				posY = realHeight - 16;
			}
			//document.all["footerNav"].style.left = posX;
	      	//document.all["footerNav"].style.top = posY;
			divHeight = posY - 3 - navColtop;
			lineHeight = posY - 3 - navLinetop;
			document.all["naviColor"].innerHTML = "<img src='./files/pixel-ffffff.gif/$file/pixel-ffffff.gif' width='144' height='1' border='0'><br><img src='./files/pixel-navblue.gif/$file/pixel-navblue.gif' width='144' height='" + divHeight + "' border='0'>";
			document.all["naviLine"].innerHTML = "<img src='./files/pixel.gif/$file/pixel.gif' width='144' height='2' border='0'><img src='./files/pixel-navblue.gif/$file/pixel-navblue.gif' width='1' height='" + lineHeight + "' border='0'>";
			document.all["line"].style.left = 0;
	     	document.all["line"].style.top = posY -3;
			lineWidth = document.body.scrollWidth + document.body.scrollLeft;
			document.all["line"].innerHTML = "<imgsrc='./files/pixel-cccccc.gif/$file/pixel-cccccc.gif' width='"+ lineWidth +"' height='1' border='0'>";
			tempScroll = document.body.scrollTop;
			tempSize = document.body.scrollHeight + document.body.scrollTop + document.body.scrollWidth + document.body.scrollLeft;
		}
	}
	else if (MACIE5)
	{
		if (document.body.scrollHeight + document.body.scrollTop + document.body.scrollWidth + document.body.scrollLeft != tempSize)
		{
			var navColtop = parseInt(document.all["naviColor"].style.top);
			var navLinetop = parseInt(document.all["naviLine"].style.top);
			var posX = 0;
			var posY = document.body.scrollHeight + document.body.scrollTop - 27;
			if (document.body.scrollHeight + document.body.scrollTop < tempHeight | tempHeight == 0)
			{//alert(document.body.scrollHeight + '+' + document.body.scrollTop + '+' + tempHeight);
				posY = document.body.offsetHeight + document.body.scrollTop - 27;
			}
			//document.all["footerNav"].style.left = posX;
	      	//document.all["footerNav"].style.top = posY;
			divHeight = posY - 3 - navColtop;
			lineHeight = posY - 3 - navLinetop;
			document.all["naviColor"].innerHTML = "<img src='./files/pixel-ffffff.gif/$file/pixel-ffffff.gif' width='144' height='1' border='0'><br><img src='./files/pixel-navblue.gif/$file/pixel-navblue.gif' width='144' height='" + divHeight + "' border='0'>";
			document.all["naviLine"].innerHTML = "<img src='./files/pixel.gif/$file/pixel.gif' width='144' height='2' border='0'><img src='./files/pixel-navblue.gif/$file/pixel-navblue.gif' width='1' height='" + lineHeight + "' border='0'>";
			document.all["line"].style.left = 0;
	      	document.all["line"].style.top = posY -3;
			lineWidth = document.body.scrollWidth + document.body.scrollLeft - 15;
			document.all["line"].innerHTML = "<img src='./files/pixel-cccccc.gif/$file/pixel-cccccc.gif' width='"+ lineWidth +"' height='1' border='0'>";
			document.all["naviColor"].style.height = divHeight;
			document.all["naviLine"].style.height = lineHeight;
			document.all["line"].style.width = lineWidth;
			tempSize = document.body.scrollHeight + document.body.scrollTop + document.body.scrollWidth + document.body.scrollLeft;
		}
	}
	else if (N4 | OTHERS)
	{
		if (window.innerHeight + window.pageYOffset + window.innerWidth + window.pageXOffset != tempSize)
		{
			var posX;
			if (MAC)
			{
			posX = 0;
			}
			else
			{
				posX = 0;
			}
			var posY = window.innerHeight + window.pageYOffset - 18;
			lineWidth = window.innerWidth + window.pageXOffset;
			if (window.innerHeight + window.pageYOffset < document.height)
	{
				posY = window.innerHeight + window.pageYOffset - 18;
			}
			document.layers["line"].moveTo(0,posY -1);
			//document.layers["footerNav"].moveTo(posX,posY);
			//document.layers["footerNav"].resizeTo(lineWidth,180);
			//document.layers["footerNav"].bgColor="white";
			document.line.document.write("<img src='./files/pixel-cccccc.gif/$file/pixel-cccccc.gif' width='"+ lineWidth +"' height='1' border='0'>");
			document.line.document.close();
			tempSize = window.innerHeight + window.pageYOffset + window.innerWidth + window.pageXOffset;
		}
	}
	// setTimeout("floating()", 10);
	setTimeout("floating()", 500);
}
	
// fnSelectsToHide determines which select tags should be hidden/shown again when the footer passes over them.
// Certain pages may have specific select tags which should never be shown.  
	function fnSelectsToHide() {
	var distanceFromTop = 0;
	var allSelects = document.all.tags("select");
	for (i=0; i<allSelects.length;i++){
		if (allSelects[i].name != "sItem"){ 
			distanceFromTop += allSelects[i].offsetTop;
			var objX = allSelects[i].offsetParent;
			while (objX.tagName.toUpperCase() != "BODY") {
				distanceFromTop += objX.offsetTop;
				objX = objX.offsetParent;
			}
		}
		else
			distanceFromTop = 0;  // certain selects should not be included in the visibility formula, set these selects distance to 0
	
		arraySelects[i] = distanceFromTop;
		distanceFromTop = 0;
	
	}	
	isArraySelectsLoaded = 0;		
}
	
	//function hideSelects() {
	// IE controls specify that Select boxes are window elements, and as such, can not be controlled by a z-index.  This makes select boxes appear on top of
	// any div tag, including the footer tag.  To counteract this, we go through the select tags and hide them when they are supposed to be "covered" by the footer.
	//var allSelects = document.all.tags("select");
	//var ftTop = parseInt(document.all["footerNav"].style.top);
	//for (i=0;i<arraySelects.length; i++){
	//	if (arraySelects[i] != 0){
	//		if(((ftTop+18) >= arraySelects[i]) && !(ftTop >=(arraySelects[i] + 18)))
	//			allSelects[i].style.visibility = "hidden";
	//		else
	//			allSelects[i].style.visibility = "visible";	
	//	}
	//}
	//}
	
 function load(value, width, height) 
{
 if(value == "#"){
 	//do nothing
	}else{ 
 	var ranNum = Math.random();
	var textNum = "X" + ranNum;
	var winTitle = "launchWinId" + textNum.substring(4,12) + "X"; 
	//window title is randomly created to allow for multiple windows to be spawned from this script 
  	var newWindow = window.open(value,winTitle ,"width=" + width + ",height=" + height + ",resizable,menubar,scrollbars,directories=no,status=no,toolbar=no,location=no,left=50,top=50");
	} 
 } 
 function windowReload() 
 { 
      window.location.refresh(); 
 } 
 function filterPageReload(newLoc) 
{
	newPage = newLoc.options[newLoc.selectedIndex].value 
		//alert(newPage)
		
	if (newPage != ""){		
		window.location.href = newPage
	}
 } 
 function intentPageReload(newLoc) 
{
	newPage = newLoc.options[newLoc.selectedIndex].value 
		//alert(newPage)
		
	if (newPage != ""){		
		window.location.href = newPage
	}
 } 
 function MM_findObj(n, d) { //v3.0 
   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); return x; 
 } 
 function MM_swapImage() { //v3.0 
   var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) 
    if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} 
 } 
 function MM_swapImgRestore() { //v3.0 
   var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; 
 } 
