// JavaScript Document
//--><![CDATA[//>
function reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.pgW=innerWidth; document.pgH=innerHeight; onresize=reloadPage; }}
  else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();
}

reloadPage(true);
//THIS FUNCTION IS USED TO CREATE THE ROLLOVER EFFECT 
//		ON THE MAIN NAVIGATION IMAGES ON MOUSEOVER
function swapImage() 
  {
  var i,j=0,x,a=swapImage.arguments; 
   document.sr=new Array; 
   for(i=0;i<(a.length-2);i+=3)
   if ((x=findObj(a[i]))!=null){document.sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
  }
//THIS FUNCTION RESTORES THE ORIGINAL IMAGE THAT WAS SWAPPED ON MOUSEOUT
function swapImgRestore() { 
  var i,x,a=document.sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
//HELPER FUNCTION FOR swapImage
function findObj(n, d) {
  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=findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
//THIS FUNCTION SETS THE APPROPRIATE CSS CLASS ON THE <LI> ELEMENT
//		FOR THE DROP DOWN MENU
startList = function() {
	if (document.all&&document.getElementById) {navRoot = document.getElementById("menuup");
		for (i=0; i<navRoot.childNodes.length; i++) {node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {node.onmouseover=function(){this.className+=" over";}
				node.onmouseout=function(){this.className=this.className.replace(" over", "");}}}}
}


window.onload=startList;

// 6-30-06 bw added from menuscriptie so teal with highlight show in footer */
var opened = null;
	function hl( obj) // hl used in header.asp for Home button, no dropdowns
        {
		if( opened != null ) 
          {
		  opened.style[ 'background' ] = '#003082'; // #003082=drk blue
		  }
	    obj.style[ 'background' ] = '#08869F';// #008869f=drk teal
	    opened = obj;
	    }

//--><!]]>