(function(d,b,X){function yb(b){return b?(""+b).replace(/^\s+/,"").replace(/\s+$/,""):""}function bb(){var d=b.documentElement,o=b.doctype,q=d.attributes,cb="",p="",t="",p=d.outerHTML;if(!p){for(p=0;p<q.length;p++){var w=q[p];w&&(cb+=" "+w.name+'="'+(w.value||"")+'"')}p="<html"+cb+">"+d.innerHTML+"</html>"}o&&(t="<!DOCTYPE "+o.name+(o.publicId?' PUBLIC "'+o.publicId+'"':"")+(o.systemId?' "'+o.systemId+'"':"")+">\n");return t+p}function db(b){var d=[],q;for(q in b)b.hasOwnProperty(q)&&(d[d.length]=
q+"="+encodeURIComponent(b[q]));return d.join("&")}function C(b){for(var d=1,q=b.length;d<arguments.length;d++)b[q++]=arguments[d];return b.length}function ta(b){for(var d="string"==typeof b?function(d){return b.charCodeAt(d)}:function(d){return b[d]},q=b.length,t=0,p=255,F=255;q;){var w=21<q?21:q,q=q-w;do{var J=d(t++);if(255<J)var C=J>>8,J=J&255,J=J^C;p+=J;F+=p}while(--w);p=(p&255)+(p>>8);F=(F&255)+(F>>8)}d=(p&255)+(p>>8)<<8|(F&255)+(F>>8);return 65535==d?0:d}function ua(d,o,q,t){var p="";q&&(p=
new Date,p.setTime(p.getTime()+6E4*q),p=";expires="+p.toGMTString());b.cookie=d+"="+o+p+";path="+(t||"/")}function Ga(d){return b.cookie.match(RegExp("(?:^|;\\s*)"+d+"=([^;]*)"))?RegExp.$1:null}function eb(){ua("_metrika_enabled","1",60);var b=!!Ga("_metrika_enabled");ua("_metrika_enabled","",-1);return b}function t(){for(var b={},o="hash host hostname href pathname port protocol search".split(" "),q=o.length,t=q;t--;)b[o[t]]="";try{for(var p=d.location,t=q;t--;){var F=o[t];b[F]=""+p[F]}}catch(w){N&&
(b=N)}return b}function aa(b){try{delete d[b]}catch(t){d[b]=X}}function ia(d){var t=b.createElement("script");t.type="text/javascript";t.async=!0;t.src=d;try{var q=b.getElementsByTagName("html")[0];b.getElementsByTagName("head")[0]||q.appendChild(b.createElement("head"));var C=b.getElementsByTagName("head")[0];C.insertBefore(t,C.firstChild)}catch(p){}}function ja(b){ia(va+"//metrika.yandex.ru/js/"+b+"/_loader.js")}function fb(x,o,q,I,p,F){function w(f){return function(){try{return f.apply(this,arguments)}catch(B){var a=
f&&f.name?f.name:"anonym";(new Image).src="//an.yandex.ru/jserr/"+x+"?"+db({"cnt-class":100+o,errmsg:B.name+": "+B.message+", line: "+(B.number||B.lineNumber)+", func: "+a})}}}function J(){var f=b.documentElement;return"CSS1Compat"==b.compatMode?f:b.body||f}function N(){var f=J();return[f.clientWidth,f.clientHeight]}function M(){var f=J(),B=N();return[Math.max(f.scrollWidth,B[0]),Math.max(f.scrollHeight,B[1])]}function W(){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 X(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+O[0]),Math.round(f.top+O[1])];for(var B=0,a=0;f;)B+=f.offsetLeft,a+=f.offsetTop,f=f.offsetParent;return[B,a]}function P(f,B){return f==b.documentElement?null:!B?f==b.body?b.documentElement:f.parentNode:f.tagName.toLowerCase()===
B?f:P(f.parentNode,B)}function Y(f,B){var a=[];if(f)for(var b=f.childNodes,c=0,e=b.length;c<e;c++){var g=b[c];!("INPUT"==g.nodeName&&g.type&&"hidden"==g.type.toLocaleLowerCase())&&(!B||g.nodeName==B)&&C(a,g)}return a}function K(f){var B=X(f),f=f==b.body||f==b.documentElement?M():[f.offsetWidth,f.offsetHeight];return[B[0],B[1],f[0],f[1]]}function Z(f){for(var B="",f=f.childNodes,a=0,c=f.length;a<c;a++)3==f[a].nodeType&&(B+=f[a].nodeValue);return ta(B.replace(/[\u0000-\u0020]+/g,""))}function ka(f){var a=
"",l="className width height align title alt name".split(" ");"IMG"==f.tagName&&(a+=f.src.toLowerCase());"A"==f.tagName&&(a+=f.href.toLowerCase());for(var c=0;c<l.length;c++)f.getAttribute&&(a+=(""+(f.getAttribute(l[c])||"")).toLowerCase());return ta(a.replace(/[\u0000-\u0020]+/g,""))}function ba(f){for(var a=b.getElementsByTagName("form"),l=0,c=a.length;l<c;l++)if(a[l]==f)return l;return-1}function la(f){return"INPUT"==f.nodeName&&"submit"!=f.type&&"image"!=f.type&&"hidden"!=f.type?"radio"==f.type||
"checkbox"==f.type?!f.checked:!f.value:"TEXTAREA"==f.nodeName?!f.value:"SELECT"==f.nodeName?0>f.selectedIndex:!0}function s(f,a,l){var c=w(function(f){return l(f||d.event)});S[S.length]=[f,a,l,c];f.addEventListener?f.addEventListener(a,c,!0):f.attachEvent&&f.attachEvent("on"+a,c)}function r(f,a,l){for(var c=0;c<S.length;c++)if(S[c]&&S[c][0]==f&&S[c][1]==a&&S[c][2]==l){var b=S[c][3];delete S[c];break}b&&(f.removeEventListener?f.removeEventListener(a,b,!0):f.detachEvent&&f.detachEvent("on"+a,b))}function ca(f){var a=
J();return[f.pageX||f.clientX+O[0]-(a.clientLeft||0)||0,f.pageY||f.clientY+O[1]-(a.clientTop||0)||0]}function Q(f){return f.target||f.srcElement}function $(f){return(f.shiftKey?zb:0)|(f.ctrlKey?gb:0)|(f.altKey?Ab:0)|(f.metaKey?Lb:0)|(f.ctrlKey||f.altKey?Ha:0)}function ga(f){var a=(new Date).getTime();f&&a<f&&(hb+=f-a+ib);d.setTimeout(w(function(){ga(a)}),ib)}function ma(){var f=(new Date).getTime()+hb;f<jb&&(f=jb+ib/2);return jb=f}function H(){return Math.round((ma()-Nb)/Ob)}function da(f,a){a=Math.max(0,
Math.min(a,65535));C(f,a>>8,a&255)}function y(f,a){C(f,a&255)}function j(f,a){for(a=Math.max(0,a|0);127<a;)C(f,a&127|128),a>>=7;C(f,a)}function wa(f,a){255<a.length&&(a=a.substr(0,255));C(f,a.length);for(var l=0;l<a.length;l++)da(f,a.charCodeAt(l))}function xa(f,a){j(f,a.length);for(var l=0;l<a.length;l++)j(f,a.charCodeAt(l))}function qa(f){if(!f.nodeName)return f[E]=-1,null;var a=+f[E];if(!isFinite(a)||0>=a)return null;var l=Qb,c=0,b=P(f),g=b&&b[E]?b[E]:0;0>g&&(g=0);var e=f.nodeName.toUpperCase(),
d=Rb[e];d||(l|=Sb);var h;a:{h=Y(P(f),f.nodeName);for(var i=0;i<h.length;i++)if(h[i]==f){h=i;break a}h=0}h||(l|=Tb);i=K(f);(b=b?K(b):null)&&(i[0]==b[0]&&i[1]==b[1]&&i[2]==b[2]&&i[3]==b[3])&&(l|=Bb);Ia[a].pos=i[0]+"x"+i[1];Ia[a].size=i[2]+"x"+i[3];f.id&&"string"==typeof f.id&&(l|=Cb);(b=Z(f))&&(l|=Ub);var L=ka(f);L&&(c|=Vb);var k;a:{k=Y(P(f),f.tagName);for(var n=0;n<k.length;n++)if(!(k[n].id&&"string"==typeof k[n].id)&&ka(k[n])==L&&Z(k[n])==b){k=!0;break a}k=!1}if(k)var l=l|Db,v=ta((f.innerHTML||"").replace(/(<[^>]*>|[\u0000-\u0020])/g,
""));k=[];y(k,Wb);j(k,a);y(k,l);j(k,g);d?y(k,d):wa(k,e);h&&j(k,h);l&Bb||(j(k,i[0]),j(k,i[1]),j(k,i[2]),j(k,i[3]));l&Cb&&wa(k,f.id);b&&da(k,b);l&Db&&da(k,v);y(k,c);L&&da(k,L);return k}function na(f,a,l,c,b,g){for(;l&&(!l.offsetWidth||!l.offsetHeight);)l=P(l);if(!l)return null;var e=l[E];if(!e||0>e)return null;var d={mousemove:Xb,click:Yb,mousedown:Ga,mouseup:xb,touch:Za}[a];if(!d)return null;var h=X(l),l=[];y(l,d);j(l,f);j(l,e);j(l,Math.max(0,c[0]-h[0]));j(l,Math.max(0,c[1]-h[1]));/^mouse(up|down)|click$/.test(a)&&
(f=b||g,y(l,2>f?Zb:f==(b?2:4)?$b:ac));return l}function ra(f,a){var l=[];y(l,va);j(l,f);j(l,a[0]);j(l,a[1]);return l}function m(f,a,l){var c=[],l=l[E];if(!l||0>l)return null;y(c,Fa);j(c,f);j(c,a[0]);j(c,a[1]);j(c,l);return c}function ya(f,a,c){var b=[];y(b,vb);j(b,f);j(b,a[0]);j(b,a[1]);j(b,c[0]);j(b,c[1]);return b}function za(f,a,c,b){var g=[];y(g,aa);j(g,f);da(g,a);y(g,c);f=b[E];if(!f||0>f)f=0;j(g,f);return g}function ea(f,a){var c,b;0==a.length?b=c="":100>=a.length?(c=a,b=""):200>=a.length?(c=
a.substr(0,100),b=a.substr(100)):(c=a.substr(0,97),b=a.substr(a.length-97));var g=[];y(g,wb);j(g,f);xa(g,c);xa(g,b);return g}function Ja(f){var a=[];y(a,ub);j(a,f);return a}function Ka(f){var a=[];y(a,ab);j(a,f);return a}function G(f){var a=[];y(a,ha);j(a,f);return a}function La(f,a){var c=[];y(c,sa);j(c,f);j(c,a[E]);return c}function ua(f,a){var c=[];y(c,eb);j(c,f);j(c,a[E]);return c}function T(f,a,c){var b=[];y(b,fb);j(b,f);j(b,a[E]);wa(b,""+c);return b}function Aa(f,a){var c=a[E];if(0<c){var b=
[],g=K(a),e=Ia[c],d=g[0]+"x"+g[1],h=g[2]+"x"+g[3];d!=e.pos&&(e.pos=d,y(b,ja),j(b,f),j(b,c),j(b,g[0]),j(b,g[1]));h!=e.size&&(e.size=h,y(b,Wa),j(b,f),j(b,c),j(b,g[2]),j(b,g[3]));if(b.length)return b}return null}function Ba(f){var a=f[E];if(!a||(0>a||!/^INPUT|SELECT|TEXTAREA$/.test(f.nodeName))||!f.form||/(?:^|\s)-metrika-noform(?:\s|$)/.test(f.form.className))return null;var c=ba(f.form);if(0>c)return null;var b;b="INPUT"==f.nodeName?{text:0,password:2,radio:3,checkbox:4,file:6,image:7}[f.type]:{SELECT:1,
TEXTAREA:5}[f.nodeName];if("number"!=typeof b)return null;for(var g=-1,e=f.form.elements,d=e.length,h=0,i=0;h<d;h++)if(e[h].name==f.name){if(e[h]==f){g=i;break}i++}if(0>g)return null;e=[];y(e,ia);j(e,a);j(e,c);j(e,b);xa(e,f.name||"");j(e,g);return e}function oa(a,c){var b=ba(c);if(0>b)return null;for(var g=c.elements,e=g.length,d=[],h=0;h<e;h++)if(!la(g[h])){var i=g[h][E];i&&0<i&&C(d,i)}g=[];y(g,Xa);j(g,a);j(g,b);j(g,d.length);for(b=0;b<d.length;b++)j(g,d[b]);return g}function Ma(){var a=[];y(a,$a);
return a}function fa(a){clearTimeout(Eb);for(var c=(new Date).getTime()+n;Na.length&&(a||+(new Date).getTime()<c);){var b=Na.shift();if(b=b[0].apply(d,b[1])){var g=b;6500<pa.length+g.length&&Oa();for(var b=pa,e=0,h=b.length;e<g.length;e++)b[h++]=g[e];Pa||(Pa=d.setTimeout(w(Oa),dc))}}!0===a&&Oa(!0);Na.length&&(Eb=d.setTimeout(w(fa),u))}function A(a,b,c){C(Na,[a,b]);fa(c)}function D(a){if(a[E])A(Aa,[H(),a]);else{var b=P(a);b&&D(b);a[E]=kb;Ia[kb]={};kb++;A(qa,[a]);A(Ba,[a])}}function U(a){var b=Q(a),
c,g,e=0;if(b&&"SCROLLBAR"!=b.nodeName){if(b&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(b.tagName))if(b[E])D(b);else if(c=P(b,"form")){c=c.elements;for(g=c.length;e<g;e++)/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(c[e].tagName)&&!c[e][E]&&D(c[e])}else D(b);else D(b);A(na,[H(),a.type,b,ca(a),a.which,a.button])}}function Ca(a){U(a);var c,g;d.getSelection?(a=d.getSelection(),c=a.toString(),g=a.anchorNode):b.selection&&b.selection.createRange&&(a=b.selection.createRange(),c=a.text,g=a.parentElement());for(;g&&
1!=g.nodeType;)g=g.parentNode;if(!g||!("INPUT"==g.tagName&&"password"==g.type))if((!g||!/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(g.className))&&c!=lb)lb=c,A(ea,[H(),c])}function R(a){var b=ma(),c=b-Fb;if(!(c<Gb)){var g=ca(a),e=mb[0]-g[0],d=mb[1]-g[1],e=e*e+d*d;!(0>=e)&&(!(16>e&&100>c)&&!(20>c&&256>e))&&(Fb=b,mb=g,U(a))}}function a(){O=W();var a=ma();a-Hb<Gb||10>Math.abs(O[0]-nb[0])&&10>Math.abs(O[1]-nb[1])||(Hb=a,nb=O,A(ra,[H(),O]))}function g(a){var a=Q(a),c=Math.random(),g=[a.scrollLeft,a.scrollTop];
if(a.localId){if(10>Math.abs(g[0]-Qa[a.localId][0])&&10>Math.abs(g[1]-Qa[a.localId][1]))return}else{for(;Qa[c];)c=Math.random();a.localId=c}Qa[a.localId]=g;a!==b&&(D(a),A(m,[H(),g,a]))}function c(){A(ya,[H(),N(),M()])}function e(a){A(Ma,[],!0);Oa(!0);if("beforeunload"==a.type)for(a=+new Date+50;+new Date<a;);}function h(a,c,b){a=Q(a);!("INPUT"==a.tagName&&"password"==a.type)&&!/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(a.className)&&(D(a),A(za,[H(),c,b,a]))}function i(a){var c=a.keyCode,b=$(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&Ha)19==c&&(b&~Ha)==gb&&(c=144),h(a,c,b|Ha),ob=!1,d.setTimeout(w(function(){ob=!0}),1),67==c&&(b&gb&&!(b&Ab)&&!(b&zb))&&pb()}function k(a){ob&&(!qb&&0!==a.which)&&(h(a,a.charCode||a.keyCode,$(a)),qb=!0,d.setTimeout(w(function(){qb=!1}),1))}function pb(){rb||(rb=!0,lb&&A(Ja,[H()]),d.setTimeout(w(function(){rb=!1}),1))}function sb(){Da||
(Da=!0,A(Ka,[H()]))}function Ea(){Da&&(Da=!1,A(G,[H()]))}function v(a){(!Da||a&&!a.fromElement)&&sb()}function Ib(a){a&&!a.toElement&&Ea()}function z(a){var a=Q(a),c,b,g=0;if(a&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName)){if(a[E])D(a);else if(c=P(a,"form")){c=c.elements;for(b=c.length;g<b;g++)/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(c[g].tagName)&&!c[g][E]&&D(c[g])}else D(a);A(La,[H(),a])}}function Ra(a){if((a=Q(a))&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName))D(a),A(ua,[H(),a])}function Sa(a){a=
Q(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;D(a);A(T,[H(),a,c])}}function L(a){a=Q(a);if(!/(?:^|\s)-metrika-noform(?:\s|$)/.test(a.className)&&"FORM"==a.nodeName){for(var c=a.elements,b=0;b<c.length;b++)la(c[b])||D(c[b]);A(oa,[H(),a],!0)}}function Ta(c){a();if(c.touches&&c.touches.length){var b=Q(c);if(b){D(b);for(var g=0;g<c.touches.length;g++)A(na,
[H(),"touch",b,[c.touches[g].pageX,c.touches[g].pageY],0,0])}}}function Oa(){clearTimeout(Pa);Pa=0;if(pa.length){for(var a={rn:Math.round(1E5*Math.random()),"wv-type":0,"cnt-class":o,"page-url":t().href,wmode:0,"wv-hit":I,"wv-part":ec++,"wv-check":ta(pa),"browser-info":["z",tb,"i",Ua].join(":")},c=pa,b=c.length,g=[],e=b-b%3,d,h=0;h<e;h+=3)d=(c[h]<<16)+(c[h+1]<<8)+c[h+2],C(g,V[d>>18&63],V[d>>12&63],V[d>>6&63],V[d&63]);switch(b-e){case 1:d=c[e]<<4;C(g,V[d>>6&63],V[d&63],"__");break;case 2:d=(c[e]<<
10)+(c[e+1]<<2),C(g,V[d>>12&63],V[d>>6&63],V[d&63],"_")}c={"wv-data":g.join("")};p.send("visor","webvisor",a,c);pa.length=0}}var n=100,u=200,dc=15E3,ib=20,Ob=50,Gb=10,Wb=1,Xb=2,va=3,Fa=16,Ga=4,aa=5,ia=7,ja=9,Wa=10,Xa=11,Za=12,$a=13,ab=14,ha=15,sa=17,eb=18,fb=19,ub=27,vb=28,wb=29,xb=30,Yb=32,Zb=1,ac=2,$b=4,Db=1,Sb=2,Tb=4,Bb=8,Ub=16,Cb=32,Qb=64,Vb=2,Ab=1,zb=2,gb=4,Lb=8,Ha=16,Rb={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},O=W(),S=[],hb=0;ga(0);var jb=0,Na=[],Eb,kb=1,Fb=0,mb=[0,0],Hb=0,nb=[0,0],Qa={},ob=!0,qb=!1,lb="",rb=!1,Da=!0,V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789*-".split(""),pa=[],Pa,ec=1,Nb=ma(),E="metrikaId_"+Math.random(),Ia={},Va=":submit"+Math.random();if("MetrikaPlayer"!=d.name){s(b,"mousemove",R);s(b,"click",U);s(b,"mousedown",U);s(b,"mouseup",Ca);s(d,"scroll",
a);s(d,"beforeunload",e);Jb||s(d,"unload",e);s(d,"resize",c);c();s(b,"keydown",i);s(b,"keypress",k);s(b,"copy",pb);s(b,"touchmove",Ta);s(b,"touchstart",Ta);b.attachEvent&&!d.opera?(s(b,"focusin",v),s(b,"focusout",Ib)):(s(d,"focus",sb),s(d,"blur",Ea),s(b,"blur",Ea));b.addEventListener?(b.addEventListener("scroll",g,!0),b.addEventListener("focus",z,!0),b.addEventListener("blur",Ra,!0),b.addEventListener("change",Sa,!0),b.addEventListener("submit",L,!0)):b.attachEvent&&(s(b,"focusin",z),s(b,"focusout",
Ra),function(){for(var a=b.getElementsByTagName("form"),c=0;c<a.length;c++){for(var g=a[c].getElementsByTagName("*"),e=0;e<g.length;e++)/^INPUT|SELECT|TEXTAREA$/.test(g[e].tagName)&&s(g[e],"change",Sa);s(a[c],"submit",L)}}());(function(){var a=b.getElementsByTagName("form");if(a.length)for(var c=0;c<a.length;c++){a[c][Va]=a[c].submit;a[c].submit=function(){L({target:this});return this[Va]()}}})();"0:0"!=O.join(":")&&a();var Kb=function(a,c){if(a){var g={"wv-type":1,"cnt-class":o,"page-url":t().href,
"wv-hit":I,"browser-info":["z",tb,"i",Ua,"pct",c||""].join(":")},e=2;if(b.all)a=a.replace(/\r\n/g,"\n");else{for(var e=a.replace(/\r\n/g,"\n"),d=[],h=String.fromCharCode,i=0,L=e.length;i<L;i++){var k=e.charCodeAt(i);if(k<128)d.push(h(k));else{if(k>127&&k<2048)d.push(h(k>>6|192));else{d.push(h(k>>12|224));d.push(h(k>>6&63|128))}d.push(h(k&63|128))}}for(var e=d.join(""),d=[],n,j,v,k=0,u=e.length;k<u;){n=e.charCodeAt(k++);h=e.charCodeAt(k++);i=e.charCodeAt(k++);L=n>>2;n=(n&3)<<4|h>>4;j=(h&15)<<2|i>>
6;v=i&63;isNaN(h)?j=v=64:isNaN(i)&&(v=64);d.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(L)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(n)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(j)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(v))}a=d.join("");e=3}p.sendMultipart("webvisor",g,{"wv-data":a},e)}};F.uploadPage=function(a){if(typeof d.toStaticHTML=="function")return false;
var c=b.documentElement;if(c&&(""+c.innerHTML).length>19E4)return false;var g=d.XMLHttpRequest?new d.XMLHttpRequest:new ActiveXObject("Msxml2.XMLHTTP"),e=(""+(b.characterSet||b.charset||"")).toLowerCase(),c="text/html"+(e?";charset="+e:"");if(a=="html"){e=RegExp("<script.*?//mc\\.yandex\\.ru/watch/.*?<\/script>","gi");a=bb().replace(e,"");Kb(a.replace(e,""),c);return true}if(g){g.open("get",t().href,true);g.onreadystatechange=function(){g.readyState==4&&Kb(g.responseText,g.getResponseHeader("content-type"))};
g.overrideMimeType&&e&&g.overrideMimeType(c);g.send(null)}return true}}return{stop:function(){r(b,"mousemove",R);r(b,"click",U);r(b,"mousedown",U);r(b,"mouseup",Ca);r(d,"scroll",a);r(d,"beforeunload",e);r(d,"unload",e);r(d,"resize",c);r(b,"keydown",i);r(b,"keypress",k);r(b,"copy",pb);r(b,"touchmove",Ta);r(b,"touchstart",Ta);r(b,"focusin",v);r(b,"focusout",Ib);r(d,"focus",sb);r(d,"blur",Ea);r(b,"blur",Ea);b.removeEventListener?(b.removeEventListener("scroll",g,!0),b.removeEventListener("focus",z,!0),
b.removeEventListener("blur",Ra,!0),b.removeEventListener("change",Sa,!0),b.removeEventListener("submit",L,!0)):b.detachEvent&&(r(b,"focusin",z),r(b,"focusout",Ra),function(){for(var a=b.getElementsByTagName("form"),c=0;c<a.length;c++){for(var g=a[c].getElementsByTagName("*"),e=0;e<g.length;e++)/^INPUT|SELECT|TEXTAREA$/.test(g[e].tagName)&&r(g[e],"change",Sa);r(a[c],"submit",L)}}());(function(){for(var a=b.getElementsByTagName("form"),c=0;c<a.length;c++)if(a[c][Va])a[c].submit=a[c][Va]})()},uploadPages:function(a,
c){for(var b=a.split(/\n/),g=t().href,e=/regexp:/,d=0;d<b.length;d++){var h=b[d];if(h)if(e.test(h)){if(h=yb(h.replace(e,"")),RegExp(h).test(g)){F.uploadPage(c);break}}else if(-1!==g.indexOf(h)){F.uploadPage(c);break}}}}}var ub=!1,Jb=-1===(""+d.navigator.userAgent).toLowerCase().search(/webkit/)&&-1!==(""+d.navigator.userAgent).toLowerCase().search(/gecko/);d.Ya=d.Ya||{};Ya._metrika=Ya._metrika||{};Ya._metrika.hitParam=Ya._metrika.hitParam||{};var vb=!1,N=t(),tb,Ua,W=d.navigator,Y=d.screen,va="https:"==
N.protocol?"https:":"http:",wb="$Rev: 1825 $".match(/(\d+)/)[1],Z="object"==typeof b.all,Wa=64,$=Z?512:2048,Xa=Z?512:2048,Za=Z?100:400,ga="noindex",qa=50,$a=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"),xb=+new Date,ab="_ym_visorc",Fa,ra;d.Ya.Metrika=function(x,o,q,I){function p(a,b,c){T[T.length]=[c,c];a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent&&a.attachEvent("on"+b,c)}function F(a,b,c){for(var e=0;e<T.length;e++)if(T[e]&&T[e][0]==c){var d=T[e][1];delete T[e];break}d&&(a.removeEventListener?a.removeEventListener(b,d,!1):a.detachEvent&&a.detachEvent("on"+b,d))}function w(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 J(a){function b(a){return a?a.replace(/\\/g,"\\\\").replace(/"/g,'\\"'):""}if(a===X)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]=J(a[e]);return"["+c.join(",")+"]";case Object:c="{";e=0;for(d in a)if(a.hasOwnProperty(d)){var i=a[d];i!==X&&(c+=(e?",":"")+'"'+b(d)+'":'+J(i),e++)}return c+"}";default:return"null"}}
function M(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 aa(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 ia(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?!1:a}function ja(a,b){return(a?a.replace(/^www\./,""):"")==(b?b.replace(/^www\./,""):"")?!0:!1}function P(a,b){function c(a){a=a.split(":");a=a[1]||"";a=a.replace(/^\/*/,"").replace(/^www\./,"");return a.split("/")[0]}return!a||!b?!a&&
!b?!0:!1:c(a)==c(b)?!0:!1}function ha(a,b){var c=b.target,e=!1;if(!b.hostname)return!1;if(!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 K(a,b,c,e,h){function i(a,c){k[k.length]=a;k[k.length]=c}var h=h||{},c="undefined"!=typeof c?c:ea,k=[];h.ar&&!h.onlyData&&(c=ba(c),a=ba(a));i("page-ref",w(c,$));i("page-url",w(a,$));i("browser-info",
s(b,h));-1!=t().hostname.search(/(?:^|\.)(?:ya|yandex|narod|narod2)\.(?:\w+|com\.\w+)$/)?i("ut",ga):"undefined"!=typeof h.ut&&i("ut",w(""+h.ut,Wa));e&&i("site-info",w(J(e),Xa));h.saveRef&&(ea=c);a=ka(La,k);"MetrikaPlayer"!=d.name&&((new Image).src=a,la(a),h.isDelay&&M(h.delay));return a}function sa(a,g,c,e,h,i,k){function j(a,c){m[m.length]=a;m[m.length]=c}var h=h||{},c="undefined"!=typeof c?c:ea,m=[];h.ar&&!h.onlyData&&(c=ba(c),a=ba(a));if("MetrikaPlayer"!=d.name){var q="_ymjsp"+Math.floor(1E6*Math.random()),
v=b.createElement("script");d[q]=function(a){try{delete d[q]}catch(c){d[q]=X}k(a);v.parentNode&&v.parentNode.removeChild(v)};j("wmode",5);j("callback",q);j("page-ref",w(c,$));j("page-url",w(a,$));a=s(g,h);i&&(a=["vc",i,a].join(":"));j("browser-info",a);-1!=t().hostname.search(/(?:^|\.)(?:ya|yandex|narod|narod2)\.(?:\w+|com\.\w+)$/)?j("ut",ga):"undefined"!=typeof h.ut&&j("ut",w(""+h.ut,Wa));e&&j("site-info",w(J(e),Xa));h.saveRef&&(ea=c);e=ka(La,m);v.type="text/javascript";v.src=e;h=b.getElementsByTagName("head")[0];
h.insertBefore(v,h.firstChild);la(e)}}function ka(a,b){for(var c=["rn",Math.floor(1E6*Math.random()),"cnt-class",q].concat(b),e=[],d=0;d<c.length;d+=2){var i=c[d+1];i&&(e[e.length]=c[d]+"="+i)}return va+a+x+"?"+e.join("&")}function ba(a){var b=t(),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 la(a){"function"==typeof d.ymLog&&d.ymLog(a)}function s(a,g){function c(a,c){a&&c&&(h[h.length]=[a,c].join(":"))}function e(a){c(a,g[a]?"1":"")}var g=g||{},h=[],i=-1*(new Date).getTimezoneOffset(),k=bb();Ua||(Ua=k,tb=i);c("j",W.javaEnabled()?"1":"");Y&&c("s",Y.width+"x"+Y.height+"x"+(Y.colorDepth||Y.pixelDepth));null===Aa&&(Aa=r());c("f",Aa);c("w",Mb()+"x"+ma());c("z",i);c("i",k);null===Ba&&(Ba=Q());c("l",Ba||"");
c("en",(""+(b.characterSet||b.charset||"")).toLowerCase());c("v",wb);c("c",W.cookieEnabled?"1":"");Z&&b.documentMode&&(null===oa&&(oa=Function("return /*@cc_on @_jscript_version @*/;")()),oa&&c("jv",oa));c("la",(W&&(W.language||W.browserLanguage)||"").toLowerCase());c("ex","prerender"==b.webkitVisibilityState?"pre1":"");R&&c("wh","1");k="ar ln dl ad nb pa".split(" ");for(i=0;i<k.length;i++)e(k[i]);k=["va","vt","sn","sa","he"];g.nb&&k.push("cl");for(i=0;i<k.length;i++){var j=k[i];c(j,g[j])}c("hid",
ya);g.ar||c("ds",H());if(m._webvisor){d.name||(d.name=Math.round(65535*Math.random()));if(i=+d.name)0>i&&(i*=-1),i%=65535;c("wn",i||ta(d.name));try{d.history&&c("hl",""+d.history.length)}catch(q){}}i="undefined"==typeof a?(i=ca())?w(i,Za):"":w(a,Za);c("t",i);return h.join(":")}function r(){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)&&!("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{if(c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))(a=c.GetVariable("$version"))&&(b=a.split(" ")[1].replace(/,/g,".").replace(/[^.\d]/g,""))}catch(h){}return b}function ca(){var a=b.title;"string"!=typeof a&&(a=(a=b.getElementsByTagName("title"))&&a.length?a[0].innerHTML:"");return a}function Q(){var a=null;if(d.ActiveXObject)try{var b=
new ActiveXObject("AgControl.AgControl"),c=function(a,b,c,e){for(;a.isVersionSupported(b[0]+"."+b[1]+"."+b[2]+"."+b[3]);)b[c]+=e;b[c]-=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(h){}else if(b=W.plugins["Silverlight Plug-In"])a=b.description;return a}function bb(){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 Mb(){var a=-1;b.documentElement&&"CSS1Compat"==b.compatMode?a=b.documentElement.clientWidth:b.body&&(a=b.body.clientWidth);return a}function ma(){var a=-1;b.documentElement&&"CSS1Compat"==b.compatMode?a=b.documentElement.clientHeight:b.body&&(a=b.body.clientHeight);return a}function H(){var a=d.performance||d.webkitPerformance;if(a=a&&a.timing){var b=a.navigationStart;if(b){var c=[a.domainLookupEnd-a.domainLookupStart,a.connectEnd-a.connectStart,a.responseStart-a.requestStart,
a.responseEnd-a.responseStart,a.fetchStart-b];a.loadEventStart&&c.push(a.loadEventStart-b);return c.join(",")}}return""}function da(){Ya._metrika.counters=Ya._metrika.counters||{};var a=!1,g=x+":"+q;if(Ya._metrika.hitParam[g])if(1==q&&!Ya._metrika.counters[g])a=!0;else return!1;Ya._metrika.counters[g]=m;Ya._metrika.hitParam[g]=1;m._webvisor=!I&&(G&&G.webvisor||ub||vb);G&&G.trackHash&&m.trackHash(!0);if(!I&&!a){var c=Ga(ab);"b"!=c&&"w"!=c&&(c="");eb()||(c="b");Fa=+new Date;sa(N.href,ca(),b.referrer,
o,{ut:za,he:G?~~G.httpError:0,ad:1==q&&d.Ya&&d.Ya.Direct?!0:!1,saveRef:!0},c,function(a){ra||(ra=+new Date);var a=a||{},b=a.webvisor||{},a=[];if(fa){var d=+b.recp;if(!isFinite(d)||0>d||1<d)c="w";c||(c=ya%1E4/1E4<d?"w":"b");ua(ab,c,30);"w"==c?(C(a,"visor"),d=b.arch_type,(b=b.urls)&&d&&fa.uploadPages(b,d)):fa.stop()}Ma.init(a)})}j();G&&(G.enableAll?m.enableAll():(G.clickmap&&m.clickmap(G.clickmap),G.trackLinks&&m.trackLinks(G.trackLinks),G.accurateTrackBounce&&m.accurateTrackBounce(G.accurateTrackBounce)));
m._webvisor&&(fa=new fb(x,q,G,ya,Ma,m))}function y(a){var b={delay:qa};switch(typeof a){case "string":b.on=!0;break;case "object":b.on=!0;b.delay="number"!=typeof a.delay?qa:a.delay;break;case "boolean":b.on=a;break;default:return}A=b}function j(){y(!1);p(b,"click",function(a){A.on&&wa(a)})}function wa(a){function b(a){var e=yb(c.innerHTML?c.innerHTML.toString().replace(/<\/?[^>]+>/gi,""):"");K(d,d==e?"":e,t().href,null,a)}var c=ia(a);if(c){var e=!1,d=""+c.href,i=d?d.split(/\?/)[0]:"";if($a.test(i)||
$a.test(d)||aa(d,D)||aa(i,D))e=!0;var k=c.className,i=k&&-1!=k.search(/ym-disable-tracklink/)?!0:!1,k=k&&-1!=k.search(/ym-external-link/)?!0:!1;i||(a={ln:!0,dl:e,isDelay:ha(a,c),delay:A.delay},k?b(a):ja(t().hostname,c.hostname)?e&&(a.ln=!1,b(a)):d&&-1!=d.search(/^ *javascript:/i)||(a.ut=ga,b(a)))}}function xa(a,g){function c(){if(!t){v&&clearTimeout(v);var b=g,c;c=j?m:m+ +new Date-q;b-=c;0>b&&(b=0);v=setTimeout(function(){t=!0;h(!1);a()},b)}}function e(){k||(i=!0,j=!1,k=!0,c())}function h(a){for(var b=
0;b<z.length;b+=3)a?p(z[b],z[b+1],z[b+2]):F(z[b],z[b+1],z[b+2])}var i=!1,k=!1,j=!0,m=0,q=+new Date,v=null,t=!1,z=[d,"blur",function(){j=i=k=!0;m+=+new Date-q;q=+new Date;c()},d,"focus",function(){!i&&!k&&(m=0);q=+new Date;i=k=!0;j=!1;c()},b,"click",e,b,"mousemove",e,b,"keydown",e,b,"scroll",e];h(!0);c()}function Pb(a){function b(){var a=t().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 h(){var d=b();d!==c&&(a(),c=d);
Ca=setTimeout(h,200)})()}function na(){Ka=ea=Ja;K(t().href,ca(),Ka,null,{ut:za,ad:1==q&&d.Ya&&d.Ya.Direct?!0:!1,wh:!0,saveRef:!0});Ja=t().href}function bc(a){function g(){var a=b.documentElement;return Math.max(a.scrollWidth,b.body.scrollWidth,a.clientWidth)}function c(a){function c(a){var a=a.getBoundingClientRect(),e=b.body,g=b.documentElement,h=a.left+(d.pageXOffset||g.scrollLeft||e.scrollLeft)-(g.clientLeft||e.clientLeft||0);return{top:Math.round(a.top+(d.pageYOffset||g.scrollTop||e.scrollTop)-
(g.clientTop||e.clientTop||0)),left:Math.round(h)}}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 h(a){return a&&(a=""+a.className)&&-1!=a.search(/ym-clickmap-ignore/)?!0:!1}function i(a){if(null==a.pageX&&null!=a.clientX){var c=b.documentElement,e=b.body;a.pageX=a.clientX+(c&&c.scrollLeft||e&&e.scrollLeft||0)-(c.clientLeft||0);a.pageY=
a.clientY+(c&&c.scrollTop||e&&e.scrollTop||0)-(c.clientTop||0)}return{x:a.pageX,y:a.pageY}}function k(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 j=this,m=0,q=null,v="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(" "),
o=59,z=String.fromCharCode,y={},s=0;s<v.length;s++)y[v[s]]=z(o),z(o),o++;this.handler=function(a){var v=b.getElementsByTagName("body")[0];if(!d.ymDisabledClickmap&&!h(v)){if(j._prefs.hasQuota){if(!j._prefs.quota)return;j._prefs.quota--}var p=a.target||a.srcElement;3==p.nodeType&&(p=p.parentNode);var v=e(p.nodeName),n=i(a),u;!a.which&&a.button!==X&&(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"!=v))if(u=p.offsetHeight,u=!(0===p.offsetWidth&&0===u||p.style&&"none"===
p.style.display)){b:{for(u=p;u.parentNode;){if(h(u)){u=!0;break b}u=u.parentNode}u=!1}if(u=!u){b:{u=j._prefs.ignoreTags;for(var z=0;z<u.length;z++)if(e(u[z])==e(v)){u=!0;break b}u=!1}u=!u&&j._prefs.filter(p,v)}}if(u){v=+new Date;p={dom:p,x:n.x,y:n.y,time:v};if(n=50<v-m)if(!(n=!j._prefs.ignoreSameClicks)){if(n=q){u=Math.abs(n.x-p.x);var z=Math.abs(n.y-p.y),o=p.time-n.time,n=n.dom==p.dom&&2>u&&2>z&&1E3>o?!0:!1}else n=!1;n=!n}if(n&&"MetrikaPlayer"!=d.name){u=i(a);n=u.x;u=u.y;var o=a.target||a.srcElement,
s=j._prefs,x=c(o),r="",z=t().href;switch(s.mode){case "fixed":r="0";k(o)&&(r+="u");break;case "centered":r="1";x=Math.floor(g()/2);n=n>x?n-x+32768:n;k(o)&&(r+="u");break;default:r=e(o.nodeName);r="BODY"==r||"HTML"==r?g():o.offsetWidth;s=e(o.nodeName);"BODY"==s||"HTML"==s?(s=b.documentElement,s=Math.max(s.scrollHeight,b.body.scrollHeight,s.clientHeight)):s=o.offsetHeight;r||(r=1);s||(s=1);n=Math.floor(65535*(n-x.left)/r);u=Math.floor(65535*(u-x.top)/s);for(x="";o.parentNode&&"BODY"!=e(o.nodeName)&&
"HTML"!=e(o.nodeName);){x+=y[o.nodeName]||"*";b:{for(var r=o.parentNode,A=s=0;A<r.childNodes.length;A++)if(o.nodeName==r.childNodes[A].nodeName){if(o==r.childNodes[A]){r=s;break b}s++}r=0}x+=r||"";o=o.parentNode}r=w(x,128)}R||(z=z?z.replace(/\#.*$/,""):z);"function"==typeof j._prefs.urlFilter&&(z=j._prefs.urlFilter(z));n=ka(cc,["page-url",w(z,$),"pointer-click","x:"+n+":y:"+u+":t:"+Math.floor(Math.floor(+new Date-xb)/100)+":p:"+r]);(new Image).src=n;la(n);if(n=a.target||a.srcElement){3==n.nodeType&&
(n=n.parentNode);for(u=e(n.nodeName);n.parentNode&&n.parentNode.nodeName&&("A"!=u&&"AREA"!=u||!n.href);)n=n.parentNode,u=e(n.nodeName);n=!n.href?!1:n}else n=!1;n&&ha(a,n)&&M(j._prefs.delay)}m=v;q=p}}};this.setPrefs=function(a){function b(){return!0}this._prefs="undefined"==typeof a||!1===a||!0===a?{filter:b,ignoreTags:[],mode:"",delay:qa,quota:0,hasQuota:!1,ignoreSameClicks:!0}:{filter:a.filter||b,ignoreTags:a.ignoreTags||[],mode:a.mode||"",delay:"undefined"==typeof a.delay?qa: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||p(b,"click",this.handler);this._start=!0};this.stop=function(){this._start&&F(b,"click",this.handler);this._start=!1};this.start(a)}var m=this,ya=Math.round(1073741824*
Math.random()),za="",ea=N.href,Ja=N.href,Ka="";Ya._metrika.counter||(Ya._metrika.counter=m);var G;"object"==typeof x&&(G=x,I=x.defer,za=x.ut,q=x.type,o=x.params,x=x.id);var x=x||0,q=q||0,La="//mc.yandex.ru/watch/",cc="//mc.yandex.ru/clmap/",T=[],Aa=null,Ba=null,oa=null,Ma=new function(a,g){function c(a,b,c){if(j)e(j,h(a,b,0),c,"application/x-www-form-urlencoded");else{if("XMLHttpRequest"in d){var g=new XMLHttpRequest;if("withCredentials"in g){var i=c?"POST":"GET",a=h(a,b,i=="POST"?1:0);g.open(i,a,
true);g.withCredentials=true;i=="POST"&&!Jb&&g.setRequestHeader("Content-Type","application/x-www-form-urlencoded");g.send(i=="POST"?db(c):null);return}}for(i in c)c.hasOwnProperty(i)&&(b[i]=c[i]);(new Image).src=h(a,b,0)}}function e(a,b,c,e){var d="ifr"+Math.round(Math.random()*1E10),g=a.createElement("div");g.style.position="absolute";g.style.left="-99999px";g.style.top="-99999px";var b=['<iframe name="',d,'"></iframe>','<form action="',b,'" method="post" target="',d,'" enctype="',e,'">'],h;for(h in c)c.hasOwnProperty(h)&&
C(b,'<textarea name="',h,'"></textarea>');C(b,"</form>");g.innerHTML=b.join("");a.body.appendChild(g);h=g.getElementsByTagName("form")[0];for(var i in c)if(c.hasOwnProperty(i))h[i].value=c[i];h.submit();setTimeout(function(){a.body.removeChild(g)},1E4)}function h(b,c,e){c["browser-info"]=["ct",e,c["browser-info"]].join(":");return"//"+a+"/"+b+"/"+g+"?"+db(c)}function i(){if(d.ActiveXObject){var a=new ActiveXObject("htmlfile");a.open();a.write("<html><body></body></html>");a.close();return a}return null}
try{var j=i()}catch(p){}var m="",o=[];return{send:function(a,b,e,d){a?m?m.indexOf("|"+a+"|")>-1&&c(b,e,d):C(o,arguments):c(b,e,d)},sendMultipart:function(a,c,d,g){e(j||b,h(a,c,g),d,"multipart/form-data")},init:function(a){m="|"+a.join("|")+"|";for(a=0;a<o.length;a++)m.indexOf("|"+o[a][0]+"|")>-1&&c(o[a][1],o[a][2],o[a][3]);o.length=0}}}("mc.yandex.ru",x),fa;m.reachGoal=function(a,d){var c=a?"goal://"+t().hostname+"/"+a:t().href,e=ca(),h=a?t().href:b.referrer;K(c,e,h,d,{ar:true,isDelay:a?true:false,
delay:100});return true};var A;m.trackLinks=y;m.hit=function(a,b,c,e,d){a&&K(a,b,c,e,{ut:d,ar:true,saveRef:true})};m.params=function(a){if(a){var b=arguments.length;if(b>1){for(var c={},e=c,d=0;d<b-1;d++){var i=""+arguments[d];e[i]={};d<b-2&&(e=e[i])}e[i]=arguments[b-1];a=c}K("","","",a,{ar:true,pa:true,onlyData:true})}};m.file=function(a,b,c,d){a&&K(a,"",t().href,d,{ar:true,ln:true,dl:true})};m.extLink=function(a,b,c,d){a&&K(a,"",t().href,d,{ar:true,ln:true,ut:ga})};m.notBounce=function(){var a=
0;Fa&&ra&&(a=ra-Fa);K("","","",null,{cl:a,ar:true,nb:true,onlyData:true})};var D=[];m.addFileExtension=function(a){typeof a=="string"?D.push(a):D=D.concat(a)};m.clickmap=function(a){m._clickmap?m._clickmap.updateStatus(a):m._clickmap=new bc(a)};var U=!1;m.accurateTrackBounce=function(a){function d(){m.notBounce()}if(!U){U=true;if(!P(b.referrer,t().href)){typeof a!="number"&&(a=15E3);Z?setTimeout(d,a):xa(d,a)}}};var Ca=null,R=!1;m.trackHash=function(a){if(a===false){if(R){"onhashchange"in d?F(d,"hashchange",
na):clearInterval(Ca);R=false}}else if(!R){"onhashchange"in d?p(d,"hashchange",na):Pb(na);R=true}m._trackHash=R};m.video=function(a,b,c,d){var h=["end","play","pause","seek"];if(a&&c){a:{for(var i=0,j=h.length;i<j;i=i+1)if(a===h[i]){h=i;break a}h=false}h!==false&&K(c,d||"","",null,{ar:true,va:a,vt:~~b})}};m.social=function(a,b,c){a&&b&&K(c||t().href,"","",null,{ar:true,sn:w(a,64),sa:w(b,64)})};m.enableAll=function(){m.trackLinks(true);m.clickmap(true);m.accurateTrackBounce()};m.pause=M;m.uploadPage=
function(){};x&&da()};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 M=d.yandex_metrika_callback,I=d.yandex_metrika_callbacks;"function"==typeof M&&M();if("object"==typeof I)for(M=0;M<I.length;M++){var ha=I[M];ha&&(I[M]=null,ha())}aa("yandex_metrika_callback");aa("yandex_metrika_callbacks");I=N.href;-1!=I.search("ym_playback=linkmap")?ja("linkmap"):-1!=I.search("ym_playback=clickmap")&&
ja("clickmap");d.Ya.Metrika.informer=function(b){var d=!!Ya.Metrika._informer;Ya.Metrika._informer=b;d||ia(va+"//bs.yandex.ru/metrika/informer.js")};if(top!=d&&parent==top&&d.postMessage&&!Ya.Metrika_visorPlayerOn){Ya.Metrika_visorPlayerOn=!0;I=b.createElement("div");I.innerHTML='<iframe name="RemoteIframe" allowtransparency="true" style="position: absolute; left: -999px; top: -999px; width: 1px; height: 1px;"></iframe>';var sa=I.firstChild;setTimeout(function(){var d=b.body||b.documentElement;d.insertBefore(sa,
d.firstChild);try{var o=sa.contentWindow.document}catch(q){}if(o){o.open();o.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);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) {}<\/script></body></html>');
o.close()}},500)}})(this,this.document);
