(function($){
  $.fn.toggleClass = function(className) {
    if (!className) {
      className = "over"
    }
    $(this).hover(
      function() {
        $(this).addClass(className);
        $('div.contents').find('select').attr('style','visibility:hidden')
      }, 
      function() {
        $(this).removeClass(className);
        $('div.contents').find('select').attr('style','visibility:visible')
      }
    );
  }
})(jQuery);

jQuery(function() {
  // IE 6
  if ($.browser.msie && $.browser.version.substring(0, 1) == "6") {
    $("#nav,#hor").find("> li").toggleClass();  
  }
});

/*
startList = function() {
  if (document.all&&document.getElementById) {
    navRoot = document.getElementById("nav");
	if (navRoot)
	{
		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", "");
		   }
		 }
		}
	}	
    horRoot = document.getElementById("hor");
    for (i=0; i<horRoot.childNodes.length; i++) {
    node = horRoot.childNodes[i];
    if (node.nodeName=="LI") {
    node.onmouseover=function() {
    this.className+=" over";
      }
      node.onmouseout=function() {
      this.className=this.className.replace(" over", "");
       }
     }
    }
  }
}
window.onload=startList;
*/
