$(document).ready(function() {
	$('#nav li').hover(function() {
		$(this).children('ul').show();
	},function() {
		$(this).children('ul:visible').hide();	
	});
});
