/** a list of (undefined functions) for the onload event **/
onloadscripts = function() {
	
	var navRoot = document.getElementById('ie_nav_fix[]');
	/* find what page it is, find the relative link in the nav and apply the selected classname */
	var path = window.location.pathname;
	
	var page = path.substring(path.lastIndexOf('/') + 1); //live string
	
	//////////// FIX FOR MOZILLA NEEDED
	
	/* run through ul links */
	/*
	if(navRoot != null && page != null) {
		for(f=0; f<navRoot.childNodes.length; f++){
			var attributes = navRoot.childNodes[f].childNodes[0].attributes;
			for(g=0; g<attributes.length; g++) {				
				if(attributes[g].nodeName.toLowerCase() == "href") {
					var fullLink = attributes[g].nodeValue;
					var link = fullLink.substring(fullLink.lastIndexOf('/') + 1); //live string
					if(link == page.toLowerCase()) {
						navRoot.childNodes[f].className = " selected";	
					}
				}
			}
		}
	}
	*/
	
	/* fix ie pseudo element problem for the navigation */
	if (document.all && document.getElementById) {			
			if(navRoot != null) {
				for (i=0; i<navRoot.childNodes.length; i++) {
					node = navRoot.childNodes[i];
					if (node.nodeName=="LI" && node.className=="") {
						node.onmouseover=function() {
							this.className+=" over";
						}
						node.onmouseout=function() {
							this.className=this.className.replace(" over", "");
						}
					}
				}
			}
		}
	}

window.onload = onloadscripts;