(function(d,b,ia){function M(f){for(var b=1,d=f.length;b<arguments.length;b++)f[d++]=arguments[b];return f.length}function H(){for(var f={},b="hash host hostname href pathname port protocol search".split(" "),p=b.length,n=p;n--;)f[b[n]]="";try{for(var q=d.location,n=p;n--;){var x=b[n];f[x]=""+q[x]}}catch(z){N&&(f=N)}return f}function Jb(f){return f?(""+f).replace(/^\s+/,"").replace(/\s+$/,""):""}function Sa(){return-1!=H().hostname.search(/(?:^|\.)(?:ya|yandex|narod|narod2)\.(?:\w+|com\.\w+)$/)}function Fa(){return"MetrikaPlayer"==
d.name}function ja(f){return Math.floor(Math.random()*("number"==typeof f?f:1073741824))}function mb(){var f=b.documentElement,d=b.doctype,p=f.attributes,n="",q="",x="",q=f.outerHTML;if(!q){for(q=0;q<p.length;q++){var z=p[q];z&&(n+=" "+z.name+'="'+(z.value||"")+'"')}q="<html"+n+">"+f.innerHTML+"</html>"}d&&(x="<!DOCTYPE "+d.name+(d.publicId?' PUBLIC "'+d.publicId+'"':"")+(d.systemId?' "'+d.systemId+'"':"")+">\n");return x+q}function nb(f){var b=[],d;for(d in f)f.hasOwnProperty(d)&&(b[b.length]=d+
"="+encodeURIComponent(f[d]));return b.join("&")}function Ga(f){for(var b=f.length,d=0,n=255,q=255;b;){var x=21<b?21:b,b=b-x;do{var z="string"==typeof f?f.charCodeAt(d):f[d];d++;if(255<z)var A=z>>8,z=z&255,z=z^A;n+=z;q+=n}while(--x);n=(n&255)+(n>>8);q=(q&255)+(q>>8)}f=(n&255)+(n>>8)<<8|(q&255)+(q>>8);return 65535==f?0:f}function V(f,d,p,n){f=f+"="+encodeURIComponent(d);p&&(d=new Date,d.setTime(d.getTime()+6E4*p),f+=";expires="+d.toGMTString());n&&(f+=";domain="+n);b.cookie=f+";path=/"}function ta(f){return b.cookie.match(RegExp("(?:^|;\\s*)"+
f+"=([^;]*)"))?decodeURIComponent(RegExp.$1):null}function ob(){V("_metrika_enabled","1",60);var f=!!ta("_metrika_enabled");V("_metrika_enabled","",-1,void 0);return f}function ua(){var f=b.documentElement;return"CSS1Compat"==b.compatMode?f:b.body||f}function Ta(){var f=ua();return[f.clientWidth,f.clientHeight]}function Ua(){var f=ua(),b=Ta();return[Math.max(f.scrollWidth,b[0]),Math.max(f.scrollHeight,b[1])]}function Ha(){return[d.pageXOffset||b.documentElement&&b.documentElement.scrollLeft||b.body&&
b.body.scrollLeft||0,d.pageYOffset||b.documentElement&&b.documentElement.scrollTop||b.body&&b.body.scrollTop||0]}function Va(f){if(!f.ownerDocument||"PARAM"==f.tagName||f==b.body||f==b.documentElement)return[0,0];if(f.getBoundingClientRect)return f=f.getBoundingClientRect(),[Math.round(f.left+P[0]),Math.round(f.top+P[1])];for(var d=0,p=0;f;)d+=f.offsetLeft,p+=f.offsetTop,f=f.offsetParent;return[d,p]}function W(f,d){return f==b.documentElement?null:d?f.tagName.toLowerCase()===d?f:W(f.parentNode,d):
f==b.body?b.documentElement:f.parentNode}function Wa(f,b){var d=[];if(f)for(var n=f.childNodes,q=0,x=n.length;q<x;q++){var z=n[q];"INPUT"==z.nodeName&&z.type&&"hidden"==z.type.toLocaleLowerCase()||b&&z.nodeName!=b||M(d,z)}return d}function Ia(f){var d=Va(f);f=f==b.body||f==b.documentElement?Ua():[f.offsetWidth,f.offsetHeight];return[d[0],d[1],f[0],f[1]]}function Xa(f){var b="";f=f.childNodes;for(var d=0,n=f.length;d<n;d++)3==f[d].nodeType&&(b+=f[d].nodeValue);return Ga(b.replace(/[\u0000-\u0020]+/g,
""))}function Ja(b){var d="",p="className width height align title alt name".split(" ");"IMG"==b.tagName&&(d+=b.src.toLowerCase());"A"==b.tagName&&(d+=b.href.toLowerCase());for(var n=0;n<p.length;n++)b.getAttribute&&(d+=String(b.getAttribute(p[n])||"").toLowerCase());return Ga(d.replace(/[\u0000-\u0020]+/g,""))}function Za(d){for(var s=b.getElementsByTagName("form"),p=0,n=s.length;p<n;p++)if(s[p]==d)return p;return-1}function pb(b,d){return RegExp("(?:^|\\s)"+d+"(?:\\s|$)").test(b.className)}function $a(b){return"INPUT"==
b.nodeName&&"submit"!=b.type&&"image"!=b.type&&"hidden"!=b.type?"radio"==b.type||"checkbox"==b.type?!b.checked:!b.value:"TEXTAREA"==b.nodeName?!b.value:"SELECT"==b.nodeName?0>b.selectedIndex:!0}function ga(b,d,p,n){R[R.length]=[p,p];b.addEventListener?b.addEventListener(d,p,!!n):b.attachEvent&&b.attachEvent("on"+d,p)}function Ka(b,d,p,n){for(var q=0;q<R.length;q++)if(R[q]&&R[q][0]==p){var x=R[q][1];delete R[q];break}x&&(b.removeEventListener?b.removeEventListener(d,x,!!n):b.detachEvent&&b.detachEvent("on"+
d,x))}function va(b){try{delete d[b]}catch(s){d[b]=ia}}function wa(d){var s=b.createElement("script");s.type="text/javascript";s.async=!0;s.src=d;try{var p=b.getElementsByTagName("html")[0];b.getElementsByTagName("head")[0]||p.appendChild(b.createElement("head"));var n=b.getElementsByTagName("head")[0];n.insertBefore(s,n.firstChild)}catch(q){}}function xa(){if(top!=d&&parent==top&&d.postMessage&&!Ya.Metrika_visorPlayerOn){Ya.Metrika_visorPlayerOn=!0;var f=b.createElement("div");f.innerHTML='<iframe name="RemoteIframe" allowtransparency="true" style="position: absolute; left: -999px; top: -999px; width: 1px; height: 1px;"></iframe>';
var s=f.firstChild;setTimeout(function(){var d=b.body||b.documentElement;d.insertBefore(s,d.firstChild);try{var f=s.contentWindow.document}catch(q){}f&&(f.open(),f.write('<!doctype html><html><head><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7,IE=edge" /></head><body><script type="text/javascript">var newversion = true;try {if (top.postMessage) {window.onmessage = function(evt) {evt = evt || window.event;try {var message = new Function("return " + evt.data)();} catch (e) {return;}if (/(^|\\.)yandex\\.(ru|com|ua|kz|by|com\\.tr)(:\\d{4})?$/.test(evt.origin) && message.name == "script" && message.data) {var head = document.getElementsByTagName("head")[0];var base = document.createElement("base");base.href = message.data;head.appendChild(base);var script = document.createElement("script");script.src = message.data;head.appendChild(script);if (navigator.userAgent.indexOf("Firefox/3.6.") > -1) {parent.removeEventListener("message", window.onmessage, false);}window.onmessage = null;}};if (navigator.userAgent.indexOf("Firefox/3.6.") > -1) {parent.addEventListener("message", window.onmessage, false);}top.postMessage(\'{"name":"ping"}\', "*");}} catch (e) {}\x3c/script></body></html>'),
f.close())},500)}}function qb(f,s,p,n,q,x){function z(a){return function(){try{return a.apply(this,arguments)}catch(t){var b=a&&a.name||"",c=t.stack?", stack: "+t.stack:"";(new Image).src="//an.yandex.ru/jserr/"+f+"?"+nb({"cnt-class":100+s,errmsg:t.name+": "+t.message+", line: "+(t.number||t.lineNumber)+", func: "+b+c})}}}function A(a,t,b){var c=z(function(a){return b(a||d.event)});ba[ba.length]=[a,t,b,c];a.addEventListener?a.addEventListener(t,c,!0):a.attachEvent&&a.attachEvent("on"+t,c)}function w(a,
t,b){for(var c=0;c<ba.length;c++)if(ba[c]&&ba[c][0]==a&&ba[c][1]==t&&ba[c][2]==b){var d=ba[c][3];delete ba[c];break}d&&(a.removeEventListener?a.removeEventListener(t,d,!0):a.detachEvent&&a.detachEvent("on"+t,d))}function N(a){var t=ua();return[a.pageX||a.clientX+P[0]-(t.clientLeft||0)||0,a.pageY||a.clientY+P[1]-(t.clientTop||0)||0]}function I(a){return a.target||a.srcElement}function R(a){return(a.shiftKey?Kb:0)|(a.ctrlKey?rb:0)|(a.altKey?Lb:0)|(a.metaKey?Ib:0)|(a.ctrlKey||a.altKey?ab:0)}function Q(a){var t=
(new Date).getTime();a&&t<a&&(sb+=a-t+B);d.setTimeout(z(function(){Q(t)}),B)}function O(){var a=(new Date).getTime()+sb;a<tb&&(a=tb+B/2);return tb=a}function K(){return Math.round((O()-Ub)/La)}function X(a,t){t=Math.max(0,Math.min(t,65535));M(a,t>>8,t&255)}function D(a,t){M(a,t&255)}function m(a,t){for(t=Math.max(0,t|0);127<t;)M(a,t&127|128),t>>=7;M(a,t)}function V(a,t){255<t.length&&(t=t.substr(0,255));M(a,t.length);for(var b=0;b<t.length;b++)X(a,t.charCodeAt(b))}function ha(a,t){m(a,t.length);for(var b=
0;b<t.length;b++)m(a,t.charCodeAt(b))}function ga(a){if(!a.nodeName)return a[L]=-1,null;var b=+a[L];if(!isFinite(b)||0>=b)return null;var c=Gb,d=0,e=W(a),h=e&&e[L]?e[L]:0;0>h&&(h=0);var f=a.nodeName.toUpperCase(),k=Vb[f];k||(c|=ob);var v;a:{v=Wa(W(a),a.nodeName);for(var r=0;r<v.length;r++)if(v[r]==a){v=r;break a}v=0}v||(c|=qb);r=Ia(a);(e=e?Ia(e):null)&&(r[0]==e[0]&&r[1]==e[1]&&r[2]==e[2]&&r[3]==e[3])&&(c|=Mb);bb[b].pos=r[0]+"x"+r[1];bb[b].size=r[2]+"x"+r[3];a.id&&"string"==typeof a.id&&(c|=Nb);(e=
Xa(a))&&(c|=Fb);var B=Ja(a);B&&(d|=Hb);var l;a:{l=Wa(W(a),a.tagName);for(var g=0;g<l.length;g++)if((!l[g].id||"string"!=typeof l[g].id)&&Ja(l[g])==B&&Xa(l[g])==e){l=!0;break a}l=!1}if(l)var c=c|Ob,La=Ga((a.innerHTML||"").replace(/(<[^>]*>|[\u0000-\u0020])/g,""));l=[];D(l,Wb);m(l,b);D(l,c);m(l,h);k?D(l,k):V(l,f);v&&m(l,v);c&Mb||(m(l,r[0]),m(l,r[1]),m(l,r[2]),m(l,r[3]));c&Nb&&V(l,a.id);e&&X(l,e);c&Ob&&X(l,La);D(l,d);B&&X(l,B);return l}function ea(a,b,c,e,d,h){for(;c&&(!c.offsetWidth||!c.offsetHeight);)c=
W(c);if(!c)return null;var f=c[L];if(!f||0>f)return null;var k={mousemove:C,click:hb,dblclick:ib,mousedown:ca,mouseup:xa,touch:u}[b];if(!k)return null;var v=Va(c);c=[];D(c,k);m(c,a);m(c,f);m(c,Math.max(0,e[0]-v[0]));m(c,Math.max(0,e[1]-v[1]));/^mouse(up|down)|click$/.test(b)&&(a=d||h,D(c,2>a?jb:a==(d?2:4)?lb:kb));return c}function ia(a,c){var b=[];D(b,F);m(b,a);m(b,c[0]);m(b,c[1]);return b}function ja(a,c,b){var e=[];b=b[L];if(!b||0>b)return null;D(e,y);m(e,a);m(e,c[0]);m(e,c[1]);m(e,b);return e}
function pa(a,c,b){var e=[];D(e,va);m(e,a);m(e,c[0]);m(e,c[1]);m(e,b[0]);m(e,b[1]);return e}function qa(a,c,b,e){var d=[];D(d,ub);m(d,a);X(d,c);D(d,b);a=e[L];if(!a||0>a)a=0;m(d,a);return d}function ra(a,c){var b,e;0==c.length?e=b="":100>=c.length?(b=c,e=""):200>=c.length?(b=c.substr(0,100),e=c.substr(100)):(b=c.substr(0,97),e=c.substr(c.length-97));var d=[];D(d,wa);m(d,a);ha(d,b);ha(d,e);return d}function sa(a){var c=[];D(c,Sa);m(c,a);return c}function fa(a){var c=[];D(c,Xb);m(c,a);return c}function ta(a){var c=
[];D(c,Yb);m(c,a);return c}function Ca(a,c){var b=[];D(b,Zb);m(b,a);m(b,c[L]);return b}function Da(a,c){var b=[];D(b,G);m(b,a);m(b,c[L]);return b}function Ea(a,c,b){var e=[];D(e,$b);m(e,a);m(e,c[L]);V(e,String(b));return e}function Fa(a,c){var b=c[L];if(0<b){var e=[],d=Ia(c),h=bb[b],f=d[0]+"x"+d[1],k=d[2]+"x"+d[3];f!=h.pos&&(h.pos=f,D(e,ya),m(e,a),m(e,b),m(e,d[0]),m(e,d[1]));k!=h.size&&(h.size=k,D(e,Y),m(e,a),m(e,b),m(e,d[2]),m(e,d[3]));if(e.length)return e}return null}function Ka(a){var c=a[L];if(!c||
(0>c||!/^INPUT|SELECT|TEXTAREA$/.test(a.nodeName))||!a.form||pb(a.form,"-metrika-noform"))return null;var b=Za(a.form);if(0>b)return null;var e;e="INPUT"==a.nodeName?{text:0,password:2,radio:3,checkbox:4,file:6,image:7}[a.type]:{SELECT:1,TEXTAREA:5}[a.nodeName];if("number"!=typeof e)return null;for(var d=-1,h=a.form.elements,f=h.length,k=0,v=0;k<f;k++)if(h[k].name==a.name){if(h[k]==a){d=v;break}v++}if(0>d)return null;h=[];D(h,r);m(h,c);m(h,b);m(h,e);ha(h,a.name||"");m(h,d);return h}function Ra(a,
c){var b=Za(c);if(0>b)return null;for(var e=c.elements,d=e.length,h=[],f=0;f<d;f++)if(!$a(e[f])){var k=e[f][L];k&&0<k&&M(h,k)}e=[];D(e,l);m(e,a);m(e,b);m(e,h.length);for(b=0;b<h.length;b++)m(e,h[b]);return e}function vb(){var a=[];D(a,ac);return a}function za(a){clearTimeout(Pb);for(var b=(new Date).getTime()+e;cb.length&&(a||+(new Date).getTime()<b);){var h=cb.shift();if(h=h[0].apply(d,h[1])){var f=h;6500<Aa.length+f.length&&c();for(var h=Aa,r=0,l=h.length;r<f.length;r++)h[l++]=f[r];db||(db=d.setTimeout(z(c),
k))}}!0===a&&c(!0);cb.length&&(Pb=d.setTimeout(z(za),v))}function J(a,c,b){M(cb,[a,c]);za(b)}function g(a){if(a[L])J(Fa,[K(),a]);else{var c=W(a);c&&g(c);a[L]=wb;bb[wb]={};wb++;J(ga,[a]);J(Ka,[a])}}function S(a){var c=I(a),b,e,d=0;if(c&&"SCROLLBAR"!=c.nodeName){if(c&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(c.tagName))if(c[L])g(c);else if(b=W(c,"form"))for(b=b.elements,e=b.length;d<e;d++)/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(b[d].tagName)&&!b[d][L]&&g(b[d]);else g(c);else g(c);J(ea,[K(),a.type,c,N(a),
a.which,a.button])}}function Ma(a){S(a);var c,e;d.getSelection?(a=d.getSelection(),c=a.toString(),e=a.anchorNode):b.selection&&b.selection.createRange&&(a=b.selection.createRange(),c=a.text,e=a.parentElement());for(;e&&1!=e.nodeType;)e=e.parentNode;e&&"INPUT"==e.tagName&&"password"==e.type||(e&&/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(e.className)||c==xb)||(xb=c,J(ra,[K(),c]))}function eb(a){var c=O(),b=c-Qb;if(!(b<Rb)){var e=N(a),d=yb[0]-e[0],h=yb[1]-e[1],d=d*d+h*h;0>=d||(16>d&&100>b||20>b&&256>d)||
(Qb=c,yb=e,S(a))}}function T(){P=Ha();var a=O();a-Sb<Rb||10>Math.abs(P[0]-zb[0])&&10>Math.abs(P[1]-zb[1])||(Sb=a,zb=P,J(ia,[K(),P]))}function Ba(a){a=I(a);var c=Math.random(),e=[a.scrollLeft,a.scrollTop];if(a.localId){if(c=Ab[a.localId],!c||10>Math.abs(e[0]-c[0])&&10>Math.abs(e[1]-c[1]))return}else{for(;Ab[c];)c=Math.random();a.localId=c}Ab[a.localId]=e;a!==b&&(g(a),J(ja,[K(),e,a]))}function ka(){J(pa,[K(),Ta(),Ua()])}function Z(a){J(vb,[],!0);c(!0);if("beforeunload"==a.type)for(a=+new Date+50;+new Date<
a;);}function Na(a,c,b){a=I(a);"INPUT"==a.tagName&&"password"==a.type||/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(a.className)||(g(a),J(qa,[K(),c,b,a]))}function Oa(a){var c=a.keyCode,b=R(a);if({3:1,8:1,9:1,13:1,16:1,17:1,18:1,19:1,20:1,27:1,33:1,34:1,35:1,36:1,37:1,38:1,39:1,40:1,45:1,46:1,91:1,92:1,93:1,106:1,110:1,111:1,144:1,145:1}[c]||(112<=c&&123>=c||96<=c&&105>=c)||b&ab)19==c&&(b&~ab)==rb&&(c=144),Na(a,c,b|ab),Bb=!1,d.setTimeout(z(function(){Bb=!0}),1),67==c&&(b&rb&&!(b&Lb||b&Kb))&&la()}function E(a){Bb&&
(!Cb&&0!==a.which)&&(Na(a,a.charCode||a.keyCode,R(a)),Cb=!0,d.setTimeout(z(function(){Cb=!1}),1))}function la(){Db||(Db=!0,xb&&J(sa,[K()]),d.setTimeout(z(function(){Db=!1}),1))}function ma(){Pa||(Pa=!0,J(fa,[K()]))}function $(){Pa&&(Pa=!1,J(ta,[K()]))}function Qa(a){(!Pa||a&&!a.fromElement)&&ma()}function na(a){a&&!a.toElement&&$()}function aa(a){a=I(a);var c,b,e=0;if(a&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName)){if(a[L])g(a);else if(c=W(a,"form"))for(c=c.elements,b=c.length;e<b;e++)/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(c[e].tagName)&&
!c[e][L]&&g(c[e]);else g(a);J(Ca,[K(),a])}}function oa(a){(a=I(a))&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName)&&(g(a),J(Da,[K(),a]))}function U(a){a=I(a);if(!("INPUT"==a.tagName&&"password"==a.type||a&&/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(a.className)||!a||!/^INPUT|SELECT|TEXTAREA$/.test(a.tagName))){var c=/^(checkbox|radio)$/.test(a.type)?a.checked:a.value;g(a);J(Ea,[K(),a,c])}}function a(a){a=I(a);if(!pb(a,"-metrika-noform")&&"FORM"==a.nodeName){for(var c=a.elements,b=0;b<c.length;b++)$a(c[b])||
g(c[b]);J(Ra,[K(),a],!0)}}function h(a){T();if(a.touches&&a.touches.length){var c=I(a);if(c){g(c);for(var b=0;b<a.touches.length;b++)J(ea,[K(),"touch",c,[a.touches[b].pageX,a.touches[b].pageY],0,0])}}}function c(a){clearTimeout(db);db=0;if(Aa.length){a={rn:Math.round(1E5*Math.random()),"wv-type":0,"cnt-class":s,"page-url":H().href,wmode:0,"wv-hit":n,"wv-part":bc++,"wv-check":Ga(Aa),"browser-info":["z",Eb,"i",fb].join(":")};for(var c=Aa,b=c.length,e=[],d=b-b%3,h,f=0;f<d;f+=3)h=(c[f]<<16)+(c[f+1]<<
8)+c[f+2],M(e,da[h>>18&63],da[h>>12&63],da[h>>6&63],da[h&63]);switch(b-d){case 1:h=c[d]<<4;M(e,da[h>>6&63],da[h&63],"__");break;case 2:h=(c[d]<<10)+(c[d+1]<<2),M(e,da[h>>12&63],da[h>>6&63],da[h&63],"_")}c={"wv-data":e.join("")};q.send("visor","webvisor",a,c);Aa.length=0}}var e=100,v=200,k=15E3,B=20,La=50,Rb=10,Wb=1,C=2,F=3,y=16,ca=4,ub=5,r=7,ya=9,Y=10,l=11,u=12,ac=13,Xb=14,Yb=15,Zb=17,G=18,$b=19,Sa=27,va=28,wa=29,xa=30,hb=32,ib=33,jb=1,kb=2,lb=4,Ob=1,ob=2,qb=4,Mb=8,Fb=16,Nb=32,Gb=64,Hb=2,Lb=1,Kb=
2,rb=4,Ib=8,ab=16,Vb={A:1,ABBR:2,ACRONYM:3,ADDRESS:4,APPLET:5,AREA:6,B:7,BASE:8,BASEFONT:9,BDO:10,BIG:11,BLOCKQUOTE:12,BODY:13,BR:14,BUTTON:15,CAPTION:16,CENTER:17,CITE:18,CODE:19,COL:20,COLGROUP:21,DD:22,DEL:23,DFN:24,DIR:25,DIV:26,DL:27,DT:28,EM:29,FIELDSET:30,FONT:31,FORM:32,FRAME:33,FRAMESET:34,H1:35,H2:36,H3:37,H4:38,H5:39,H6:40,HEAD:41,HR:42,HTML:43,I:44,IFRAME:45,IMG:46,INPUT:47,INS:48,ISINDEX:49,KBD:50,LABEL:51,LEGEND:52,LI:53,LINK:54,MAP:55,MENU:56,META:57,NOFRAMES:58,NOSCRIPT:59,OBJECT:60,
OL:61,OPTGROUP:62,OPTION:63,P:64,PARAM:65,PRE:66,Q:67,S:68,SAMP:69,SCRIPT:70,SELECT:71,SMALL:72,SPAN:73,STRIKE:74,STRONG:75,STYLE:76,SUB:77,SUP:78,TABLE:79,TBODY:80,TD:81,TEXTAREA:82,TFOOT:83,TH:84,THEAD:85,TITLE:86,TR:87,TT:88,U:89,UL:90,VAR:91,NOINDEX:100},ba=[],sb=0;Q(0);var tb=0,cb=[],Pb,wb=1,Qb=0,yb=[0,0],Sb=0,zb=[0,0],Ab={},Bb=!0,Cb=!1,xb="",Db=!1,Pa=!0,da="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789*-".split(""),Aa=[],db,bc=1,Ub=O(),L="metrikaId_"+Math.random(),bb={},gb=
":submit"+Math.random();if("MetrikaPlayer"!=d.name){A(b,"mousemove",eb);A(b,"click",S);A(b,"dblclick",S);A(b,"mousedown",S);A(b,"mouseup",Ma);A(d,"scroll",T);A(d,"beforeunload",Z);cc||A(d,"unload",Z);A(d,"resize",ka);A(b,"keydown",Oa);A(b,"keypress",E);A(b,"copy",la);A(b,"touchmove",h);A(b,"touchstart",h);b.attachEvent&&!d.opera?(A(b,"focusin",Qa),A(b,"focusout",na)):(A(d,"focus",ma),A(d,"blur",$),A(b,"blur",$));b.addEventListener?(b.addEventListener("scroll",Ba,!0),b.addEventListener("focus",aa,
!0),b.addEventListener("blur",oa,!0),b.addEventListener("change",U,!0),b.addEventListener("submit",a,!0)):b.attachEvent&&(A(b,"focusin",aa),A(b,"focusout",oa),function(){for(var c=b.getElementsByTagName("form"),e=0;e<c.length;e++){for(var d=c[e].getElementsByTagName("*"),h=0;h<d.length;h++)/^INPUT|SELECT|TEXTAREA$/.test(d[h].tagName)&&A(d[h],"change",U);A(c[e],"submit",a)}}());(function(){var c=b.getElementsByTagName("form");if(c.length)for(var e=0;e<c.length;e++)c[e][gb]=c[e].submit,c[e].submit=
function(){a({target:this});return this[gb]()}})();"0:0"!=P.join(":")&&T();ka();var Tb=function(a,c){if(a){var e={"wv-type":1,"cnt-class":s,"page-url":H().href,"wv-hit":n,"browser-info":["z",Eb,"i",fb,"pct",c||""].join(":")};b.all&&(a=a.replace(/\r\n/g,"\n"));var d;d=a;d=d.replace(/\r\n/g,"\n");for(var h=[],f=String.fromCharCode,k=0,v=d.length;k<v;k++){var r=d.charCodeAt(k);128>r?h.push(f(r)):(127<r&&2048>r?h.push(f(r>>6|192)):(h.push(f(r>>12|224)),h.push(f(r>>6&63|128))),h.push(f(r&63|128)))}d=h.join("");
for(var h=[],l,B,g,r=0,La=d.length;r<La;)l=d.charCodeAt(r++),f=d.charCodeAt(r++),k=d.charCodeAt(r++),v=l>>2,l=(l&3)<<4|f>>4,B=(f&15)<<2|k>>6,g=k&63,isNaN(f)?B=g=64:isNaN(k)&&(g=64),h.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(v)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(l)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(B)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(g));
d={"wv-data":h.join("")};q.sendMultipart("webvisor",e,d,3)}};x.uploadPage=function(a){if("function"==typeof d.toStaticHTML&&-1<d.toStaticHTML.toString().indexOf("NoScript"))return!1;var c=b.documentElement;if(c&&19E4<(""+c.innerHTML).length)return!1;var e=d.XMLHttpRequest?new d.XMLHttpRequest:new ActiveXObject("Msxml2.XMLHTTP"),h=(""+(b.characterSet||b.charset||"")).toLowerCase(),c="text/html"+(h?";charset="+h:"");if("html"==a)return a=RegExp("<script [^>]*?//mc\\.yandex\\.ru/watch/.*?\x3c/script>",
"gi"),Tb(mb().replace(a,""),c),!0;e&&(e.open("get",H().href,!0),e.onreadystatechange=function(){4==e.readyState&&Tb(e.responseText,e.getResponseHeader("content-type"))},e.overrideMimeType&&h&&e.overrideMimeType(c),e.send(null));return!0}}return{stop:function(){w(b,"mousemove",eb);w(b,"click",S);w(b,"dblclick",S);w(b,"mousedown",S);w(b,"mouseup",Ma);w(d,"scroll",T);w(d,"beforeunload",Z);w(d,"unload",Z);w(d,"resize",ka);w(b,"keydown",Oa);w(b,"keypress",E);w(b,"copy",la);w(b,"touchmove",h);w(b,"touchstart",
h);w(b,"focusin",Qa);w(b,"focusout",na);w(d,"focus",ma);w(d,"blur",$);w(b,"blur",$);b.removeEventListener?(b.removeEventListener("scroll",Ba,!0),b.removeEventListener("focus",aa,!0),b.removeEventListener("blur",oa,!0),b.removeEventListener("change",U,!0),b.removeEventListener("submit",a,!0)):b.detachEvent&&(w(b,"focusin",aa),w(b,"focusout",oa),function(){for(var c=b.getElementsByTagName("form"),e=0;e<c.length;e++){for(var d=c[e].getElementsByTagName("*"),h=0;h<d.length;h++)/^INPUT|SELECT|TEXTAREA$/.test(d[h].tagName)&&
w(d[h],"change",U);w(c[e],"submit",a)}}());(function(){for(var a=b.getElementsByTagName("form"),c=0;c<a.length;c++)a[c][gb]&&(a[c].submit=a[c][gb])})()},uploadPages:function(a,c){function e(){w(b,"DOMContentLoaded",e);w(d,"load",e);for(var h=a.split(/\n/),f=H().href,k=/regexp:/,v=0;v<h.length;v++){var r=h[v];if(r)if(k.test(r)){if(r=Jb(r.replace(k,"")),RegExp(r).test(f)){x.uploadPage(c);break}}else if(-1!==f.indexOf(r)){x.uploadPage(c);break}}}"complete"==b.readyState?e():(A(b,"DOMContentLoaded",e),
A(d,"load",e))}}}var Fb=!1,cc=-1===(""+d.navigator.userAgent).toLowerCase().search(/webkit/)&&-1!==(""+d.navigator.userAgent).toLowerCase().search(/gecko/),P=Ha(),R=[];d.Ya=d.Ya||{};Ya._metrika=Ya._metrika||{};Ya._metrika.counters=Ya._metrika.counters||{};Ya._metrika.hitParam=Ya._metrika.hitParam||{};var Gb=!1,N=H(),Eb,fb,ea=d.navigator,pa=d.screen,qa="https:"==N.protocol?"https:":"http:",Hb="$Rev: 1825 $".match(/(\d+)/)[1],ra="object"==typeof b.all,hb=64,sa=ra?512:2048,ib=ra?512:2048,jb=ra?100:400,
Ca="noindex",Da=50,kb=RegExp("\\.(3gp|7z|aac|ac3|acs|ai|avi|ape|apk|asf|bmp|bz2|cab|cdr|crc32|css|csv|cue|divx|dmg|djvu?|doc(x|m|b)?|emf|eps|exe|flac?|flv|iso|swf|gif|t?gz|jpe?g?|js|m3u8?|m4a|mp(3|4|e?g?)|m4v|md5|mkv|mov|msi|ods|og(g|m|v)|pdf|phps|png|ppt(x|m|b)?|psd|rar|rss|rtf|sea|sfv|sit|sha1|svg|tar|tif?f|torrent|ts|txt|vob|wave?|wma|wmv|wmf|webm|xls(x|m|b)?|xpi|g?zip)$","i"),Ib=+new Date,lb="_ym_visorc",Ra,Ea;d.Ya.Metrika=function(f,s,p,n){function q(a,b){b=b||256;if(!a)return"";a.length>b&&
(a=a.substr(0,b));return(d.encodeURIComponent||d.escape)(a).replace(/\+/g,"%2B")}function x(a){function b(a){return a?a.replace(/\\/g,"\\\\").replace(/"/g,'\\"'):""}if(a===ia)return"";if(null===a)return"null";switch(a.constructor){case Boolean:return a.toString();case Number:return isFinite(a)?a.toString():"null";case String:return'"'+b(a)+'"';case Array:for(var c=[],e=0,d=a.length;e<d;e++)c[c.length]=x(a[e]);return"["+c.join(",")+"]";case Object:c="{";e=0;for(d in a)if(a.hasOwnProperty(d)){var f=
a[d];f!==ia&&(c+=(e?",":"")+'"'+b(d)+'":'+x(f),e++)}return c+"}";default:return"null"}}function z(a){for(var b=+new Date,c=1;0<c;c++)if(0==c%1E3){var e=+new Date;if(b>e)break;if(e-b>a)break}}function A(a,b){if(!a||!b)return!1;for(var c=[],e=0;e<b.length;e++)c.push(b[e].replace(/\^/g,"\\^").replace(/\$/g,"\\$").replace(/\./g,"\\.").replace(/\[/g,"\\[").replace(/\]/g,"\\]").replace(/\|/g,"\\|").replace(/\(/g,"\\(").replace(/\)/g,"\\)").replace(/\?/g,"\\?").replace(/\*/g,"\\*").replace(/\+/g,"\\+").replace(/\{/g,
"\\{").replace(/\}/g,"\\}"));return RegExp("\\.("+c.join("|")+")$","i").test(a)}function w(a){a=a.target||a.srcElement;if(!a)return!1;3==a.nodeType&&(a=a.parentNode);for(var b=a.nodeName.toString().toLowerCase();a.parentNode&&a.parentNode.nodeName&&("a"!=b&&"area"!=b||!a.href);)a=a.parentNode,b=a.nodeName.toString().toLowerCase();return a.href?a:!1}function I(a,b){return(a?a.replace(/^www\./,""):"")==(b?b.replace(/^www\./,""):"")?!0:!1}function O(a,b){function c(a){a=a.split(":");a=a[1]||"";a=a.replace(/^\/*/,
"").replace(/^www\./,"");return a.split("/")[0]}return a&&b?c(a)==c(b)?!0:!1:a||b?!1:!0}function P(a,b){var c=b.target,e=!1;if(!b.hostname)return!1;c&&"_self"!=c&&"_top"!=c&&"_parent"!=c||(e=!0);(c=a.shiftKey||a.ctrlKey||a.altKey)||a.modifiers&&d.Event&&(c=a.modifiers&d.Event.CONTROL_MASK||a.modifiers&d.Event.SHIFT_MASK||a.modifiers&d.Event.ALT_MASK);return e&&!c}function Q(a,b,c,e,d){function f(a,c){B[B.length]=a;B[B.length]=c}d=d||{};c="undefined"!=typeof c?c:Z;var B=[];d.ar&&!d.onlyData&&(c=X(c),
a=X(a));f("page-ref",q(c,sa));f("page-url",q(a,sa));f("browser-info",m(b,d));Sa()?f("ut",Ca):"undefined"!=typeof d.ut&&f("ut",q(""+d.ut,hb));e&&f("site-info",q(x(e),ib));d.saveRef&&(Z=c);a=K(Ma,B);Fa()||((new Image).src=a,D(a),d.isDelay&&z(d.delay));return a}function R(a,h,c,e,v,k,B){function g(a,c){n[n.length]=a;n[n.length]=c}v=v||{};c="undefined"!=typeof c?c:Z;var n=[];v.ar&&!v.onlyData&&(c=X(c),a=X(a));if(!Fa()){var p="_ymjsp"+("--"==f?"":ja()),C=b.createElement("script");d[p]=function(a){try{delete d[p]}catch(c){d[p]=
ia}B(a);C.parentNode&&C.parentNode.removeChild(C)};g("wmode",5);g("callback",p);g("page-ref",q(c,sa));g("page-url",q(a,sa));a=m(h,v);k&&(a=["vc",k,a].join(":"));g("browser-info",a);Sa()?g("ut",Ca):"undefined"!=typeof v.ut&&g("ut",q(""+v.ut,hb));e&&g("site-info",q(x(e),ib));v.saveRef&&(Z=c);e=K(Ma,n);C.type="text/javascript";C.src=e;v=b.getElementsByTagName("head")[0];v.insertBefore(C,v.firstChild);D(e)}}function K(a,b){for(var c=["cnt-class",p].concat(b),e=[],d=0;d<c.length;d+=2){var k=c[d+1];k&&
(e[e.length]=c[d]+"="+k)}return ka+a+f+"?"+e.join("&")}function X(a){var b=H(),c=b.host,b=b.href;if(!a)return b;if(-1!=a.search(/^\w+:\/\//))return a;var e=a.charAt(0);if("?"==e)return e=b.search(/\?/),-1==e?b+a:b.substr(0,e)+a;if("#"==e)return e=b.search(/#/),-1==e?b+a:b.substr(0,e)+a;if("/"==e){if(e=b.search(c),-1!=e)return b.substr(0,e+c.length)+a}else return c=b.split("/"),c[c.length-1]=a,c.join("/");return a}function D(a){"function"==typeof d.ymLog&&d.ymLog(a)}function m(a,h){function c(a,c){a&&
c&&(f[f.length]=[a,c].join(":"))}function e(a){c(a,h[a]?"1":"")}h=h||{};var f=[],k=-1*(new Date).getTimezoneOffset(),B=va();fb||(fb=B,Eb=k);c("j",ea.javaEnabled()?"1":"");pa&&c("s",pa.width+"x"+pa.height+"x"+(pa.colorDepth||pa.pixelDepth));null===la&&(la=W());c("f",la);null===ma&&(ma=fa());c("l",ma||"");h.pa||c("w",wa()+"x"+xa());c("z",k);c("i",B);c("en",(""+(b.characterSet||b.charset||"")).toLowerCase());c("v",Hb);c("c",ea.cookieEnabled?"1":"");ra&&b.documentMode&&(null===$&&($=Function("return /*@cc_on @_jscript_version @*/;")()),
$&&c("jv",$));c("la",(ea&&(ea.language||ea.browserLanguage)||"").toLowerCase());c("ex","prerender"==b.webkitVisibilityState?"pre1":"");U&&c("wh","1");B="ar ln dl ad nb pa".split(" ");for(k=0;k<B.length;k++)e(B[k]);B=["va","vt","sn","sa","he"];h.nb&&B.push("cl");for(k=0;k<B.length;k++){var m=B[k];c(m,h[m])}c("rn",ja());c("hid",S);c("ds",Ia());g._firstPaint||(g._firstPaint=Ta(),c("fp",g._firstPaint));if(g._webvisor){d.name||(d.name=Math.round(65535*Math.random()));if(k=+d.name)0>k&&(k*=-1),k%=65535;
c("wn",k||Ga(d.name));try{d.history&&c("hl",String(d.history.length))}catch(n){}}k="undefined"==typeof a?(k=ha())?q(k,jb):"":q(a,jb);c("t",k);return f.join(":")}function W(){var a=null,b=null,c,e=d.navigator;if("undefined"!=typeof e.plugins&&"object"==typeof e.plugins["Shockwave Flash"])a=e.plugins["Shockwave Flash"].description,!a||"undefined"!=typeof e.mimeTypes&&e.mimeTypes["application/x-shockwave-flash"]&&!e.mimeTypes["application/x-shockwave-flash"].enabledPlugin||(b=a.replace(/([a-zA-Z]|\s)+/,
"").replace(/(\s+r|\s+b[0-9]+)/,"."));else if("undefined"!=typeof d.ActiveXObject)try{(c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))&&(a=c.GetVariable("$version"))&&(b=a.split(" ")[1].replace(/,/g,".").replace(/[^.\d]/g,""))}catch(f){}return b}function ha(){var a=b.title;"string"!=typeof a&&(a=(a=b.getElementsByTagName("title"))&&a.length?a[0].innerHTML:"");return a}function fa(){var a=null;if(d.ActiveXObject)try{var b=new ActiveXObject("AgControl.AgControl"),c=function(a,c,b,e){for(;a.isVersionSupported(c[0]+
"."+c[1]+"."+c[2]+"."+c[3]);)c[b]+=e;c[b]-=e},e=[1,0,0,0];c(b,e,0,1);c(b,e,1,1);c(b,e,2,1E4);c(b,e,2,1E3);c(b,e,2,100);c(b,e,2,10);c(b,e,2,1);c(b,e,3,1);a=e.join(".")}catch(f){}else if(b=ea.plugins["Silverlight Plug-In"])a=b.description;return a}function va(){for(var a=new Date,a=[a.getFullYear(),a.getMonth()+1,a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds()],b="",c=0;c<a.length;c++)b+=10>a[c]?"0"+a[c]:a[c];return b}function wa(){var a=-1;b.documentElement&&"CSS1Compat"==b.compatMode?a=b.documentElement.clientWidth:
b.body&&(a=b.body.clientWidth);return a}function xa(){var a=-1;b.documentElement&&"CSS1Compat"==b.compatMode?a=b.documentElement.clientHeight:b.body&&(a=b.body.clientHeight);return a}function ua(){var a=d.performance||d.webkitPerformance,b=[];if(a=a&&a.timing){var c=a.navigationStart;c&&(b=[a.domainLookupEnd-a.domainLookupStart,a.connectEnd-a.connectStart,a.responseStart-a.requestStart,a.responseEnd-a.responseStart,a.fetchStart-c,a.redirectEnd-a.redirectStart,a.redirectCount],b.push(a.domInteractive&&
a.domLoading?a.domInteractive-a.domLoading:null),b.push(a.domContentLoadedEventStart&&a.domContentLoadedEventEnd?a.domContentLoadedEventEnd-a.domContentLoadedEventStart:null),b.push(a.domComplete?a.domComplete-c:null),b.push(a.loadEventStart?a.loadEventStart-c:null),b.push(a.loadEventStart&&a.loadEventEnd?a.loadEventEnd-a.loadEventStart:null))}return b}function Ia(){var a=[],b=g._lastPerformanceTiming,c=ua();if(b)for(var e=0,d=b.length;e<d;e++)null===c[e]?a.push(c[e]):a.push(b[e]===c[e]?"":c[e]);
else a=c;g._lastPerformanceTiming=c;return a.join(",")}function Ta(){var a;if("object"==typeof d.chrome&&d.chrome.loadTimes){if(a=d.chrome.loadTimes(),a.requestTime&&a.firstPaintTime)return~~(1E3*(a.firstPaintTime-a.requestTime))}else if(d.performance&&d.performance.timing&&(a=d.performance.timing,a.navigationStart&&a.msFirstPaint))return a.msFirstPaint-a.navigationStart;return null}function Ua(a){var d=b.referrer||"";if(RegExp("^https?://"+N.host+"/").test(d))return!1;for(var c=a.patterns,e=0;e<
c.length;e++)if(d.match(RegExp(c[e],"i"))){var f=a.params||[];if(f.length)for(var k=decodeURIComponent((RegExp.$1||"").replace(/\+/g,"%20")),g=0;g<f.length;g++){if(k==decodeURIComponent(f[g]))return!0}else return!0}return!1}function Ha(a){var d=!1;if(a&&"string"!=typeof a&&a.length)for(var c=0;c<a.length;c++){var e=a[c].selector,f=a[c].text,k=e.charAt(0),e=e.slice(1);if("#"==k){if(k=b.getElementById(e))d=!0,k.innerHTML=f}else if("."==k){k=e;e=(e=void 0)||b;if(e.getElementsByClassName)k=e.getElementsByClassName(k);
else{for(var e=e.getElementsByTagName("*"),g=[],m=0;m<e.length;m++)pb(e[m],k)&&g.push(e[m]);k=g}for(e=0;e<k.length;e++)d=!0,k[e].innerHTML=f}}return d}function Va(a,b){a=a&&a.replace(/^\?/,"");b=b&&b.replace(/^#/,"");var c="";if(a)for(var e=a.split("&"),d=0;d<e.length;d++){var f=e[d].split("=");"_openstat"==f[0]&&(c=f[1])}b&&0==b.indexOf("_openstat=")&&(c=b.slice(10));c&&(c=-1<c.indexOf(";")?decodeURIComponent(c):Wa(c.replace(/[-*_]/g,function(a){return{"*":"+","-":"/",_:"="}[a]||a})));return c&&
(c=c.split(";"),4==c.length)?{service:c[0],campaign:c[1],ad:c[2],source:c[3]}:null}function Wa(a){for(;a.length%4;)a+="=";var b,c,e,d,f,g=0,m="";do{b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(g++));c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(g++));d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(g++));f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(g++));
if(0>b||0>c||0>d||0>f)return null;e=b<<18|c<<12|d<<6|f;b=e>>16&255;c=e>>8&255;e&=255;m=64==d?m+String.fromCharCode(b):64==f?m+String.fromCharCode(b,c):m+String.fromCharCode(b,c,e)}while(g<a.length);a=m;d="";for(g=c1=c2=f=0;f<a.length;)g=a.charCodeAt(f),128>g?(d+=String.fromCharCode(g),f++):191<g&&224>g?(c2=a.charCodeAt(f+1),d+=String.fromCharCode((g&31)<<6|c2&63),f+=2):(c2=a.charCodeAt(f+1),c3=a.charCodeAt(f+2),d+=String.fromCharCode((g&15)<<12|(c2&63)<<6|c3&63),f+=3);return d}function Xa(){var a=
!1;if(Ya._metrika.hitParam[T]){if(1!=p||Ya._metrika.counters[T])return!1;a=!0}Ya._metrika.counters[T]=g;Ya._metrika.hitParam[T]=1;g._webvisor=!n&&(E&&E.webvisor||Fb||Gb);g._directCampaign=E&&E.directCampaign;E&&E.trackHash&&g.trackHash(!0);if(!n&&!a){g.replacePhones();var h=ta(lb);"b"!=h&&"w"!=h&&(h="");ob()||(h="b");Ra=+new Date;R(N.href,ha(),b.referrer,s,{ut:Ba,he:E?~~E.httpError:0,ad:1==p&&d.Ya&&d.Ya.Direct?!0:!1,saveRef:!0},h,function(a){Ea||(Ea=+new Date);a=a||{};var e=a.webvisor||{},v=[];if(na){var k=
+e.recp;if(!isFinite(k)||0>k||1<k)h="w";h||(h=S%1E4/1E4<k?"w":"b");V(lb,h,30);"w"==h?(M(v,"visor"),k=e.arch_type,(e=e.urls)&&k&&na.uploadPages(e,k)):na.stop()}Qa.init(v);k=a.mp2;v=f;a=g;e="."+N.host.replace(/^www\./,"");V("_ym_mp2_substs_"+v,"",-1,e);if(k){var m="_ym_mp2_track_"+v;b:{var n=k.conditions;if(n&&n.length)for(var q=0;q<n.length;q++){var p;if("ref"==n[q].type)p=Ua(n[q]);else if(p="adv"==n[q].type){var C=n[q],F=Ya._metrika.counter._directCampaign,y=C.ServiceNamePattern,ca=C.RefererPattern;
p=F?C.direct_orders:C.direct_camp;var ub=b.referrer,r=N.search,r=r&&r.replace(/^\?/,""),ya={};if(r)for(var r=r.split("&"),Y=0;Y<r.length;Y++){var l=r[Y].split("=");ya[decodeURIComponent(l[0])]=decodeURIComponent(l[1])}for(var r=Va(N.search,N.hash),Y={},l=["source","medium","campaign","term","content"],u=0;u<l.length;u++)ya["utm_"+l[u]]&&(Y[l[u]]=ya["utm_"+l[u]]);u=F?"direct.yandex.ru":r&&r.service||Y.source;l=!1;if(!l&&y&&y.length)for(var z=0;z<y.length;z++)if(RegExp(y[z],"i").test(u)){l=!0;break}if(!l&&
ca&&ca.length)for(y=0;y<ca.length;y++)if(RegExp(ca[y],"i").test(ub)){l=!0;break}!l&&(C.google_adwords&&ya.gclid)&&(l=!0);if(l&&(p&&p.length)&&(l=!1,C=F||r&&r.campaign||Y&&Y.campaign))for(F=0;F<p.length;F++)if(p[F]==C){l=!0;break}p=l}if(p){n[q].track_id&&V(m,n[q].track_id,43200,e);break b}}}(m=ta(m))&&k.substs&&(k=k.substs[m])&&(V("_ym_mp2_substs_"+v,x(k),0,e),v=Ha(k),a.params("__ym",v?"mp_trackid":"mp_trackid_bad",m))}ga(d,"load",g.replacePhones);g._inited=!0})}Za();E&&(E.enableAll?g.enableAll():
(E.clickmap&&g.clickmap(E.clickmap),E.trackLinks&&g.trackLinks(E.trackLinks),E.accurateTrackBounce&&g.accurateTrackBounce(E.accurateTrackBounce),E.ad&&ad()));g._webvisor&&(na=new qb(f,p,E,S,Qa,g))}function Ja(a){var b={delay:Da};switch(typeof a){case "string":b.on=!0;break;case "object":b.on=!0;b.delay="number"!=typeof a.delay?Da:a.delay;break;case "boolean":b.on=a;break;default:return}g._trackLinks=b}function Za(){Ja(!1);ga(b,"click",function(a){g._trackLinks.on&&$a(a)})}function $a(a){function b(a){var e=
Jb(c.innerHTML?c.innerHTML.toString().replace(/<\/?[^>]+>/gi,""):"");Q(d,d==e?"":e,H().href,null,a)}var c=w(a);if(c){var e=!1,d=""+c.href,f=d?d.split(/\?/)[0]:"";if(kb.test(f)||kb.test(d)||A(d,aa)||A(f,aa))e=!0;var m=c.className,f=m&&-1!=m.search(/ym-disable-tracklink/)?!0:!1,m=m&&-1!=m.search(/ym-external-link/)?!0:!1;f||(a={ln:!0,dl:e,isDelay:P(a,c),delay:g._trackLinks.delay},m?b(a):I(H().hostname,c.hostname)?e&&(a.ln=!1,b(a)):d&&-1!=d.search(/^ *javascript:/i)||(a.ut=Ca,b(a)))}}function mb(a,f){function c(){if(!F){z&&
clearTimeout(z);var b=f,c;c=n?q:q+ +new Date-p;b-=c;0>b&&(b=0);z=setTimeout(function(){F=!0;g(!1);a()},b)}}function e(){m||(k=!0,n=!1,m=!0,c())}function g(a){for(var b=0;b<y.length;b+=3)a?ga(y[b],y[b+1],y[b+2]):Ka(y[b],y[b+1],y[b+2])}var k=!1,m=!1,n=!0,q=0,p=+new Date,z=null,F=!1,y=[d,"blur",function(){n=k=m=!0;q+=+new Date-p;p=+new Date;c()},d,"focus",function(){k||m||(q=0);p=+new Date;k=m=!0;n=!1;c()},b,"click",e,b,"mousemove",e,b,"keydown",e,b,"scroll",e];g(!0);c()}function vb(a){function b(){var a=
H().hash.split("#")[1];if("undefined"==typeof a)return!1;var c=a.indexOf("?");0<c&&(a=a.substring(0,c));return a}var c=b();(function v(){var d=b();d!==c&&(a(),c=d);oa=setTimeout(v,200)})()}function za(a){Oa=Z=Na;Q(H().href,ha(),Oa,null,{ut:Ba,ad:1==p&&d.Ya&&d.Ya.Direct?!0:!1,wh:!0,saveRef:!0});Na=H().href}function J(a){function f(){var a=b.documentElement;return Math.max(a.scrollWidth,b.body.scrollWidth,a.clientWidth)}function c(a){function c(a){a=a.getBoundingClientRect();var e=b.body,f=b.documentElement,
r=a.left+(d.pageXOffset||f.scrollLeft||e.scrollLeft)-(f.clientLeft||e.clientLeft||0);return{top:Math.round(a.top+(d.pageYOffset||f.scrollTop||e.scrollTop)-(f.clientTop||e.clientTop||0)),left:Math.round(r)}}return a.getBoundingClientRect?c(a):function(a){for(var b=0,c=0;a;)b+=parseInt(a.offsetTop),c+=parseInt(a.offsetLeft),a=a.offsetParent;return{top:b,left:c}}(a)}function e(a){return a.toString().toUpperCase()}function g(a){return a&&(a=""+a.className)&&-1!=a.search(/ym-clickmap-ignore/)?!0:!1}function k(a){if(null==
a.pageX&&null!=a.clientX){var c=b.documentElement,d=b.body;a.pageX=a.clientX+(c&&c.scrollLeft||d&&d.scrollLeft||0)-(c.clientLeft||0);a.pageY=a.clientY+(c&&c.scrollTop||d&&d.scrollTop||0)-(c.clientTop||0)}return{x:a.pageX,y:a.pageY}}function m(a){for(var b=e(a.nodeName);a.parentNode&&"BODY"!=b&&"HTML"!=b;){if("A"==b||"INPUT"==b||"TEXTAREA"==b)return!0;a=a.parentNode;b=a.nodeName}return!1}for(var n=this,p=0,A=null,w="A B BIG BODY BUTTON DD DIV DL DT EM FIELDSET FORM H1 H2 H3 H4 H5 H6 HR I IMG INPUT LI OL P PRE SELECT SMALL SPAN STRONG SUB SUP TABLE TBODY TD TEXTAREA TFOOT TH THEAD TR U UL ABBR AREA BLOCKQUOTE CAPTION CENTER CITE CODE CANVAS DFN EMBED FONT INS KBD LEGEND LABEL MAP OBJECT Q S SAMP STRIKE TT ARTICLE AUDIO ASIDE FOOTER HEADER MENU METER NAV PROGRESS SECTION TIME VIDEO NOINDEX NOBR".split(" "),
F=59,y=String.fromCharCode,ca={},s=0;s<w.length;s++)ca[w[s]]=y(F),y(F),F++;this.handler=function(a){var F=b.getElementsByTagName("body")[0];if(!d.ymDisabledClickmap&&!g(F)){if(n._prefs.hasQuota){if(!n._prefs.quota)return;n._prefs.quota--}var y=a.target||a.srcElement;3==y.nodeType&&(y=y.parentNode);var F=e(y.nodeName),l=k(a),u;a.which||a.button===ia||(a.which=a.button&1?1:a.button&2?3:a.button&4?2:0);u=a.which;if(u=2!=u&&3!=u||"A"==F)if(u=y.offsetHeight,u=!(0===y.offsetWidth&&0===u||y.style&&"none"===
y.style.display)){b:{for(u=y;u.parentNode;){if(g(u)){u=!0;break b}u=u.parentNode}u=!1}if(u=!u){b:{u=n._prefs.ignoreTags;for(var w=0;w<u.length;w++)if(e(u[w])==e(F)){u=!0;break b}u=!1}u=!u&&n._prefs.filter(y,F)}}if(u){F=+new Date;y={dom:y,x:l.x,y:l.y,time:F};if((l=50<F-p)&&!(l=!n._prefs.ignoreSameClicks)){if(l=A){u=Math.abs(l.x-y.x);var w=Math.abs(l.y-y.y),s=y.time-l.time,l=l.dom==y.dom&&2>u&&2>w&&1E3>s?!0:!1}else l=!1;l=!l}if(l&&!Fa()){u=k(a);l=u.x;u=u.y;var s=a.target||a.srcElement,x=n._prefs,C=
c(s),G="",w=H().href;switch(x.mode){case "fixed":G="0";m(s)&&(G+="u");break;case "centered":G="1";C=Math.floor(f()/2);l=l>C?l-C+32768:l;m(s)&&(G+="u");break;default:G=e(s.nodeName);G="BODY"==G||"HTML"==G?f():s.offsetWidth;x=e(s.nodeName);"BODY"==x||"HTML"==x?(x=b.documentElement,x=Math.max(x.scrollHeight,b.body.scrollHeight,x.clientHeight)):x=s.offsetHeight;G||(G=1);x||(x=1);l=Math.floor(65535*(l-C.left)/G);u=Math.floor(65535*(u-C.top)/x);for(C="";s.parentNode&&"BODY"!=e(s.nodeName)&&"HTML"!=e(s.nodeName);){C+=
ca[s.nodeName]||"*";b:{for(var G=s.parentNode,E=x=0;E<G.childNodes.length;E++)if(s.nodeName==G.childNodes[E].nodeName){if(s==G.childNodes[E]){G=x;break b}x++}G=0}C+=G||"";s=s.parentNode}G=q(C,128)}U||(w=w?w.replace(/\#.*$/,""):w);"function"==typeof n._prefs.urlFilter&&(w=n._prefs.urlFilter(w));l=K(eb,["page-url",q(w,sa),"pointer-click",["rn",ja(),"x",l,"y",u,"t",Math.floor(Math.floor(+new Date-Ib)/100),"p",G].join(":")]);(new Image).src=l;D(l);if(l=a.target||a.srcElement){3==l.nodeType&&(l=l.parentNode);
for(u=e(l.nodeName);l.parentNode&&l.parentNode.nodeName&&("A"!=u&&"AREA"!=u||!l.href);)l=l.parentNode,u=e(l.nodeName);l=l.href?l:!1}else l=!1;l&&P(a,l)&&z(n._prefs.delay)}p=F;A=y}}};this.setPrefs=function(a){function b(a,c){return!0}this._prefs="undefined"==typeof a||!1===a||!0===a?{filter:b,ignoreTags:[],mode:"",delay:Da,quota:0,hasQuota:!1,ignoreSameClicks:!0}:{filter:a.filter||b,ignoreTags:a.ignoreTags||[],mode:a.mode||"",delay:"undefined"==typeof a.delay?Da:a.delay,quota:a.quota||0,hasQuota:!!a.quota,
ignoreSameClicks:"undefined"==typeof a.ignoreSameClicks?!0:!1,urlFilter:a.urlFilter}};this.updateStatus=function(a){switch(typeof a){case "undefined":this.start(!0);break;case "boolean":a?this.start(a):this.stop();break;case "object":this.start(a)}};this._start=!1;this.start=function(a){this.setPrefs(a);this._start||ga(b,"click",this.handler,!0);this._start=!0};this.stop=function(){this._start&&Ka(b,"click",this.handler,!0);this._start=!1};this.start(a)}var g=this,S=Math.round(1073741824*Math.random()),
Ma="//mc.yandex.ru/watch/",eb="//mc.yandex.ru/clmap/",T,Ba="",ka=qa,Z=N.href,Na=N.href,Oa="",E;Ya._metrika.counter||(Ya._metrika.counter=g);"object"==typeof f&&(E=f,n=f.defer,Ba=f.ut,p=f.type,s=f.params,ka=f.onlyHttps?"https:":qa,f=f.id);f=f||0;p=p||0;T=f+":"+p;if(Ya._metrika.counters[T])return Ya._metrika.counters[T];var la=null,ma=null,$=null,Qa=new function(a,f,c){function e(a,b,c){if(n)g(n,k(a,b,0),c,"application/x-www-form-urlencoded");else{if("XMLHttpRequest"in d){var e=new XMLHttpRequest;if("withCredentials"in
e){var f=c?"POST":"GET";a=k(a,b,"POST"==f?1:0);e.open(f,a,!0);e.withCredentials=!0;"POST"==f&&e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");e.send("POST"==f?nb(c):null);return}}for(f in c)c.hasOwnProperty(f)&&(b[f]=c[f]);(new Image).src=k(a,b,0)}}function g(a,b,c,d){var e="ifr"+Math.round(1E10*Math.random()),f=a.createElement("div");f.style.position="absolute";f.style.left="-99999px";f.style.top="-99999px";b=['<iframe name="',e,'"></iframe>','<form action="',b,'" method="post" target="',
e,'" enctype="',d,'">'];for(var h in c)c.hasOwnProperty(h)&&M(b,'<textarea name="',h,'"></textarea>');M(b,"</form>");f.innerHTML=b.join("");a.body.appendChild(f);h=f.getElementsByTagName("form")[0];for(var k in c)c.hasOwnProperty(k)&&(h[k].value=c[k]);h.submit();setTimeout(function(){a.body.removeChild(f)},1E4)}function k(b,d,e){d["browser-info"]=["ct",e,d["browser-info"]].join(":");return a+"//"+f+"/"+b+"/"+c+"?"+nb(d)}function m(){if(d.ActiveXObject){var a=new ActiveXObject("htmlfile");a.open();
a.write("<html><body></body></html>");a.close();return a}return null}try{var n=m()}catch(q){}var p="",s=[];return{send:function(a,b,c,d){a?p?-1<p.indexOf("|"+a+"|")&&e(b,c,d):M(s,arguments):e(b,c,d)},sendMultipart:function(a,c,d,e){g(n||b,k(a,c,e),d,"multipart/form-data")},init:function(a){p="|"+a.join("|")+"|";for(a=0;a<s.length;a++)-1<p.indexOf("|"+s[a][0]+"|")&&e(s[a][1],s[a][2],s[a][3]);s.length=0}}}(ka,"mc.yandex.ru",f),na;g.replacePhones=function(){try{var a=ta("_ym_mp2_substs_"+f);if(a){var b=
(new Function("return "+a))();b&&Ha(b)}}catch(c){}};g.reachGoal=function(a,d){var c=a?"goal://"+H().hostname+"/"+a:H().href,e=ha(),f=a?H().href:b.referrer;Q(c,e,f,d,{ar:!0,isDelay:a?!0:!1,delay:100});return!0};g.trackLinks=Ja;g.hit=function(a,b,c,d,f){a&&Q(a,b,c,d,{ut:f,ar:!0,saveRef:!0})};g.params=function(a){if(a){var b=arguments.length;if(1<b){for(var c={},d=c,f=0;f<b-1;f++){var g=""+arguments[f];d[g]={};f<b-2&&(d=d[g])}d[g]=arguments[b-1];a=c}Q(H().href,"","",a,{ar:!0,pa:!0,onlyData:!0})}};g.file=
function(a,b,c,d){a&&Q(a,"",H().href,d,{ar:!0,ln:!0,dl:!0})};g.extLink=function(a,b,c,d){a&&Q(a,"",H().href,d,{ar:!0,ln:!0,ut:Ca})};g.notBounce=function(){var a=0;Ra&&Ea&&(a=Ea-Ra);Q(H().href,"","",null,{cl:a,ar:!0,nb:!0,onlyData:!0})};var aa=[];g.addFileExtension=function(a){"string"==typeof a?aa.push(a):aa=aa.concat(a)};g.clickmap=function(a){g._clickmap?g._clickmap.updateStatus(a):g._clickmap=new J(a)};g.accurateTrackBounce=function(a){var d=function(){g.notBounce()};g._isAccurateTrackBounce||
(g._isAccurateTrackBounce=!0,O(b.referrer,H().href)||("number"!=typeof a&&(a=15E3),ra?setTimeout(d,a):mb(d,a)))};var oa=null,U=!1;g.trackHash=function(a){!1===a?U&&("onhashchange"in d?Ka(d,"hashchange",za):clearInterval(oa),U=!1):U||("onhashchange"in d?ga(d,"hashchange",za):vb(za),U=!0);g._trackHash=U};g.video=function(a,b,c,d){var f=["end","play","pause","seek"];if(a&&c){a:{for(var g=0,m=f.length;g<m;g+=1)if(a===f[g]){f=g;break a}f=-1}-1!==f&&Q(c,d||"","",null,{ar:!0,va:a,vt:~~b})}};g.social=function(a,
b,c){a&&b&&Q(c||H().href,"","",null,{ar:!0,sn:q(a,64),sa:q(b,64)})};g.enableAll=function(){g.trackLinks(!0);g.clickmap(!0);g.accurateTrackBounce()};g.pause=z;g.uploadPage=function(){};g._performanceTiming=ua;f&&Xa()};d.ya_cid&&new Ya.Metrika(d.ya_cid,d.ya_params,d.ya_class);d.ya_cid&&!d.ya_hit&&(d.ya_hit=function(b,d){Ya._metrika.counter&&Ya._metrika.counter.reachGoal(b,d)});var I=d.yandex_metrika_callback,O=d.yandex_metrika_callbacks;"function"==typeof I&&I();if("object"==typeof O)for(I=0;I<O.length;I++){var fa=
O[I];fa&&(O[I]=null,fa())}va("yandex_metrika_callback");va("yandex_metrika_callbacks");O=["link","click","scroll","res"];for(I=0;I<O.length;I++)if(fa=O[I]+"map",-1!=N.href.search("ym_playback="+fa)){wa(qa+"//metrika.yandex.ru/js/"+fa+"/_loader.js");break}d.Ya.Metrika.informer=function(b){var d=!!Ya.Metrika._informer;Ya.Metrika._informer=b;d||wa(qa+"//mc.yandex.ru/metrika/informer.js")};"complete"==b.readyState?xa():ga(d,"load",xa);(function(){var f=function(){var d=b.getElementsByTagName("body")[0],
f=b.createElement("iframe");f.src="http://awaps.yandex.ru/0/2153/0.htm?ad=165746&pl=93829&rnd="+ja();f.setAttribute("style","position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;visibility:hidden");d.appendChild(f);setTimeout(function(){d.removeChild(f)},1E4)},s=function(){d.removeEventListener("load",s,!1);f()},p=d.performance;ja(1E4)||Ya._metrika.isAd||(Ya._metrika.isAd=!0,"http:"==qa&&("object"==typeof p&&d.addEventListener)&&(p.timing&&p.timing.loadEventStart?f():d.addEventListener("load",
s,!1)))})()})(this,this.document);
