// JavaScript Document

startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("navbar");
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=this.className.replace(" over", "");
   }
   }
  }
 }
}
window.onload=startList;	


function changeClass(id, class_name) {
	
	var menus   = Array();
	var count   = 0;
	menus[0] = "who";
	menus[1] = "what";
	menus[2] = "where";
	menus[3] = "how";
	menus[4] = "why";	
	
	for (count = 0; count < menus.length; count++) {
		var current_element = document.getElementById(menus[count]);
		if (menus[count] != id && current_element.className != "actived") {
			current_element.className = "deactive";
		}
	}
	
	var element = document.getElementById(id);				
	element.className = class_name;			
}
			
