$(document).ready(function(){

	$("ul.subnav").parent().addClass("dropMenuDropable"); //Only shows drop down trigger when js is enabled - Adds empty span tag after ul.subnav
	
	$("ul.topnav li.dropMenuDropable").hover(function() { //When trigger is clicked...

		//Following events are applied to the subnav itself (moving subnav up and down)
		$(this).find("ul.subnav").slideDown('fast',function(){$(this).addClass("subhover")}); //Drop down the subnav on click
		//$(this).addClass("subhover"); //On hover over, add class "subhover"
	}, function() {
		$(this).find("ul.subnav").slideUp('slow',function(){$(this).removeClass("subhover")}); //When the mouse hovers out of the subnav, move it back up
		//$(this).removeClass("subhover"); //On hover out, remove class "subhover" 
	});
});
