smHover = function() {
	var smEls = document.getElementById("submenu").getElementsByTagName("LI");
	for (var i=0; i<smEls.length; i++) {
		smEls[i].onmouseover=function() {
			this.className+=" smhover";
		}
		smEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" smhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", smHover);
