$(document).ready(function(){lastBlock=$("#a1");maxWidth=150;minWidth=3;$("ul li a").hover(function(){$(lastBlock).animate({width:minWidth+"px"},{queue:false,duration:400});$(this).animate({width:maxWidth+"px"},{queue:false,duration:400});lastBlock=this;});Shadowbox.init({players:['img','flv']});$("#micropali,#tiranti,#opere,#svolti,#immagini,#video,#mk420,#fm40,#beretta").hide();$("#a1").click(function(){$.scrollTo('#home',2500,{axis:'y',easing:'easeInOutQuint'})})
$("#a2").click(function(){$.scrollTo('#lavori',2500,{axis:'y',easing:'easeInOutQuint'})})
$("#a3").click(function(){$.scrollTo('#sonde',2500,{axis:'y',easing:'easeInOutQuint'})})
$("#a4").click(function(){$.scrollTo('#contatti',2500,{axis:'y',easing:'easeInOutQuint'})})
$("#sondaggiBt").click(function(){$("#micropali,#tiranti,#opere,#svolti,#immagini,#video").hide()
$("#sondaggi").show()})
$("#micropaliBt").click(function(){$("#sondaggi,#tiranti,#opere,#svolti,#immagini,#video").hide()
$("#micropali").show()})
$("#tirantiBt").click(function(){$("#sondaggi,#micropali,#opere,#svolti,#immagini,#video").hide()
$("#tiranti").show()})
$("#opereBt").click(function(){$("#sondaggi,#micropali,#tiranti,#svolti,#immagini,#video").hide()
$("#opere").show()})
$("#svoltiBt").click(function(){$("#sondaggi,#micropali,#tiranti,#opere,#immagini,#video").hide()
$("#svolti").show()})
$("#imgBt").click(function(){$("#sondaggi,#micropali,#tiranti,#opere,#svolti,#video").hide()
$("#immagini").show()
if(!$.browser.msie){$("img").lazyload({threshold:200,effect:"fadeIn"})}})
$("#videoBt").click(function(){$("#sondaggi,#micropali,#tiranti,#opere,#svolti,#immagini").hide()
$("#video").show()
if(!$.browser.msie){$("img").lazyload({threshold:200,effect:"fadeIn"})}})
$("#mk600Bt").click(function(){$("#mk420,#fm40,#beretta").hide()
$("#mk600").show()
if(!$.browser.msie){$("img").lazyload({threshold:200,effect:"fadeIn"})}})
$("#mk420Bt").click(function(){$("#mk600,#fm40,#beretta").hide()
$("#mk420").show()
if(!$.browser.msie){$("img").lazyload({threshold:200,effect:"fadeIn"})}})
$("#fm40Bt").click(function(){$("#mk600,#mk420,#beretta").hide()
$("#fm40").show()
if(!$.browser.msie){$("img").lazyload({threshold:200,effect:"fadeIn"})}})
$("#berettaBt").click(function(){$("#mk600,#mk420,#fm40").hide()
$("#beretta").show()
if(!$.browser.msie){$("img").lazyload({threshold:200,effect:"fadeIn"})}});
});
