top.vdHover = function() { var vdLists=document.getElementsByTagName('UL'); var i=0; var done=false; while (!done) { if (vdLists[i]) { if (vdLists[i].className.match(new RegExp("\\bpulldown\\b"))) { var item=vdLists[i].firstChild; while (item && item.tagName=='LI') { item.onmouseover=function() { this.className+=" vdHover"; } item.onmouseout=function() { this.className=this.className.replace(new RegExp(" vdHover\\b"),""); } item=item.nextSibling; } } } else { done=true; } i++; } } if (window.attachEvent) { window.attachEvent("onload", top.vdHover); }