// Add onmouseover and onmouseout functions to add and remove an 'over' class to the LI tags in the navigation DIV tag
// Used to show and hide floating subnavigation lists in Internet Explorer, because it doesn't apply the :hover pseudo-class to LI tags
function styleLIs(objId){
	for(var i = 0; i < objId.childNodes.length; i++){
		var node = objId.childNodes[i];
		if(node.nodeName == "LI"){
			node.onmouseover = function(){this.className += " over"; this.className = this.className.replace(/^\s*|\s*$/g,"");};
			node.onmouseout = function(){this.className = this.className.replace("over", ""); this.className = this.className.replace(/^\s*|\s*$/g,"");};
			styleLIs(node);
		}else if(node.nodeName == "UL"){styleLIs(node)}
	}
}

// Name of the id that holds the site navigation UL tag
var navId = "nav";

// Call the styleLIs function at the onload event if the browser is Internet Explorer
window.onload = function(){if(document.all && document.getElementById)styleLIs(document.getElementById(navId))}
