var _tmr=_tmr||[];(function(){function u(a,C,b){a.addEventListener?a.addEventListener(C,b,!1):a.attachEvent&&a.attachEvent("on"+C,b)}function c(){}function v(a){return a||"https:"==h.location.protocol?"https:":"http:"}function K(a){return(a=!m?void 0:m[a])&&w?a-w:void 0}function n(a,b){var d="id"in a?a.id:k,f="url"in a?a.url:location.href,c="referrer"in a?a.referrer:h.referrer,g="title"in a?a.title:h.title,d=v(p)+"//top-fwz1.mail.ru"+(b?"/tracker":"/counter")+"?js=13"+(d?";id="+escape(d):"")+(f?";u="+escape(f):"")+(c?";r="+escape(c):"")+("start"in a&&0<a.start?";st="+escape(a.start):"")+("gender"in a?";gender="+escape(a.gender):"")+("age"in a?";age="+escape(a.age):"")+("pid"in a?";pid="+escape(a.pid):"")+(g?";title="+encodeURIComponent(g):"")+((x=e.screen)?";s="+x.width+"*"+x.height:"")+";vp=",c=f=0;h.documentElement&&(h.documentElement.clientWidth||h.documentElement.clientHeight)?(f=h.documentElement.clientWidth,c=h.documentElement.clientHeight):"number"==typeof e.innerWidth&&(f=e.innerWidth,c=e.innerHeight);d=d+(""+f+"*"+c)+";touch="+L+";hds="+M+";flash="+y+";sid="+D+";ver="+E+";nt=";if(!m||!z)f="";else{f=[];f.push(z.type);f.push(z.redirectCount);f.push(w);for(c=0;c<F.length;c++)f.push(K(F[c]));f=f.join("/")}return d+f+";_="+Math.random()}function G(a,b){return v(p)+"//top-fwz1.mail.ru/tracker?js=13;id="+a[0]+";e="+escape(b)+";sid="+D+";ids="+a.join()+";ver="+E+";_="+Math.random()}function N(){if(!H)for(var a=0;a<q.length;a++){var b=q[a];(new Image).src=n(b,!0)+";e="+escape("PVT/15")}}function A(){_tmr.onload()}if("[object Array]"===Object.prototype.toString.call(_tmr)){var e=window,d=navigator,h=document,x,k=0,E=60,r=[],B=0,s=0,D="xxxxxxxx".replace(/[x]/g,function(a){return(16*Math.random()|0).toString(16)}),q=[],l=[],t=0,g="string"===typeof location.hostname&&(-1!=location.hostname.search(/^odnoklassniki\.ru$/)||-1!=location.hostname.search(/\.odnoklassniki\.ru$/)||-1!=location.hostname.search(/^ok\.ru$/)||-1!=location.hostname.search(/\.ok\.ru$/)),p="string"===typeof location.hostname&&(-1!=location.hostname.search(/^vk\.com$/)||-1!=location.hostname.search(/\.vk\.com$/)),I=g||p,H=g||p,J=g||p,L="ontouchstart"in e||1<(d.maxTouchPoints||d.msMaxTouchPoints)?"1":"0",M=e.devicePixelRatio||0,y="";if(d.plugins&&d.plugins["Shockwave Flash"])y=d.plugins["Shockwave Flash"].description.split(" ")[2];else if(e.ActiveXObject)try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),b=b.GetVariable("$version"),b=b.split(" ")[1].split(","),y=b[0]+"."+b[1]}catch(O){}var d=e.performance||e.mozPerformance||e.msPerformance||e.webkitPerformance||{},m=d.timing||{},z=d.navigation||{},F="unloadEventStart unloadEventEnd redirectStart redirectEnd fetchStart domainLookupStart domainLookupEnd connectStart connectEnd secureConnectionStart requestStart responseStart responseEnd domLoading domInteractive domContentLoadedEventStart domContentLoadedEventEnd domComplete loadEventStart loadEventEnd".split(" "),w=!m?void 0:m.navigationStart;c.prototype.pageView=function(a){"start"in a&&r.push(a);(new Image).src=n(a,!1);s=(new Date).getTime()};c.prototype.reachGoal=function(a){if("goal"in a){var b="";"value"in a&&a.value&&(b=parseInt(a.value)||"");(new Image).src=n(a,!0)+(a.goal?";e="+escape("RG:"+b+"/"+a.goal):"")}};c.prototype.itemView=function(a){if("id"in a||k)(new Image).src=v(0)+"//ad.mail.ru/retarget/?counter="+(a.id||k)+"&list="+(a.list||"")+"&productid="+(a.productid||"")+"&pagetype="+(a.pagetype||"")+"&totalvalue="+(a.totalvalue||0)+"&_="+Math.random()};c.prototype.processEvent=function(a){if("type"in a&&("pageView"!=a.type||"id"in a)){if(!k&&"id"in
a&&"type"in a&&("pageView"==a.type||"reachGoal"==a.type))k=a.id;switch(a.type){case"pageView":this.pageView(a);break;case"reachGoal":this.reachGoal(a);break;case"itemView":this.itemView(a)}}};c.prototype.push=function(a){this.processEvent(a)};c.prototype.onload=function(){if(0<r.length){t=(new Date).getTime();for(var a=0,b;b=r[a];a++)(new Image).src=n(b,!0)+";e="+escape("RT/load")+";et="+t;s=t;r=[]}H||setTimeout(N,15E3)};c.prototype.beat=function(){if(!I&&0!=l.length&&B){var a=(new Date).getTime(),b=a-B;if(!(12E4<b)){if(12E4<a-s)for(var c=0;c<q.length;c++){var d=q[c];(new Image).src=n(d,!0)+";e="+escape("RT/resend")+";et="+t+";active="+(b?"1":"0")}else(new Image).src=G(l,"RT/beat");s=a}}};c.prototype.unload=function(){J||0==l.length||((new Image).src=G(l,"RT/unload"))};c.prototype.activity=function(a){B=(new Date).getTime()};d=new c;for(g=0;b=_tmr[g];g++)if(!k&&"id"in b&&"type"in b&&("pageView"==b.type||"reachGoal"==b.type))k=b.id;for(g=0;b=_tmr[g];g++)"id"in b&&("type"in b&&"pageView"==b.type&&5>l.length)&&(l.push(b.id),q.push(b)),d.processEvent(b);_tmr=d;if("complete"===h.readyState)_tmr.onload();else e.addEventListener?e.addEventListener("load",A,!1):e.attachEvent?e.attachEvent("onload",A):e.onload=A;J||u(e,"beforeunload",_tmr.unload);if(!I&&0<l.length){setInterval(_tmr.beat,3E4);try{d=function(a){for(var b=0;b<a.length;b++)u(h,a[b],function(){_tmr.activity(a[b])})},d(["scroll","gesturechange","touchmove"]),d(["mousedown","mousemove","mouseup"]),u(e,"scroll",function(){_tmr.activity("scallback")})}catch(P){}}}})();