(function(f,b,ka){function ab(b){var f=[],j;for(j in b)b.hasOwnProperty(j)&&(f[f.length]=j+"="+encodeURIComponent(b[j]));return f.join("&")}function G(b){for(var f=1,j=b.length;f<arguments.length;f++)b[j++]=arguments[f];return b.length}function Ha(b,f){for(var j=0,z=b.length;j<f.length;j++)b[z++]=f[j]}function la(b){for(var f="string"==typeof b?function(f){return b.charCodeAt(f)}:function(f){return b[f]},j=b.length,z=0,n=255,x=255;j;){var C=21<j?21:j,j=j-C;do{var p=f(z++);if(255<p)var G=p>>8,p=p&
255,p=p^G;n+=p;x+=n}while(--C);n=(n&255)+(n>>8);x=(x&255)+(x>>8)}f=(n&255)+(n>>8)<<8|(x&255)+(x>>8);return 65535==f?0:f}function ua(f,p,j,z){var n="";j&&(n=new Date,n.setTime(n.getTime()+6E4*j),n=";expires="+n.toGMTString());b.cookie=f+"="+p+n+";path="+(z||"/")}function Ia(f){return b.cookie.match(RegExp("(?:^|;\\s*)"+f+"=([^;]*)"))?RegExp.$1:null}function bb(){ua("_metrika_enabled","1",60);var b=!!Ia("_metrika_enabled");ua("_metrika_enabled","",-1);return b}function p(){for(var b={},p="hash,host,hostname,href,pathname,port,protocol,search".split(","),
j=p.length,z=j;z--;)b[p[z]]="";try{for(var n=f.location,z=j;z--;){var x=p[z];b[x]=n[x]}}catch(C){R&&(b=R)}return b}function Y(b){try{delete f[b]}catch(p){f[b]=ka}}function ba(f){var p=b.createElement("script");p.type="text/javascript";p.async=p.defer=!0;p.src=f;try{var j=b.getElementsByTagName("html")[0];b.getElementsByTagName("head")[0]||j.appendChild(b.createElement("head"));var z=b.getElementsByTagName("head")[0];z.insertBefore(p,z.firstChild)}catch(n){}}function ma(b){ba(va+"//metrika.yandex.ru/js/"+
b+"/_loader.js")}function cb(B,I,j,z,n){function x(c){return function(){try{return c.apply(this,arguments)}catch(i){(new Image).src="//an.yandex.ru/jserr/"+B+"?"+ab({"cnt-class":100+I,errmsg:i.message+"--"+(c.toString().match(/function\s([^(]*)/)||{1:""})[1]})}}}function C(){return"CSS1Compat"==b.compatMode?b.documentElement:b.body}function R(){var c=C();return[c.clientWidth,c.clientHeight]}function L(){var c=C(),i=R();return[Math.max(c.scrollWidth,i[0]),Math.max(c.scrollHeight,i[1])]}function X(){return[f.pageXOffset||
b.documentElement.scrollLeft||b.body.scrollLeft||0,f.pageYOffset||b.documentElement.scrollTop||b.body.scrollTop||0]}function Z(c){if(!c.ownerDocument||"PARAM"==c.tagName||c==b.body||c==b.documentElement)return[0,0];if(c.getBoundingClientRect)return c=c.getBoundingClientRect(),[Math.round(c.left+S[0]),Math.round(c.top+S[1])];for(var i=0,na=0;c;)i+=c.offsetLeft,na+=c.offsetTop,c=c.offsetParent;return[i,na]}function ca(c){return c==b.documentElement?null:c==b.body?b.documentElement:c.parentNode}function $(c,
i){var na=[];if(c)for(var a=c.childNodes,b=0,d=a.length;b<d;b++){var e=a[b];!("INPUT"==e.nodeName&&e.type&&"hidden"==e.type.toLocaleLowerCase())&&(!i||e.nodeName==i)&&G(na,e)}return na}function oa(c){var i=Z(c),c=c==b.body||c==b.documentElement?L():[c.offsetWidth,c.offsetHeight];return[i[0],i[1],c[0],c[1]]}function P(c){for(var i="",c=c.childNodes,a=0,b=c.length;a<b;a++)3==c[a].nodeType&&(i+=c[a].nodeValue);return la(i.replace(/[\u0000-\u0020]+/g,""))}function aa(c){var i="",a="className,width,height,align,title,alt,name".split(",");
"IMG"==c.tagName&&(i+=c.src.toLowerCase());"A"==c.tagName&&(i+=c.href.toLowerCase());for(var b=0;b<a.length;b++)i+=(""+(c.getAttribute(a[b])||"")).toLowerCase();return la(i.replace(/[\u0000-\u0020]+/g,""))}function pa(c){for(var i=b.getElementsByTagName("form"),a=0,d=i.length;a<d;a++)if(i[a]==c)return a;return-1}function da(c){return"INPUT"==c.nodeName&&"submit"!=c.type&&"image"!=c.type&&"hidden"!=c.type?"radio"==c.type||"checkbox"==c.type?!c.checked:!c.value:"TEXTAREA"==c.nodeName?!c.value:"SELECT"==
c.nodeName?0>c.selectedIndex:!0}function w(c,i,a){var b=x(function(c){return a(c||f.event)});T[T.length]=[c,i,a,b];c.addEventListener?c.addEventListener(i,b,!0):c.attachEvent&&c.attachEvent("on"+i,b)}function v(c,i,a){for(var b=0;b<T.length;b++)if(T[b]&&T[b][0]==c&&T[b][1]==i&&T[b][2]==a){var d=T[b][3];delete T[b];break}d&&(c.removeEventListener?c.removeEventListener(i,d,!0):c.detachEvent&&c.detachEvent("on"+i,d))}function ia(c){var i=C();return[c.pageX||c.clientX+S[0]-(i.clientLeft||0)||0,c.pageY||
c.clientY+S[1]-(i.clientTop||0)||0]}function U(c){return c.target||c.srcElement}function ea(c){return(c.shiftKey?xb:0)|(c.ctrlKey?db:0)|(c.altKey?yb:0)|(c.metaKey?Jb:0)|(c.ctrlKey||c.altKey?Ja:0)}function ja(c){var i=(new Date).getTime();c&&i<c&&(eb+=c-i+fb);f.setTimeout(x(function(){ja(i)}),fb)}function qa(){var c=(new Date).getTime()+eb;c<gb&&(c=gb+fb/2);return gb=c}function H(){return Math.round((qa()-Lb)/Ia)}function fa(c,i){i=Math.max(0,Math.min(i,65535));G(c,i>>8,i&255)}function o(c,i){G(c,
i&255)}function g(c,i){for(i=Math.max(0,i|0);127<i;)G(c,i&127|128),i>>=7;G(c,i)}function wa(c,i){255<i.length&&(i=i.substr(0,255));G(c,i.length);for(var a=0;a<i.length;a++)fa(c,i.charCodeAt(a))}function xa(c,i){g(c,i.length);for(var a=0;a<i.length;a++)g(c,i.charCodeAt(a))}function ua(c){if(!c.nodeName)return c[J]=-1,null;var i=Number(c[J]);if(!isFinite(i)||0>=i)return null;var a=Nb,b=0,d=ca(c),e=d&&d[J]?d[J]:0;0>e&&(e=0);var h=c.nodeName.toUpperCase(),f=Ob[h];f||(a|=Pb);var l;a:{l=$(ca(c),c.nodeName);
for(var u=0;u<l.length;u++)if(l[u]==c){l=u;break a}l=0}l||(a|=Qb);u=oa(c);(d=d?oa(d):null)&&u[0]==d[0]&&u[1]==d[1]&&u[2]==d[2]&&u[3]==d[3]&&(a|=zb);Ka[i].pos=u[0]+"x"+u[1];Ka[i].size=u[2]+"x"+u[3];c.id&&"string"==typeof c.id&&(a|=Ab);(d=P(c))&&(a|=Rb);var r=aa(c);r&&(b|=Sb);var k;a:{k=$(ca(c),c.tagName);for(var F=0;F<k.length;F++)if(!(k[F].id&&"string"==typeof k[F].id)&&aa(k[F])==r&&P(k[F])==d){k=!0;break a}k=!1}if(k)var a=a|Bb,q=la((c.innerHTML||"").replace(/(<[^>]*>|[\u0000-\u0020])/g,""));k=[];
o(k,ba);g(k,i);o(k,a);g(k,e);f?o(k,f):wa(k,h);l&&g(k,l);a&zb||(g(k,u[0]),g(k,u[1]),g(k,u[2]),g(k,u[3]));a&Ab&&wa(k,c.id);d&&fa(k,d);a&Bb&&fa(k,q);o(k,b);r&&fa(k,r);return k}function La(c,a,b,d,e,h){for(;b&&(!b.offsetWidth||!b.offsetHeight);)b=ca(b);if(!b)return null;var f=b[J];if(!f||0>f)return null;var l={mousemove:ma,click:Tb,mousedown:Wa,mouseup:Ub,touch:bb}[a];if(!l)return null;var u=Z(b),b=[];o(b,l);g(b,c);g(b,f);g(b,Math.max(0,d[0]-u[0]));g(b,Math.max(0,d[1]-u[1]));/^mouse(up|down)|click$/.test(a)&&
(c=e||h,o(b,2>c?Vb:c==(e?2:4)?Wb:Xb));return b}function ya(c,a){var b=[];o(b,Va);g(b,c);g(b,a[0]);g(b,a[1]);return b}function va(c,a,b){var d=[];o(d,Zb);g(d,c);g(d,a[0]);g(d,a[1]);g(d,b[0]);g(d,b[1]);return d}function m(c,a,b,d){var e=[];o(e,Xa);g(e,c);fa(e,a);o(e,b);c=d[J];if(!c||0>c)c=0;g(e,c);return e}function za(c,a){var b,d;0==a.length?d=b="":100>=a.length?(b=a,d=""):200>=a.length?(b=a.substr(0,100),d=a.substr(100)):(b=a.substr(0,97),d=a.substr(a.length-97));var e=[];o(e,$b);g(e,c);xa(e,b);xa(e,
d);return e}function Aa(c){var a=[];o(a,ac);g(a,c);return a}function ga(c){var a=[];o(a,cb);g(a,c);return a}function Ma(c){var a=[];o(a,tb);g(a,c);return a}function Na(c,a){var b=[];o(b,ub);g(b,c);g(b,a[J]);return b}function K(c,a){var b=[];o(b,vb);g(b,c);g(b,a[J]);return b}function Oa(c,a,b){var d=[];o(d,wb);g(d,c);g(d,a[J]);wa(d,""+b);return d}function hb(c,a,b){if(b=Cb(b)){b.shift();a=q(a);a.shift();Ha(a,b);b=[];o(b,bc);g(b,c);g(b,a.length);for(c=0;c<a.length;c++)o(b,a[c]);return b}return null}
function V(c,a){var b=a[J];if(0<b){var d=[],e=oa(a),h=Ka[b],f=e[0]+"x"+e[1],l=e[2]+"x"+e[3];if(f!=h.pos)h.pos=f,o(d,$a),g(d,c),g(d,b),g(d,e[0]),g(d,e[1]);if(l!=h.size)h.size=l,o(d,sa),g(d,c),g(d,b),g(d,e[2]),g(d,e[3]);if(d.length)return d}return null}function Ba(c){var a=c[J];if(!a||0>a||!/^INPUT|SELECT|TEXTAREA$/.test(c.nodeName)||!c.form||/(?:^|\s)-metrika-noform(?:\s|$)/.test(c.form.className))return null;var b=pa(c.form);if(0>b)return null;var d;d="INPUT"==c.nodeName?{text:0,password:2,radio:3,
checkbox:4,file:6,image:7}[c.type]:{SELECT:1,TEXTAREA:5}[c.nodeName];if("number"!=typeof d)return null;for(var e=-1,h=c.form.elements,f=h.length,l=0,u=0;l<f;l++)if(h[l].name==c.name){if(h[l]==c){e=u;break}u++}if(0>e)return null;h=[];o(h,Za);g(h,a);g(h,b);g(h,d);xa(h,c.name||"");g(h,e);return h}function Ca(c,a){var b=pa(a);if(0>b)return null;for(var d=a.elements,e=d.length,h=[],f=0;f<e;f++)if(!da(d[f])){var l=d[f][J];l&&0<l&&G(h,l)}d=[];o(d,ta);g(d,c);g(d,b);g(d,h.length);for(b=0;b<h.length;b++)g(d,
h[b]);return d}function ha(c){clearTimeout(Db);for(var a=(new Date).getTime()+cc;Pa.length&&(c||+(new Date).getTime()<a);){var b=Pa.shift();if(b=b[0].apply(f,b[1]))6500<ra.length+b.length&&Qa(),Ha(ra,b),Ra||(Ra=f.setTimeout(x(Qa),y))}!0===c&&Qa(!0);Pa.length&&(Db=f.setTimeout(x(ha),dc))}function D(c,a,b){G(Pa,[c,a]);ha(b)}function M(c){if(c[J])D(V,[H(),c]);else{var a=ca(c);a&&M(a);c[J]=ib;Ka[ib]={};ib++;D(ua,[c]);D(Ba,[c])}}function N(c){var a=U(c);a&&"SCROLLBAR"!=a.nodeName&&(M(a),D(La,[H(),c.type,
a,ia(c),c.which,c.button]))}function Da(c){N(c);var a,d;if(f.getSelection)c=f.getSelection(),a=c.toString(),d=c.anchorNode;else if(b.selection&&b.selection.createRange)c=b.selection.createRange(),a=c.text,d=c.parentElement();for(;d&&1!=d.nodeType;)d=d.parentNode;if(!(d&&"INPUT"==d.tagName&&"password"==d.type||d&&/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(d.className))&&a!=jb)jb=a,D(za,[H(),a])}function Ea(c){var a=qa(),b=a-Eb;if(!(b<Y)){var d=ia(c),e=kb[0]-d[0],h=kb[1]-d[1],e=e*e+h*h;if(!(0>=e||16>e&&
100>b)&&!(20>b&&256>e))Eb=a,kb=d,N(c)}}function O(){S=X();var c=qa();c-Fb<Y||10>Math.abs(S[0]-lb[0])&&10>Math.abs(S[1]-lb[1])||(Fb=c,lb=S,D(ya,[H(),S]))}function a(){D(va,[H(),R(),L()])}function h(){Qa(!0)}function d(c,a,b){c=U(c);"INPUT"==c.tagName&&"password"==c.type||/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(c.className)||(M(c),D(m,[H(),a,b,c]))}function e(c){var a=c.keyCode,b=ea(c);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}[a]||112<=a&&123>=a||96<=a&&105>=a||b&Ja)19==a&&(b&~Ja)==db&&(a=144),d(c,a,b|Ja),mb=!1,67==a&&b&db&&!(b&yb)&&!(b&xb)&&F()}function l(){mb=!0}function r(c){mb&&!nb&&(d(c,c.charCode||c.keyCode,ea(c)),nb=!0,f.setTimeout(x(function(){nb=!1}),1))}function F(){ob||(ob=!0,jb&&D(Aa,[H()]),f.setTimeout(x(function(){ob=!1}),1))}function pb(){Fa||(Fa=!0,D(ga,[H()]))}function Ga(){Fa&&(Fa=!1,D(Ma,[H()]))}function Gb(c){(!Fa||c&&!c.fromElement)&&pb()}function E(c){c&&!c.toElement&&
Ga()}function Sa(c){if((c=U(c))&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(c.tagName))M(c),D(Na,[H(),c])}function t(c){if((c=U(c))&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(c.tagName))M(c),D(K,[H(),c])}function Ta(c){c=U(c);if(!("INPUT"==c.tagName&&"password"==c.type||c&&/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(c.className))&&c&&/^INPUT|SELECT|TEXTAREA$/.test(c.tagName)){var a=/^(checkbox|radio)$/.test(c.type)?c.checked:c.value;M(c);D(Oa,[H(),c,a])}}function A(c){c=U(c);if(!/(?:^|\s)-metrika-noform(?:\s|$)/.test(c.className)&&
"FORM"==c.nodeName){for(var a=c.elements,b=0;b<a.length;b++)da(a[b])||M(a[b]);D(Ca,[H(),c],!0)}}function u(c){O();if(c.touches&&c.touches.length){var a=U(c);if(a){M(a);for(var b=0;b<c.touches.length;b++)D(La,[H(),"touch",a,[c.touches[b].pageX,c.touches[b].pageY],0,0])}}}function Qa(){clearTimeout(Ra);Ra=0;if(ra.length){for(var c={rn:Math.round(1E5*Math.random()),"wv-type":0,"cnt-class":I,"page-url":""+p().href,wmode:0,"wv-hit":z,"wv-part":ec++,"wv-check":la(ra),"browser-info":["z",Hb,"i",qb].join(":")},
a=ra,b=a.length,d=[],e=b-b%3,h,f=0;f<e;f+=3)h=(a[f]<<16)+(a[f+1]<<8)+a[f+2],G(d,W[h>>18&63],W[h>>12&63],W[h>>6&63],W[h&63]);switch(b-e){case 1:h=a[e]<<4;G(d,W[h>>6&63],W[h&63],"__");break;case 2:h=(a[e]<<10)+(a[e+1]<<2),G(d,W[h>>12&63],W[h>>6&63],W[h&63],"_")}a={"wv-data":d.join("")};n.send("visor","webvisor",c,a);ra.length=0}}function Ib(c){if("undefined"==typeof c)return[fc];if(null===c)return[gc];if("boolean"==typeof c)return[c?hc:ic];if("number"==typeof c)return k(c);if("string"==typeof c)return q(c);
if("[object Array]"=={}.toString.call(c))return Cb(c);if("[object Date]"=={}.toString.call(c))return[jc].concat(s(c.getFullYear())).concat(s(c.getMonth())).concat(s(c.getDate())).concat(s(c.getHours())).concat(s(c.getMinutes())).concat(s(c.getSeconds())).concat(s(c.getMilliseconds()));if("[object RegExp]"=={}.toString.call(c)){var a;a=0|(c.global?1:0);a|=c.ignoreCase?2:0;a|=c.multiline?4:0;a|=c.lastIndex?8:0;var d=q(c.source);d.shift();return[kc,a].concat(d).concat(c.lastIndex?s(c.lastIndex):[])}if(c&&
c.ownerDocument==b)return M(c),[lc].concat(s(c[J]));if("[object Object]"==c.toString()){a=[];for(d in c)a.push(d),a.push(c[d]);c=[mc].concat(s(a.length/2));for(d=0;d<a.length;d++){var e=Ib(a[d]);if(!e)return null;c=c.concat(e)}return c}return null}function k(a){if(isNaN(a))return[nc];if(a==Number.NEGATIVE_INFINITY)return[oc];if(a==Number.POSITIVE_INFINITY)return[pc];if(0===a)return[qc];var b=!1;0>a&&(a*=-1,b=!0);var d=(""+a).split("e"),a=+(d[1]||0)+(-1==d[0].indexOf(".")?d[0].length:d[0].indexOf(".")),
d=+d[0].replace(".","");return[b?rc:sc].concat(s(d)).concat(s(a))}function q(a){for(var b=[tc].concat(s(a.length)),d=0;d<a.length;d++)b=b.concat(s(a.charCodeAt(d)));return b}function Cb(a){for(var b=[uc].concat(s(a.length)),d=0;d<a.length;d++){var e=Ib(a[d]);if(!e)return null;b=b.concat(e)}return b}function s(a){for(var b=[];127<a;)b.push(a&127|128),a>>=7;b.push(a);return b}var cc=100,dc=200,y=15E3,fb=20,Ia=50,Y=10,ba=1,ma=2,Va=3,Wa=4,Xa=5,Za=7,$a=9,sa=10,ta=11,bb=12,cb=14,tb=15,ub=17,vb=18,wb=19,
bc=26,ac=27,Zb=28,$b=29,Ub=30,Tb=32,Vb=1,Xb=2,Wb=4,Bb=1,Pb=2,Qb=4,zb=8,Rb=16,Ab=32,Nb=64,Sb=2,yb=1,xb=2,db=4,Jb=8,Ja=16,Ob={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},S=X(),T=[],eb=0;ja(0);var gb=0,Pa=[],Db,ib=1,Eb=0,kb=[0,0],Fb=0,lb=[0,0],mb=!0,nb=!1,jb="",ob=!1,Fa=!0,W="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789*-".split(""),
ra=[],Ra,ec=1,fc=1,gc=2,nc=3,oc=4,pc=5,qc=6,hc=7,ic=8,tc=9,sc=10,rc=11,uc=12,jc=13,kc=14,lc=15,mc=16,Lb=qa(),J="metrikaId_"+Math.random(),Ka={},rb=":submit"+Math.random();if("MetrikaPlayer"!=f.name&&(w(b,"mousemove",Ea),w(b,"click",N),w(b,"mousedown",N),w(b,"mouseup",Da),w(f,"scroll",O),w(f,"beforeunload",h),f.Components==ka&&w(f,"unload",h),w(f,"resize",a),w(b,"keydown",e),w(b,"keyup",l),w(b,"keypress",r),w(b,"copy",F),w(b,"touchmove",u),w(b,"touchstart",u),b.attachEvent&&!f.opera?(w(b,"focusin",
Gb),w(b,"focusout",E)):(w(f,"focus",pb),w(f,"blur",Ga),w(b,"blur",Ga)),b.addEventListener?(b.addEventListener("focus",Sa,!0),b.addEventListener("blur",t,!0),b.addEventListener("change",Ta,!0),b.addEventListener("submit",A,!0)):b.attachEvent&&(w(b,"focusin",Sa),w(b,"focusout",t),function(){for(var a=b.getElementsByTagName("form"),d=0;d<a.length;d++){for(var e=a[d].getElementsByTagName("*"),h=0;h<e.length;h++)/^INPUT|SELECT|TEXTAREA$/.test(e[h].tagName)&&w(e[h],"change",Ta);w(a[d],"submit",A)}}()),
function(){var a=b.getElementsByTagName("form");if(a.length)for(var d=0;d<a.length;d++)a[d][rb]=a[d].submit,a[d].submit=function(){A({target:this});return this[rb]()}}(),"0:0"!=S.join(":")&&O(),Ya.Metrika.captureFunctions=function(){for(var a=0;a<arguments.length;a++){var b=arguments[a];"function"==typeof f[b]&&(f[b]=function(a,c){return function(){var b;D(hb,[H(),a,arguments]);return c.apply(this,arguments)}}(b,f[b]))}},"undefined"!=typeof j&&j.webvisor)){var Q=j.webvisor;if(Q.captureFunctions){if("[object Array]"!=
Object.prototype.toString.call(Q.captureFunctions))Q.captureFunctions=[Q.captureFunctions];Ya.Metrika.captureFunctions.apply(this,Q.captureFunctions)}if(Q.uploadPages){if("[object Array]"!=Object.prototype.toString.call(Q.uploadPages))Q.uploadPages=[Q.uploadPages];for(var sb=0;sb<Q.uploadPages.length;sb++){var Ua=Q.uploadPages[sb];if("string"==typeof Ua&&(Ua=Ua.replace(/[.*+?\^=!:${}()|\[\]\/\\]/g,function(a){return"*"==a?".*":"\\"+a}),RegExp("^"+Ua+"$").test(p().href))){Ya.Metrika.uploadPage();break}}}}return{stop:function(){v(b,
"mousemove",Ea);v(b,"click",N);v(b,"mousedown",N);v(b,"mouseup",Da);v(f,"scroll",O);v(f,"beforeunload",h);v(f,"unload",h);v(f,"resize",a);v(b,"keydown",e);v(b,"keyup",l);v(b,"keypress",r);v(b,"copy",F);v(b,"touchmove",u);v(b,"touchstart",u);v(b,"focusin",Gb);v(b,"focusout",E);v(f,"focus",pb);v(f,"blur",Ga);v(b,"blur",Ga);b.removeEventListener?(b.removeEventListener("focus",Sa,!0),b.removeEventListener("blur",t,!0),b.removeEventListener("change",Ta,!0),b.removeEventListener("submit",A,!0)):b.detachEvent&&
(v(b,"focusin",Sa),v(b,"focusout",t),function(){for(var a=b.getElementsByTagName("form"),d=0;d<a.length;d++){for(var e=a[d].getElementsByTagName("*"),h=0;h<e.length;h++)/^INPUT|SELECT|TEXTAREA$/.test(e[h].tagName)&&v(e[h],"change",Ta);v(a[d],"submit",A)}}());(function(){for(var a=b.getElementsByTagName("form"),d=0;d<a.length;d++)a[d].submit=a[d][rb]})()}}}var tb=!1;f.Ya=f.Ya||{};Ya._metrika=Ya._metrika||{};Ya._metrika.hitParam=Ya._metrika.hitParam||[];var ub=!1,R=p(),Hb,qb,X=f.navigator,Z=f.screen,
va="https:"==R.protocol?"https:":"http:",vb="$Rev: 1825 $".match(/(\d+)/)[1],$="object"==typeof b.all,Va=64,aa=$?512:2048,Wa=$?512:2048,Xa=$?100:400,ia="noindex",ja=50,Za=RegExp("\\.(7z|aac|ai|avi|apk|bmp|cab|csv|cdr|dmg|djvu?|doc(x|m|b)?|eps|exe|flv|gif|gz|jpe?g|js|m4a|mp(3|4|e?g)|mov|msi|ods|pdf|phps|png|ppt(x|m|b)?|psd|rar|rss|rtf|sea|sit|tar|tif?f|torrent|txt|wav|wma|wmv|xls(x|m|b)?|xpi|zip)$","i"),wb=+new Date,$a="_ym_visorc";f.Ya.Metrika=function(B,I,j,z){function n(a,b,d){V[V.length]=[d,d];
a.addEventListener?a.addEventListener(b,d,!1):a.attachEvent&&a.attachEvent("on"+b,d)}function x(a,b,d){for(var e=0;e<V.length;e++)if(V[e]&&V[e][0]==d){var f=V[e][1];delete V[e];break}f&&(a.removeEventListener?a.removeEventListener(b,f,!1):a.detachEvent&&a.detachEvent("on"+b,f))}function C(a,b){b=b||256;if(!a)return"";a.length>b&&(a=a.substr(0,b));return(f.encodeURIComponent||f.escape)(a).replace(/\+/g,"%2B")}function L(a){function b(a){return a?a.replace(/\\/g,"\\\\").replace(/"/g,'\\"'):""}if(a===
ka)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 d=[],e=0,f=a.length;e<f;e++)d[d.length]=L(a[e]);return"["+d.join(",")+"]";case Object:d="{";e=0;for(f in a)if(a.hasOwnProperty(f)){var r=a[f];r!==ka&&(d+=(e?",":"")+'"'+b(f)+'":'+L(r),e++)}return d+"}";default:return"null"}}function Y(a){for(var b=+new Date,d=1;0<d;d++)if(0==d%1E3){var e=+new Date;if(b>e)break;
if(e-b>a)break}}function ba(a,b){if(!a||!b)return!1;for(var d=[],e=0;e<b.length;e++)d.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("\\.("+d.join("|")+")$","i").test(a)}function ma(a){a=a.target||a.srcElement;if(!a)return!1;if(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 ca(a,b){return(a?a.replace(/^www\./,""):"")==(b?b.replace(/^www\./,""):"")?!0:!1}function sa(a,b){function d(a){a=a.split(":");a=a[1]||"";a=a.replace(/^\/*/,"").replace(/^www\./,"");return a.split("/")[0]}return!a||!b?!a&&!b?!0:!1:d(a)==d(b)?!0:!1}function oa(a,b){var d=b.target,e=!1;if(!b.hostname)return!1;
if(!d||"_self"==d||"_top"==d||"_parent"==d)e=!0;(d=a.shiftKey||a.ctrlKey||a.altKey)||a.modifiers&&f.Event&&(d=a.modifiers&f.Event.CONTROL_MASK||a.modifiers&f.Event.SHIFT_MASK||a.modifiers&f.Event.ALT_MASK);return e&&!d}function P(a,b,d,e,l){function r(a,b){F[F.length]=a;F[F.length]=b}var l=l||{},d="undefined"!=typeof d?d:ga,F=[];l.ar&&!l.onlyData&&(d=da(d),a=da(a));r("page-ref",C(d,aa));r("page-url",C(a,aa));r("browser-info",v(b,l));-1!=p().hostname.search(/(?:^|\.)(?:ya|yandex|narod|narod2)\.(?:\w+|com\.\w+)$/)?
r("ut",ia):"undefined"!=typeof l.ut&&r("ut",C(""+l.ut,Va));e&&r("site-info",C(L(e),Wa));l.saveRef&&(ga=d);a=pa(Oa,F);if("MetrikaPlayer"!=f.name)(new Image).src=a,w(a),l.isDelay&&Y(l.delay);return a}function ta(a,h,d,e,l,r,F){function g(a,b){j[j.length]=a;j[j.length]=b}var l=l||{},d="undefined"!=typeof d?d:ga,j=[];l.ar&&!l.onlyData&&(d=da(d),a=da(a));if("MetrikaPlayer"!=f.name){var m="_ymjsonp"+Math.round(1E5*Math.random());f[m]=function(a){try{delete f[m]}catch(b){f[m]=ka}F(a)};g("wmode",5);g("callback",
m);g("page-ref",C(d,aa));g("page-url",C(a,aa));a=v(h,l);r&&(a=["vc",r,a].join(":"));g("browser-info",a);-1!=p().hostname.search(/(?:^|\.)(?:ya|yandex|narod|narod2)\.(?:\w+|com\.\w+)$/)?g("ut",ia):"undefined"!=typeof l.ut&&g("ut",C(""+l.ut,Va));e&&g("site-info",C(L(e),Wa));l.saveRef&&(ga=d);l=pa(Oa,j);e=b.createElement("script");e.type="text/javascript";e.src=l;l=b.getElementsByTagName("head")[0];l.insertBefore(e,l.firstChild)}}function pa(a,b){for(var d=["rn",Math.floor(1E6*Math.random()),"cnt-class",
j].concat(b),e=[],f=0;f<d.length;f+=2){var r=d[f+1];r&&(e[e.length]=d[f]+"="+r)}return va+a+B+"?"+e.join("&")}function da(a){var b=p(),d=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(d),-1!=e)return b.substr(0,e+d.length)+a}else return d=b.split("/"),d[d.length-1]=a,d.join("/");return a}function w(a){"function"==typeof f.ymLog&&
f.ymLog(a)}function v(a,h){function d(a,b){a&&b&&(l[l.length]=[a,b].join(":"))}function e(a){d(a,h[a]?"1":"")}var h=h||{},l=[],r=-1*(new Date).getTimezoneOffset(),g=qa();qb||(qb=g,Hb=r);d("j",X.javaEnabled()?"1":"");Z&&d("s",Z.width+"x"+Z.height+"x"+(Z.colorDepth||Z.pixelDepth));null===Ba&&(Ba=U());d("f",Ba);d("w",H()+"x"+fa());d("z",r);d("i",g);null===Ca&&(Ca=Kb());d("l",Ca||"");d("en",Ha()||"");d("v",vb);d("c",X.cookieEnabled?"1":"");$&&b.documentMode&&(null===ha&&(ha=Function("return /*@cc_on @_jscript_version @*/;")()),
ha&&d("jv",ha));d("la",(X&&(X.language||X.browserLanguage)||"").toLowerCase());d("ex","prerender"==b.webkitVisibilityState?"pre1":"");O&&d("wh","1");r="ar,ln,dl,ad,nb,pa".split(",");for(g=0;g<r.length;g++)e(r[g]);if(m._webvisor){d("hid",za);if(!f.name)f.name=Math.round(1E5*Math.random());d("wn",la(f.name));try{f.opener&&f.opener.name&&d("on",la(f.opener.name))}catch(j){}try{f.history&&d("hl",f.history.length)}catch(p){}}r="undefined"==typeof a?(r=ea())?C(r,Xa):"":C(a,Xa);d("t",r);return l.join(":")}
function Ha(){var a="",f=b.getElementsByTagName("meta");if(f&&0<f.length)for(var d=0,e=f.length;d<e;d++){if(f[d].content){var l=f[d].content.match(/charset=(.*)/);if(l){a=l[1];break}}}else a=b.characterSet||b.charset;return a}function U(){var a=null,b=null,d,e=f.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 f.ActiveXObject)try{if(d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))(a=d.GetVariable("$version"))&&(b=a.split(" ")[1].replace(/,/g,".").replace(/[^.\d]/g,""))}catch(l){}return b}function ea(){var a=b.title;"string"!=typeof a&&(a=(a=b.getElementsByTagName("title"))&&a.length?a[0].innerHTML:"");return a}function Kb(){var a=null;if(f.ActiveXObject)try{var b=new ActiveXObject("AgControl.AgControl"),
d=function(a,b,d,e){for(;a.isVersionSupported(b[0]+"."+b[1]+"."+b[2]+"."+b[3]);)b[d]+=e;b[d]-=e},e=[1,0,0,0];d(b,e,0,1);d(b,e,1,1);d(b,e,2,1E4);d(b,e,2,1E3);d(b,e,2,100);d(b,e,2,10);d(b,e,2,1);d(b,e,3,1);a=e.join(".")}catch(l){}else if(b=X.plugins["Silverlight Plug-In"])a=b.description;return a}function qa(){for(var a=new Date,a=[a.getFullYear(),a.getMonth()+1,a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds()],b="",d=0;d<a.length;d++)b+=10>a[d]?"0"+a[d]:a[d];return b}function H(){var a=-1;if(b.documentElement&&
"CSS1Compat"==b.compatMode)a=b.documentElement.clientWidth;else if(b.body)a=b.body.clientWidth;return a}function fa(){var a=-1;if(b.documentElement&&"CSS1Compat"==b.compatMode)a=b.documentElement.clientHeight;else if(b.body)a=b.body.clientHeight;return a}function o(){Ya._metrika.counters=Ya._metrika.counters||{};var a=!1,h=B+":"+j;if(Ya._metrika.hitParam[h])if(1==j&&!Ya._metrika.counters[h])a=!0;else return!1;Ya._metrika.counters[h]=m;Ya._metrika.hitParam[h]=1;var d;m._webvisor=!z&&(K&&K.webvisor||
tb||ub);if(!z&&!a){var e=Ia($a);"b"!=e&&"w"!=e&&(e="");bb()||(e="b");ta(R.href,ea(),b.referrer,I,{ut:Aa,ad:1==j&&f.Ya&&f.Ya.Direct?!0:!1,saveRef:!0},e,function(a){var a=a||{},b=a.webvisor||{},a=[];if(d){b=+b.recp;if(!isFinite(b)||0>b||1<b)e="w";e||(e=za%100/100<b?"w":"b");ua($a,e,30);"w"==e?G(a,"visor"):d.stop()}D.init(a)})}wa();K&&(K.enableAll?m.enableAll():(K.clickmap&&m.clickmap(K.clickmap),K.trackLinks&&m.trackLinks(K.trackLinks),K.accurateTrackBounce&&m.accurateTrackBounce(K.accurateTrackBounce)),
K.trackHash&&m.trackHash(!0));m._webvisor&&(d=new cb(B,j,K,za,D))}function g(a){var b={delay:ja};switch(typeof a){case "string":b.on=!0;break;case "object":b.on=!0;b.delay="number"!=typeof a.delay?ja:a.delay;break;case "boolean":b.on=a;break;default:return}M=b}function wa(){g(!1);n(b,"click",function(a){M.on&&xa(a)})}function xa(a){function b(a){var e;e=(e=d.innerHTML?d.innerHTML.toString().replace(/<\/?[^>]+>/gi,""):"")?e.toString().replace(/^\s+/,"").replace(/\s+$/,""):"";P(f,f==e?"":e,p().href,
null,a)}var d=ma(a);if(d){var e=!1,f=""+d.href,g=f?f.split(/\?/)[0]:"";if(Za.test(g)||Za.test(f)||ba(f,N)||ba(g,N))e=!0;var j=d.className,g=j&&-1!=j.search(/ym-disable-tracklink/)?!0:!1,j=j&&-1!=j.search(/ym-external-link/)?!0:!1;if(!g)if(a={ln:!0,dl:e,isDelay:oa(a,d),delay:M.delay},j)b(a);else if(ca(p().hostname,d.hostname)){if(e)a.ln=!1,b(a)}else if(!(f&&-1!=f.search(/^ *javascript:/i)))a.ut=ia,b(a)}}function Mb(a,h){function d(){if(!v){E&&clearTimeout(E);var b=h-(p?m:m+ +new Date-w);0>b&&(b=0);
E=setTimeout(function(){v=!0;l(!1);a()},b)}}function e(){j||(g=!0,p=!1,j=!0,d())}function l(a){for(var b=0;b<t.length;b+=3)a?n(t[b],t[b+1],t[b+2]):x(t[b],t[b+1],t[b+2])}var g=!1,j=!1,p=!0,m=0,w=+new Date,E=null,v=!1,t=[f,"blur",function(){p=g=j=!0;m+=+new Date-w;w=+new Date;d()},f,"focus",function(){!g&&!j&&(m=0);w=+new Date;g=j=!0;p=!1;d()},b,"click",e,b,"mousemove",e,b,"keydown",e,b,"scroll",e];l(!0);d()}function La(a){function b(){var a=p().hash.split("#")[1];if("undefined"==typeof a)return!1;
var d=a.indexOf("?");0<d&&(a=a.substring(0,d));return a}var d=b();(function l(){var f=b();f!==d&&(a(),d=f);Ea=setTimeout(l,200)})()}function ya(){Na=ga=Ma;P(p().href,ea(),Na,null,{ut:Aa,ad:1==j&&f.Ya&&f.Ya.Direct?!0:!1,wh:!0,saveRef:!0});Ma=p().href}function Yb(a){function h(){var a=b.documentElement;return Math.max(a.scrollWidth,b.body.scrollWidth,a.clientWidth)}function d(a){function d(a){for(var b=0,e=0;a;)b+=parseInt(a.offsetTop),e+=parseInt(a.offsetLeft),a=a.offsetParent;return{top:b,left:e}}
function e(a){var a=a.getBoundingClientRect(),d=b.body,u=b.documentElement,h=a.left+(f.pageXOffset||u.scrollLeft||d.scrollLeft)-(u.clientLeft||d.clientLeft||0);return{top:Math.round(a.top+(f.pageYOffset||u.scrollTop||d.scrollTop)-(u.clientTop||d.clientTop||0)),left:Math.round(h)}}return a.getBoundingClientRect?e(a):d(a)}function e(a){return a.toString().toUpperCase()}function l(a){return a&&(a=""+a.className)&&-1!=a.search(/ym-clickmap-ignore/)?!0:!1}function g(a){if(null==a.pageX&&null!=a.clientX){var d=
b.documentElement,e=b.body;a.pageX=a.clientX+(d&&d.scrollLeft||e&&e.scrollLeft||0)-(d.clientLeft||0);a.pageY=a.clientY+(d&&d.scrollTop||e&&e.scrollTop||0)-(d.clientTop||0)}return{x:a.pageX,y:a.pageY}}function j(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 m=this,v=0,B=null,E="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,t=String.fromCharCode,z={},A=0;A<E.length;A++)z[E[A]]=t(o),t(o),o++;this.handler=function(a){var E=b.getElementsByTagName("body")[0];if(!f.ymDisabledClickmap&&!l(E)){if(m._prefs.hasQuota){if(!m._prefs.quota)return;m._prefs.quota--}var t=a.target||a.srcElement;if(3==t.nodeType)t=t.parentNode;var E=e(t.nodeName),k=g(a),q;if(!a.which&&a.button!==ka)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;q=a.which;if(!(q=(2==q||3==q)&&"A"!=E))q=t.offsetHeight,q=0===t.offsetWidth&&0===q||t.style&&"none"===
t.style.display;if(!q){b:{for(q=t;q.parentNode;){if(l(q)){q=!0;break b}q=q.parentNode}q=!1}if(!q){b:{q=m._prefs.ignoreTags;for(var o=0;o<q.length;o++)if(e(q[o])==e(E)){q=!0;break b}q=!1}q=q||!m._prefs.filter(t,E)}if(!q){E=+new Date;t={dom:t,x:k.x,y:k.y,time:E};if(k=50<E-v)if(!(k=!m._prefs.ignoreSameClicks)){if(k=B){q=Math.abs(k.x-t.x);var o=Math.abs(k.y-t.y),s=t.time-k.time,k=k.dom==t.dom&&2>q&&2>o&&1E3>s?!0:!1}else k=!1;k=!k}if(k&&"MetrikaPlayer"!=f.name){q=g(a);k=q.x;q=q.y;var s=a.target||a.srcElement,
n=m._prefs,A=d(s),y="",o=p().href;switch(n.mode){case "fixed":y="0";j(s)&&(y+="u");break;case "centered":y="1";A=Math.floor(h()/2);k=k>A?k-A+32768:k;j(s)&&(y+="u");break;default:y=e(s.nodeName);y="BODY"==y||"HTML"==y?h():s.offsetWidth;n=e(s.nodeName);"BODY"==n||"HTML"==n?(n=b.documentElement,n=Math.max(n.scrollHeight,b.body.scrollHeight,n.clientHeight)):n=s.offsetHeight;y||(y=1);n||(n=1);k=Math.floor(65535*(k-A.left)/y);q=Math.floor(65535*(q-A.top)/n);for(A="";s.parentNode&&"BODY"!=e(s.nodeName)&&
"HTML"!=e(s.nodeName);){A+=z[s.nodeName]||"*";b:{for(var y=s.parentNode,x=n=0;x<y.childNodes.length;x++)if(s.nodeName==y.childNodes[x].nodeName){if(s==y.childNodes[x]){y=n;break b}n++}y=0}A+=y||"";s=s.parentNode}y=C(A,128)}O||(o=o?o.replace(/\#.*$/,""):o);"function"==typeof m._prefs.urlFilter&&(o=m._prefs.urlFilter(o));k=pa(hb,["page-url",C(o,aa),"pointer-click","x:"+k+":y:"+q+":t:"+Math.floor(Math.floor(+new Date-wb)/100)+":p:"+y]);(new Image).src=k;w(k);if(k=a.target||a.srcElement){if(3==k.nodeType)k=
k.parentNode;for(q=e(k.nodeName);k.parentNode&&k.parentNode.nodeName&&("A"!=q&&"AREA"!=q||!k.href);)k=k.parentNode,q=e(k.nodeName);k=!k.href?!1:k}else k=!1;k&&oa(a,k)&&Y(m._prefs.delay)}v=E;B=t}}}};this.setPrefs=function(a){function b(){return!0}this._prefs="undefined"==typeof a||!1===a||!0===a?{filter:b,ignoreTags:[],mode:"",delay:ja,quota:0,hasQuota:!1,ignoreSameClicks:!0}:{filter:a.filter||b,ignoreTags:a.ignoreTags||[],mode:a.mode||"",delay:"undefined"==typeof a.delay?ja: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||n(b,"click",this.handler);this._start=!0};this.stop=function(){this._start&&x(b,"click",this.handler);this._start=!1};this.start(a)}var m=this,za=Math.round(1073741824*
Math.random()),Aa="",ga=R.href,Ma=R.href,Na="";if(!Ya._metrika.counter)Ya._metrika.counter=m;var K;if("object"==typeof B)K=B,z=B.defer,Aa=B.ut,j=B.type,I=B.params,B=B.id;var B=B||0,j=j||0,Oa="//mc.yandex.ru/watch/",hb="//mc.yandex.ru/clmap/",V=[],Ba=null,Ca=null,ha=null,D=new function(a,b){function d(a,b,d){if(m)e(a,b,d);else{if("XMLHttpRequest"in f){var h=new XMLHttpRequest;if("withCredentials"in h){var j=d?"POST":"GET",a=g(a,b,"POST"==j?1:0);h.open(j,a,!0);h.withCredentials=!0;"POST"==j&&"[object nsXPCComponents]"!=
""+f.Components&&h.setRequestHeader("Content-Type","application/x-www-form-urlencoded");h.send("POST"==j?ab(d):null);return}}for(j in d)d.hasOwnProperty(j)&&(b[j]=d[j]);(new Image).src=g(a,b,0)}}function e(a,b,d){var e="ifr"+Math.round(1E10*Math.random()),f=m.createElement("div"),a=['<iframe name="',e,'"></iframe>','<form action="',g(a,b,0),'" method="post" target="',e,'" enctype="application/x-www-form-urlencoded">'],h;for(h in d)d.hasOwnProperty(h)&&G(a,'<textarea name="',h,'">',d[h],"</textarea>");
G(a,"</form>");f.innerHTML=a.join("");m.body.appendChild(f);f.getElementsByTagName("form")[0].submit();setTimeout(function(){m.body.removeChild(f)},1E4)}function g(d,e,f){e["browser-info"]=["ct",f,e["browser-info"]].join(":");return"//"+a+"/"+d+"/"+b+"?"+ab(e)}function j(){if(f.ActiveXObject){var a=new ActiveXObject("htmlfile");a.open();a.write("<html><body></body></html>");a.close();return a}return null}try{var m=j()}catch(p){}var o="",n=[];return{send:function(a,b,e,f){a?o?-1<o.indexOf("|"+a+"|")&&
d(b,e,f):G(n,arguments):d(b,e,f)},init:function(a){o="|"+a.join("|")+"|";for(a=0;a<n.length;a++)-1<o.indexOf("|"+n[a][0]+"|")&&d(n[a][1],n[a][2],n[a][3]);n.length=0}}}("mc.yandex.ru",B);m.reachGoal=function(a,f){var d=a?"goal://"+p().hostname+"/"+a:p().href,e=ea(),g=a?p().href:b.referrer;P(d,e,g,f,{ar:!0,isDelay:a?!0:!1,delay:100});return!0};var M;m.trackLinks=g;m.hit=function(a,b,d,e,f){a&&P(a,b,d,e,{ut:f,ar:!0,saveRef:!0})};m.params=function(a){if(a){var b=arguments.length;if(1<b){for(var d={},
e=d,f=0;f<b-1;f++){var g=""+arguments[f];e[g]={};f<b-2&&(e=e[g])}e[g]=arguments[b-1];a=d}P("","","",a,{ar:!0,pa:!0,onlyData:!0})}};m.file=function(a,b,d,e){a&&P(a,"",p().href,e,{ar:!0,ln:!0,dl:!0})};m.extLink=function(a,b,d,e){a&&P(a,"",p().href,e,{ar:!0,ln:!0,ut:ia})};m.notBounce=function(){P("","","",null,{ar:!0,nb:!0,onlyData:!0})};var N=[];m.addFileExtension=function(a){"string"==typeof a?N.push(a):N=N.concat(a)};m.clickmap=function(a){m._clickmap?m._clickmap.updateStatus(a):m._clickmap=new Yb(a)};
var Da=!1;m.accurateTrackBounce=function(a){function f(){m.notBounce()}Da||(Da=!0,sa(b.referrer,p().href)||("number"!=typeof a&&(a=15E3),$?setTimeout(f,a):Mb(f,a)))};var Ea=null,O=!1;m.trackHash=function(a){!1===a?O&&("onhashchange"in f?x(f,"hashchange",ya):clearInterval(Ea),O=!1):O||("onhashchange"in f?n(f,"hashchange",ya):La(ya),O=!0);m._trackHash=O};m.enableAll=function(){m.trackLinks(!0);m.clickmap(!0);m.accurateTrackBounce()};m.uploadPage=function(){};B&&o()};f.ya_cid&&new Ya.Metrika(f.ya_cid,
f.ya_params,f.ya_class);if(f.ya_cid&&!f.ya_hit)f.ya_hit=function(b,f){Ya._metrika.counter&&Ya._metrika.counter.reachGoal(b,f)};var L=f.yandex_metrika_callback,I=f.yandex_metrika_callbacks;"function"==typeof L&&L();if("object"==typeof I)for(L=0;L<I.length;L++){var sa=I[L];sa&&(I[L]=null,sa())}Y("yandex_metrika_callback");Y("yandex_metrika_callbacks");I=R.href;-1!=I.search("ym_playback=linkmap")?ma("linkmap"):-1!=I.search("ym_playback=clickmap")&&ma("clickmap");f.Ya.Metrika.informer=function(b){var f=
!!Ya.Metrika._informer;Ya.Metrika._informer=b;f||ba(va+"//bs.yandex.ru/metrika/informer.js")};if(top!=f&&parent==top&&f.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 ta=I.firstChild;setTimeout(function(){b.body.insertBefore(ta,b.body.firstChild);var f=ta.contentWindow.document;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);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>');
f.close()},200)}})(this,this.document);
