jQuery.noConflict();

jQuery(document).ready(function(){

	jQuery("ul.sub-menu").parent().append("<div></div>"); //Only shows drop down trigger when js is enabled (Adds empty div tag after ul.sub-menu*)

	jQuery("ul.menu li a").hover(function() { //When trigger is clicked...

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

		jQuery(this).parent().hover(function() {
		}, function(){
			jQuery(this).parent().find("ul.sub-menu").slideUp('fast'); //When the mouse hovers out of the sub-menu, move it back up
		});

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

});


