var selectedanchor=0;
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++)   {
		sfEls[i].onmouseover=function()     {
      this.className += " sfhover";
      var thelink = this.getElementsByTagName("a");
      if (thelink!=null && thelink.length > 0)      {
        selectedanchor = thelink[0];
        selectedanchor.className = "seld";
      }
    } 
		sfEls[i].onmouseout=function()     {
      this.className = this.className.replace(new RegExp(" sfhover\\b"), "");       
      if (selectedanchor)
        selectedanchor.className = "";
    }
	}
	var sfEls = document.getElementById("topmenu").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++)   {
		sfEls[i].onmouseover=function()     {
      this.className += " sfhover";
      var thelink = this.getElementsByTagName("a");
      if (thelink!=null && thelink.length > 0)      {
        selectedanchor = thelink[0];
        selectedanchor.className = "seld";
      }
    }
		sfEls[i].onmouseout=function()     {
      this.className = this.className.replace(new RegExp(" sfhover\\b"), "");       
      if (selectedanchor)
        selectedanchor.className = "";
    }
	}	
}
if (window.attachEvent) window.attachEvent("onload", sfHover);