function VBTrim(strVal){for(ij=0;ij<strVal.length;){if(strVal.charCodeAt(ij)==32){strVal=strVal.substr(1);}else{break;}}for(ij=(strVal.length-1);ij>0;){if(strVal.charCodeAt(ij)==32){strVal=strVal.substr(0,ij);ij=(strVal.length-1);}else{break;}}return(strVal.toString());}var mnu0=new Image;mnu0.src="/imgS/mnu0.gif";var mnu1=new Image;mnu1.src="/imgS/mnu1.gif";function ShowHelp(strHelp){try{divHelp.style.display="block";divHelp.innerHTML=strHelp;}catch(e){}}function CloseHelp(){try{divHelp.innerHTML="";divHelp.style.display="none";}catch(e){}}function MnuOn(){var el=event.srcElement;if(el.tagName!="A"){return;}ShowHelp(el.getAttribute("help"));mImg=el.parentElement.parentElement.cells(0).firstChild;mImg.src=mnu1.src;}function MnuOff(){var el=event.srcElement;if(el.tagName!="A"){return;}mImg=el.parentElement.parentElement.cells(0).firstChild;mImg.src=mnu0.src;CloseHelp();}var arrHlps=Array();arrHlps[0]="Вход в секретную комнату и авторизация для пользователей Рекламы-Мамы";function Srch_onactivate(){trSearch.cells(0).style.filter="";trSearch.cells(1).style.filter="";ShowHelp("Введите слово для поиска в текущем разделе (лучше без окончания), а затем нажмите клавишу Enter");}function Srch_ondeactivate(){trSearch.cells(0).style.filter="alpha(opacity=35)";trSearch.cells(1).style.filter="alpha(opacity=35)";CloseHelp();}function Srch_onsubmit(){el=frmSearch.search;el.value=VBTrim(el.value);if(el.value.length<1){alert("Введите слово для поиска!");el.focus();return(false);}ShowHelp('Пробую найти в текущем разделе сайта по слову "<i>'+el.value+'</i>"');self.setInterval("BlinkHelp()",600);return(true);}function on_resize(){objTDR=document.getElementById("tops");objTop=document.getElementById("Agotop");(document.body.offsetHeight+40<objTDR.offsetHeight)?objTop.style.display="inline":objTop.style.display="none";}function BlinkHelp(){if(divHelp.style.filter.length<2)divHelp.style.filter="alpha(opacity=45)";else divHelp.style.filter="";}function getXHTTPTransport(){var result=false;var actions=[function(){return new XMLHttpRequest();},function(){return new ActiveXObject('Msxml2.XMLHTTP');},function(){return new ActiveXObject('Microsoft.XMLHTTP');}];for(var i=0;i<actions.length;i++){try{result=actions[i]();break;}catch(e){}}return result;}function setCookie(name,value,exphour){var valueEscaped=escape(value);var expiresDate=new Date();expiresDate.setTime(expiresDate.getTime()+(exphour*60*60*1000));var expires=expiresDate.toGMTString();var newCookie=escape(name)+"="+valueEscaped+"; path=/; expires="+expires;if(valueEscaped.length<=4000)document.cookie=newCookie+";";}function getCookie(name){var prefix=name+"=";var cookieStartIndex=document.cookie.indexOf(prefix);if(cookieStartIndex==-1)return null;var cookieEndIndex=document.cookie.indexOf(";",cookieStartIndex+prefix.length);if(cookieEndIndex==-1)cookieEndIndex=document.cookie.length;return unescape(document.cookie.substring(cookieStartIndex+prefix.length,cookieEndIndex));}var intFadeStep=5,intFadeMin=80;function fadeIt(id){op=eval(id);obj=document.getElementById(id);if(op>0){op+=intFadeStep;}else{op=(-(op))-intFadeStep;}if(document.uniqueID){obj.style.filter="alpha(opacity="+op+")";}else{obj.style.opacity=Math.min(0.99,op/100);}if(eval(id)>0){nx=op;}else{nx=-(op);}eval(id+"="+nx);if(op>=100)eval(id+"=-100;");if(op<=intFadeMin)eval(id+"="+intFadeMin+";");setTimeout("fadeIt('"+id+"')",320);}