jQuery(document).ready(function(){
	   // Alla funktioner gör samma sak (slidar ner och lägger till klasser) men för olika ändamål

	   // Menyn   
	   jQuery("#nav ul li ul.sub-menu").parent().addClass("parent"); //Only shows drop down trigger when js is enabled (Adds empty span tag after ul.subnav*)
	   jQuery("#nav ul li a").hover(function() {
			   //Following events are applied to the subnav itself (moving subnav up and down)
			   jQuery(this).parent().find("ul.sub-menu").fadeIn('fast').show();
//			   jQuery(this).parent().find("ul.sub-menu").fadeIn('fast').show(); //Drop down the subnav on hover

			   jQuery(this).parent().hover(function() {
			   }, function(){
					   	jQuery(this).parent().find("ul.sub-menu").fadeOut(100); //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() {
					   jQuery("#nav ul li span").addClass("subhover"); //On hover over, add class "subhover"
			   }, function(){        //On Hover Out
					   jQuery("#nav ul li span").removeClass("subhover"); //On hover out, remove class "subhover"
	   });
	   
	   // Conactpage
	   jQuery("#ContactAdress ul li:first").addClass('first-item');
	   jQuery("#ContactPhone ul li:first").addClass('first-item');
	   
});
