
window.onload = function(){
	if (document.all) // only IE browsers load this function (window.attachEvent doesn't work in Mac/IE
		{ sfHover(); }
		
	/*
	if (document.SUPPORTER99597) { 
	
		getStringVar("addy");
	}	
	
	*/
}	

sfHover = function() {
 if (document.getElementsByTagName)
 {
  if (window.attachEvent) {
  var sfEls = document.getElementById("topnav").document.getElementsByTagName("LI");	
  }
  else {
	var sfEls = document.getElementsByTagName("LI");	
	}

	for (var i=0; i<sfEls.length; i++) {			
			
		sfEls[i].onmouseover=function() {
			this.className+=" hover";								
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" hover\\b"), "");
		}
	}	
 }
}

/* the form name, e.g. SUPPORTER99597, must be updated if necessary -- rprice@kintera.com 
function getStringVar(st){
  var temp = self.document.location.search;
  if(temp.indexOf(st) >= 0){
    temp = temp.substring((temp.indexOf(st)+(st.length+1)), temp.length);
    temp = temp.substring(0, (((temp.indexOf('&')>=0)?temp.indexOf('&'):temp.length)));
    for (var i=0;i<temp.length;i++){
      if (temp.charAt(i) == "+") {
        temp = temp.substring(0, i) + " " + temp.substring(i+1, temp.length+1);
      }
    }
  }else{ 
    temp = '';
  } 
  return unescape(temp);
}

{
document.SUPPORTER99597.email_address.value=getStringVar("addy");
}
*/