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(A){if(!A){A=window.Lego={}}A.c=function(C,B){var D=function(G,I,H){return location.protocol+"//clck.yandex.ru/"+H+"/dtype="+G+"/rnd="+((new Date()).getTime()+Math.round(Math.random()*100))+"/*"+(I.match(/^http/)?I:location.protocol+"//"+location.host+(I.match("^/")?I:"/"+I))};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.href){if(B.className.match(/b-pseudo-link/)){F()}else{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){A.cp(0,B?1917:1916,C,B)}})(window.Lego);(function(A){if(!A){A=window.Lego={}}A.addEvent=function(D,B,C){if(D.addEventListener){D.addEventListener(B,C,0)}else{if(D.attachEvent){D.attachEvent("on"+B,C)}}}})(window.Lego);(function(A){if(!A){A=window.Lego={}}A.delEvent=function(D,B,C){if(D.removeEventListener){D.removeEventListener(B,C,0)}else{if(D.detachEvent){D.detachEvent("on"+B,C)}}}})(window.Lego);(function(A){if(!A){A=window.Lego={}}var C,B;A.dropdown=function(H){var J=document;var L;if(window.event){L=H.srcElement;event.cancelBubble=true}else{L=H.target;H.stopPropagation()}var K=function(P){var P=P||event;if((P.keyCode==27)&&!(P.ctrlKey||P.altKey)){A.dropdown.cancel()}};var O=function(Q){var P=Q?Q.target:event.srcElement;while(P){if(P.className&&(P.className.indexOf("b-dropdown")!=-1)){return }P=P.parentNode}A.dropdown.cancel()};var F=function(){B=setTimeout(A.dropdown.cancel,1000)};var N=function(){clearTimeout(B)};A.dropdown.cancel=function(){var P=C;if(P){A.delEvent(J,"click",O);A.delEvent(J,"keydown",K);A.delEvent(P,"mouseout",F);A.delEvent(P,"mouseover",N);P.style.visibility="hidden";var Q=P.parentNode;Q.insertBefore(P.lastChild,P);Q.removeChild(P.nextSibling);Q.removeChild(P);C=0;return 1}return 0};if(!A.dropdown.cancel()){var E=L;while(E.className.indexOf("b-dropdown")==-1){E=E.parentNode}var D=E.parentNode;C=document.createElement("div");C.className="b-dropdown-popup";D.insertBefore(C,E);var M=navigator.userAgent;var G=document.createElement("iframe");G.frameBorder=0;if(M.match(/MSIE/)&&!M.match("Opera")){G.src="javascript:'<body style=\\'background:none;overflow:hidden\\'>'"}else{}C.appendChild(G);if((M.match(/MSIE [56]/)||((document.compatMode!="CSS1Compat")&&M.match(/MSIE/)&&!M.match(/Opera/)))){var I=document.createElement("span");I.style.width=E.offsetWidth+"px";I.style.height=E.offsetHeight+"px";I.style.zoom=1;D.insertBefore(I,E)}else{D.insertBefore(E.cloneNode(true),E)}C.appendChild(E);A.addEvent(J,"keydown",K);A.addEvent(J,"click",O);A.addEvent(C,"mouseout",F);A.addEvent(C,"mouseover",N)}return false}})(window.Lego);(function(A){if(!A){A=window.Lego={}}A.getCookie=function(E){var D=document.cookie;if(D.length<1){return false}var B=D.indexOf(E+"=");if(B==-1){return false}B+=(E.length+1);var C=D.indexOf(";",B);return decodeURIComponent((C==-1)?D.substring(B):D.substring(B,C))}})(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 D=parseFloat(((new Date().getTime())-C[0]*1000-C[1])/1000);if(C[2]=="3"){return D<1209600}return D<7200}})(window.Lego);(function(B){if(!B){B=window.Lego={}}var A,C;B.login=function(N,K,S,E){if(B.isSessionValid()){return true}if(!K){K=location.href}var M=document.forms.LOGIN;if(!M){var I="tabindex=1";var L="http://passport.yandex.ru/passport?mode=";var H="position:absolute;";var Q="font-size:11px;padding:0;vertical-align:middle";var D="font:120% Arial,sans-serif;margin:0;vertical-align:middle";var U='<iframe frameborder=0 style="position:absolute;background:#fff'+((!(navigator.userAgent.match(/MSIE [67]/)&&!navigator.userAgent.match(/Opera/))&&!(navigator.platform.match(/Linux/)&&!navigator.userAgent.match(/Konqueror/)))?";display:none":"")+'"></iframe>';var R=' style="'+Q+'"';M=document.createElement("div");M.innerHTML+='<div style="font-size:12px;'+H+'z-index:9999;top:33px;left:50%;display:none;width:21.1em;margin-left:-10.5em;">'+U+U+'<form name=LOGIN class=login action="'+L+'auth"method=post onsubmit="this.timestamp.value=new Date().getTime()"style="'+H+'background:#333"><div style="position:relative;top:-3px;left:-3px;border:1px solid #000;border-top-color:#666;border-left-color:#666;background:#fff"><span style="font-family:Verdana,sans-serif;font-size:85%;'+H+'padding:0.05em 0.55em 0.25em;color:#f8d471;background:#900">&#1087;&#1072;&#1089;&#1087;&#1086;&#1088;&#1090;</span><table cellspacing=5 style="width:100%;margin-top:17px;border-spacing:5px;border-collapse:separate;border:15px solid #fff;color:#000"><tr><td><td style="'+Q+';width:99%;padding-bottom:10px"><a '+I+' style="color:#666"href="'+L+"register&amp;msg="+(E?E:"mail")+"&amp;retpath="+K+'">&#1047;&#1072;&#1088;&#1077;&#1075;&#1080;&#1089;&#1090;&#1088;&#1080;&#1088;&#1086;&#1074;&#1072;&#1090;&#1100;&#1089;&#1103;</a><tr><td'+R+">&#1051;&#1086;&#1075;&#1080;&#1085;:<td"+R+'><input name=login style="width:99%;'+D+'"'+I+"><tr><td"+R+">&#1055;&#1072;&#1088;&#1086;&#1083;&#1100;:<td"+R+'><input name=passwd type=password style="width:99%;'+D+'"'+I+"><tr><td><td"+R+"><input id=z name=twoweeks "+I+' type=checkbox value=yes style="'+D+'"> <label for=z>&#1079;&#1072;&#1087;&#1086;&#1084;&#1085;&#1080;&#1090;&#1100; &#1084;&#1077;&#1085;&#1103;</label> <a style="margin-left:4px"tabindex=3 href="http://help.yandex.ru/passport/?id=922493"target=help><img src="http://img.yandex.net/i/i-help2.gif"width=10 height=10 border=0 alt="[?]"></a><div style="padding-top:.9em"><input type=hidden name=retpath value="'+K+'"><input type=hidden name=timestamp>'+(S?"<input type=hidden name=kspace>":"")+'<input style="'+D+';margin-right:9px"type=submit '+I+' value="&#1042;&#1086;&#1081;&#1090;&#1080;"><input type=button style="'+D+'"'+I+' onclick="Lego.loginHide()"value="&#1047;&#1072;&#1082;&#1088;&#1099;&#1090;&#1100;"><div style="margin-top:1.4em"><a tabindex=2 style="color:#666"href="'+L+'remember">&#1047;&#1072;&#1073;&#1099;&#1083;&#1080; &#1087;&#1072;&#1088;&#1086;&#1083;&#1100;?</a></div></div></table></div></form>';document.body.appendChild(M);M=document.forms.LOGIN}C=document.onkeydown;document.onkeydown=function(F){F=F||window.event;if((F.keyCode==27)&&(!F.ctrlKey)&&(!F.altKey)){B.loginHide()}};if(N==2){var O=getCookie("yandex_login");N=(O&&O.length>1);if(N){if(M.login.value!=O){M.login.value=O;M.passwd.value="";N=-1}}}M.twoweeks.checked=(N==3);if(S){M.kspace.value=S}M.parentNode.style.display="block";var J=M.previousSibling;var G=J.previousSibling;J.style.width=G.style.width=M.scrollWidth+"px";J.style.height=G.style.height=M.scrollHeight+"px";G.style.margin="-3px 0 0 -3px";setTimeout("document.forms.LOGIN."+(N!=-1?"login":"passwd")+".focus()",1);A=M;return false};B.loginHide=function(){document.onkeydown=C;var D=A.parentNode;D.style.display="none";A=null}})(window.Lego);(function(A){if(!A){A=window.Lego={}}A.tabs=function(B){if(document.getElementById&&(typeof (encodeURIComponent)=="function")){var F=document.getElementById("tabs");if(F){var G=document.getElementById("b-head-search");F=F.getElementsByTagName("a");var C=F.length-1;var H=document.getElementById("advanced");var E;if(H){E=H.href;E=E.replace(/([?&])text=[^&]*/g,"$1");E+=E.indexOf("?")==-1?"?":"&"}var D=527;switch(B){case"www":D=505;break;case"search":D=521;break;case"images":D=526;break}setInterval(function(){var M="";for(var L=0;L<G.length;L++){if(G[L].type=="text"){M=G[L].value.replace(/^\s+|\s+$/g,"");break}}if(H){H.href=E+(M!=""?"text="+encodeURIComponent(M):"")}for(var L=0;L<C;L++){var J="";var I=F[L];var N=I.host.split(".")[0];if(N=="clck"){continue}if(M!=""){if((N=="www")||(N=="images")){J="yandsearch?"}else{if(N=="news"){J="yandsearch?rpt=nnews&grhow=clutop&"}else{if(N=="yaca"){J="yandsearch?rpt=rs2&"}else{if(N=="market"){J="search.xml?clid="+D+"&cvredirect=1&"}else{if(N=="blogs"){J="search.xml?ft=blog&"}else{if(N=="maps"){J="?"}else{if((N=="auto")||(N=="adresa")||(N=="video")||(N=="slovari")){J="search.xml?"}else{continue}}}}}}}J+="text="+encodeURIComponent(M)}else{if(N=="market"){J="?clid="+D+"&cvredirect=1&"}}var K=I.protocol+"//"+I.host+"/"+J;if((I.parentNode.tagName.toLowerCase()!="strong")&&(I.href!=K)){I.href=K}}},200)}}}})(window.Lego);(function(A){if(!A){A=window.Lego={}}A.sample=function(B,E){var C=(E&&E.name)||"text";var D=document.getElementById("b-head-search");if(E&&E.nl&&!D.nl){var F=document.createElement("input");F.name="nl";F.type="hidden";F.value=1;D.appendChild(F)}D[C].value=(B.innerText?B.innerText:B.innerHTML.replace(new RegExp("<.*?>","g"),"").replace(/&nbsp;/g," ")).replace(/&amp;/g,"&").replace(/&quot;/g,'"');D[C].focus();return false}})(window.Lego);(function(A){if(!A){A=window.Lego={}}A.clean=function(B){var C=B.previousSibling;if(C){B.onblur=function(){if(!B.value){C.style.top=""}};C.style.top="-9999px"}};A.cleanIfNotEmpty=function(C){var E=[];for(var B=0;B<C.length;B++){E[B]=document.getElementById(C[B])}var D=function(){for(var F=0;F<E.length;F++){if(E[F].value){A.clean(E[F])}}};setInterval(D,100)}})(window.Lego);