// run this so that IE will understand :hover
// for 1 and 2 nav divs
sfHover = function() {
	var sfEls1 = document.getElementById("cSideNav") ? document.getElementById("cSideNav").getElementsByTagName("DIV") : new Array();
	var sfEls2 = document.getElementById("gNav").getElementsByTagName("LI");
	var collections = new Array(sfEls1, sfEls2);
	
	for(j=0;j<collections.length;j++)
	{
		var thisCollection = collections[j];
	for (var i=0; i<thisCollection.length; i++) {
		if(thisCollection[i].className.indexOf("isSpacer") == -1)
        {
        thisCollection[i].onmouseover=function() {
			this.className+=" sfhover";
			//alert(this.style.backgroundImage);
			//alert(this.className);
			//alert(this.id);
        }
		}
		thisCollection[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			//alert(this.className);
		}
	}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);


/******************************************/
// used on all pages for google analytics
_uacct = "UA-396163-1";
/******************************************/


    


// preload the 2nav on image
var secNav_on = new Image;
secNav_on.src = "/images/global/bg_tertnav.gif"


function GetQueryVariable(variable) {
  var query = window.location.search.substring(1);
  var vars = query.split("&");
  var result="";
   for (var i=0;i<vars.length;i++)
   {
       var pair = vars[i].split("=");      
        if (pair[0] == variable) 
        {
            result=pair[1];
            break;            
        }
   }   
   return  unescape(' '+result+' ');
}
