sfHover = function() {
	var sfEls = document.getElementById("navi").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
		    if (Element.hasClassName(this,'first')){
			this.className+=" firstsfhover";
		    }else{
		    this.className+=" sfhover";
		    }
		    
		    if (Element.hasClassName(this,'last')){
			this.className+=" lastsfhover";
		    }else{
		    this.className+=" sfhover";
		    }		    
		}
		sfEls[i].onmouseout=function() {
	    
		    if (Element.hasClassName(this,'first')){
	           this.className=this.className.replace(new RegExp(" firstsfhover\\b"), "");
		    }else{
	           this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		    }
		    
		    if (Element.hasClassName(this,'last')){
		      this.className=this.className.replace(new RegExp(" lastsfhover\\b"), "");
		    }else{
		      this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		    }		    		    
			
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
