
//drop down menu function
function GoUrl(s)
{	var d = s.options[s.selectedIndex].value
	window.top.location.href = d
	s.selectedIndex=0
}

//preload nav rollovers
for(q=1;q<10;q++)
{
eval("n"+q+"On = new Image()");
eval("n"+q+"On.src = '/i/nav"+q+"_on.gif'");
eval("n"+q+"Off = new Image()");
eval("n"+q+"Off.src = '/i/nav"+q+".gif'");
}

//preload arrows
arrow_off = new Image();
arrow_off.src = "/i/graphic_arrow_off.gif";
arrow_on = new Image();
arrow_on.src = "/i/graphic_arrow_on.gif";


//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;");
 }
}

//promo rollover
function pSwap(whichPromo, whichState) {
	eval("document.images['promo"+ whichPromo + "'].src=promo" + whichPromo +"_"+ 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;
	
var oldwhich = 1;
var x=1;
var layerTimer;
	
//turn on layer and rollover
	function layOver(which)
	{

	x=1;
	l = eval(lR + "l" + which + sR);
	
	//arrow off
	toggleArrow(oldwhich,"lN","off");
	
	if (oldwhich != which)
	{
		ol = eval(lR + "l" + oldwhich + sR);
		ol.visibility = invis;
	}
	
	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
		toggleArrow(oldwhich,"lN","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()

	

