// this script enables IE Win to do state change on hover like better browsers.
// change the nav root if needed, and remember to add an "over" class to 
// your stylesheet.

function enableHoverOld() {
	if ( document.all && document.getElementById && document.getElementsByTagName ) {
		var nodes = document.getElementById( "topnav" ).getElementsByTagName( "LI" );
		for ( i = 0; i < nodes.length; i++ ) {
			var node = nodes[i];
			node.onmouseover = function() {
				this.className += " over";
			}
			node.onmouseout = function() {
				this.className = this.className.replace( " over", "" );
			}
		}
	}
}

function enableHover() {
	if ( document.all && document.getElementById ) {
		navRoot = document.getElementById( "topnav" );
		for ( i = 0; i < navRoot.childNodes.length; i++ ) {
			node = navRoot.childNodes[i];
			if (node.nodeName == "LI") {
				node.onmouseover = function() {
					this.className += " over";
				}
				node.onmouseout = function() {
					this.className = this.className.replace( " over", "" );
				}
			}
		}
	}
}

addLoadEvent( enableHover );
