// <![CDATA[


ieHover = function() {
	if(document.getElementById("mainTopNav")) {
		var ieEls = document.getElementById("mainTopNav").getElementsByTagName("li");
	} else if(document.getElementById("mainHCPTopNav")) {
		var ieEls = document.getElementById("mainHCPTopNav").getElementsByTagName("li");
	}
	for (var i=0; i<ieEls.length; i++) {
		if(ieEls[i].className) {
			thisClassName = ieEls[i].className;
			if(thisClassName.search(/resourcesHCPNav/) > -1 || thisClassName.search(/forMoreInfoTopNav/) > -1) {
				newClass = " iehover2";
			} else {
				newClass = " iehover";
			}
			//alert("className: "+thisClassName+"; newClass: "+newClass);
		}
		
		ieEls[i].onmouseover=function() {
			if(this.getElementsByTagName("ul").length > 0) {
				this.getElementsByTagName("ul")[0].style.display = "block";
			}
			if(this.className.match(/resourcesHCPNav/g) || this.className.match(/forMoreInfoTopNav/g)) {
				this.className += " iehover2";
			} else {
				this.className += " iehover";
			}
		}
		ieEls[i].onmouseout=function() {
			if(this.getElementsByTagName("ul").length > 0) {
				this.getElementsByTagName("ul")[0].style.display = "none";
			}
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");			
		}
		
	}
}
if (window.attachEvent) window.attachEvent("onload", ieHover);

// ]]>