
$j(document).ready(function(){
	
	$j("ul.topnav li a").hover(function() { //When trigger is hovered...

		//Following events are applied to the subnav itself (moving subnav up and down)
		$j(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on hover
		
		$j(this).parent().find(".subSelect").addClass("activeSub");
		

		$j(this).parent().hover(function() {}, function(){
			$j(this).parent().find("ul.subnav").slideUp('fast'); //When the mouse hovers out of the subnav, move it back up
		
		
			$j(this).parent().find("a.activeSub").removeClass("activeSub");
		});

		//Following events are applied to the trigger (Hover events for the trigger)
		}).hover(function() {
			$j(this).addClass("subhover"); //On hover over, add class "subhover"
		}, function(){	//On Hover Out
			$j(this).removeClass("subhover"); //On hover out, remove class "subhover"
			
	});
});
