window.adspire_track=window.adspire_track||[];(async function(){const shopid=406;const shop_call_centers=[];const cookie_block=0;const initialLocation=document.location;const initialReferrer=document.referrer;const getParameterByName=function(name){name=name.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");const regex=new RegExp("[\\?&]"+name+"=([^&#]*)"),results=regex.exec(location.search);try{return results===null?"":decodeURIComponent(results[1]);}catch(e){return results===null?"":results[1];}};const setCookie=async function(name,value,expiresDays){expiresDays=expiresDays?expiresDays:30;const d=new Date();d.setDate(d.getDate()+expiresDays);const expires="expires="+d.toUTCString();let host='';if(document.location.hostname.length&&/^(?!0)(?!.*\.$)((1?\d?\d|25[0-5]|2[0-4]\d)(\.|$)){4}$/.test(document.location.hostname)===false){const hosts=document.location.hostname.split('.');if(hosts.length!==1){let maxHostLen=2;if((hosts[hosts.length-2]+'.'+hosts[hosts.length-1])==='com.ua'){maxHostLen=3;} if((hosts[hosts.length-2]+'.'+hosts[hosts.length-1])==='ru.com'){maxHostLen=3;} if(hosts.length>maxHostLen){document.cookie=name+"="+encodeURIComponent(value)+"; path=/; expires="+(new Date(0)).toUTCString();document.cookie=name+"="+encodeURIComponent(value)+"; path=/; domain="+document.location.hostname+"; expires="+(new Date(0)).toUTCString();} if(maxHostLen===3){host='domain=.'+hosts[hosts.length-3]+'.'+hosts[hosts.length-2]+'.'+hosts[hosts.length-1]+';';}else{host='domain=.'+hosts[hosts.length-2]+'.'+hosts[hosts.length-1]+';';}}} document.cookie=name+"="+encodeURIComponent(value)+"; path=/; "+host+expires+'; secure; samesite=none';};const channels=[{"cookie_name":"atm_marketing","postfix":"_m"},{"cookie_name":"atm_remarketing","postfix":"_r"},{"cookie_name":"atm_closer","postfix":"_c"}];if(window.adspire_ip&&shop_call_centers.length){for(let key=0;keydocument.body.offsetHeight){xScroll=document.body.scrollWidth;yScroll=document.body.scrollHeight;}else if(document.documentElement&&document.documentElement.scrollHeight>document.documentElement.offsetHeight){xScroll=document.documentElement.scrollWidth;yScroll=document.documentElement.scrollHeight;}else if(document.body){xScroll=document.body.offsetWidth;yScroll=document.body.offsetHeight;} if(self.innerHeight){windowWidth=self.innerWidth;windowHeight=self.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){windowWidth=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight;}else if(document.body){windowWidth=document.body.clientWidth;windowHeight=document.body.clientHeight;} if(yScrollcookieParams.priority){addListener(function(){pxl('priority',{cookie:sendData,channel:channelName});});}else if(cookie_block&&cookie_block_value){addListener(function(){pxl('one_day_safe',{cookie:sendData,channel:channelName});});}else{setCookie(chanel.cookie_name,sendData);addListener(function(){pxl('cookie',{cookie:sendData,channel:channelName});});execTag('set_cookie',cookieParams.id);cookieSet=true;if(cookie_block){const cookie_block_expires=new Date();cookie_block_expires.setTime(cookie_block_expires.getTime()+(cookie_block*60*1000));document.cookie='adspire_ccdate'+chanel.cookie_name+"=1; path=/; expires="+cookie_block_expires.toUTCString();}}})(cookieParams);}} if(trafficFound===false){if((document.referrer&&document.referrer.indexOf(window.location.hostname)===-1)||getParameterByName('utm_source')||getParameterByName('utm_medium')||getParameterByName('utm_term')||getParameterByName('utm_content')||getParameterByName('utm_campaign')){addListener(function(){pxl('comeIn');});}} const adspireSub=async function(name,exp){return(RegExp(exp).exec(getCookie(name))||1)[1]||'';};addListener(async function(){execTag('all');let _channelKey=0;const _channelsLen=channels.length;for(;_channelKey<_channelsLen;_channelKey++){const chanel=channels[_channelKey];const adspire_c=getCookie(chanel.cookie_name);if(adspire_c){const cookieObj=unstringify(adspire_c);execTag('all',+cookieObj.id);}} if(window.adspire_track instanceof Array){for(let key=0;key