

sfHover = function() {

	var sfEls = document.getElementById("mainnav").getElementsByTagName("LI");
	var master = document.getElementById("mainnav");
	
	
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
				//alert(this.className);
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
		
		master.onmouseover=function() {
		    //alert(this.className);
			this.className=" mfhover";
		}
		master.onmouseout=function() {
			//alert(this.className =" die");
			this.className =" die";
		}
		
	}
}
