function initMenu() {
	var menuObj = document.getElementById("nav");
	if (!menuObj) return;
	menuObj = menuObj.getElementsByTagName("UL")[0];
	if (!menuObj) return;
	
	menuObj.onmouseover = function () {
		this.className += " hovered";
	}
	
	menuObj.onmouseout = function () {
		this.className = this.className.replace(/ ?hovered/, "");
	}
	
	for (i=0; i < menuObj.childNodes.length; i++) {
		if (menuObj.childNodes[i].nodeName == "LI") {
			menuObj.childNodes[i].onmouseover = function () {
				this.className = "visible";
			}
			menuObj.childNodes[i].onmouseout = function () {
				this.className = "invisible";
			}
		}
	}
	
}