$(document).ready(function(){

	$("ul.nav").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled (Adds empty span tag after ul.nav*)

	$("ul.navigation li span").click(function() { //When trigger is clicked...

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

		$(this).parent().hover(function() {
		}, function(){
			$(this).parent().find("ul.nav").slideUp('slow'); //When the mouse hovers out of the nav, move it back up
		});

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

});