

menuHover = function(nav) {
    var sfEls = document.getElementById(nav).getElementsByTagName("li");
    for (var i=0; i<sfEls.length; i++) {
      sfEls[i].onmouseover=function() {
        this.className+=" sfhover";
      }
      sfEls[i].onmouseout=function() {
        this.className=this.className.replace(new RegExp("\\s?sfhover\\b"), "");
      }
    }
  }

  function addEvent( obj, type, fn ) {
    if ( obj.attachEvent ) {
      obj['e'+type+fn] = fn;
      obj[type+fn] = function(){obj['e'+type+fn]( window.event );}
      obj.attachEvent( 'on'+type, obj[type+fn] );
    } else
      obj.addEventListener( type, fn, false );
    }
 
addEvent(window, 'load', function () { menuHover('menu'); });

$(document).ready(function() {	

$("#menu ul li").hover(
	function () {
	//$(this).children().has("li").slideDown();
	$(this).children().has("li").show();
	},
	function () {
	 //$(this).children().has("li").slideUp();
	 $(this).children().has("li").hide();
	}
  );

});




