function checkIframeItemCarousel(n){var t=n;(winSize=="md"||winSize=="lg")&&$("#home-carousel .carousel-control").show();(winSize=="xs"||winSize=="sm")&&(t.find(".play").length==1?$("#home-carousel .carousel-control").show():$("#home-carousel .carousel-control").hide())}function homeSliderVideo(){var n=$("#home-carousel").find(".item.active"),t,e;if(n.find(".play").length==1){var u=n.find(".play"),o=n.find(".play").attr("href"),f=n.find(".play").data("autoplay")==!0?"&amp;autoplay=1":"",i={before:"https://www.youtube.com/embed/",after:"?rel=0&controls=0&showinfo=0&wmode=transparent"},r=i.before+o+i.after+f+"";n.find(".play").data("src")&&(r=n.find(".play").data("src"));winSize&&(t=undefined,u.attr("data-src-"+winSize)&&(t=u.attr("data-src-"+winSize)),t!=undefined&&(r=t.toLowerCase().indexOf("http")>=0||t.toLowerCase().indexOf("www")>=0?t:i.before+t+i.after+f+""));e='<iframe class="embed-responsive-item" width="560" height="315" src="'+r+'" frameborder="0" allowfullscreen><\/iframe>';n.find(".embed-responsive").append(e)}checkIframeItemCarousel($("#home-carousel").find(".item.active"));$(window).resize(function(){checkIframeItemCarousel($("#home-carousel").find(".item.active"))})}function fixHeaderHeight(){var t=$(".navbar-fixed-top").outerHeight(),n=0;$("#promoBanner").length>0||$("#promoBanner_two").length>0?($("#bHeaderBottom").css("margin-top",t),$("#promoBanner").css("margin-top",0)):n=t;$("#main").css("margin-top",n);n>0&&$.cookie("mainMarginTop",n,{expires:365,path:"/"})}function highlightheight(){var t=$(".product-grid"),n=$(".product-grid article:nth-child(2)"),i,r;if(t.hasClass("product-grid-4")&&(winSize=="md"||winSize=="lg")){if(t.hasClass("with-highlight"))if(n.find("img").hasClass("image-loaded"))i=n.outerHeight(),r=n.find(".media").outerHeight(),$(".highlight .media").height(i+r);else n.find("img").on("load",function(){var t=n.outerHeight(),i=n.find(".media").outerHeight();$(".highlight .media").height(t+i)})}else $(".highlight .media").height("auto")}function cl(n){dubug==1&&console.log(n)}function spinner(){$(".spinner .btn:last-of-type").on("click touchstart",function(n){n.stopPropagation();n.preventDefault();$(this).closest(".spinner").find('input[type="text"]').val(parseInt($(this).closest(".spinner").find('input[type="text"]').val(),10)+1).change()});$(".spinner .btn:first-of-type").on("click touchstart",function(n){n.stopPropagation();n.preventDefault();var t=$(this).closest(".spinner").find('input[type="text"]').attr("data-minqty");t==null&&(t=1);parseInt($(this).closest(".spinner").find('input[type="text"]').val(),10)>t&&($(this).closest(".spinner").find('input[type="text"]').val(parseInt($(this).closest(".spinner").find('input[type="text"]').val(),10)-1).change(),parseInt($(this).closest(".spinner").find("input").val())==0&&$(this).closest(".spinner").find('input[type="text"]').val(0))})}function enableCartScroll(){$(".scrollable-cart").on("click",".scroll-btn",function(n){var r;n.preventDefault();var u=$(".scrollable-content article").length,f=u-3,t=$(".scrollable-content article:first-child"),i=parseInt(t.css("margin-top"));t.hasClass("animated")||($(this).hasClass("scroll-bottom")?(r=f*90,Math.abs(i-90)<=r&&(t.addClass("animated"),t.animate({"margin-top":i-90},500,function(){t.removeClass("animated")}))):i<0&&(t.addClass("animated"),t.animate({"margin-top":i+90},500,function(){t.removeClass("animated")})))})}function sod_style(){$(".text-select").selectOrDie({customClass:"custom",customID:"custom"})}function filters_height(){}function override_bootstrap_dropdown(){var n=$("li.dropdown");n.find("> a").on("click touchstart",function(t){winSize!="xs"&&(t.preventDefault(),t.stopImmediatePropagation(),n.not($(this).closest(".dropdown")).removeClass("open"),$(this).parent().toggleClass("open"))})}function showLoader(n){if(cl("dsfsfs"),n=n||"#loader",$("body").removeClass("white-backdrop"),n=="#loader"){n=$("#loader");$("body").addClass("white-backdrop");n.off("hide.bs.modal, hidden.bs.modal").on("hide.bs.modal, hidden.bs.modal",function(){$("body").removeClass("white-backdrop")});n.modal({keyboard:!1,show:!0})}else n=$(n),$('<div class="ajax-loader-overlay"><div class="wrp"><div class="sk-folding-cube"><div class="sk-cube1 sk-cube"><\/div> <div class="sk-cube2 sk-cube"><\/div> <div class="sk-cube4 sk-cube"><\/div> <div class="sk-cube3 sk-cube"><\/div> <\/div><\/div><\/div>').appendTo(n)}function hideLoader(n){n=n||"#loader";n=="#loader"?(n=$("#loader"),n.modal("hide")):(n=$(n+" .ajax-loader-overlay"),n.remove())}function mapsTabInit(n){if(n=="xs"||n=="sm"){var i=$("#negozi"),t=i.find(".tab a");t.on("click touchstart",function(n){n.preventDefault();t.removeClass("active");$(this).addClass("active");$("#storeList, #storeMap").hide();i.find($(this).attr("href")).show()})}$("#storeList .pin").on("click touchstart",function(r){r.preventDefault();cl("Centra la mappa sullo store");(n=="xs"||n=="sm")&&(t.removeClass("active"),t.parent().find("a:first-child").addClass("active"),$("#storeList, #storeMap").hide(),i.find("#storeMap").show())})}function remember_grid(){var t=$(".gridby > span"),i=detectSize(),n="product-grid-"+(i==="xs"?2:4);$.cookie("plp-grid-by")==undefined?($(".gridby > span[data-grid='"+n+"']").addClass("active"),$(".product-grid").addClass(n)):($(".gridby > span[data-grid='"+$.cookie("plp-grid-by")+"']").addClass("active"),$("#product-list.product-grid").addClass($.cookie("plp-grid-by")));typeof resizeImages=="function"&&setTimeout(function(){resizeImages()},100);t.on("click",function(){$.cookie("plp-grid-by",$(this).attr("data-grid"),{expires:365,path:"/"})});fixMobileGrid()}function fixMobileGrid(){$(".product-grid").hasClass("product-grid-1")&&(winSize=="sm"||winSize=="xs")&&(cl("WIN: "+winSize),$.cookie("plp-grid-by","product-grid-1",{expires:365,path:"/"}),$(".gridby > span[data-grid='product-grid-2']").removeClass("active"),$(".gridby > span[data-grid='product-grid-1']").addClass("active"),$(".product-grid").removeClass("product-grid-2"),$(".product-grid").addClass("product-grid-1"))}function popupover(){$(".popupover_wrap a[data-toggle=popover]").on("click touchstart",function(){cl("open popover");$(this).parent().find(".popupover").show(500)});$(".popupover_wrap .popupover .close").on("click touchstart",function(){cl("close popover");$(this).parent().hide(500)})}function fixFooterToBottom(){}function imgProductZoom(){$("#mfz .close, #port").on("click",function(){$("#mfz").fadeOut();$("body, html").removeClass("mfz-opened")});$(".zoom-link").on("click",function(n){var t,i;n.preventDefault();t=$(this).attr("href");$("#mfz a").attr("href",t);i=new Image;i.onload=function(){$("#mfz img").attr("src",t);winSize!="xs"&&$("#port").zoom2({url:$(this).find("img").attr("href")});$("#mfz").fadeIn(400,"swing",function(){if(winSize=="xs"){cl("Apre modale zoom");var i=$("#mfz #port img"),n=i.width(),t=$("#mfz #port").width(),r=n/2-t/2;cl(n);cl(t);cl($("#mfz #port"));$("#mfz #port").scrollLeft(r)}});$("body, html").toggleClass("mfz-opened")};i.src=t})}function override_tablesize_select_active(){$(".tabelletaglie").on("click",".tab-content .dropdown-menu a",function(){$(this).closest(".dropdown-menu").find(".active").not($(this)).removeClass("active");var n=$(this).text();$(this).parents(".dropdown").find("button").html(n+'<i class="pull-right guess-arrow_small_down"><\/i>')})}function showTopBenner(){var n=$("#topBanner");n.show();fixHeaderHeight();$("body").addClass("hasTopBanner");n.find(".Banner").addClass("carousel-inner");n.find(".close-btn").on("click touchstart",function(n){n.preventDefault();$.cookie("topBanner",1,{expires:1,path:"/"});$(this).closest("div").hide();fixHeaderHeight();$("body").removeClass("hasTopBanner")})}function select_option(){var n=$(".info-box .options ul a, .info-box .colors ul a");n.on("click",function(n){n.stopPropagation();n.preventDefault();$(this).parents("ul").find("a").removeClass("active");$(this).addClass("active")})}function thumb_select_image(){var t=$(".thumb-list span img"),n="";t.on("click",function(){$(this).parents(".thumb-list").find("span").removeClass("active");$(this).parent().addClass("active");n=$(this).attr("data-large-size");$(this).parents(".modal-body").find(".large-image-wrap img").attr("src",n);cl(n)})}function thumb_select_image_look(){var t=$(".thumb-item img"),n="";t.on("click",function(){n=$(this).attr("data-large-size");$(this).parents("#catalog").find(".main-item img").attr("src",n);$(this).parents("#catalog").find(".main-item .zoom-link").attr("href",n);cl(n);$("html, body").animate({scrollTop:"0"})})}function like_accordion(){var n=$(".like-accordion h2, .like-accordion h4, .like-accordion header h3, .order-list .like-accordion header");n.on("click",function(){$(this).parents(".like-accordion").toggleClass("active")})}function edit_user_settings(){var n=$("#profile-wrap .settings .item .col-md-offset-1 > a");n.on("click",function(n){n.preventDefault();$(this).hasClass("close-edit")?($(this).parents(".edit-data").addClass("hidden"),$(this).parents(".edit-data").parent().find(".actual-data").removeClass("hidden")):$(this).hasClass("open-edit")&&($(this).parents(".actual-data").addClass("hidden"),$(this).parents(".actual-data").parent().find(".edit-data").removeClass("hidden"))})}function register_next_step(){var n=$(".like-accordion .btn.next");n.on("click",function(t){t.preventDefault();n.parents(".like-accordion").removeClass("active");var i=$(this).attr("aria-controls");cl($(i));$(i).find(".like-accordion").addClass("active")})}function show_product(){var n=$(".product-change");n.on("click",function(n){n.preventDefault();cl($(this).html());var t=$(this).html(),i=$(this).attr("data-change-text");$(this).html(i);$(this).attr("data-change-text",t);$(this).parents(".item").find(".other").toggleClass("hidden");$(window).trigger("resize")})}function remove_404_image(){$(".media img").error(function(){$(this).remove()})}function check_cart_arrow(){var n=$(".cart .scrollable-cart .media").length;n<=3?$(".cart .scroll-btn").hide():$(".cart .scroll-btn").show()}function item_height(){}function home_stycky_footer(){}function fixElementHeight(){}function force_button_accordion(){var n=$("#ordini.order-list .panel-heading .btn.btn-default, #ordini.order-list .like-accordion header .call-actions .btn");n.on("click",function(n){n.preventDefault();n.stopPropagation();window.location.href=$(this).attr("href")})}function sticky_recalc(){return function(){return $(document.body).trigger("sticky_kit:recalc")}}function the_look_book_mobile_social(){if(winSize=="xs")$(".socials > a").on("click",function(){$(this).parent().find(".dropdown-menu li:last-child a").trigger("click")})}function sticky_detach(n){return n=="sm"||n=="xs"?(cl("remove_sticky"),$("[data-hide-sm-sticky]").trigger("sticky_kit:detach")):n=="xs"?$("[data-hide-xs-sticky]").trigger("sticky_kit:detach"):void 0}function add_sticky(){return $("[data-sticky_column]").stick_in_parent({parent:"[data-sticky_parent]",offset_top:header_height})}function show_password(){}function newsletter_preference(){}function initialize(){var n,t;if(winSize=="xs"||winSize=="sm"){var i=$(window).outerHeight(),r=i*60/100;$("#map_canvas").height(r)}geocoder=new google.maps.Geocoder;marks=[];n=new google.maps.LatLng(-34.397,150.644);t=[{featureType:"administrative",elementType:"labels.text.fill",stylers:[{color:"#6195a0"}]},{featureType:"landscape",elementType:"all",stylers:[{color:"#f2f2f2"}]},{featureType:"landscape",elementType:"geometry.fill",stylers:[{color:"#ffffff"}]},{featureType:"poi",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#e6f3d6"},{visibility:"on"}]},{featureType:"road",elementType:"all",stylers:[{saturation:-100},{lightness:45},{visibility:"simplified"}]},{featureType:"road.highway",elementType:"all",stylers:[{visibility:"simplified"}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#f4d2c5"},{visibility:"simplified"}]},{featureType:"road.highway",elementType:"labels.text",stylers:[{color:"#4e4e4e"}]},{featureType:"road.arterial",elementType:"geometry.fill",stylers:[{color:"#f4f4f4"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#787878"}]},{featureType:"road.arterial",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"all",stylers:[{color:"#eaf6f8"},{visibility:"on"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#eaf6f8"}]}];myOptions={zoom:7,center:n,mapTypeId:google.maps.MapTypeId.ROADMAP,styles:t,panControl:!1,zoomControl:!0,zoomControlOptions:{style:google.maps.ZoomControlStyle.SMALL},mapTypeControl:!1,scaleControl:!1,streetViewControl:!0,overviewMapControl:!1};map=new google.maps.Map(document.getElementById("map_canvas"),myOptions)}var deconcept,map,geocoder,myOptions,marks,bubble,gc;typeof deconcept=="undefined"&&(deconcept={});typeof deconcept.util=="undefined"&&(deconcept.util={});typeof deconcept.SWFObjectUtil=="undefined"&&(deconcept.SWFObjectUtil={});deconcept.SWFObject=function(n,t,i,r,u,f,e,o,s,h){var c,l;document.getElementById&&(this.DETECT_KEY=h?h:"detectflash",this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY),this.params={},this.variables={},this.attributes=[],n&&this.setAttribute("swf",n),t&&this.setAttribute("id",t),i&&this.setAttribute("width",i),r&&this.setAttribute("height",r),u&&this.setAttribute("version",new deconcept.PlayerVersion(u.toString().split("."))),this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion(),!window.opera&&document.all&&this.installedVer.major>7&&(deconcept.SWFObject.doPrepUnload=!0),f&&this.addParam("bgcolor",f),c=e?e:"high",this.addParam("quality",c),this.setAttribute("useExpressInstall",!1),this.setAttribute("doExpressInstall",!1),l=o?o:window.location,this.setAttribute("xiRedirectUrl",l),this.setAttribute("redirectUrl",""),s&&this.setAttribute("redirectUrl",s))};deconcept.SWFObject.prototype={useExpressInstall:function(n){this.xiSWFPath=n?n:"expressinstall.swf";this.setAttribute("useExpressInstall",!0)},setAttribute:function(n,t){this.attributes[n]=t},getAttribute:function(n){return this.attributes[n]},addParam:function(n,t){this.params[n]=t},getParams:function(){return this.params},addVariable:function(n,t){this.variables[n]=t},getVariable:function(n){return this.variables[n]},getVariables:function(){return this.variables},getVariablePairs:function(){var n=[],t,i=this.getVariables();for(t in i)n[n.length]=t+"="+i[t];return n},getSWFHTML:function(){var n="",i,r,u,t,f;if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){this.getAttribute("doExpressInstall")&&(this.addVariable("MMplayerType","PlugIn"),this.setAttribute("swf",this.xiSWFPath));n='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';n+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';i=this.getParams();for(t in i)n+=[t]+'="'+i[t]+'" ';r=this.getVariablePairs().join("&");r.length>0&&(n+='flashvars="'+r+'"');n+="/>"}else{this.getAttribute("doExpressInstall")&&(this.addVariable("MMplayerType","ActiveX"),this.setAttribute("swf",this.xiSWFPath));n='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';n+='<param name="movie" value="'+this.getAttribute("swf")+'" />';u=this.getParams();for(t in u)n+='<param name="'+t+'" value="'+u[t]+'" />';f=this.getVariablePairs().join("&");f.length>0&&(n+='<param name="flashvars" value="'+f+'" />');n+="<\/object>"}return n},write:function(n){var t,i;return(this.getAttribute("useExpressInstall")&&(t=new deconcept.PlayerVersion([6,0,65]),this.installedVer.versionIsValid(t)&&!this.installedVer.versionIsValid(this.getAttribute("version"))&&(this.setAttribute("doExpressInstall",!0),this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl"))),document.title=document.title.slice(0,47)+" - Flash Player Installation",this.addVariable("MMdoctitle",document.title))),this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version")))?(i=typeof n=="string"?document.getElementById(n):n,i.innerHTML=this.getSWFHTML(),!0):(this.getAttribute("redirectUrl")!=""&&document.location.replace(this.getAttribute("redirectUrl")),!1)}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var t=new deconcept.PlayerVersion([0,0,0]),i,r,n;if(navigator.plugins&&navigator.mimeTypes.length)i=navigator.plugins["Shockwave Flash"],i&&i.description&&(t=new deconcept.PlayerVersion(i.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split(".")));else if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0)for(n=1,r=3;n;)try{r++;n=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+r);t=new deconcept.PlayerVersion([r,0,0])}catch(u){n=null}else{try{n=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(u){try{n=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");t=new deconcept.PlayerVersion([6,0,21]);n.AllowScriptAccess="always"}catch(u){if(t.major==6)return t}try{n=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(u){}}n!=null&&(t=new deconcept.PlayerVersion(n.GetVariable("$version").split(" ")[1].split(",")))}return t};deconcept.PlayerVersion=function(n){this.major=n[0]!=null?parseInt(n[0]):0;this.minor=n[1]!=null?parseInt(n[1]):0;this.rev=n[2]!=null?parseInt(n[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(n){return this.major<n.major?!1:this.major>n.major?!0:this.minor<n.minor?!1:this.minor>n.minor?!0:this.rev<n.rev?!1:!0};deconcept.util={getRequestParameter:function(n){var r=document.location.search||document.location.hash,i,t;if(n==null)return r;if(r)for(i=r.substring(1).split("&"),t=0;t<i.length;t++)if(i[t].substring(0,i[t].indexOf("="))==n)return i[t].substring(i[t].indexOf("=")+1);return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){for(var i,t=document.getElementsByTagName("OBJECT"),n=t.length-1;n>=0;n--){t[n].style.display="none";for(i in t[n])typeof t[n][i]=="function"&&(t[n][i]=function(){})}};deconcept.SWFObject.doPrepUnload&&(deconcept.unloadSet||(deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)},window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload),deconcept.unloadSet=!0));!document.getElementById&&document.all&&(document.getElementById=function(n){return document.all[n]});var getQueryParamValue=deconcept.util.getRequestParameter,FlashObject=deconcept.SWFObject,SWFObject=deconcept.SWFObject;(function(n){var t={url:!1,callback:!1,target:!1,duration:120,on:"mouseover",touch:!0,onZoomIn:!1,onZoomOut:!1,magnify:1};n.zoom2=function(t,i,r,u){var e,o,s,h,c,l,a,f=n(t),y=f.css("position"),v=n(i);return f.css("position",/(absolute|fixed)/.test(y)?y:"relative"),f.css("overflow","hidden"),r.style.width=r.style.height="",n(r).addClass("zoomImg").css({position:"absolute",top:0,left:0,opacity:0,width:r.width*u,height:r.height*u,border:"none",maxWidth:"none",maxHeight:"none"}).appendTo(t),{init:function(){o=f.outerWidth();e=f.outerHeight();i===f[0]?(h=o,s=e):(h=v.outerWidth(),s=v.outerHeight());c=(r.width-o)/h;l=(r.height-e)/s;a=v.offset()},move:function(n){var t=n.pageX-a.left,i=n.pageY-a.top;i=Math.max(Math.min(i,s),0);t=Math.max(Math.min(t,h),0);isNaN(t)||isNaN(i)?(r.style.left=o/2*-c+"px",r.style.top=e/2*-l+"px"):(r.style.left=t*-c+"px",r.style.top=i*-l+"px")}}};n.fn.zoom2=function(i){return this.each(function(){var r=n.extend({},t,i||{}),l=r.target||this,a=this,u=n(a),s=n(l),f=document.createElement("img"),c=n(f),o="mousemove.zoom2",e=!1,v=!1,h;(r.url||(h=u.find("img"),h[0]&&(r.url=h.data("src")||h.attr("src")),r.url))&&(function(){var n=s.css("position"),t=s.css("overflow");u.one("zoom2.destroy",function(){u.off(".zoom");s.css("position",n);s.css("overflow",t);c.remove()})}(),f.onload=function(){function i(i){t.init();t.move(i);c.stop().fadeTo(n.support.opacity?r.duration:0,1,n.isFunction(r.onZoomIn)?r.onZoomIn.call(f):!1)}function s(){c.stop().fadeTo(r.duration,0,n.isFunction(r.onZoomOut)?r.onZoomOut.call(f):!1)}var t=n.zoom2(l,a,f,r.magnify);if(r.on==="grab")u.on("mousedown.zoom2",function(r){if(r.which===1){n(document).one("mouseup.zoom2",function(){s();n(document).off(o,t.move)});i(r);n(document).on(o,t.move);r.preventDefault()}});else if(r.on==="click")u.on("click.zoom2",function(r){if(!e){e=!0;i(r);n(document).on(o,t.move);n(document).one("click.zoom2",function(){s();e=!1;n(document).off(o,t.move)});return!1}});else if(r.on==="toggle")u.on("click.zoom2",function(n){e?s():i(n);e=!e});else if(r.on==="mouseover"){t.init();u.on("mouseenter.zoom2",i).on("mouseleave.zoom2",s).on(o,t.move)}if(r.touch){u.on("touchstart",function(n){cl(v);n.preventDefault();v=!0;i(n.originalEvent.touches[0]||n.originalEvent.changedTouches[0])}).on("touchmove",function(n){n.preventDefault();t.move(n.originalEvent.touches[0]||n.originalEvent.changedTouches[0])});i({pageX:NaN,pageY:NaN})}n.isFunction(r.callback)&&r.callback.call(f)},f.src=r.url)})};n.fn.zoom2.defaults=t})(window.jQuery);var dubug=0,wh=0,header_height=0,topbanner_height=0,scroll_padding=10,element_stop=0,element_stopoffset=0,element_stopoffset_height=0,winSize,aside_height=0;$(window).load(function(){$("body > footer").length>0&&(element_stop=$("body > footer > p"),element_stopoffset=element_stop.offset(),element_stopoffset_height=element_stopoffset.top);remove_404_image()});$(function(){var r,n,t,i;wh=$(window).height();header_height=$("nav.navbar.navbar-fixed-top").outerHeight()+$("#topBanner").height();aside_height=$("aside .product-nav").outerHeight();$("body > footer").length>0&&(element_stop=$("body > footer > p"),element_stopoffset=element_stop.offset(),element_stopoffset_height=element_stopoffset.top);$(".iframe-taglie-content").length>0&&$(".iframe-taglie-content a").attr("target","_parent");winSize=detectSize();remember_grid();highlightheight();like_accordion();edit_user_settings();enableCartScroll();register_next_step();show_product();sod_style();override_bootstrap_dropdown(winSize);force_button_accordion();remove_404_image();check_cart_arrow();fixHeaderHeight();popupover();fixFooterToBottom();add_sticky();sticky_detach(winSize);the_look_book_mobile_social();fixMobileGrid();thumb_select_image();select_option();spinner();thumb_select_image_look();$(".tabelletaglie").length>0&&override_tablesize_select_active();$(".accordion-info .panel-collapse, .accordion .panel-collapse").on("shown.bs.collapse",function(){$(window).trigger("resize")});$(".accordion-info .panel-collapse, .accordion .panel-collapse").on("hidden.bs.collapse",function(){$(window).trigger("resize")});if($(".zoom-link").length>0&&imgProductZoom(),$("#negozi").length>0){mapsTabInit(winSize);$(".infoBox .close").on("click touchstart",function(n){cl("chiude infobox");n.stopPropagation();n.preventDefault();$(this).parent().hide()})}(winSize=="md"||winSize=="lg")&&cl(header_height+"header-height");winSize=="xs"&&$.each($(".responsive-table td"),function(n,t){var i=$(t).data("title");$(t).prepend("<span>"+i+"<\/span>")});$("ul.nav-tabs a").click(function(n){n.preventDefault();$(this).tab("show")});$(".switch-measure").on("click touchstart",function(n){n.stopPropagation();n.preventDefault();var t=$(this).data("measure");t=="in"?$(this).data("measure","cm"):$(this).data("measure","in");$(this).text($(this).data(t));$.each($("table.taglie tbody td, table.taglie thead th"),function(n,i){$(i).data(t)!=undefined&&$(i).text($(i).data(t))})});$("#carrello .accordion").on("show.bs.collapse",function(){$(this).addClass("active")});$("#carrello .accordion").on("hide.bs.collapse",function(){$(this).removeClass("active")});winSize!="xs"&&winSize!="sm"&&($("#carrello").length>0&&(r=$(".affix-ready").parent().innerWidth()-30,$(".affix-ready").css("width",r)),$(".affix-ready").affix());$(".group-select:after").on("click touchstart",function(){$(this).parent().find("select").trigger("mousedown")});$(".disabled a").click(function(n){n.stopPropagation()});$(".video").fitVids();$(".page-collezione .product-grid").jscroll({padding:20,nextSelector:".pager a",contentSelector:".product-grid article:not(.highlight), .product-grid .pager, .order-list .item",autoTrigger:!1,callback:function(){$(window).trigger("resize")}});n=$("#topBanner");n.length>0&&$.cookie("topBanner")==undefined&&showTopBenner();winSize=="xs"?n.carousel():n.addClass("inline-promo");t=$("li.dropdown");$("body").on("click touchstart",function(n){t.is(n.target)||t.has(n.target).length!==0||$(".open").has(n.target).length!==0||t.removeClass("open")});filters_height();item_height();fixElementHeight();$(".countries li label").on("click touchstart",function(){$(this).closest("ul").find("label").removeClass("active");$(this).addClass("active")});if(jQuery("img.svg").each(function(){var n=jQuery(this),t=n.attr("id"),i=n.attr("class"),r=n.attr("src");jQuery.get(r,function(r){var u=jQuery(r).find("svg");typeof t!="undefined"&&(u=u.attr("id",t));typeof i!="undefined"&&(u=u.attr("class",i+" replaced-svg"));u=u.removeAttr("xmlns:a");!u.attr("viewBox")&&u.attr("height")&&u.attr("width")&&u.attr("viewBox","0 0 "+u.attr("height")+" "+u.attr("width"));n.replaceWith(u)},"xml")}),Modernizr.csscolumns||typeof $(".country-list").multicolumn=="function"&&$(".country-list").multicolumn(),$("#home-carousel .carousel-inner .item").length>1){$("#home-carousel .carousel-control").show();i=new Hammer($("#home-carousel .carousel-inner")[0]);i.on("swipeleft",function(){$("#home-carousel").carousel("next")});i.on("swiperight",function(){$("#home-carousel").carousel("prev")})}homeSliderVideo();$("#home-carousel").on("slide.bs.carousel",function(){$(this).find("iframe").remove()});$("#home-carousel").on("slid.bs.carousel",function(){typeof resizeImages=="function"&&resizeImages();homeSliderVideo()});$(".disclaimer > a").on("click touchstart",function(n){n.stopPropagation();n.preventDefault();$(this).closest(".disclaimer").addClass("open");$(this).parent().find(".text").addClass("open");$(this).closest(".carousel").find(".carousel-indicators").hide()});$(".disclaimer a.close").on("click touchstart",function(n){n.stopPropagation();n.preventDefault();$(this).closest(".disclaimer").removeClass("open");$(this).parent().removeClass("open");$(this).closest(".carousel").find(".carousel-indicators").show()})});$(window).on("resize",function(){if(header_height=$("nav.navbar.navbar-fixed-top").outerHeight()+$("#topBanner").height(),aside_height=$("aside .product-nav").outerHeight(),wh=$(window).height(),detectSize(),winSize=detectSize(),highlightheight(),override_bootstrap_dropdown(winSize),fixHeaderHeight(),item_height(),fixFooterToBottom(),fixElementHeight(),sticky_recalc(),the_look_book_mobile_social(),fixMobileGrid(),winSize=="xs"||winSize=="sm"?(fixElementHeight(),sticky_detach(winSize)):add_sticky(),cl(winSize),$("#negozi").length>0&&mapsTabInit(winSize),element_stop=$("body > footer > p"),element_stopoffset=element_stop.offset(),element_stopoffset_height=element_stopoffset.top,gc&&gc.Menu){var n=new gc.Menu.Renderer({languageCode:languageCode,shippingCountryCode:shippingCountryCode,menuHash:menuHash,currentMenuItemId:currentMenuItemId,primaryMenuType:primaryMenuType,mobileMenuType:mobileMenuType});n.renderMainAndMobileMenu()}});$.fn.matchHeight._maintainScroll=!0;$.fn.matchHeight._afterUpdate=function(n,t){$.each(t,function(n,t){switch(t.elements.selector){case".product-grid article:not(.highlight)":highlightheight()}})};marks=[];gc=gc||{};gc.cache=gc.cache||function(){function t(){alert(n)}var n="9.2.0.0";return{getHash:t}}()