var yandex_ad_is_displayed=false,y5_iTestR=window.y5_iTestR||Math.round(Math.random()*1000000),y5_iR=window.y5_iR||Math.round(Math.random()*1000000),y5_aCheckVisibilityOff=[];if(!window.y5_isInit){var y5_isInit=false}(function(){var E=[477,477],K=[480,469];var B=[];var H=document,A=window,L=A.location;function I(){var M='{"yandex_timeout":'+C()+"}";if(!A.name){A.name=M}}function F(){var M=(A.name+"").match(/"yandex_timeout":(\d+)/);if(M){return(M[1]*1)>C()-900000}return false}function C(){return(new Date()).getTime()}function G(){var Q,M=H.getElementsByTagName("meta");if(M&&M.length>0){for(var O=0,N=M.length;O<N;O++){if(M[O].content){var P=M[O].content.match(/charset=(.*)/);if(P){Q=P[1];break}}}}else{Q=H.characterSet||H.charset}return Q}function D(){var Y=(A.yandex_partner_id)?parseInt(yandex_partner_id):0,T=(A.yandex_stat_id)?parseInt(yandex_stat_id):0,X=(T!=0)?"&stat-id="+T:"",P=(A.yandex_site_charset)?yandex_site_charset.toString():G(),U=(A.y5_isTransform)?(A.yandex_direct_limit?"&direct-limit="+parseInt(yandex_direct_limit):""):"&direct-limit=9",M=(A.y5_isTransform&&A.yandex_market_limit)?"&market-limit="+parseInt(yandex_market_limit):"",Q=(L.href+"").indexOf("yandex_test_code=1")>-1||(!(y5_iTestR%500)&&(!B.length||y5_isEntry(Y,B))),O=(Q&&E[0])||K[0],S=(Q&&E[1])||K[1],R=L.protocol,W=R+"//an.yandex.ru/resource/",V=W+"context_static_r"+O+".js",N=W+"context_r"+S+".css";if(typeof window.yandex_log_errors=="undefined"&&Q){window.yandex_log_errors=true}setTimeout(function(){var Z=H.getElementsByTagName("script"),a=Z?Z[Z.length-1]:null;if(a&&typeof (A.yandex_isAdShowen)=="undefined"){a.parentNode.removeChild(a);I()}},8000);if(!F()){yandex_partner_id_old=Y;y5_linkStyle(N);y5_addScript(V)}}if(!y5_isInit){D();y5_isInit=true}else{try{Ya.Context.init()}catch(J){}}})();function y5_isEntry(D,A){for(var C=0,B=A.length;C<B;C++){if(D==A[C]){return true}}return false}function y5_linkStyle(A){document.write('<link rel="stylesheet" type="text/css" href="'+A+'" />')}function y5_addScript(A){document.write('<script type="text/javascript" src="'+A+'"><\/script>')}function y5_escape(B,A){if(!A){A=256}if(B==null){return""}if(B.length>A){B=B.substr(0,A)}return escape(B).replace(/\+/g,"%2B")};