function appendClass(node){
	if(node.className != "flat"){
		node.onmouseover = function(){
			this.className += "over";
		}
		node.onmouseout = function(){
			this.className = this.className.replace(new RegExp("over\\b"), "");;
		}
	}
}

startList = function(){
	var node = document.getElementById("nav").getElementsByTagName("LI");
	for(var i = 0; i < node.length; i++){
		appendClass(node[i]);
	}
}

if(window.attachEvent) window.attachEvent("onload", startList);
