var classNames = new Object();

function getDefaultClass(nodeid) {
  for(a in classNames) {
    if(a == nodeid)
      return classNames[a];
  }
  return "";
}

startList = function() {
	now_class = "";
	daa = document.getElementById("horizontal_navigation");
	nodes = daa.getElementsByTagName("li");
	for (x=0; x<nodes.length; x++) {
		node = nodes[x];	
		node.id = "node"+x;
		classNames[node.id] = node.className;
	  node.onmouseout=function() {
		   //this.className = now_class;
		   this.className = getDefaultClass(this.id);
		}
	 	node.onmouseover=function() {
	 		//now_class = this.className;
			this.className = getDefaultClass(this.id) + " over";
	 	}
		
	}
}
if (window.attachEvent) {
	window.attachEvent("onload", startList);
} else {
	window.onload=startList;
}

