
SubMenuHoverShow = function() {
	var ieULs = document.getElementById("hmenu").getElementsByTagName("UL");
	var detect = navigator.userAgent.toLowerCase();

//	alert(detect);
	if (detect.indexOf('gecko') == -1 && detect.indexOf('opera') == -1) {
		/** IE script to cover <select> elements with <iframe>s **/
  		for (j=0; j<ieULs.length; j++) {
  			ieULs[j].innerHTML = ('<iframe src="about:blank" scrolling="no" frameborder="0"></iframe>' + ieULs[j].innerHTML);
  			var ieMat = ieULs[j].firstChild;
  			ieMat.style.width=ieULs[j].offsetWidth+"px";
  			ieMat.style.height=ieULs[j].offsetHeight+"px";
  			ieULs[j].style.zIndex="160";
  		}
	}
	/** IE script to change class on mouseover **/
	var ieLIs = document.getElementById("hmenu").getElementsByTagName("LI");
	for (var i=0; i<ieLIs.length; i++) if (ieLIs[i]) {
		ieLIs[i].onmouseover=function() {this.className+=" hover";}
		ieLIs[i].onmouseout=function() {this.className=this.className.replace(new RegExp(" hover\\b"), "");}
	}
}

//if (window.attachEvent) window.attachEvent("onload", SubMenuHoverShow);
