$(document).ready(function () {
	$('ul#nav>li').bind('mouseover', showMenu).bind('mouseout', hideMenu);
});

function showMenu() {
	$('a', this).addClass('hover');
	$('ul', this).show();
}

function hideMenu() {
	$('a', this).removeClass('hover');
	$('ul', this).hide();
}