// Helper Functions Created by Christoph Corcuera 
var isFF = false;   
var isOP = false;   
var isSafari = false; 
var sURL = unescape(window.location.pathname);


//This function is a work around that enables the top navigation tab menus to work properly in FF, Safari, and Opera 
function CheckBrowserRefresh()   
{
var val = navigator.userAgent.toLowerCase(); 
if(val.indexOf("firefox") > -1) //if browser is firefox
	{
		if (location.href.indexOf('reload')==-1) //check if reload is in the url
		{
			window.location.href = sURL + '?reload'; //refresh page and append reload to the end of the url preventing loop.
		}
	}
else if(val.indexOf("opera") > -1)  
	{
 		if (location.href.indexOf('reload')==-1) 
  		{
		   window.location.href = sURL + '?reload';
    	}
	}
	else if(val.indexOf("safari") > -1) 
	{
 if (location.href.indexOf('reload')==-1) 
  {
   window.location.href = sURL + '?reload';
  }
}
}


//Sets active submenu nav color 
//added by Chris C.  11/20/08
function set_subnav(menuid){
	//document.getElementById(menuid).style.backgroundColor="yellow";
	document.getElementById(menuid).style.color="#00253f";
}

