$(document).ready( function() {
	$(".nav ul").find("li").each( function() {
		if ($(this).find('ul').size() > 0) {
			$(this).addClass('has_more');	
		}
	});
			
	$(".nav ul").find("li").hover( function() {
		$(this).addClass("hover");
		$(this).children("a").addClass("hover");
		$(this).children("ul").show();		
	},function(){
		$(this).children("ul").hide();
		$(this).children("a").removeClass("hover");
		$(this).removeClass("hover");
	});
});