function _ttDedupe(c,a,b){c=(c||"click").toLowerCase();a=(a||"network").toLowerCase();b=b||31536E6;switch(c){case "click":var d=new Date;d.setTime(d.getTime()+b);b=_readParameter(a);if(null==b)break;document.cookie=a+"="+escape(b)+"; expires="+d.toGMTString()+"; path=/"+(""==_getDomainName()?"":"; domain=."+_getDomainName());break;case "conversion":if(b=_readCookies(a),b in _oPixels)_ttOutputPixel(_oPixels[b]);else for(d in _oPixels)_ttOutputPixel(_oPixels[d])}} function _ttBasketLock(c,a,b){c=(c||"init").toLowerCase();a=parseInt(a)||0;b=b||!1;if(!(1>a)){var d="TT2_"+a,e="TT2Bsk_"+a;a=new Date;switch(c){case "init":a.setTime(a.getTime()+18E5);b=_readCookies(d);if(null==b)break;document.cookie=e+"="+escape(b)+"; expires="+a.toGMTString()+"; path=/"+(""==_getDomainName()?"":"; domain=."+_getDomainName());break;case "conversion":if(!1==b||""==b)break;c=_readCookies(e);if(null==c)break;else e=c.split("::"),a.setTime("undefined"!=e[4]?1E3*parseInt(e[4])+31536E6: a.getTime()+31536E6),document.cookie=d+"="+escape(c)+"; expires="+a.toGMTString()+"; path=/"+(""==_getDomainName()?"":"; domain=."+_getDomainName());_ttOutputPixel(b)}}}function _ttOutputPixel(c){var a=document.createElement("div");a.id="TTPixel";document.body.appendChild(a);a.innerHTML=c+"\r\n"} function _readCookies(c){c+="=";for(var a=document.cookie.split(";"),b=0,d=a.length;bc.length?null:c[1]}function _getDomainName(){return location.hostname.replace(/.+?([^.]+\.[^.]{2,3}\.[^.]{2,3}|[^.]+\.[^.]{2,4})$/,"$1")};