$(document).ready(function(){
	$(".topnav li").hover(function() { //When trigger is clicked...
			$(this).find("ul").slideDown('fast').show();
		},function(){
			$(this).find("ul").hide();
		});
		
		$(this).parent().hover(function() {
		$(this).find(".subnav").hover(function() {
		}, function(){
			$(this).find("ul.subnav").slideUp('fast'); //When the mouse hovers out of the subnav, move it back up
		});

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

	});
	
/* 	$('.menuItem').hover(function()
	{
		var subItem = $(this).attr("id");
		$("." + subItem).slideDown("fast");
	}); 
		$('.menuItem').hover(function()
		{
			var subItem = $(this).attr("id");
			$("." + subItem).slideToggle("fast");
			//$("." + subItem).slideDown("fast");
		});
*/


//});

