$(document).ready(function(){
	$('ul.nav li')
	.not('li.active')
	.not('li.active ul li')
	.each(function() {
		$(this).mouseover(function() {
			$('li.active:first ul').hide();
		}).mouseout(function() {
			$('li.active:first ul').show();
		});
	});
});