
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
	  var hasSubmenu = false;
	  var subUL;
	  subUL = sfEls[i].getElementsByTagName("UL");

    //for ones that have a submenu, we need to hide any dropdowns when in the menu
    //since those would appear on top of the menu...
	  if(subUL != null && subUL.length > 0){
	    hasSubmenu = true
	  }else{
	    hasSubmenu = false;
	  }
	  
	  if(hasSubmenu){
	    sfEls[i].onmouseover=function() {
		    showSelect(-1);
   			this.className+=" sfhover";
		  }
		  sfEls[i].onmouseout=function() {
		    showSelect(1);
		  	this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		  }
	  }else{
	    sfEls[i].onmouseover=function() {
    		this.className+=" sfhover";
		  }
		  sfEls[i].onmouseout=function() {
  			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		  }
	  }
		
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);


