
function initMenuBar( menuBarId ) {
	if (document.all&&document.getElementById) { // test for IE
		navRoot = document.getElementById(menuBarId);
		if (navRoot == null ) return;
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" hover";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" hover", "");
				}
			}
		}
	}	
}
window.onload = function() {
	initMenuBar("nav"); 
	if( document.forms.length ) document.forms[0].elements[0].focus();
}
