$(document).ready(function(){
	$('#menu li').hover(function() {
		$(this).children('ul').show();
	}, function(){
		$(this).removeClass("hover");
		$(this).children('ul').hide();
	});
});