function menuFix() {
    var sfEls = document.getElementById("menu").getElementsByTagName("li");
    for (var i=0; i<sfEls.length; i++) {
        sfEls[i].onmouseover=function() {
			this.className+=(this.className.length>0? " ": "") + "sfhover";
			var child = this.childNodes[0];
			if(child.className.indexOf("root")!=-1){
				child.className+=" hover";
			}
			//document.getElementById("message").innerHTML = child.className;
        }
        /*sfEls[i].onMouseDown=function() {
        	this.className+=(this.className.length>0? " ": "") + "sfhover";
        }
        sfEls[i].onMouseUp=function() {
       		this.className+=(this.className.length>0? " ": "") + "sfhover";
        }*/
        sfEls[i].onmouseout=function() {
        	this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"),"");
			var child = this.childNodes[0];
			if(child.className.indexOf("root") != -1){
				child.className = child.className.replace(new RegExp("( ?|^)hover\\b"),"");;
			}
        	//this.className=this.className.replace(new RegExp("( ?|^)hover\\b"),"");
        }
    }
}
window.onload=menuFix;
/*ÐÂÔöjs*/
var menuids=["menu2"]

function buildsubmenus(){
for (var i=0; i<menuids.length; i++){
  var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
    for (var t=0; t<ultags.length; t++){
    ultags[t].parentNode.onmouseover=function(){
    	this.getElementsByTagName("ul")[0].style.display="block";
    }
    ultags[t].parentNode.onmouseout=function(){
    	this.getElementsByTagName("ul")[0].style.display="none"
    }
    }
  }
}

if (window.addEventListener)
window.addEventListener("load", buildsubmenus, false)
else if (window.attachEvent)
window.attachEvent("onload", buildsubmenus)

/*ÐÂÔöjs*/

