var jsvhover = function(){
  var nodes = document.getElementById("vertical_menu").getElementsByTagName("li");  
  for (var i=0; i<nodes.length; i++){
	nodes[i].onmouseover = function(){
	  this.className += " jsvhover";
	}	
	nodes[i].onmouseout = function(){
	  this.className = this.className.replace(new RegExp(" jsvhover\\b"), "");
	}
  }
}

if (window.attachEvent)
	window.attachEvent("onload", jsvhover);


var jshover = function(){
  var nodes = document.getElementById("menu").getElementsByTagName("li");  
  for (var i=0; i<nodes.length; i++){
	nodes[i].onmouseover = function(){
	  this.className += " jshover";
	}	
	nodes[i].onmouseout = function(){
	  this.className = this.className.replace(new RegExp(" jshover\\b"), "");
	}
  }
}

if (window.attachEvent)
	window.attachEvent("onload", jshover);
