$(document).ready(function() {	
	$('#nav>li').hover(
		function() {
			curr = $(this).find("a").attr("class");
			$('ul',this).fadeIn('fast');
			$(this).find("a").addClass(curr+'_'+'active');
			},
		function() {
			$('ul',this).css({left:"-1px"}).fadeOut('normal');
			$(this).find("a").removeClass(curr+'_'+'active');
			});
});