$(document).ready(function(){
     
	//menu
	 
	 $("ul li ul").hide();
	
	    $(".home").click(function(){    	
		$("ul li ul").hide();		   
   });
   
		
		$(".azienda").click(function(){    	
		$("ul li ul").hide();
		$(".azienda_ul").show();		   
   });
   
   	    $(".prodotti").click(function(){    	
		$("ul li ul").hide();
		$(".prodotti_ul").show();		   
   });
	
	  $(".novita").click(function(){    	
		$("ul li ul").hide();
		$(".novita_ul").show();		   
   });
   
     $(".press_room").click(function(){    	
		$("ul li ul").hide();
		$(".press_room_ul").show();		   
   });
   
        $(".contatti").click(function(){    	
		$("ul li ul").hide();
		$(".contatti_ul").show();		   
   });
		
		$(".dove_siamo").click(function(){    	
		$("ul li ul").hide();
		$(".dove_siamo_ul").show();		   
   });
   
    //toglie outline link
   
   $('a').click(function() {
           this.blur();
   });

	//thumbnail gallery
	
	$("#img_container ul li:first-child img").show();
	
		$("#thumbnail_singolo a.th_1").click(function(){
				$(".th_11").show();
				$(".th_22").hide();
				$(".th_33").hide();
				$(".th_44").hide();
			});
		$("#thumbnail_singolo a.th_2").click(function(){
				$(".th_11").hide();
				$(".th_33").hide();
				$(".th_44").hide();				
				$(".th_22").show();				
			});
		
		$("#thumbnail_singolo a.th_3").click(function(){
				$(".th_11").hide();
				$(".th_22").hide();
				$(".th_44").hide();
				$(".th_33").show();				
			});
		
		$("#thumbnail_singolo a.th_4").click(function(){
				$(".th_11").hide();
				$(".th_22").hide();
				$(".th_33").hide();
				$(".th_44").show();				
			});
		
		$("#thumbnail_singolo a.th_5").click(function(){
				$(".th_55").show();
				$(".th_66").hide();
				$(".th_77").hide();
				$(".th_88").hide();				
			});
		
		$("#thumbnail_singolo a.th_6").click(function(){
				$(".th_55").hide();
				$(".th_66").show();
				$(".th_77").hide();
				$(".th_88").hide();				
			});
		$("#thumbnail_singolo a.th_7").click(function(){
				$(".th_55").hide();
				$(".th_66").hide();
				$(".th_77").show();
				$(".th_88").hide();				
			});
		$("#thumbnail_singolo a.th_8").click(function(){
				$(".th_55").hide();
				$(".th_66").hide();
				$(".th_77").hide();
				$(".th_88").show();				
			});		
		$("#thumbnail_singolo a.th_9").click(function(){
				$(".th_99").show();
				$(".th_110").hide();				
			});
		$("#thumbnail_singolo a.th_10").click(function(){
				$(".th_99").hide();
				$(".th_110").show();				
			});

//end jquery
}); 

<!-- 
function MM_openBrWindow(theURL,winName,features) { //v2.0
newwin=window.open(theURL,winName,features);
newwin.focus();
}
function SR_openCenteredWin(url, name, width, height, parameters)
{
var str = "height=" + height + ",innerHeight=" + height;
str += ",width=" + width + ",innerWidth=" + width;
if (window.screen) {
var myHeight = screen.availHeight - 30;
var myWidth = screen.availWidth - 10;

var myXCenter = (myWidth - width) / 2;
var myYCenter = (myHeight - height) / 2;

str += ",left=" + myXCenter + ",screenX=" + myXCenter;
str += ",top=" + myYCenter + ",screenY=" + myYCenter;
}
newwin = window.open(url, name, str + ',' + parameters);
newwin.focus();
}
//--> 

// funzione per tener aperto il menu
function apriMenu(elemento){
	$(document).ready(function(){   		
		$("ul li ul").hide();
		$("." + elemento + "_ul").show();
	});
};