$(document).ready(function(){
	$('.menu ul li').click(function(){ 
		$('.menu a').click(function(){ return false; });
			var id = $(this).children("a").attr("href");
			$('.prv_content').show();
			
			$('.all').queue(function () {
				window.location.href=id;
				/*$('.prv_content').animate(
					{'height':'440px'}
					,1000,
					(function(){
						window.location.href=id;
					}
				)); */
			
		});	
	}); 

/*********** MENU GORNE ***************/ 

$('.contact a img').css({'border':'none'});

$(".menu ul li span").css({'marginTop':'-190px'});
$(".menu ul li span img.no_act").css({'opacity':'1'});
$(".menu ul li span img.act").css({'opacity':'0'});

$('.menu ul li').children("span.active").children("img.act").css({'opacity':'1'});
$('.menu ul li').children("span.active").css({'opacity':'1'});

$('.menu ul li').mouseover(function(){	
	$(this).children("span").not(".active").children("img.act").css({'opacity':'1'});
});

$('.menu ul li').mouseleave(function(){	
	$(this).children("span").not(".active").children("img.act").css({'opacity':'0'});
});
/********** END MENU GORNE ***********/	

/*********** CONTENT MENU *************/ 

		
$('.content_menu2 ul li span').mouseenter(function(){	
	var show = $(this).parents('li').hasClass('show');
	if(show == false){							   

		$(this).parents('li').animate({'marginTop': '+=75px'}, { 'duration': 800 });
		$(this).parents('li').addClass("show");
		
	$(this).parents('li').mouseleave(function(){
		$(this).stop();
		
		$(this).animate({'marginTop': '20px'}, 800 ,function(){  });
		$(this).removeClass('show');
	});
	}											
});
	 
/********** END CONTENT MENU ***********/		

});
