$(document).ready(function() {
	
	$("#mainmenu li").hover(
		function() { $("ul", this).css('display', 'block'); },
		function() { $("ul", this).css('display', 'none'); }
	);
	
});

