// JavaScript Document

jQuery(document).ready(function(){
	
// Add class too parent li of menu item that has a submenu 
	jQuery("li.submenu:has(li)").addClass("level2").parents();
// Add class too last and first menu items (just in case this is needed later, as of now it doesnt affect the design) 
	jQuery("ul.submenu li:first-child").addClass("first");
	jQuery("ul.submenu li:last-child").addClass("last"); 

// Add class to menu item hover 	
	jQuery("ul#mainnav li").hover(function(){
		jQuery(this).addClass("hover");
		}, function(){
		jQuery(this).removeClass("hover");
	}); 

// Limit Newsbox items to max. 5 items
	jQuery("#newsbox li:nth-child(5)").nextAll().hide();
	

	
// Adres Footer scripts

// Add class to last li
	jQuery("ul#adresfooter li:last-child").addClass("last");

// Hide parent li with no info
	jQuery("ul#adresfooter span:empty").parent().hide();
	
	
});
