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";
    }
    
		sfEls[i].onmouseout=function()
		{
      this.className = this.className.replace(new RegExp(" sfhover\\b"), "");       
    }
	}
	
	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 = "";
    }
	}	
}

version=0
if (navigator.appVersion.indexOf("MSIE")!=-1)
{
	temp=navigator.appVersion.split("MSIE");
	version=parseFloat(temp[1]);
}

if (window.attachEvent && (version < 7.0) && (version > 0.0)) window.attachEvent("onload", sfHover);