function startList() {
	if (document.all && document.getElementById) {
		navRoot = document.getElementById("nav");
		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 = "";
	   			}
   			}
  		}
 	}
}

function alignMenu() {
	if ( document.getElementById ) {
		navRoot = document.getElementById("nav");
		globalWidth = document.getElementById("navContainer").offsetWidth;
		calculatedWidth = 0;
		
		for ( i=0; i < navRoot.childNodes.length; i++ ) {
			node = navRoot.childNodes[i];
			
			if ( node.nodeName == "LI" ) {
				calculatedWidth += node.offsetWidth;
			}
		}
		
		neededOffset = (globalWidth-calculatedWidth)/2 - 30;
		
		navRoot.style.paddingLeft = neededOffset+'px';
		navRoot.style.paddingRight = neededOffset+'px';
		
	}
}

function persistLoginMenu() {
	document.getElementById('nav').childNodes[2].display = 'block';
}
