if((self.parent&&!(self.parent===self))&&(self.parent.frames.length!=0)){self.parent.location=document.location}document.documentElement.id="js";if(document.compatMode!="CSS1Compat"){document.documentElement.className+=" quirks"}(function(){var a=function(){var b=document.documentElement.style;return typeof b.borderRadius==="string"||typeof b.WebkitBorderRadius==="string"||typeof b.KhtmlBorderRadius==="string"||typeof b.MozBorderRadius==="string"};document.documentElement.className+=a()?" m-border-radius":" m-no-border-radius"}());(function(a){if(!a){a=window.Lego={}}a.c=function(c,b){var d=function(g,j,i){return location.protocol+"//clck.yandex.ru/"+i+"/dtype="+g+"/rnd="+((new Date()).getTime()+Math.round(Math.random()*100))+"/*"+(j.match(/^http/)?j:location.protocol+"//"+location.host+(j.match("^/")?j:"/"+j))};var f=function(){var g=document.createElement("script");g.src=d(c,location.href,"jclck");document.documentElement.getElementsByTagName("head")[0].appendChild(g)};if(b){if(b.className.match(/b-pseudo-link/)){f()}else{if(b.href){var e=b.href;b.href=d(c,e,"redir");setTimeout(function(){b.href=e},500)}else{if(b.form){if(b.type.match(/submit|button|image/)){var e=b.form.action;b.form.action=d(c,e,"redir");setTimeout(function(){b.form.action=e},500)}else{f()}}else{if(b.action){b.action=d(c,b.action,"redir")}else{throw"counter.js: not link and not form!"}}}}}else{f()}}})(window.Lego);(function(a){if(!a){a=window.Lego={}}a.cp=function(e,c,d,b){a.c("stred/pid="+e+"/cid="+c+"/path="+d,b)}})(window.Lego);(function(a){if(!a){a=window.Lego={}}a.ch=function(c,b){if(!a.params||a.params["show-counters"]){a.cp(0,2219,c,b)}}})(window.Lego);(function(a){if(!a){a=window.Lego={}}a.getCookie=function(h){var g=document.cookie;if(g.length<1){return false}var d=g.indexOf(h+"=");if(d==-1){return false}d+=(h.length+1);var f=g.indexOf(";",d);return decodeURIComponent((f==-1)?g.substring(d):g.substring(d,f))}})(window.Lego);(function(a){if(!a){a=window.Lego={}}a.isSessionValid=function(){var b=a.getCookie("Session_id");if(!b){return false}var c=b.split(".");if(c[2]=="1"){return true}var e=parseFloat(((new Date().getTime())-c[0]*1000-c[1])/1000);if(c[2]=="3"){return e<1209600}return e<7200}})(window.Lego);(function(b,a){if(!a){a=window.Lego={}}a.init=function(c){c=c||{};c.id=c.id||"";c.login=c.login||(a.isSessionValid()?a.getCookie("yandex_login"):"");c.login=c.login||"";c.locale=c.locale||"ru";c["passport-host"]=c["passport-host"]||"//passport.yandex.ru";c["show-counters-percent"]=c["show-counters-percent"]||100;c["show-counters"]=Math.round(Math.random()*100)<=c["show-counters-percent"];a.params=c;return c};a.block={};a.blockInit=function(c,d){c=c||document;d=d||".g-js";b(c).find(d).each(function(){var h=b(this),g=this.onclick?this.onclick():{},e=g.name||"",f=a.block[e];if(f&&!h.data(e)){f.call(h,g);h.data(e,true)}})};b(document).ready(function(){a.blockInit()})})(jQuery,window.Lego);(function(b){if(!b){b=window.Lego={}}var a,c;b.login=function(n,k,r,e){if(b.isSessionValid()){return true}if(!k){k=location.href}k=encodeURIComponent(k);var m=document.forms.LOGIN;if(!m){var i="tabindex=1";var l=b.params["passport-host"]+"/passport?mode=";var h="position:absolute;";var p="font-size:11px;padding:0;vertical-align:middle";var d="font:120% Arial,sans-serif;margin:0;vertical-align:middle";var s='';var q=' style="'+p+'"';e=e||"mail";m=document.createElement("div");m.innerHTML+='