jQuery(function($) {
	var active  = $('.nav-holder > ul > li > a.active');
	$('.nav-holder > ul > li ').hover(
		function () {
			$('.sub-nav:visible').hide();
			$(this).find('.sub-nav').show();
			$(this).find('a:eq(0)').addClass('hovered')
		}, 
		function () {
			$('.sub-nav:visible').hide();
			$(active).parent().find('.sub-nav').show();
			$(this).find('a:eq(0)').removeClass('hovered')
		}
	);
});