startList = function() {
if (isFirefox=navigator.userAgent.indexOf("Firefox")>0) {
if (document.all&&document.getElementById) {//if start,No.1
navRoot = document.getElementById("menu");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}//onmouseover end
node.onmouseout=function() {
this.className=this.className.replace(" over", "");
}//onmouseout end
}//end if
}//eixt for
}//end if,No.1
}//end if
else{
var navRoot = document.getElementById("menu").getElementsByTagName("LI");
for (var i=0; i<navRoot.length; i++) {
navRoot[i].onmouseover=function() {
this.className+=" over";
}
navRoot[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" over"), "");
}
}//end for
}//end if
}
//end
window.onload=startList;