var LB4116=LB4116||(function(){var a={};return{init:function(b){a=b},getdatalayer:function(){return a}}}());function AL4116(){if(Object.keys(LB4116.getdatalayer()).length===0){if("undefined"!==typeof data_4116){LB4116.init(data_4116[0])}else{if("undefined"!==typeof rtgsettings){LB4116.init(rtgsettings)}else{if("undefined"!==typeof data_0001){LB4116.init(data_0001)}}}}if(Object.keys(LB4116.getdatalayer()).length===0){var a={pagetype:"generic",PageType:"generic"};LB4116.init(a)}if(Object.keys(LB4116.getdatalayer()).length===0){var b=data_4116;if("undefined"!==typeof b){LB4116.init(b[b.length-1])}}if(Object.keys(LB4116.getdatalayer()).length>0){data_4116=[];data_4116.push(LB4116.getdatalayer());A4116()}}function A4116(){var l=LB4116.getdatalayer();CUDV();var q="";var i="thefitvillecom_US";var g="USA";var d="pos_hit_us|pdi_hef_us|pfy_hit_us";var a="4116";var c="63727,63982,65504";var h="";var j="";j=null!==l.pdt_url&&"undefined"!==l.pdt_url&&Object!==l.pdt_url&&undefined!==l.pdt_url&&""!==l.pdt_url&&!l.pdt_url.toString().includes("$")?encodeURIComponent(l.pdt_url):encodeURIComponent(location.href);var w=l.ty_orderid;if(urlcheck(w,"ty_orderid")){w=""}if(lengthcheck(w)>600){w=w.toString().substring(0,600)}var v=l.ty_orderamt;if(urlcheck(v,"ty_orderamt")){v=""}if(lengthcheck(v)>600){v=v.toString().substring(0,600)}var t=l.pdt_currency;if(urlcheck(t,"pdt_currency")){t=""}if(lengthcheck(t)>600){t=t.toString().substring(0,600)}var f=l.CustomerType;if(urlcheck(f,"CustomerType")){f=""}if(lengthcheck(f)>600){f=f.toString().substring(0,600)}var e=l.CouponCode;if(urlcheck(e,"CouponCode")){e=""}if(lengthcheck(e)>600){e=e.toString().substring(0,600)}var u=l.pdt_id;if(urlcheck(u,"pdt_id")){u=""}if(lengthcheck(u)>600){u=u.toString().substring(0,600)}var s=l.pdt_category_list;if(urlcheck(s,"pdt_category_list")){s=""}if(lengthcheck(s)>600){s=s.toString().substring(0,600)}var r=l.pagetype;r=PageTypeFinder("thefitville.com","/collections/","/products/","/checkouts/cn,/cart","thank","pagetype","generic","pageurl",a,j);h=r;var b=l.Browsercheck;b=checkBrowser();var n=l.gdpr;if(urlcheck(n,"gdpr")){n=""}if(lengthcheck(n)>600){n=n.toString().substring(0,600)}var o=l.gdpr_consent;if(urlcheck(o,"gdpr_consent")){o=""}if(lengthcheck(o)>600){o=o.toString().substring(0,600)}var p=l.gdpr_pd;if(urlcheck(p,"gdpr_pd")){p=""}if(lengthcheck(p)>600){p=p.toString().substring(0,600)}var x=l.us_privacy;if(urlcheck(x,"us_privacy")){x=""}if(lengthcheck(x)>600){x=x.toString().substring(0,600)}var k=l.a15;k=auditcheck(i,h);var m=l.dw15;m=dw();q="&ProgramName="+i+"&AudienceId="+a+"&CampaignId="+c+"&Referrer="+j+"&ty_orderid="+w+"&ty_orderamt="+v+"&pdt_currency="+t+"&CustomerType="+f+"&CouponCode="+e+"&pdt_id="+u+"&pdt_category_list="+s+"&pagetype="+r+"&Browsercheck="+b+"&gdpr="+n+"&gdpr_consent="+o+"&gdpr_pd="+p+"&us_privacy="+x+"&a15="+k+"&dw15="+m;q=q.replace(/[^=&]+=(&|$)/g,"").replace(/&$/,"");if(r!="undefined"&&r!=""&&b=="true"){CIF("CIF35501","https://cm.g.doubleclick.net/pixel?google_nid=preciso_srl&google_ula=6490516189&google_cm&cok15="+d+"&cnty15="+g+"&t=4"+q)}if((r=="category"||r=="home")&&m=="false"){CAU("CAU35503","https://ban.thefitville.com/rtb/p2/analytics/thefitvillecom_US/"+r+"?t=1&ref="+j,i,r)}if(r=="checkout"&&j.includes("thank")){CIG("CIG35506","https://ban.thefitville.com/saletrack?s15=id="+d+"::oid="+w+"::amt="+v+"::cus="+f+"::cuscoupon="+e+"::cur="+t+"::cok=1::campaignId=63727,63982,65504::pdtId="+u+"::t=2")}if(r=="category"||r=="product"){CIF("CIF52127","https://my.lcmark.net/f.php?f=sync&lr=1&partners=485x46c555d482fcf532dd6e266ca1fbcff2bbaae5528931d78ef71bcde52adc")}}function CDV(a){var b=document.getElementById("m20D");b.appendChild(a)}function CIG(a,c){var b=document.createElement("img");b.id=a,b.width=1,b.height=1,b.src=c,CDV(b)}function CST(a,c){var b=document.createElement("script");b.id=a,b.type="text/javascript",b.src=c,CDV(b)}function CAU(a,e,d,b){var c=document.createElement("script");c.id=a,c.type="text/javascript",c.src=e,CDV(c)}function CIF(a,c){var b=document.createElement("iframe");b.id=a,b.marginWidth=0,b.marginHeight=0,b.frameBorder=0,b.scrolling="no",b.allowTransparency=!0,b.width=0,b.height=0,b.style.position="absolute",b.style.bottom="0px",b.style.overflowX="hidden",b.style.overflowY="hidden",b.style.width="0px",b.style.height="0px",b.style.display="none",b.src=c,CDV(b)}function FDV(a){document.body.appendChild(a)}function CUDV(){var a=document.createElement("div");a.id="m20D",a.style.display="none",FDV(a)}function urlcheck(b,c){var a=true;if(b!=undefined&&(b.toString().toLowerCase().indexOf("undefined")<0)&&(c!=undefined||!isNaN(c))){a=b.toString().includes(c)}else{a=true}return a}function lengthcheck(b){var a=b.toString().length;return a}function diff_hours(a,c){try{var b=(a.getTime()-c.getTime())/1000;return b/=3600,Math.abs(Math.round(b))}catch(a){return 6}}function chkses(a){return"undefined"===typeof Storage||!sessionStorage.getItem(a)}function chk(a,b){var c=!1;return("undefined"==typeof Storage||!localStorage.getItem(a)||3-1){if(typeof(Storage)!=="undefined"){localStorage.setItem(b.toLowerCase(),new Date)}e="true"}}if(!chk(b.trim().toLowerCase(),a)){e="true"}return e}function dw(){var b=window.outerWidth-window.innerWidth>130;var a=window.outerHeight-window.innerHeight>130;if(!(a&&b)&&((window.Firebug&&window.Firebug.chrome&&window.Firebug.chrome.isInitialized)||b||a)){return"true"}else{return"false"}}function PageTypeFinder(j,e,n,d,f,m,l,g,a,c){var q=window["LB"+a].getdatalayer();var r="";var o="";if(m!==""&&("dataobj,scriptvar,datalayer").includes(g)){if(g=="scriptvar"){r=window[m].toString().toLowerCase()}else{if(g=="datalayer"){r=h(m.split(",")[0],m.split(",")[1])}else{r=q[m].toString().toLowerCase()}}}var p=c;var k=0;while(!p.toLowerCase().includes("://")&&k<5){p=decodeURIComponent(p);k++}if(b(f,p,r,g)||b(f,p,r,"pageurl")){o="checkout"}else{if(b(d,p,r,g)){o="basket"}else{if(b(n,p,r,g)){o="product"}else{if(b(e,p,r,g)||b(e,p,r,"classname")){o="category"}else{if((p.match(/\//g)||[]).length<4||b(j,p,r,"classname")){o="home"}else{if(r!==""){o=r}else{o=l}}}}}}return o;function b(s,t,u,i){if(s!==""){if(i.includes("classname")){return s.split(",").some(function(v){return document.getElementsByClassName(v).length>0})}else{if(("dataobj,scriptvar,datalayer").includes(i)){return s.split(",").some(function(v){return u.includes(v.toString().toLowerCase())})}else{if(i.includes("pageurl")){return s.split(",").some(function(v){return t.includes(v)})}}}}else{return false}}function h(u,s){for(var t=0;t