function tagTabInfo(n){var t=jq(".product-stage-see-more #productAnalytics #productName").text(),i=jq(".product-stage-see-more #productAnalytics #productEAN").text();dataLayer.push({event:"uaevent",event_name:"product_info_click",ecommerce:"undefined",eventCategory:"productpagetab",eventAction:n,eventLabel:t,product_tab:n.toLowerCase(),product_info:t.toLowerCase()+"::"+i.toLowerCase()})}function applyFilterLayer(){var n,t;jq("#resultGroup .user-success:checked").length>0&&(n=jq("#resultGroup").attr("head-name").toLowerCase(),t=jq("#resultGroup .user-success:checked").map(function(){return jq(this).parent().text().trim().toLowerCase()}).get().join("::"),dataLayer.push({event:"uaevent",event_name:"use_filters",ecommerce:"undefined",eventCategory:$pageSection,eventAction:"filter::"+n,eventLabel:t,filter_type:"filter::"+n,filter_value:t}));jq("#rangeGroup .user-success:checked").length>0&&(n=jq("#rangeGroup").attr("head-name").toLowerCase(),t=jq("#rangeGroup .user-success:checked").map(function(){return jq(this).parent().text().trim().toLowerCase()}).get().join("::"),dataLayer.push({event:"uaevent",event_name:"use_filters",ecommerce:"undefined",eventCategory:$pageSection,eventAction:"filter::"+n,eventLabel:t,filter_type:"filter::"+n,filter_value:t}));jq("#typeGroup .user-success:checked").length>0&&(n=jq("#typeGroup").attr("head-name").toLowerCase(),t=jq("#typeGroup .user-success:checked").map(function(){return jq(this).parent().text().trim().toLowerCase()}).get().join("::"),dataLayer.push({event:"uaevent",event_name:"use_filters",ecommerce:"undefined",eventCategory:$pageSection,eventAction:"filter::"+n,eventLabel:t,filter_type:"filter::"+n,filter_value:t}))}function productClickpopretailer(n){var t=jq("#productAnalytics #productName",n).text(),i=jq("#productAnalytics #productEAN",n).text(),r=jq("#productAnalytics #productCategory",n).text();$country=="it"||$country=="IT"?dataLayer.push({event:"uaevent",event_name:"buy_now",ecommerce:"undefined",eventCategory:"Ecommerce",eventAction:"click to buy",eventLabel:t.toLowerCase()+"::"+i.toLowerCase(),product_info:t.toLowerCase()+"::"+i.toLowerCase()}):dataLayer.push({event:"uaevent",event_name:"buy_now",ecommerce:"undefined",eventCategory:"Ecommerce",eventAction:"click to buy",eventLabel:t.toLowerCase()+"::"+i.toLowerCase(),product_info:t.toLowerCase()+"::"+i.toLowerCase()})}function productClickretailer(){var l=classatt,r;if(jq(l=="column s-cols-1").length>0){var t=popName,n=popEan,i=popSize,u=popPrice,f=popCategory,e=popShade,o=popDim_49,a=popCurrencyCode,s=ratingtagging,h=reviewtagging,c=retailerName;r=$country=="it"||$country=="IT"?"EUR":a;dataLayer.push({event:"addToCart",event_name:"add_to_cart",eventCategory:"Ecommerce",eventAction:"redirection::"+c,eventLabel:t.toLowerCase()+"::"+n.toLowerCase(),product_info:t.toLowerCase()+"::"+n.toLowerCase(),step:"redirection",store_name:c,ecommerce:{currencyCode:r!==""?r:"none",add:{actionField:{action:"add"},product:[{name:t!==""?t.toLowerCase():"none",id:n!==""?n:"none",price:u!==""?u:"none",brand:"LP",category:f!==""?f.toLowerCase():"none",dimension36:e!==""?e:"none",variant:i!==""?i:"none",dimension35:i!==" "?i:"none",dimension38:s!==""?s:"none",dimension48:n!==""?n:"none",dimension59:h!==""?h:"none",dimension49:o!==""?o:"none"}]}}})}}function addtoCartwithOutpop(){jq(".retail .button.alt").bind("click",function(){var f=$productName.toLowerCase(),e=$productSku.toLowerCase(),t,u,l,y;dataLayer.push({event:"uaevent",event_name:"buy_now",ecommerce:"undefined",eventCategory:"Ecommerce",eventAction:"click to buy",eventLabel:f+"::"+e,product_info:f+"::"+e});t=new URL(jq(this).attr("href")).hostname.split(".");u=t[0]=="www"?t[1]:t[0];var i=jq("#productAnalytics #productName").length>0?jq("#productAnalytics #productName")[0].innerText:"",o=jq("#productAnalytics #productPrice").length>0?jq("#productAnalytics #productPrice")[0].innerText:"",s=jq("#productAnalytics #productCategory").length>0?jq("#productAnalytics #productCategory")[0].innerText:"",r=jq("#productAnalytics #productSize").length>0?jq("#productAnalytics #productSize")[0].innerText:"",n=jq("#productAnalytics #productEAN").length>0?jq("#productAnalytics #productEAN")[0].innerText:"",h=jq("#productAnalytics #productvtochecker").length>0?jq("#productAnalytics #productvtochecker")[0].innerText:"";if(jq(".productpage").length>0)if(jq(".rating-stars-count").length>0)var a=document.querySelector(".rating-stars-count").textContent,c=a.split(" "),l=c[0],v=c[1],y=v.slice(1,-1);else l="none",y="none";dataLayer.push({event:"addToCart",event_name:"add_to_cart",eventCategory:"Ecommerce",eventAction:"redirection::"+u,eventLabel:i.toLowerCase()+"::"+n.toLowerCase(),product_info:i.toLowerCase()+"::"+n.toLowerCase(),step:"redirection",store_name:u,ecommerce:{add:{products:[{name:i!==""?i.toLowerCase():"none",id:n!==""?n:"none",price:o!==""?o:"none",brand:"LP",category:s!==""?s.toLowerCase():"none",variant:r!==" "?r:"none",dimension35:r!==" "?r:"none",dimension38:l,dimension48:n!==""?n:"none",dimension49:h!==""?h:"none"}]}}})})}function ReadArticleTagging(){var i=window.location.href,n=i.split("/"),t=n[n.length-1].replace(/\-/g," ");ScrollCountTagging(t);window.addEventListener("scroll",function(){tagFlag==!0&&ScrollCountTagging(t)})}function ScrollCountTagging(n){var t=jq(window).scrollTop(),i=jq(document).height(),r=jq(window).height(),u=t/(i-r),f=Math.round(u*100);f>75&&tagFlag==!0&&(dataLayer.push({event:"uaevent",event_name:"read_article",ecommerce:"undefined",eventCategory:"content page::article",eventAction:"read article",eventLabel:n,article_name:n.toLowerCase()}),tagFlag=!1)}function plpPopinFnc(){jq(".item a.onlineBtn").bind("click",function(){console.log("in click");poplName=jq(this).parent().find("#productAnalytics #productName").text().toLowerCase();poplEan=jq(this).parent().find("#productAnalytics #productEAN").text();poplSize=jq(this).parent().find("#productAnalytics #productSize").text();poplPrice=jq(this).parent().find("#productAnalytics #productPrice").text();poplCategory=jq(this).parent().find("#productAnalytics #productCategory").text();poplShade=jq(this).parent().find("#productAnalytics #productShade").text();poplDim_49=jq(this).parent().find("#productAnalytics #productvtochecker").text();poplCurrencyCode=jq(this).parent().find("#productAnalytics #productCurrencyCode").text();ratingtagging=jq(this).parent().find("#rating-tagging").text();reviewtagging=jq(this).parent().find("#review-tagging").text();productPLPClickpopretailer(this)})}function productPLPClickpopretailer(n){var t=jq(n).parent().find("#productAnalytics #productName").text().toLowerCase(),i=jq(n).parent().find("#productAnalytics #productEAN").text(),r=jq("#productAnalytics #productCategory",n).parent().text();$country=="it"||$country=="IT"?dataLayer.push({event:"uaevent",event_name:"buy_now",ecommerce:"undefined",eventCategory:"Ecommerce",eventAction:"click to buy",eventLabel:t.toLowerCase()+"::"+i.toLowerCase(),product_info:t.toLowerCase()+"::"+i.toLowerCase()}):dataLayer.push({event:"uaevent",event_name:"buy_now",ecommerce:"undefined",eventCategory:"Ecommerce",eventAction:"click to buy",eventLabel:t.toLowerCase()+"::"+i.toLowerCase(),product_info:t.toLowerCase()+"::"+i.toLowerCase()})}function productClickretailerplp(){var t=poplName,n=poplEan,i=poplSize,u=poplPrice,f=poplCategory,e=poplShade,o=poplDim_49,l=poplCurrencyCode,s=retailerName,h=ratingtagging,c=reviewtagging,r;r=$country=="it"||$country=="IT"?"EUR":l;dataLayer.push({event:"addToCart",event_name:"add_to_cart",eventCategory:"Ecommerce",eventAction:"redirection::"+s,eventLabel:t.toLowerCase()+"::"+n.toLowerCase(),product_info:t.toLowerCase()+"::"+n.toLowerCase(),step:"redirection",store_name:s,ecommerce:{currencyCode:r!==""?r:"none",add:{actionField:{action:"add"},products:[{name:t!==""?t.toLowerCase():"none",id:n!==""?n:"none",price:u!==""?u:"none",brand:"LP",category:f!==""?f.toLowerCase():"none",dimension36:e!==""?e:"none",variant:i!==""?i:"none",dimension35:i!==" "?i:"none",dimension38:h!==""?h:"none",dimension48:n!==""?n:"none",dimension59:c!==""?c:"none",dimension49:o!==""?o:"none"}]}}})}function popwaterOpen(){document.getElementById("PopinPIL_WaterFootprint").style.display="block"}function popwaterClose(){document.getElementById("PopinPIL_WaterFootprint").style.display="none"}function popcarbonOpen(){document.getElementById("PopinPIL_CarbonFootprint").style.display="block"}function popcarbonClose(){document.getElementById("PopinPIL_CarbonFootprint").style.display="none"}function popresOpen(){document.getElementById("PopinPIL_ResponsiblePlant").style.display="block"}function popresClose(){document.getElementById("PopinPIL_ResponsiblePlant").style.display="none"}function popSocialImpactOpen(){document.getElementById("PopinPIL_SocialImpact").style.display="block"}function popSocialImpactClose(){document.getElementById("PopinPIL_SocialImpact").style.display="none"}function popSupportInclusiveOpen(){document.getElementById("PopinPIL_SupportInclusive").style.display="block"}function popSupportInclusiveClose(){document.getElementById("PopinPIL_SupportInclusive").style.display="none"}var $articleName,$articleId,$articleCategory,$ambassadorName,$publicationMonth,$articleType,$publicationYear,$cid,results,isArticlePage,langUage,delaynxt,delapre,tagFlag,tagTimedelay,setTimeDelay,storeName,retailerName,el_2,bread,finalSchema,head;if($country==="it"||$country==="IT"){try{$articleName=$articleName!==undefined?$articleName:"";$articleId=$articleId!==undefined?$articleId:"";$articleCategory=$articleCategory!==undefined?$articleCategory:"";$ambassadorName=$ambassadorName!==undefined?$ambassadorName:"";$publicationMonth=$publicationMonth!==undefined?$publicationMonth:"";$articleType=$articleType!==undefined?$articleType:"";$publicationYear=$publicationYear!==undefined?$publicationYear:"";$cid=getCookie("_galorealpro")}catch(e){$cid=""}jq("[data-search]").length>0&&(results=jq("[data-search]"));typeof $geoIPLocation!="undefined"&&$geoIPLocation!==""?(dataLayer.push({brand:"LP",language:lang[lang.length-1],event:"pageDataReady",country:$country,geoIPLocation:$geoIPLocation,siteTypeLevel:"main",pageCategory:$pageSection,cid:$cid!==undefined?$cid:"none",articleName:$articleName.toLowerCase(),articleId:$articleId,articleCategory:$articleCategory,ambassadorName:$ambassadorName,publicationMonth:$publicationMonth,publicationYear:$articleType,articleType:$publicationYear}),results!==undefined&&results!=="undefined"&&results!==""?dataLayer.push({brand:"LP",language:lang[lang.length-1],event:"pageDataReady",country:$country,geoIPLocation:$geoIPLocation,siteTypeLevel:"main",pageCategory:$pageSection,cid:$cid!==undefined?$cid:"none",searchCategory:"internal search",searchKeyword:jq("#searchResultKey").val(),numberResult:jq("#searchTotalCount").val()}):jq(".searchresultpage").length>0?dataLayer.push({brand:"LP",language:lang[lang.length-1],event:"pageDataReady",country:$country,geoIPLocation:$geoIPLocation,siteTypeLevel:"main",pageCategory:$pageSection,cid:$cid!==undefined?$cid:"none",searchKeyword:jq("#searchResultKey").val(),numberResult:jq("#searchTotalCount").val(),searchCategory:"internal search"}):dataLayer.push({brand:"LP",language:lang[lang.length-1],event:"pageDataReady",country:$country,siteTypeLevel:"main",pageCategory:$pageSection!==""?$pageSection:"none",cid:$cid!==undefined?$cid:"none"})):(dataLayer.push({brand:"LP",language:lang[lang.length-1],event:"pageDataReady",country:$country,siteTypeLevel:"main",pageCategory:$pageSection!==""?$pageSection:"none",cid:$cid!==undefined?$cid:"none"}),results!==undefined&&results!=="undefined"&&results!==""?dataLayer.push({brand:"LP",language:lang[lang.length-1],event:"pageDataReady",country:$country,siteTypeLevel:"main",pageCategory:$pageSection,cid:$cid!==undefined?$cid:"none",searchCategory:"internal search",searchKeyword:jq("#searchResultKey").val(),numberResult:jq("#searchTotalCount").val()}):jq(".searchresultpage").length>0?dataLayer.push({brand:"LP",language:lang[lang.length-1],event:"pageDataReady",country:$country,siteTypeLevel:"main",pageCategory:$pageSection,cid:$cid!==undefined?$cid:"none",searchKeyword:jq("#searchResultKey").val(),numberResult:jq("#searchTotalCount").val(),searchCategory:"internal search"}):dataLayer.push({brand:"LP",language:lang[lang.length-1],event:"pageDataReady",country:$country,siteTypeLevel:"main",pageCategory:$pageSection!==""?$pageSection:"none",cid:$cid!==undefined?$cid:"none"}))}else typeof $geoIPLocation!="undefined"&&$geoIPLocation!==""?(isArticlePage=jq(".articlecategorypage, .editorialpage, .landingpage").length>0,isArticlePage?(langUage=$country.toLowerCase(),dataLayer.push({brand:"LP",language:langUage,event:"pageDataReady",country:langUage,siteTypeLevel:"main",pageCategory:$pageSection!==""?$pageSection:"content page::branding page",cid:$cid!==undefined?$cid:"none",articleName:$articleName!==""?$articleName:"none",articleId:$articleId!==""?$articleId:"none",articleCategory:$articleCategory!==""?$articleCategory:"none",ambassadorName:$ambassadorName!==""?$ambassadorName:"none",publicationMonth:$publicationMonth!==""?$publicationMonth:"none",publicationYear:$articleType!==""?$articleType:"none",articleType:$publicationYear!==""?$publicationYear:"none"})):jq(".searchresultpage").length>0?dataLayer.push({brand:"LP",language:lang[lang.length-1],event:"pageDataReady",country:$country,geoIPLocation:$geoIPLocation,siteTypeLevel:"main",pageCategory:$pageSection,cid:$cid!==undefined?$cid:"none",searchKeyword:jq("#searchResultKey").val(),numberResult:jq("#searchTotalCount").val(),searchCategory:"internal search"}):dataLayer.push({brand:"LP",language:lang[lang.length-1],event:"pageDataReady",country:$country,siteTypeLevel:"main",pageCategory:$pageSection!==""?$pageSection:"content page::branding page",cid:$cid!==undefined?$cid:"none"})):(isArticlePage=jq(".articlecategorypage, .editorialpage, .landingpage").length>0,isArticlePage?(langUage=$country.toLowerCase(),dataLayer.push({brand:"LP",language:langUage,event:"pageDataReady",country:langUage,siteTypeLevel:"main",pageCategory:$pageSection!==""?$pageSection:"content page::branding page",cid:$cid!==undefined?$cid:"none",articleName:$articleName!==""?$articleName:"none",articleId:$articleId!==""?$articleId:"none",articleCategory:$articleCategory!==""?$articleCategory:"none",ambassadorName:$ambassadorName!==""?$ambassadorName:"none",publicationMonth:$publicationMonth!==""?$publicationMonth:"none",publicationYear:$articleType!==""?$articleType:"none",articleType:$publicationYear!==""?$publicationYear:"none"})):jq(".searchresultpage").length>0?dataLayer.push({brand:"LP",language:lang[lang.length-1],event:"pageDataReady",country:$country,siteTypeLevel:"main",pageCategory:$pageSection,cid:$cid!==undefined?$cid:"none",searchKeyword:jq("#searchResultKey").val(),numberResult:jq("#searchTotalCount").val(),searchCategory:"internal search"}):dataLayer.push({brand:"LP",language:lang[lang.length-1],event:"pageDataReady",country:$country,siteTypeLevel:"main",pageCategory:$pageSection!==""?$pageSection:"none",cid:$cid!==undefined?$cid:"none"})),setTimeout(function(){if(jq("[data-search]").length>0){var n=jq("[data-search]");dataLayer.push({event:"nievent",eventCategory:"internal search",eventAction:"search::manual",eventLabel:n.data("search-term")})}},6e3);jq(document).ready(function(){var i;jQuery(".small-accordion #tab3 .social li a").on("click",function(){var t=jq(location).attr("href"),n=jQuery(this).attr("alt").toLowerCase(),i=$country==="it"||$country==="IT"?"socialInt":"socialInt",r;r=typeof $geoIPLocation!="undefined"&&$geoIPLocation!==""?{event:i,event_name:"social_interaction",ecommerce:"undefined",geoIPLocation:$geoIPLocation,eventCategory:n,eventAction:"share",eventLabel:t,social_network:n.toLowerCase(),social_action:"share"}:{event:i,event_name:"social_interaction",ecommerce:"undefined",eventCategory:n,eventAction:"share",eventLabel:t,social_network:n.toLowerCase(),social_action:"share"};window.dataLayer.push(r)});jq(".toolbox .button.i-locator").bind("click",function(){var i=$country==="it"||$country==="IT"?"uaevent":"undefined",t,n;jq("#product-list").length>0?(t=jq(this).prev("input").val().toLowerCase(),n=t==""?"none":jq(this).prev("input").val().toLowerCase(),typeof $geoIPLocation!="undefined"&&$geoIPLocation!==""?dataLayer.push({geoIPLocation:$geoIPLocation,event:"uaevent",event_name:"salon_locator",ecommerce:"undefined",eventCategory:"salon locator",eventAction:"find a salon",eventLabel:"product selector page",search_keyword:n,click_area:"footer"}):dataLayer.push({event:"uaevent",event_name:"salon_locator",ecommerce:"undefined",eventCategory:"salon locator",eventAction:"find a salon",eventLabel:"product selector page",search_keyword:n,click_area:"footer"})):jq(".productpage").length>0?(t=jq(this).prev("input").val().toLowerCase(),n=t==""?"none":jq(this).prev("input").val().toLowerCase(),typeof $geoIPLocation!="undefined"&&$geoIPLocation!==""?dataLayer.push({geoIPLocation:$geoIPLocation,event:"uaevent",event_name:"salon_locator",ecommerce:"undefined",eventCategory:"salon locator",eventAction:"find a salon",eventLabel:"product detail page",search_keyword:n,click_area:"footer"}):dataLayer.push({event:"uaevent",event_name:"salon_locator",ecommerce:"undefined",eventCategory:"salon locator",eventAction:"find a salon",eventLabel:"product detail page",search_keyword:jq(this).prev("input").val().toLowerCase(),click_area:"footer"})):(t=jq(this).prev("input").val().toLowerCase(),n=t==""?"none":jq(this).prev("input").val().toLowerCase(),typeof $geoIPLocation!="undefined"&&$geoIPLocation!==""?dataLayer.push({geoIPLocation:$geoIPLocation,event:"uaevent",event_name:"salon_locator",ecommerce:"undefined",eventCategory:"salon locator",eventAction:"find a salon",eventLabel:"footer",search_keyword:n,click_area:"footer"}):dataLayer.push({event:"uaevent",event_name:"salon_locator",ecommerce:"undefined",eventCategory:"salon locator",eventAction:"find a salon",eventLabel:"footer",search_keyword:n,click_area:"footer"}))});i="our artists";jq(".artist-column .img-block").bind("click",function(){dataLayer.push({event:"uaevent",eventCategory:i,eventAction:"select::"+jq(this).parents(".artist-page.img-column").attr("data_person"),eventLabel:jq(this).find(".artist-name h3").text()})});jq(".artist-page.img-column div.seemore-btn a").bind("click",function(){dataLayer.push({event:"uaevent",eventCategory:i,eventAction:"select::"+jq(this).parents(".artist-page.img-column").attr("data_person"),eventLabel:"see all"})});jq(".pro_longer.palyItCool.artist-content .artist-btn.desktop a").bind("click",function(){dataLayer.push({event:"uaevent",event_name:"body_button_click",ecommerce:"undefined",eventCategory:"app download",eventAction:"select::"+jq(this).attr("data_store"),eventLabel:"landing page",cta_name:"app download",link_url:jq(this).attr("href"),module_name:"app download"})});jq(".artist-description .flag-content ul li a").bind("click",function(){dataLayer.push({event:"uaevent",event_name:"social_interaction",ecommerce:"undefined",eventCategory:i,eventAction:"social::"+jq(this).attr("alt"),eventLabel:jq(this).attr("href"),social_network:jq(this).attr("alt").toLowerCase(),social_action:"share"})});jq(".pro_longer.professional_range .procta a").on("click",function(){dataLayer.push({event:"uaevent",ecommerce:"undefined",eventCategory:jq(this).attr("page_category"),eventAction:"select::"+jq(this).attr("module_title"),eventLabel:jq(this).text().trim().toLowerCase()+"::"+jq(this).attr("href")})});jq(".dropdown .column.expert_container a").on("click",function(){var n=jq(this).closest(".dropdown").parent().find("a.first").find(".menuinfo").text(),t=jq(this).parent().find(jq("a")).find("h3").text().trim().toLowerCase();dataLayer.push({event:"uaevent",ecommerce:"undefined",eventCategory:"main menu navigation",eventAction:"select::header",eventLabel:n+"::"+t})});var t=jq(".product-stage-see-more #productAnalytics #productName").text(),u=jq(".product-stage-see-more #productAnalytics #productPrice").text(),f=jq(".product-stage-see-more #productAnalytics #productCategory").text(),r=jq(".product-stage-see-more #productAnalytics #productSize").text(),n=jq(".product-stage-see-more #productAnalytics #productEAN").text(),e=jq(".product-stage-see-more #productAnalytics #productvtochecker").text(),s=jq("#rating-tagging").text(),o=jq("#review-tagging").text();jq(".right-container a").on("click",function(){jq(this).hasClass("see-ingredients")&&dataLayer.push({event:"uaevent",event_name:"product_info_click",ecommerce:"undefined",eventCategory:"product detail page",eventAction:"see all ingredients",eventLabel:t,product_tab:"see all ingredients",product_info:t.toLowerCase()+"::"+n.toLowerCase()});jq(this).hasClass("fnd_salon")&&dataLayer.push({event:"uaevent",event_name:"where_to_buy",ecommerce:"undefined",eventCategory:"salon locator",eventAction:"find a salon",eventLabel:t+"::"+n,product_info:t+"::"+n});jq(this).hasClass("popin-trigger")&&dataLayer.push({event:"uaevent",event_name:"buy_now",ecommerce:"undefined",eventCategory:"Ecommerce",eventAction:"click to buy",eventLabel:t.toLowerCase()+"::"+n.toLowerCase(),product_info:t.toLowerCase()+"::"+n.toLowerCase()})});jq(".reviews-box .see-more").on("click",function(){var n=jq("#productAnalytics #productName").length>0?jq("#productAnalytics #productName")[0].innerText:"",t=jq("#productAnalytics #productEAN").length>0?jq("#productAnalytics #productEAN")[0].innerText:"";dataLayer.push({event:"uaevent",event_name:"read_review",ecommerce:"undefined",eventCategory:"product detail page",eventAction:"read review",eventLabel:n.toLowerCase()+"::"+t.toLowerCase(),product_info:n.toLowerCase()+"::"+t.toLowerCase()});jq(window).off("scroll")});jq(window).scroll(function(){var n,t;if(jq("#ratingReviewItems").length>0){var i=jq(".rr-all-review-container").offset().top,r=jq(".rr-all-review-container").outerHeight(),u=jq(window).height(),f=jq(this).scrollTop();f>i+r-u-500&&(jq(window).off("scroll"),n=jq("#productAnalytics #productName").length>0?jq("#productAnalytics #productName")[0].innerText:"",t=jq("#productAnalytics #productEAN").length>0?jq("#productAnalytics #productEAN")[0].innerText:"",dataLayer.push({event:"uaevent",event_name:"read_review",ecommerce:"undefined",eventCategory:"product detail page",eventAction:"read review",eventLabel:n.toLowerCase()+"::"+t.toLowerCase(),product_info:n.toLowerCase()+"::"+t.toLowerCase()}))}});jq(".bv_button_buttonFull").on("click",function(){var n=jq("#productAnalytics #productName").length>0?jq("#productAnalytics #productName")[0].innerText:"",t=jq("#productAnalytics #productEAN").length>0?jq("#productAnalytics #productEAN")[0].innerText:"";dataLayer.push({event:"uaevent",event_name:"read_review",ecommerce:"undefined",eventCategory:"product detail page",eventAction:"read review",eventLabel:n.toLowerCase()+"::"+t.toLowerCase(),product_info:n.toLowerCase()+"::"+t.toLowerCase()})});jq(".popin").on("click",".popin-ctt li a",function(){if(jq(".product-stage-see-more").length>0){var i=jq(this).attr("href").split(".");dataLayer.push({event:"addToCart",event_name:"add_to_cart",eventCategory:"Ecommerce",eventAction:"redirection::"+i[1],eventLabel:t.toLowerCase()+"::"+n.toLowerCase(),product_info:t.toLowerCase()+"::"+n.toLowerCase(),step:"redirection",store_name:i[1],ecommerce:{click:{products:[{name:t!==""?t.toLowerCase():"none",id:n!==""?n:"none",price:u!==""?u:"none",brand:"LP",category:f!==""?f.toLowerCase():"none",variant:r!==" "?r:"none",dimension35:r!==" "?r:"none",dimension48:n!==""?n:"none",dimension49:e!==""?e:"none",dimension59:s!==""?Revratingtagging_dim:"none",dimension38:o!==""?o:"none"}]}}})}})});var popName="",popEan="",popSize="",popPrice="",popCategory="",popShade="",popDim_49="",popCurrencyCode="",ratingtagging="",reviewtagging="",classatt="";jq(".protocol ol li .step-description").bind("click",function(){popName=jq(this).find("#productAnalytics #productName").text();popEan=jq(this).find("#productAnalytics #productEAN").text();popSize=jq(this).find("#productAnalytics #productSize").text();popPrice=jq(this).find("#productAnalytics #productPrice").text();popCategory=jq(this).find("#productAnalytics #productCategory").text();popShade=jq(this).find("#productAnalytics #productShade").text();popDim_49=jq(this).find("#productAnalytics #productvtochecker").text();popCurrencyCode=jq(this).find("#productAnalytics #productCurrencyCode").text();ratingtagging=jq(this).parent().find("#rating-tagging").text();reviewtagging=jq(this).parent().find("#review-tagging").text();classatt=jq(this).parent().attr("class");productClickpopretailer(this)});storeName="";retailerName="";jq(".popin").on("click",".popin-ctt li a",function(){storeName=new URL(jq(this).attr("href")).hostname.split(".");retailerName=jq(this).attr("data-retailer");(retailerName==undefined||retailerName=="")&&(retailerName=storeName[0].toLowerCase()=="www"?storeName[1]:storeName[0]);productClickretailer(this)});if(jq(".obj_button").length>0&&jq(".obj_button").bind("click",function(){var n=setInterval(function(){if(jq(".popin").is(":visible")&&jq(".retailers a").length>0){clearInterval(n);jq(".retailers a").on("click",function(){var t=new URL(jq(this).attr("href")).hostname.split("."),n=jq(this).attr("data-retailer");(n==undefined||n=="")&&(n=t[0].toLowerCase()=="www"?t[1]:t[0]);dataLayer.push({event:"uaevent",eventCategory:"ecommerce",eventAction:"redirection::"+n,eventLabel:"steampod"})})}},500)}),jq(".editorial .tag_data_button a").length>0)jq(".editorial .tag_data_button a").off().on("click",function(){var n=jq(this).text().toLowerCase(),t=jq(this).attr("href");dataLayer.push({event:"uaevent",ecommerce:"undefined",eventCategory:$pageSection!==""?$pageSection:"none",eventAction:"select::steampod",eventLabel:n+"::"+t})});if($country==="US"&&jq("#productAnalytics #productName").length>0&&jq("#productAnalytics #productName").text().trim().toLowerCase()=="steampod")jq(".social-share-content a").off().on("click",function(){var n=jq(this).attr("alt");n==""&&(n="undefined");dataLayer.push({event:"uaevent",ecommerce:"undefined",eventCategory:"ecommerce",eventAction:"redirection::"+n,eventLabel:"SteamPod"})});if(jq("#regcta").bind("click",function(){dataLayer.push({event:"uaevent",ecommerce:"undefined",eventCategory:"geolocation popin",eventAction:"select::us",eventLabel:$geoIPLocation})}),jq("#intcta").bind("click",function(){dataLayer.push({event:"uaevent",ecommerce:"undefined",eventCategory:"geolocation popin",eventAction:"select::other websites",eventLabel:$geoIPLocation})}),jq(".ourserive-block2").length>0&&(jq(".ourserive-block2 .first-container a.readmore").bind("click",function(){var n=jq(this).attr("title").toLowerCase();dataLayer.push({event:"uaevent",ecommerce:"undefined",eventCategory:"our services",eventAction:"select::read more",eventLabel:n})}),jq("a.btn-readmore").bind("click",function(){var n=jq(this).attr("title").toLowerCase();dataLayer.push({event:"uaevent",ecommerce:"undefined",eventCategory:"our services",eventAction:"select::read more",eventLabel:n})}),jq(".ourserive-block2 .first-container .btn-container a").bind("click",function(){var n=jq(this).attr("ctn").toLowerCase(),t=jq(this).attr("title").toLowerCase();dataLayer.push({event:"uaevent",ecommerce:"undefined",eventCategory:"our services",eventAction:"select::"+n,eventLabel:t})}),jq(".ourservice-stas .btn-container a").bind("click",function(){var n=jq(this).attr("ctn").toLowerCase(),t=jq(this).attr("title").toLowerCase();dataLayer.push({event:"uaevent",ecommerce:"undefined",eventCategory:"our services",eventAction:"select::"+n,eventLabel:t})})),jq(function(){var e=3,o=0,n=e,v=jq(".buttonToogle").hide(),s=jq(".viewmores"),u=s.find("div.viewmore").length;jq(".listLength").text(u);u>=4&&jq(".buttonToogle").show();jq(".viewmores .viewmore").slice(o,n).addClass("shown");jq(".shownLength").text(n);jq(".viewmores .viewmore").not(".shown").hide();jq(".buttonToogle .showMore").on("click",function(){u>n&&(o+=e,n+=e,jq(".viewmores .viewmore").slice(o,n).not(".shown").addClass("shown").toggle(500),jq(".shownLength").text(n>u?u:n),u<=n&&(jq(this).remove(),v.remove()))});var h=3,c=0,t=h,y=jq(".buttonToogleproduct").hide(),s=jq(".view-moreproducts"),f=s.find("div.view-moreproduct").length;jq(".listLength").text(f);f>=4&&jq(".buttonToogleproduct").show();jq(".view-moreproducts .view-moreproduct").slice(c,t).addClass("shown");jq(".shownLength").text(t);jq(".view-moreproducts .view-moreproduct").not(".shown").hide();jq(".buttonToogleproduct .showMoreProduct").on("click",function(){f>t&&(c+=h,t+=h,jq(".view-moreproducts .view-moreproduct").slice(c,t).not(".shown").addClass("shown").toggle(500),jq(".shownLength").text(t>f?f:t),f<=t&&(jq(this).remove(),y.remove()))});var l=3,a=0,i=l,s=jq(".view-morearticles"),p=jq(".buttonTooglearticle").hide(),r=s.find("div.view-morearticle").length;jq(".listLength").text(r);jq(".listLength").text(r)<0&&jq(".buttonTooglearticle").hide();r>=4&&jq(".buttonTooglearticle").show();jq(".view-morearticles .view-morearticle").slice(a,i).addClass("shown");jq(".shownLength").text(i);jq(".view-morearticles .view-morearticle").not(".shown").hide();jq(".buttonTooglearticle .showMoreArt").on("click",function(){r>i&&(a+=l,i+=l,jq(".view-morearticles .view-morearticle").slice(a,i).not(".shown").addClass("shown").toggle(500),jq(".shownLength").text(i>r?r:i),r<=i&&(jq(this).remove(),p.remove()))})}),jq(".homepage").length>0?jq("#zip-salon-stage-2").bind("click",function(){typeof $geoIPLocation!="undefined"&&$geoIPLocation!=""?dataLayer.push({event:"uaevent",event_name:"salon_locator",geoIPLocation:$geoIPLocation,ecommerce:"undefined",eventCategory:"salon locator",eventAction:"find a salon",eventLabel:"homepage",search_keyword:jq(this).prev("input").val().toLowerCase(),click_area:"homepage"}):dataLayer.push({event:"uaevent",event_name:"salon_locator",ecommerce:"undefined",eventCategory:"salon locator",eventAction:"find a salon",eventLabel:"homepage",search_keyword:jq(this).prev("input").val().toLowerCase(),click_area:"homepage"})}):jq(".highlight .i-locator").bind("click",function(){typeof $geoIPLocation!="undefined"&&$geoIPLocation!=""?dataLayer.push({event:"uaevent",event_name:"salon_locator",geoIPLocation:$geoIPLocation,ecommerce:"undefined",eventCategory:"salon locator",eventAction:"find a salon",eventLabel:"content page",search_keyword:jq(this).prev("input").val().toLowerCase(),click_area:"content page"}):dataLayer.push({event:"uaevent",event_name:"salon_locator",ecommerce:"undefined",eventCategory:"salon locator",eventAction:"find a salon",eventLabel:"content page",search_keyword:jq(this).prev("input").val().toLowerCase(),click_area:"content page"})}),jq(".homepage").length>0){jq("#slider .slider-item .content .button").bind("click",function(){sliderBanner_click(jq(this).parents(".slider-item"))});function sliderBanner_click(n){var i=jq("#sliderproductanalytics #sliderproductName",n).text(),t=jq("#sliderproductanalytics #sliderurl",n).text();t=t&&t.indexOf("https")===-1?window.location.origin+t:jq("#sliderproductanalytics #sliderurl",n).text();dataLayer.push({event:"uaevent",event_name:"slider_button_click",ecommerce:"undefined",eventCategory:$pageSection,eventAction:"select::slider navigation",eventLabel:i.toLowerCase()+"::"+t,cta_name:i.toLowerCase(),link_url:t})}delaynxt=500;setTimeout(function(){jq("#slider .next").bind("click",function(){var n=jq("#slide-0"+jq(".slider-state .on a").text()+" .stage-title").text(),t=n!==""?n:"none";dataLayer.push({event:"uaevent",eventAction:"select::slider navigation",eventLabel:t+"::next",eventCategory:$pageSection,ecommerce:"undefined"})})},delaynxt);delaynxt+=500;delapre=500;setTimeout(function(){jq("#slider .prev").bind("click",function(){var n=jq("#slide-0"+jq(".slider-state .on a").text()+" .stage-title").text(),t=n!==""?n:"none";dataLayer.push({event:"uaevent",eventAction:"select::slider navigation",eventLabel:t+"::previous",eventCategory:$pageSection,ecommerce:"undefined"})})},delapre);delapre+=500}if(tagFlag=!0,tagTimedelay=0,($pageSection=="content page::articles"||$pageSection=="Editorial Page"||$pageSection=="Editorial section::concerns")&&(setTimeDelay=setInterval(function(){ReadArticleTagging();clearInterval(setTimeDelay);console.log("Time interval = "+setTimeDelay)},32e3)),jq(".editorialpage").length>0){jq("a.righttxtbutton").on("click",function(){var n=jq(this).text(),t=jq(this).attr("href");dataLayer.push({event:"uaevent",ecommerce:"undefined",eventCategory:$pageSection,eventAction:"select::content block",eventLabel:n+"::"+t})});jq("a.leftttxtbutton").on("click",function(){var n=jq(this).text(),t=jq(this).attr("href");dataLayer.push({event:"uaevent",ecommerce:"undefined",eventCategory:$pageSection,eventAction:"select::content block",eventLabel:n+"::"+t})})}if(jq(".articlecategorypage").length>0){jq(".article_title .article_link a").on("click",function(){var i=jq(this).attr("href"),n=this.href.substring(this.href.lastIndexOf("/")+1),t=n.replace(/\-/g," ");dataLayer.push({event:"uaevent",ecommerce:"undefined",eventCategory:$pageSection,eventAction:"related articles",eventLabel:t})});jq(".article_listing .article_link a").on("click",function(){var i=jq(this).attr("href"),n=this.href.substring(this.href.lastIndexOf("/")+1),t=n.replace(/\-/g," ");dataLayer.push({event:"uaevent",ecommerce:"undefined",eventCategory:$pageSection,eventAction:"related articles",eventLabel:t})})}jq(document).ready(function(){jq(document).on("focus",":input",function(){jq(this).attr("autocomplete","off")})});var poplName="",poplEan="",poplSize="",poplPrice="",poplCategory="",poplShade="",poplDim_49="",poplCurrencyCode="",ratingtagging="",reviewtagging="";jq(".item a.onlineBtn").bind("click",function(){console.log("in click");poplName=jq(this).parent().find("#productAnalytics #productName").text().toLowerCase();poplEan=jq(this).parent().find("#productAnalytics #productEAN").text();poplSize=jq(this).parent().find("#productAnalytics #productSize").text();poplPrice=jq(this).parent().find("#productAnalytics #productPrice").text();poplCategory=jq(this).parent().find("#productAnalytics #productCategory").text();poplShade=jq(this).parent().find("#productAnalytics #productShade").text();poplDim_49=jq(this).parent().find("#productAnalytics #productvtochecker").text();poplCurrencyCode=jq(this).parent().find("#productAnalytics #productCurrencyCode").text();ratingtagging=jq(this).parent().find("#rating-tagging").text();reviewtagging=jq(this).parent().find("#review-tagging").text();productPLPClickpopretailer(this)});storeName="";retailerName="";jq(".popin").on("click",".popin-ctt li a",function(){storeName=new URL(jq(this).attr("href")).hostname.split(".");retailerName=jq(this).attr("data-retailer");(retailerName==undefined||retailerName=="")&&(retailerName=storeName[0].toLowerCase()=="www"?storeName[1]:storeName[0]);!jq(".block-one").length>0&&!jq(".product-stage").length>0&&productClickretailerplp(this)});jq(".ariane").length>0&&(el_2=document.createElement("script"),el_2.type="application/ld+json",bread={"@context":"http://schema.org","@type":"BreadcrumbList",itemListElement:[]},jq(".ariane li").each(function(n){var t={},i=jq(this).find("a").attr("href"),r;i&&(t="https://www."+location.host+i);r=jq.trim(jq(this).text());bread.itemListElement.push({"@type":"ListItem",position:n+1,name:r,item:t})}),el_2.text=JSON.stringify(bread),finalSchema=JSON.stringify(bread),el_2.text=finalSchema,head=document.head||document.getElementsByTagName("head")[0],head.appendChild(el_2),document.getElementsByTagName("head")[0].appendChild(el_2));jq(document).ready(function(){jq(".productpage").length>0&&(jq(".left-container .LP_accordion_container .LP_accordion_body").first().css("display","block"),jq(".left-container .LP_accordion_container .LP_accordion_head").find("span").eq(0).text("−"))});jq(".logo, .logo-new").bind("click",function(){dataLayer.push({event:"uaevent",event_name:"logo_click",ecommerce:"undefined",eventCategory:"main menu navigation",eventAction:"select",eventLabel:"logo"})});jq(".steampod_2022").length>0&&(jq(".banner-btn-stem").bind("click",function(){var n=jq(this).attr("href"),t=jq(".section_banner_home .obj_button").find("span").eq(0).text().toLowerCase();dataLayer.push({event:"uaevent",ecommerce:"undefined",event_name:"body_button_click",eventCategory:$pageSection!==""?$pageSection:"content page::branding page",eventAction:"select::banner",eventLabel:t+"::"+n,cta_name:t,link_url:n,module_name:"banner"})}),jq(".banner-btn-blockone").bind("click",function(){var n=jq(this).attr("href"),t=jq(".section_banner_home .obj_button").find("span").eq(0).text().toLowerCase();dataLayer.push({event:"uaevent",ecommerce:"undefined",event_name:"body_button_click",eventCategory:$pageSection!==""?$pageSection:"content page::branding page",eventAction:"select::bloc1",eventLabel:t+"::"+n,cta_name:t,link_url:n,module_name:"bloc1"})}),jq(".banner-btn-blocktwo").bind("click",function(){var n=jq(this).attr("href"),t=jq(".section_banner_home .obj_button").find("span").eq(0).text().toLowerCase();dataLayer.push({event:"uaevent",ecommerce:"undefined",event_name:"body_button_click",eventCategory:$pageSection!==""?$pageSection:"content page::branding page",eventAction:"select::bloc2",eventLabel:t+"::"+n,cta_name:t,link_url:n,module_name:"bloc2"})}),jq("ul.ctn_list_store_link li a").click(function(){var n=jq(this).attr("data-retailer"),t=jq(this).attr("href");dataLayer.push({event:"uaevent",ecommerce:"undefined",event_name:"body_button_click",eventCategory:$pageSection!==""?$pageSection:"content page::branding page",eventAction:"select::"+n,eventLabel:n+"::"+t,cta_name:n,link_url:t,module_name:n})}),jq(".stempod-three-top").bind("click",function(){var n=jq(this).attr("href"),t=jq(".section_banner_home .obj_button").find("span").eq(0).text().toLowerCase();dataLayer.push({event:"uaevent",ecommerce:"undefined",event_name:"body_button_click",eventCategory:$pageSection!==""?$pageSection:"content page::branding page",eventAction:"select::steampod_3_top",eventLabel:t+"::"+n,cta_name:t,link_url:n,module_name:"steampod_3_and_4"})}),jq(".stempod-four-top").bind("click",function(){var n=jq(this).attr("href"),t=jq(".section_banner_home .obj_button").find("span").eq(0).text().toLowerCase();dataLayer.push({event:"uaevent",ecommerce:"undefined",event_name:"body_button_click",eventCategory:$pageSection!==""?$pageSection:"content page::branding page",eventAction:"select::steampod_4_top",eventLabel:t+"::"+n,cta_name:t,link_url:n,module_name:"steampod_3_and_4"})}),jq(".stempod-three-bt").bind("click",function(){var n=jq(this).attr("href"),t=jq(".section_banner_home .obj_button").find("span").eq(0).text().toLowerCase();dataLayer.push({event:"uaevent",ecommerce:"undefined",event_name:"body_button_click",eventCategory:$pageSection!==""?$pageSection:"content page::branding page",eventAction:"select::steampod_3_bottom",eventLabel:t+"::"+n,cta_name:t,link_url:n,module_name:"steampod_3_and_4"})}),jq(".stempod-four-bt").bind("click",function(){var n=jq(this).attr("href"),t=jq(".section_banner_home .obj_button").find("span").eq(0).text().toLowerCase();dataLayer.push({event:"uaevent",ecommerce:"undefined",event_name:"body_button_click",eventCategory:$pageSection!==""?$pageSection:"content page::branding page",eventAction:"select::steampod_4_bottom",eventLabel:t+"::"+n,cta_name:t,link_url:n,module_name:"steampod_3_and_4"})}),jq(".routine").bind("click",function(){var n=jq(this).attr("href"),i=jq(this).attr("title"),t=jq(".section_banner_home .obj_button").find("span").eq(0).text().toLowerCase();dataLayer.push({event:"uaevent",ecommerce:"undefined",event_name:"body_button_click",eventCategory:$pageSection!==""?$pageSection:"content page::branding page",eventAction:"select::"+i,eventLabel:t+"::"+n,cta_name:t,link_url:n,module_name:"routine"})}),jq(".salon-locotor-btn").bind("click",function(){dataLayer.push({event:"uaevent",ecommerce:"undefined",event_name:"salon_locator",eventCategory:"salon locator",eventAction:"access to salon locator",eventLabel:"body",search_keyword:jq(this).prev("input").val().toLowerCase(),click_area:"body"})}),jq(".salon-locotor-btn-block1").bind("click",function(){dataLayer.push({event:"uaevent",ecommerce:"undefined",event_name:"salon_locator",eventCategory:"salon locator",eventAction:"access to salon locator",eventLabel:"bloc1",search_keyword:jq(this).prev("input").val().toLowerCase(),click_area:"bloc1"})}),jq(".salon-locotor-btnfooter").bind("click",function(){dataLayer.push({event:"uaevent",ecommerce:"undefined",event_name:"salon_locator",eventCategory:"salon locator",eventAction:"access to salon locator",eventLabel:"footer",search_keyword:jq(this).prev("input").val().toLowerCase(),click_area:"footer"})}));jq(function(){var t,n;jq(".section_pil").length>0&&jq(".tagging-pil-btn").bind("click",function(){var n=jq("#productAnalytics #productName").length>0?jq("#productAnalytics #productName")[0].innerText.toLowerCase():"",t=jq("#productAnalytics #productEAN").length>0?jq("#productAnalytics #productEAN")[0].innerText:"";dataLayer.push({event:"uaevent",eventAction:"select::pil button",eventCategory:"product detail page",eventLabel:n+"::"+t,ecommerce:"undefined"})});jq(".bt_expand-aox").on("click",function(n){n.preventDefault();var t=jq(this);t.hasClass("faq__active")?jq(".obj_expand-aox").addClass("is-expanded"):(jq(".mask_expand-aox").slideUp(800),jq(".mask_expand-aox").removeClass("faq__active"),jq(".obj_expand-aox").removeClass("is-expanded"));t.toggleClass("faq__active");t.next().slideToggle();jq(".obj_expand-aox",this).toggleClass("faq__rotate")});if(jq("#newsProfessionalId").length>0&&(jq(".hair-type select").last().addClass("SelectDropID"),t=jq(".SelectDropID"),$country=="PA"?(n=jq("label[for=wffme7dd25223ed6428b88482b4e62fa5726_Sections_7__Fields_1__Value]"),n.hide()):$country=="AR"?(n=jq("label[for=wffm6bf4a2fc8aa6491aa21d23c7c76d1bf6_Sections_7__Fields_1__Value]"),n.hide()):$country=="PE"?(n=jq("label[for=wffm1618a91cd0b447f6abfdaf103d93f9b2_Sections_7__Fields_1__Value]"),n.hide()):(n=jq("label[for=wffm6f7866fa620a45fa8b786184766dddc5_Sections_7__Fields_1__Value]"),n.hide()),t.hide(),jq('.type1 input[type="radio"]').change(function(){var i,r,n,u,f;jq(".hair-type select").last().addClass("SelectDropID");jq(".SelectDropID").val("").prop("selected",!1);i=jq("select option:last").val();r=jq(this).attr("value");r==="Soy Consumidor"?($country=="PA"?(n=jq("label[for=wffme7dd25223ed6428b88482b4e62fa5726_Sections_7__Fields_1__Value]"),n.show()):$country=="AR"?(n=jq("label[for=wffm6bf4a2fc8aa6491aa21d23c7c76d1bf6_Sections_7__Fields_1__Value]"),n.show()):$country=="PE"?(n=jq("label[for=wffm1618a91cd0b447f6abfdaf103d93f9b2_Sections_7__Fields_1__Value]"),n.show()):(n=jq("label[for=wffm6f7866fa620a45fa8b786184766dddc5_Sections_7__Fields_1__Value]"),n.show()),jq(".SelectDropID option[value='none']").remove(),jq(t).show(),console.log(i)):($country=="PA"?(n=jq("label[for=wffme7dd25223ed6428b88482b4e62fa5726_Sections_7__Fields_1__Value]"),n.hide()):$country=="AR"?(n=jq("label[for=wffm6bf4a2fc8aa6491aa21d23c7c76d1bf6_Sections_7__Fields_1__Value]"),n.hide()):$country=="PE"?(n=jq("label[for=wffm1618a91cd0b447f6abfdaf103d93f9b2_Sections_7__Fields_1__Value]"),n.hide()):(n=jq("label[for=wffm6f7866fa620a45fa8b786184766dddc5_Sections_7__Fields_1__Value]"),n.hide()),u={none:"none"},f=jq(".SelectDropID"),jq.each(u,function(n,t){var i=jq("<option/>",{value:n,text:t});f.append(i)}),jq(t).hide(),jq('.SelectDropID option[value="none"]').attr("selected","selected"))})),jq(".contactformau").length>0)jq(".contactformau input[type='file']").on("change",function(){var n,t;/\.(jpg|jpeg|png|pdf|docx)$/i.test(this.files[0].name)||(n="This is not an allowed file type. Only .jpeg,.jpg,.pdf,.docx formats are allowed.",alert(n),jq(this).val(""));this.files[0].size>512e3&&(t="Please upload file less than 500kb.",alert(t),jq(this).val(""))});jq(".metabtnbdy").length>0&&(jq(".ctn_button a>span").addClass("metabtn"),jq(".metabtn").bind("click",function(){dataLayer.push({event:"uaevent",event_name:"buy_now",ecommerce:"undefined",eventCategory:"Ecommerce",eventAction:"click to buy"})}))});jq(".GA4-buy-now-btn").length>0&&jq(".GA4-buy-now-btn").bind("click",function(){var n=$productName.toLowerCase(),t=$productSku!==""?$productSku:"none";dataLayer.push({event:"uaevent",event_name:"buy_now",ecommerce:"undefined",eventCategory:"Ecommerce",eventAction:"click to buy",eventLabel:n+"::"+t,product_info:n+"::"+t})});jq(".absolut-repair-molecular").length>0&&(jq(".absolut-repair-banner-btn").bind("click",function(){var t=jq(this).attr("href"),n=jq(".absolut-repair-banner-btn").find("span").eq(0).text().toLowerCase(),i=jq(".t_ribbon").find("span").eq(0).text().toLowerCase();dataLayer.push({event:"uaevent",ecommerce:"undefined",event_name:"buy_now",eventCategory:$pageSection!==""?$pageSection:"content page::branding page",eventAction:n,eventLabel:i,cta_name:n,link_url:t})}),jq(".absolut-repair-store-banner-locator-btn").bind("click",function(){var t=jq(this).attr("href"),n=jq(".absolut-repair-store-banner-locator-btn").find("span").eq(0).text().toLowerCase(),i=jq(".t_ribbon").find("span").eq(0).text().toLowerCase();dataLayer.push({event:"uaevent",ecommerce:"undefined",event_name:"store_locator",eventCategory:$pageSection!==""?$pageSection:"content page::branding page",eventAction:n,eventLabel:i,cta_name:n,link_url:t})}),jq(".absolut-repair-content-btn").bind("click",function(){var t=jq(this).attr("href"),n=jq(".absolut-repair-content-btn").find("span").eq(0).text().toLowerCase(),i=jq("#performance .t_ribbon").find("span").eq(0).text().toLowerCase();dataLayer.push({event:"uaevent",ecommerce:"undefined",event_name:"buy_now",eventCategory:$pageSection!==""?$pageSection:"content page::branding page",eventAction:n,eventLabel:i,cta_name:n,link_url:t})}),jq(".absolut-repair-store-content-locator-btn").bind("click",function(){var t=jq(this).attr("href"),n=jq(".absolut-repair-store-content-locator-btn").find("span").eq(0).text().toLowerCase(),i=jq("#performance .t_ribbon").find("span").eq(0).text().toLowerCase();dataLayer.push({event:"uaevent",ecommerce:"undefined",event_name:"store_locator",eventCategory:$pageSection!==""?$pageSection:"content page::branding page",eventAction:n,eventLabel:i,cta_name:n,link_url:t})}),jq(".absolut-repair-store-black-locator-btn").bind("click",function(){var t=jq(this).attr("href"),n=jq(".absolut-repair-store-black-locator-btn").find("span").eq(0).text().toLowerCase(),i=jq("#edito .t_ribbon").find("span").eq(0).text().toLowerCase();dataLayer.push({event:"uaevent",ecommerce:"undefined",event_name:"store_locator",eventCategory:$pageSection!==""?$pageSection:"content page::branding page",eventAction:n,eventLabel:i,cta_name:n,link_url:t})}),jq(".absolut-repair-sticky-btn").bind("click",function(){var t=jq(this).attr("href"),n=jq(".absolut-repair-sticky-btn").find("span").eq(0).text().toLowerCase();dataLayer.push({event:"uaevent",ecommerce:"undefined",event_name:"buy_now",eventCategory:$pageSection!==""?$pageSection:"content page::branding page",eventAction:n,eventLabel:"sticky banner",cta_name:n,link_url:t})}),jq(".items-absolut a").bind("click",function(){var n=jq(this).attr("href"),t=jq(this).attr("data-retailer");dataLayer.push({event:"uaevent",event_name:"click_to_buy",eventCategory:$pageSection!==""?$pageSection:"content page::branding page",eventAction:"click_to_buy",eventLabel:t,link_url:n,ecommerce:"undefined"})}),jq("#YTPlayer_2").bind("click",function(){var n=jq(".section_video").find(".t_title").eq(0).text().toLowerCase();dataLayer.push({ecommerce:"undefined",event:"uaevent",event_name:"youtube_video_interaction",eventCategory:$pageSection!==""?$pageSection:"content page::branding page",eventAction:"play",eventLabel:n,video_title:n,video_action:"play"})}),jq(".cr-btn").bind("click",function(){var t=jq(this).attr("href"),n=jq(".cr-btn").find("span").eq(0).text().toLowerCase(),i=jq(this).attr("label");dataLayer.push({event:"uaevent",ecommerce:"undefined",event_name:"buy_now",eventCategory:$pageSection!==""?$pageSection:"content page::branding page",eventAction:n,eventLabel:i,cta_name:n,link_url:t})}),jq(".customcarrouseldetailsone .next").bind("click",function(){var n=jq("#performance  .t_ribbon").find("span").eq(0).text().toLowerCase();dataLayer.push({ecommerce:"undefined",event:"uaevent",event_name:"carousel",eventCategory:"content page::branding page",eventAction:"carousel",eventLabel:n})}),jq(".customcarrouseldetailsone .prev").bind("click",function(){var n=jq("#performance  .t_ribbon").find("span").eq(0).text().toLowerCase();dataLayer.push({ecommerce:"undefined",event:"uaevent",event_name:"carousel",eventCategory:"content page::branding page",eventAction:"carousel",eventLabel:n})}),jq(document).ready(function(){function u(n){t.hide();t.eq(n).show();window.dataLayer.push({ecommerce:"undefined",event:"uaevent",event_name:"carousel",eventCategory:"content page::branding page",eventAction:"carousel",eventLabel:t.eq(n).text()})}var n=0,t=jq("#tech_carrousel h2"),i=t.length,f=500,r;setTimeout(function(){jq("#tech_carrousel .next").bind("click",function(){n=(n+1)%i;u(n)})},f);f+=500;r=500;setTimeout(function(){jq("#tech_carrousel .prev").bind("click",function(){n=(n-1+i)%i;u(n)})},r);r+=500}),jq(document).ready(function(){function u(n){t.hide();t.eq(n).show();window.dataLayer.push({ecommerce:"undefined",event:"uaevent",event_name:"carousel",eventCategory:"content page::branding page",eventAction:"carousel",eventLabel:t.eq(n).text()})}var n=0,t=jq("#customcarrouseldetails h2"),i=t.length,f=500,r;setTimeout(function(){jq("#customcarrouseldetails .next").bind("click",function(){n=(n+1)%i;u(n)})},f);f+=500;r=500;setTimeout(function(){jq("#customcarrouseldetails .prev").bind("click",function(){n=(n-1+i)%i;u(n)})},r);r+=500}))