// JavaScript Document
$(document).ready(function(){
	
	$("ul.topnav li").click(function() { //When trigger is clicked...
		$(this).find("a").eq(0).addClass("active");
		
		//Following events are applied to the subnav itself (moving subnav up and down)
		$(this).find("ul.subnav").slideDown('2000').show(); //Drop down the subnav on click

		$(this).hover(function() {
		}, function(){
			$(this).find("a").eq(0).removeClass("active");
			$(this).find("ul.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		});

	});

});


