(function(j,n,h){var c=[592,592],q=592,o=[],p=1000000,m=50,f=8000,k="//an.yandex.ru/",s=k+"resource/",e=j.Ya=j.Ya||{};j.yandex_ad_is_displayed=false;var g=function(){if(!j.name){j.name='{"yandex_timeout":'+new Date()+"}"}},r=function(){var u=(j.name+"").match(/"yandex_timeout":(\d+)/);if(u){return u[1]+1>new Date()-900000}},i=(j.yandex_partner_id||0)*1,a=/yandex_test_code=(\d+)/.test(j.location.href.match)||!(Math.round(Math.random()*p)%m)&&(!o.length||y5_isEntry(i,o)),d=q,b;if(!e.jsVer){e.isTestVersion=a;if(a&&a.length){d=c[(a[1]-1)]}else{if(a){d=Math.random()<0.5?c[0]:c[1]}}if(typeof j.yandex_new_code=="number"){d=c[j.yandex_new_code-1]}e.jsVer=d}b=s+"context_static_r"+d+".js";if(j.yandex_context_callbacks||j.yandexContextAsyncCallbacks){var t=n.createElement("script"),l=n.getElementsByTagName("script")[0];t.type="text/javascript";t.src=b;l.parentNode.insertBefore(t,l)}else{setTimeout(function(){var u=n.getElementsByTagName("script"),v=u?u[u.length-1]:null;if(v&&(!j.Ya||!j.Ya.Context)&&v.getAttribute("yandex_load_check")=="yes"){v.parentNode.removeChild(v);g()}},f);if(!r()){n.write('<script type="text/javascript" src="'+b+'" yandex_load_check="yes"><\/script>')}}})(this,this.document);