
//drop down menu function
function GoUrl(s)
{	var d = s.options[s.selectedIndex].value
	window.top.location.href = d
	s.selectedIndex=0
}


//toggle arrow
function toggleArrow(whichNum, layer, whichState) {
 if (layer=="") eval("document.images['arrow"+ whichNum + "'].src=arrow_"+whichState+".src;");
 else 
 {
  if (document.all) eval("document.images['arrow"+ whichNum + "'].src=arrow_" + whichState + ".src;");
  if (document.layers)  eval("document.layers."+layer+".document.images['arrow" + whichNum + "'].src = arrow_"+whichState+".src;");
  if (!document.all && document.getElementById) eval("document.getElementById('" + whichNum + "').src = arrow_"+whichState+".src;");
 }
}

//set up layer call
var isIE, isNS, isNS6, isDOM, lR, sR, vis, invis, myTimeOut, goName;
	if (document.all) {isIE= true;lR="document.all.";sR=".style";vis="visible";invis="hidden";}
	if (document.layers){isNS = true;lR="document.layers.";sR="";vis="show";invis="hide";}
	if (document.getElementById &&!isIE) {isDOM=true;lR = "document.getElementById('";sR = "').style";invis ="hidden";vis = "visible"}
	if (isDOM == true && navigator.appName =="Netscape") isNS6 = true;
  if (isNS){document.captureEvents(Event.MOUSEDOWN);}
var oldwhich = 1;
var x=1;
var layerTimer;
	
//turn on layer and rollover
	function layOver(which,o)
	{

	x=1;
	l = eval(lR + "l" + which + sR);
	//arrow off
	
	
	if (oldwhich != which)
	{
		ol = eval(lR + "l" + oldwhich + sR);
		ol.visibility = invis;
	}
	
  l.left = eval(o.offsetParent.offsetLeft + o.offsetParent.offsetParent.offsetLeft);
	l.visibility = vis;
	oldwhich = which;
	clearTimeout(layerTimer);
	return;
	}
	
//turn off layer and rollover if user is completely off nav 
	function stopOver()
	{
		if (x<5) x++;
		else
		{
		ol = eval(lR + "l" + oldwhich + sR);
		ol.visibility = invis;

		//arrow off
		
		
		x=1;
		}
	layerTimer = setTimeout("stopOver()",150)
	}
	
//reset the timer
	function startOver()
	{
	x=1
	clearTimeout(layerTimer);
	}

	
//netscape resize bug fix
function NSresize() {
  if (document.FIX.NSfix.initWindowWidth != window.innerWidth || document.FIX.NSfix.initWindowHeight != window.innerHeight) {
    document.location = document.location;
  }
}

function NSCheck() {
  if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {
    if (typeof document.FIX == 'undefined'){
      document.FIX = new Object;
    }
    if (typeof document.FIX.FIX_scaleFont == 'undefined') {
      document.FIX.NSfix = new Object;
      document.FIX.NSfix.initWindowWidth = window.innerWidth;
      document.FIX.NSfix.initWindowHeight = window.innerHeight;
    }
    window.onresize = NSresize;
  }
}

NSCheck()

	
