var Ya=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)};Ya.Metrika.prototype=new function(){var D=window,K=document,N=D.location,M=D.navigator,L="application/x-shockwave-flash",H="Shockwave Flash",A="ShockwaveFlash.ShockwaveFlash",Q="undefined";this.initCounter=function(S){var R=this.id+":"+this.type;if(ya_hit_param[R]){return false}if(this.id){ya_hit_param[R]=1;J(this,S)}};this.reachGoal=function(R,S){this.target=R||"";J(this,S)};function J(R,U){var S=G(),T=N.protocol+"//mc.yandex.ru/watch/"+R.id+"?"+F(R.type,R.target);if(U){T+="&site-info="+E(B(U),512)}T+="&wmode=1";if(S){S.insertBefore(C(T),S.firstChild)}else{(new Image(1,1)).src=T}if(R.target){P(100)}}function F(T,R){var S="";S+="rn="+Math.floor(Math.random()*1000000);S+="&cnt-class="+T;S+="&page-ref="+E(R?N.href:K.referrer,512);S+="&page-url="+E(R?"goal://"+K.domain+"/"+R:N.href,512);S+="&browser-info="+I();return S}function I(){var T=[],R="";T[0]=M.javaEnabled()?"j:1":"";T[1]="s:"+screen.width+"x"+screen.height+"x"+(screen.colorDepth?screen.colorDepth:screen.pixelDepth);T[2]=O();T[3]=(top&&(self!==top))?"fr:1":"";T[4]=K.title?"t:"+E(K.title,100):"";for(var S=0;S<T.length;S++){if(T[S]){R+=(R?":":"")+T[S]}}return R}function O(){var S=null,U=null,R;if(typeof M.plugins!=Q&&typeof M.plugins[H]=="object"){S=M.plugins[H].description;if(S&&!(typeof M.mimeTypes!=Q&&M.mimeTypes[L]&&!M.mimeTypes[L].enabledPlugin)){U=S.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".")}}else{if(typeof D.ActiveXObject!=Q){try{R=new ActiveXObject(A);if(R){S=R.GetVariable("$version");if(S){U=S.split(" ")[1].replace(/,/g,".").replace(/[^.\d]/g,"")}}}catch(T){}}}return U&&("f:"+U)}function G(){return K.getElementsByTagName("body")[0]}function C(R){var S=K.createElement("script");S.type="text/javascript";S.src=R;return S}function E(S,R){R=R||256;if(!S){return""}if(S.length>R){S=S.substr(0,R)}return(window.encodeURIComponent||escape)(S).replace(/\+/g,"%2B")}function B(T){switch(T.constructor){case Boolean:return T.toString();case Number:return isFinite(T)?T.toString():"null";case String:return'"'+T+'"';case Array:var R="[";for(var V=0,U=T.length;V<U;V++){R+=B(T[V])+(V==U-1?"]":",")}return R;case Object:var R="{",V=0;for(var S in T){R+=(V==0?"":",")+'"'+S+'":'+B(T[S]);V++}R+="}";return R;default:return"null"}}function P(U){var S=new Date().getTime();for(var T=1;T>0;T++){if(T%1000==0){var R=new Date().getTime();if(R-S>U){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)}};