// JavaScript Document
function updateMessage(message, show) {
	if(document.getElementById){
		obj = document.getElementById("icon_text");
		if(show){
			obj.style.display = "block";
		} else {
			obj.style.display = "none";
		}
		obj.childNodes[0].nodeValue = message;
	  // - note that for this to work, the div must already have a child node.  
	  // - Otherwise, you'll get an error.
	}
}
startList = function() {
	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 = menuOver;
				node.onmouseout = menuOut;
			}
		}
	}
}
// Add over css class to li tag
function menuOver(){
	this.className+=" over";
}
// Removes over css class to li tag
function menuOut(){
	this.className=this.className.replace(" over", "");
}
window.onload = startList;