﻿// JScript 文件
function menuFix() 
{ 
    var sfEls = document.getElementById("nav").getElementsByTagName("li"); 

    for (var i=0, j=sfEls.length; i<j; i++)
    {
	    sfEls[i].onmouseover = function(){this.className+=(this.className.length>0? " ": "") + "sfhover";};
	    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"), "");};
    }
}