function IEHoverPseudo() {
	var navItems = document.getElementById("primary-nav").getElementsByTagName("li");

	// additional variable to define multiple hover
	var hover = false;

	for (var i=0; i<navItems.length; i++) {
		if(navItems[i].className == "menuparent") {
			navItems[i].onmouseover=function() {
				// if hover true then this element is parent
				this.className += hover ? " parent" : " over";
				hover = true;
			}
			navItems[i].onmouseout=function() {
				// unset all
				hover = false;
				this.className = this.className.replace(/ over| parent/g, '');
			}
		}
	}

}
window.onload = IEHoverPseudo;