// JavaScript Document


startList = function(menuElement, nodeName) {
if (document.all&&document.getElementById) {
navRoot = document.getElementById(menuElement);
if(navRoot){
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName==nodeName) {

// don't show selected items
deactivationClass="inactive";
var pattern = new RegExp("(^|\\s)"+deactivationClass+"(\\s|$)");
if(pattern.test(node.className)){
;
}
else{
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
}
}
startMenu = function(){
	startList("menulist","LI");
}
startProducts = function(){
	startList("homepage_prodlist","DIV");
}
addEvent(window,'load', startMenu);
addEvent(window,'load', startProducts);
//window.onload=startList;