function initMenu(){
	var mm = document.getElementById('mainMenu');
	var links = mm.getElementsByTagName('LI');
	for (var i=0; i<links.length; i++) {
		
		links[i].onmouseover=function() {
			
			this.className = this.className + ' hover';
			
			//to use on state for hover (also see comment in mouseout state)
			//img[0].src = img[0].src.replace(/\/off\//,'/on/');
			
		}
		links[i].onmouseout=function() {
			
			this.className = this.className.replace(/ hover/,'');
			this.className = this.className.replace(/hover/,'');
			
			//to use on state for hover (also see comment in mouseover state)
			//img[0].src = img[0].src.replace(/\/on\//,'/off/');
			
		}
		
		
	}
}


function showhide(id){
	if (document.getElementById){
		objH = document.getElementById('H'+id);
		objM = document.getElementById('M'+id);
		if (objM.style.display == "none"){
			objM.style.display = "";
			objH.className = "HeadOn";
		} else {
			objM.style.display = "none";
			objH.className = "Head";
		}
	}
}
