menu=0;zoom=0;single=0;archive=0;zed_index=50;bio=0;cnc=0;sty=0;ss=0;fw=0;pc=0;bou=0;con=0;map=0;$(document).ready(function(){$("#menu_closed-fr").hide();$("#menu_open_top-fr").hide();$("#menu_open_top").hide();$("#coll2").hide();$("#coll_single").hide();$("#menu_open_top").click(function(){$(".menu").animate({bottom:"-660px"},700,"swing");$("#menu_open_top").animate({visibility:"hide",bottom:"-26px"},700,"swing");menu=0});$("#menu_closed").click(function(){if(screen.height<=768&&screen.height>=670){$(".menu").css("font-size","40px")}else if(screen.height<=670){$(".menu").css("font-size","30px")}if(menu==0){$(".menu").animate({bottom:"30px"},700,"swing");$("#menu_open_").show();if(screen.height<=768&&screen.height>=670){$("#menu_open_top").animate({visibility:"show",bottom:"470px"},700,"swing")}else if(screen.height<=670){$("#menu_open_top").animate({visibility:"show",bottom:"370px"},700,"swing")}else if(screen.height>768){$("#menu_open_top").animate({visibility:"show",bottom:"565px"},700,"swing")}menu=1}else if(menu==1){$(".menu").animate({bottom:"-660px"},700,"swing");$("#menu_open_top").animate({visibility:"hide",bottom:"-26px"},700,"swing");menu=0}});$("#menu_closed").mouseenter(function(){$(this).css("cursor","pointer");$("#menu_closed_g").show()});$("#menu_closed_g").mouseout(function(){$("#menu_closed_g").hide()});$("#menu_open_top").mouseenter(function(){$(this).css("cursor","pointer")});$("#bio").click(function(){$(".menu").animate({bottom:"-660px"},700,"swing");$("#menu_open_top").animate({visibility:"hide",bottom:"-26px"},700,"swing");menu=0;setTimeout($("#bio_e").css("zIndex",zed_index),$("#bio_e").fadeIn(900)),zed_index=zed_index+1});$("#inspiration").click(function(){$(".menu").animate({bottom:"-660px"},700,"swing");$("#menu_open_top").animate({visibility:"hide",bottom:"-26px"},700,"swing");menu=0;setTimeout($("#cnc_e").css("zIndex",zed_index),$("#cnc_e").fadeIn(900)),zed_index=zed_index+1});$("#style").click(function(){$(".menu").animate({bottom:"-660px"},700,"swing");$("#menu_open_top").animate({visibility:"hide",bottom:"-26px"},700,"swing");menu=0;setTimeout($("#sty_e").css("zIndex",zed_index),$("#sty_e").fadeIn(900)),zed_index=zed_index+1});$("#sc").click(function(){$(".menu").animate({bottom:"-660px"},700,"swing");$("#menu_open_top").animate({visibility:"hide",bottom:"-26px"},700,"swing");menu=0;setTimeout($("#ss_e").css("zIndex",zed_index),$("#ss_e").fadeIn(900)),zed_index=zed_index+1});$("#wc").click(function(){$(".menu").animate({bottom:"-660px"},700,"swing");$("#menu_open_top").animate({visibility:"hide",bottom:"-26px"},700,"swing");menu=0;setTimeout($("#fw_e").css("zIndex",zed_index),$("#fw_e").fadeIn(900)),zed_index=zed_index+1});$("#blog").click(function(){$(".menu").animate({bottom:"-550px"},650,"swing")});$("#boutique").click(function(){$(".menu").animate({bottom:"-660px"},700,"swing");$("#menu_open_top").animate({visibility:"hide",bottom:"-26px"},700,"swing");menu=0;setTimeout($("#bou_e").css("zIndex",zed_index),$("#bou_e").fadeIn(900));zed_index=zed_index+1;if(map==0){$("#bou_e .layer").contents().find("#wrapper_map").append('<iframe style="border:0px;" width="440" height="440" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.it/maps?f=q&source=s_q&hl=it&geocode=&q=Via+Cerva,+18,+Milano&aq=0&sll=41.442726,12.392578&sspn=18.691915,39.506836&vpsrc=6&ie=UTF8&hq=&hnear=Via+Cerva,+18,+20122+Milano,+Lombardia&t=h&ll=45.464435,9.198904&spn=0.006772,0.009634&z=16&iwloc=A&output=embed&iwloc=near"></iframe>');map=1}});$("#contacts").click(function(){$(".menu").animate({bottom:"-660px"},700,"swing");$("#menu_open_top").animate({visibility:"hide",bottom:"-26px"},700,"swing");menu=0;setTimeout($("#cnt_e").css("zIndex",zed_index),$("#cnt_e").fadeIn(900)),zed_index=zed_index+1})})
