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