window.Ya=window.Ya||{};if(!window.ya_hit_param){var ya_hit_param=[]}Ya.Metrika=function(a,c,b){if(!window.__yaCounter){window.__yaCounter=this}this.id=a||0;this.type=b||0;this.initCounter(c);this.lastReferer=null};Ya.Metrika.prototype=new function(){var f=window,a=document,m=f.location,q=f.navigator,u="$Rev: 886 $".match(/(\d+)/)[1],p="application/x-shockwave-flash",c="Shockwave Flash",D="ShockwaveFlash.ShockwaveFlash",t="undefined",C=null,o=null;this.initCounter=function(F){var E=this.id+":"+this.type;if(ya_hit_param[E]){return false}if(this.id){ya_hit_param[E]=1;d(this,F)}};this.reachGoal=function(E,F){this.target=E||"";d(this,F)};function n(F){var E=y();if(E){E.insertBefore(r(F+"&wmode=3"),E.firstChild)}else{(new Image(1,1)).src=F}}this.hit=function(F,I,H,G){if(!F){return}var E=m.protocol+"//mc.yandex.ru/watch/"+this.id+"?"+g.call(this,F,I,H);if(G){E+="&site-info="+z(x(G),512)}E+="&ar=1";n(E)};function b(F){var H=m.host,E=m.href;if(!F){return E}if(F.search(/^\w+:\/\//)!=-1){return F}if(F.charAt(0)=="?"){var G=E.search(/\?/);if(G==-1){return E+F}return E.substr(0,G)+F}if(F.charAt(0)=="#"){var G=E.search(/#/);if(G==-1){return E+F}return E.substr(0,G)+F}if(F.charAt(0)=="/"){var G=E.search(H);if(G!=-1){return E.substr(0,G+H.length)+F}}else{var I=E.split("/");I[I.length-1]=F;return I.join("/")}return F}function d(E,G){var F=m.protocol+"//mc.yandex.ru/watch/"+E.id+"?"+i(E.type,E.target);if(G){F+="&site-info="+z(x(G),512)}n(F);if(E.target){j(100)}}function i(G,E){var F="";F+="rn="+Math.floor(Math.random()*1000000);F+="&cnt-class="+G;F+="&page-ref="+z(E?m.href:a.referrer,512);F+="&page-url="+z(E?"goal://"+a.domain+"/"+E:m.href,512);F+="&browser-info="+v();return F}function g(E,H,G){var I="",F=(typeof G!=t)?G:(this.lastReferer===null?m.href:this.lastReferer);I+="rn="+Math.floor(Math.random()*1000000);I+="&cnt-class="+this.type;F=b(F);I+="&page-ref="+z(F,512);E=b(E);I+="&page-url="+z(E,512);I+="&browser-info="+v(H);this.lastReferer=F;return I}function v(I){var G=[],E="";G[0]=q.javaEnabled()?"j:1":"";G[1]="s:"+screen.width+"x"+screen.height+"x"+(screen.colorDepth?screen.colorDepth:screen.pixelDepth);if(C===null){C=A()}G[2]=C;G[3]=(top&&(self!==top))?"fr:1":"";G[4]="w:"+w()+"x"+h();G[5]="z:"+s();G[6]="i:"+e();if(o===null){o=B()}G[7]=o?"l:"+o:"";var J=k();G[8]=J?"en:"+J:"";G[9]="v:"+u;var H=l();G[10]=(typeof I!=t)?"t:"+z(I,100):(H?"t:"+z(H,100):"");for(var F=0;F<G.length;F++){if(G[F]){E+=(E?":":"")+G[F]}}return E}function k(){var I="",H=a.getElementsByTagName("meta");if(H&&H.length>0){for(var F=0,E=H.length;F<E;F++){if(H[F].content){var G=H[F].content.match(/charset=(.*)/);if(G){I=G[1];break}}}}else{I=a.characterSet||a.charset}return I}function A(){var F=null,H=null,E;if(typeof q.plugins!=t&&typeof q.plugins[c]=="object"){F=q.plugins[c].description;if(F&&!(typeof q.mimeTypes!=t&&q.mimeTypes[p]&&!q.mimeTypes[p].enabledPlugin)){H=F.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".")}}else{if(typeof f.ActiveXObject!=t){try{E=new ActiveXObject(D);if(E){F=E.GetVariable("$version");if(F){H=F.split(" ")[1].replace(/,/g,".").replace(/[^.\d]/g,"")}}}catch(G){}}}return H&&("f:"+H)}function s(){return(new Date()).getTimezoneOffset()*(-1)}function e(){function G(J){return J<10?"0"+J:J}var F=new Date(),E=[F.getFullYear(),F.getMonth()+1,F.getDate(),F.getHours(),F.getMinutes(),F.getSeconds()],I="";for(var H=0;H<E.length;H++){I+=G(E[H])}return I}function w(){var E=-1;if(f.innerWidth){E=parseInt(f.innerWidth)}else{if(a.documentElement&&a.compatMode=="CSS1Compat"){E=a.documentElement.clientWidth}else{if(a.body){E=a.body.clientWidth}}}return E}function h(){var E=-1;if(f.innerHeight){E=parseInt(f.innerHeight)}else{if(a.documentElement&&a.compatMode=="CSS1Compat"){E=a.documentElement.clientHeight}else{if(a.body){E=a.body.clientHeight}}}return E}function B(){var E=null;if(f.ActiveXObject){try{var J=new ActiveXObject("AgControl.AgControl");function K(O,M,L,N){while(G(O,M)){M[L]+=N}M[L]-=N}function G(M,L){return M.isVersionSupported(L[0]+"."+L[1]+"."+L[2]+"."+L[3])}var F=[1,0,0,0];K(J,F,0,1);K(J,F,1,1);K(J,F,2,10000);K(J,F,2,1000);K(J,F,2,100);K(J,F,2,10);K(J,F,2,1);K(J,F,3,1);E=F.join(".")}catch(I){}}else{var H=q.plugins["Silverlight Plug-In"];if(H){E=H.description}}return E}function y(){return a.getElementsByTagName("body")[0]}function l(){var F=a.title;if(typeof F!="string"){var E=a.getElementsByTagName("title");if(E&&E.length){F=E[0].innerHTML}else{F=""}}return F}function r(F){var E=a.createElement("script");E.type="text/javascript";E.async=true;E.defer=true;E.src=F;return E}function z(F,E){E=E||256;if(!F){return""}if(F.length>E){F=F.substr(0,E)}return(window.encodeURIComponent||escape)(F).replace(/\+/g,"%2B")}function x(G){function J(K){return K?K.replace(/\\/,"\\\\").replace(/"/,'\\"'):""}switch(G.constructor){case Boolean:return G.toString();case Number:return isFinite(G)?G.toString():"null";case String:return'"'+J(G)+'"';case Array:var E=[];for(var I=0,H=G.length;I<H;I++){E[E.length]=x(G[I])}return"["+E.join(",")+"]";case Object:var E="{",I=0;for(var F in G){if(!G.hasOwnProperty(F)){continue}E+=(I==0?"":",")+'"'+J(F)+'":'+x(G[F]);I++}E+="}";return E;default:return"null"}}this.convertToString=x;function j(H){var F=new Date().getTime();for(var G=1;G>0;G++){if(G%1000==0){var E=new Date().getTime();if(E-F>H){break}}}}};if(window.ya_cid){new Ya.Metrika(ya_cid,window.ya_params,window.ya_class)}if(!window.ya_hit){var ya_hit=function(a,b){__yaCounter.reachGoal(a,b)}}(function(){var g=window,f=document,h=g.location;if(typeof g.yandex_metrika_callback=="function"){g.yandex_metrika_callback()}if(h.href.search(/ym_playback=linkmap/)!=-1){var a=f.createElement("script");a.type="text/javascript";a.async=a.defer=true;a.src=h.protocol+"//metrika.yandex.ru/js/linkmap/_loader.js";try{var c=f.getElementsByTagName("html")[0];if(!f.getElementsByTagName("head")[0]){c.appendChild(f.createElement("head"))}var b=f.getElementsByTagName("head")[0];b.insertBefore(a,b.firstChild)}catch(d){}}})();
