/*************************************************************************************
This menu originally came from Nick Rigby's "Drop-Down Menus, Horizontal Style: Pt 3"
http://www.nickrigby.com/article/25/drop-down-menus-horizontal-style-pt-3

and has been modified by Grant Gatchel to include mouse-over background color changes
for all list items regardless if they have children.
************************************************************************************/

/*<![CDATA[*/
function IEHoverPseudo() {

	var navItems = document.getElementById("nav").getElementsByTagName("li");
	
	for (var i=0; i<navItems.length; i++) {
		if(navItems[i].className == "menuparent") {
			navItems[i].onmouseover=function() { this.className += " over"; }
			navItems[i].onmouseout=function() { this.className = "menuparent"; }
		} else {
			var realClassName = navItems[i].className;
			navItems[i].onmouseover=function() { this.className += " over"; }
			navItems[i].onmouseout=function() { this.className = realClassName; }
		}
	}

}
window.onload = IEHoverPseudo;
/*]]>*/

