(function(n,t){var o=n(".box.sub.desktop input"),s=n(".box.sub.mobile input"),h=n("section.box.sub.desktop"),u=n("#signin-button"),f="",c=n("#frontpage .content .slider a").val("trackingid"),i=[],r,e;n("#prod").length>0&&(f=n("#prod").val().split(","));Number.isInteger=Number.isInteger||function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n};r=function(n,t){return{id:n,position:t}};e={event:"promotionImpression",ecommerce:{promoView:{promotions:i}}};u.length&&n("#frontpage .content section.box.main a.button").replaceWith(u.clone().removeAttr("id").css("display","inline-block"));n.each(f,function(n,t){Number.isInteger(n)&&n++;position="Frontpage-Product-Box"+n;i.push(r(t.toString(),position))});t.register("screen and (min-width: 700px)",[{match:function(){o.each(function(n){Number.isInteger(n)&&n++;position="Frontpage-Banner-Box"+n;i.push(r(this.value,position))});h.fitBoxes()},unmatch:function(){}}]);t.register("screen and (max-width: 700px)",[{match:function(){s.each(function(n){Number.isInteger(n)&&n++;position="Frontpage-Banner-Box"+n;i.push(r(this.value,position))})},unmatch:function(){}}]);c.each(function(){position="Frontpage-BannerBigBox";i.push(r(n(this).data("trackingid"),position))});location.hash&&location.hash.indexOf("#logging-in")>-1&&n.ajax({type:"POST",url:"/account/verifyBooking",dataType:"json",success:function(){n.fn.modal.loadURL("logged-in",function(n){n.handleFormEvents()})}});window.airshoppenTracking(e)})(jQuery,enquire)