function searchMsdn(){return!1}function OpenWindow(n,t,i){var r="menubar=no,status=no,toolbar=no,resizable=yes,scrollbars=yes",u,f;return i&&(r="".concat(r,",height=").concat(i.height),r="".concat(r,",width=").concat(i.width),"object"==typeof screen&&(u=(window.screen.height-i.height)/2,f=(window.screen.width-i.width)/2,r="left=".concat(f,",top=").concat(u,",").concat(r))),window.windows[t]=window.open(n,t,r),window.windows[t]}function RateMsg(n){return OpenWindow(n,"RateWindow",{width:350,height:170}),!1}function SubMsg(n){return OpenWindow(n,"SubWindow",{width:400,height:180}),!1}function AddFav(n){return OpenWindow(n,"FavWindow",{width:380,height:130}),!1}function FileUpload(n){return OpenWindow(n,"UploadWindow",{width:450,height:300}),!1}function NewMsg(n){return $.browser.msie?(window.open(n,"_blank","menubar=no,status=no,toolbar=no,resizable=yes,scrollbars=yes"),!1):!0}function CloseMsgWindow(){for(var n in window.windows)window.windows[n]!=null&&window.windows[n].close()}function toggleExpand(n){var t=n.parentNode,u=t.tBodies[1].style.display==="none",i="",r;u?(i="hidden_Minus",t.tBodies[1].style.display=""):(i="hidden_Plus",t.tBodies[1].style.display="none");r=t.tBodies[0].rows[0].cells[0];r.className=i}function getWndPosition(n,t,i){var r=$(i).offset(),o=$(window).scrollTop()+$(window).height(),u=r.top+28,f=r.left-n,e=u+t<o?u:r.top-t;return{x:f<0?0:f,y:e<0?0:e}}function CheckForFreeFrames(){lfcount==0&&(document.getElementById("framecontainer").innerHTML="")}function LFrameCreate(n,t){lfcount++;t=t!=0?"&cur="+t:"";document.getElementById("framecontainer").innerHTML+="<iframe id='lf"+n+"' src='LoadRe.aspx?tid="+n+t+"' width='0' height='0'><\/iframe>"}function CancelLoading(n){ce=document.getElementById(n);ce.src=(ce.src.search("images/fr")==-1?ce.src.search("images/fa")==-1?"images/fc2":"images/fa2":"images/fr2")+(ce.src.search("m.gif")==-1?"":"m")+".gif";gp=document.getElementById("r"+n);gp.style.display="none";gp.setAttribute("_state","notloaded");gp.innerHTML="";document.getElementById("framecontainer").children["lf"+n].src="";lfcount--;window.setTimeout("CheckForFreeFrames()",100)}function LoadOneRe(n){n!=null&&n.name=="plus"&&(gp=document.getElementById("r"+n.id),gn=document.getElementById("n"+n.id),gd=document.getElementById("d"+n.id),gr=document.getElementById("p"+n.id),gp.getAttribute("_state")=="notloaded"&&(gp.setAttribute("_state","loading"),gp.innerHTML="<table cellspacing='0' cellpadding='0' style='border:1px solid #505070;cursor: pointer; height: 16px' onclick='return CancelLoading(\""+n.id+"\");'><tr><td class=l><font size=2>"+loadmess+"<\/font><\/td><\/tr><\/table>",gp.style.display="block",gn.style.display="block",gd.style.display="block",gr.style.display="block",n.src=(n.src.search("images/fr")==-1?n.src.search("images/fa")==-1?"images/fc2":"images/fa2":"images/fr2")+(n.src.search("m.gif")==-1?"":"m")+".gif",LFrameCreate(n.id,0)))}function LoadAllRe(){if(rts=document.all._roots,rts)if(rts.length==null)LoadOneRe(rts.children[0]);else for(i=0;i<rts.length;i++)LoadOneRe(rts[i].children[0])}function TurnRe(n,t){gp=document.getElementById("r"+n.id);gn=document.getElementById("n"+n.id);gd=document.getElementById("d"+n.id);gr=document.getElementById("p"+n.id);state=gp.getAttribute("_state");state=="opened"?(gp.setAttribute("_state","closed"),n.src=(n.src.search("images/fr")==-1?n.src.search("images/fa")==-1?"images/fc1":"images/fa1":"images/fr1")+(n.src.search("m.gif")==-1?"":"m")+".gif",gp.style.display="none",gn.style.display="none",gd.style.display="none",gr.style.display="none"):state=="closed"?(gp.setAttribute("_state","opened"),n.src=(n.src.search("images/fr")==-1?n.src.search("images/fa")==-1?"images/fc2":"images/fa2":"images/fr2")+(n.src.search("m.gif")==-1?"":"m")+".gif",gp.style.display="block",gn.style.display="block",gd.style.display="block",gr.style.display="block"):state=="notloaded"&&(gp.setAttribute("_state","loading"),gp.innerHTML="<table cellspacing='0' cellpadding='0' style='border:1px solid #505070;cursor: pointer; height: 16px;' onclick='return CancelLoading(\""+n.id+"\");'><tr><td class=l><font size=2>"+loadmess+"<\/font><\/td><\/tr><\/table>",gp.style.display="block",gn.style.display="block",gd.style.display="block",gr.style.display="block",n.src=(n.src.search("images/fr")==-1?n.src.search("images/fa")==-1?"images/fc2":"images/fa2":"images/fr2")+(n.src.search("m.gif")==-1?"":"m")+".gif",LFrameCreate(n.id,t))}function Click(n){return n.name=="plus"?(TurnRe(n,0),!1):(cl=document.getElementById("curlink"),cl!=null&&(cl.id=""),n.id="curlink",!0)}function LE(n,t,i,r,u){gp=document.getElementById("r"+n);gn=document.getElementById("n"+n);gd=document.getElementById("d"+n);gr=document.getElementById("p"+n);gp.setAttribute("_state","opened");gp.innerHTML=t;gn.innerHTML=i;gd.innerHTML=r;gr.innerHTML=u;gp.style.display="block";gn.style.display="block";gd.style.display="block";gr.style.display="block";lfcount--;window.setTimeout("CheckForFreeFrames()",100)}function scrollIntoView(n){var t={x:0,y:0};do t.x+=n.offsetLeft,t.y+=n.offsetTop;while(n=n.offsetParent);window.scrollTo(t.x,t.y)}function SC(){cl=document.getElementById("curlink");cl!=null&&(cl.scrollIntoView!=null?cl.scrollIntoView(!1):scrollIntoView(cl))}window.windows={};window.onunload=CloseMsgWindow;var lfcount=0,loadmess="Загрузка... Кликните для отмены";$(function(){var i,r,n,t;$("#search-btn").click(function(n){n.preventDefault();var t=$(n.delegateTarget).attr("data-action")+"?text="+encodeURIComponent($("#search-str").val());window.open(t,"_parent")});i=$("#tbl > tbody > tr");i.filter(":even").addClass("even");i.filter(":odd").addClass("odd");r="forumSplitterPosition";typeof Storage!="undefined"&&(n=window.parent,n!=null&&n!==window&&n.frames.frameMsg&&(t=parseInt(localStorage.getItem(r)),t&&t>5&&t<95&&$(n.document).find("frameset").attr("rows",t+"%,*"),$(window).resize(function(){var t=$(window).height(),i=$(n.frames.frameMsg.window).height(),u=parseInt((t*100/(t+i)+.5).toString());localStorage.setItem(r,u.toString())})))})