var userAgent=navigator.userAgent.toLowerCase();var is_opera=(userAgent.indexOf("opera")!=-1);var is_saf=((userAgent.indexOf("applewebkit")!=-1)||(navigator.vendor=="Apple Computer, Inc."));var is_webtv=(userAgent.indexOf("webtv")!=-1);var is_ie=((userAgent.indexOf("msie")!=-1)&&(!is_opera)&&(!is_saf)&&(!is_webtv));var is_ie4=((is_ie)&&(userAgent.indexOf("msie 4.")!=-1));var is_ie5=((is_ie)&&(userAgent.indexOf("msie 5.")!=-1));var is_moz=((navigator.product=="Gecko")&&(!is_saf));var is_kon=(userAgent.indexOf("konqueror")!=-1);var is_ns=((userAgent.indexOf("compatible")==-1)&&(userAgent.indexOf("mozilla")!=-1)&&(!is_opera)&&(!is_webtv)&&(!is_saf));var is_ns7=((is_ns)&&userAgent.indexOf("Netscape/7")!=-1);var is_ns4=((is_ns)&&(parseInt(navigator.appVersion)==4));var req=null;var response=null;function w(){var H=null;try{H=new ActiveXObject("Msxml2.XMLHTTP");}catch(S){try{H=new ActiveXObject("Microsoft.XMLHTTP");}catch(p){H=null;}}if(!H&&typeof XMLHttpRequest!="undefined"){H=new XMLHttpRequest();}return H;}function _sendx(H){if(req&&req.readyState!=0){req.abort();response=null;req=null;}_display("load","on");req=w();if(req){req.open("GET",H,true);req.onreadystatechange=_proc;req.send(null);}}function _proc(){if(req.readyState==4&&req.status==200&&req.responseText){response=req.responseXML.documentElement;var method=_gtag(response,"method")[0].firstChild.data;var param=_attr(_gtag(response,"method")[0],"param");eval(method+"("+param+")");}}function _get(H,p){var p=(typeof p=="object")?p:_gel(p);if(p){_display(p);}else{_sendx(H);}}function _refresh(H,p){var p=(typeof p=="object")?p:_gel(p);if(p){_sendx(H);}}function _display(p,H){var p=(typeof p=="object")?p:_gel(p);if(p){if(p.className=="x"||H=="on"){p.className="";}else{p.className="x";}}}function _close(H){var H=(typeof H=="object")?H:_gel(H);if(H){H.parentNode.removeChild(H);}}function _gel(H){if(typeof document.getElementById!="undefined"){return document.getElementById(H);}else{if(document.all){return document.all[H];}else{if(document.layers){return document.layers[H];}}}return null;}function _gtag(p,H){if(typeof p.getElementsByTagName!="undefined"){return p.getElementsByTagName(H);}else{if(p.all&&p.all.tags){return p.all.tags(H);}}return null;}function _attr(p,H){try{var x=(p.hasAttribute(H))?p.getAttribute(H):"";}catch(k){try{var x=p.getAttribute(H);}catch(S){var x="";}}return x;}function show_advert(){var H=new Array(0);H[0]="<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color: #ffa748; cursor: pointer\" onclick=\"document.location='http://www.serenity.su'\"><tr><td width=\"30%\" align=\"right\" style=\"background-color: #e9f4fa\"><a href=\"http://www.serenity.su\"><img src=\"http://www.prus.ru/inc/rec/i/1.jpg\" width=\"245\" height=\"91\" alt=\"Рекламное агентство Serenity\" title=\"Рекламное агентство Serenity\" /></a></td><td align=\"center\"><a href=\"http://www.serenity.su\"><img src=\"http://www.prus.ru/inc/rec/i/2.jpg\" width=\"247\" height=\"91\" alt=\"Рекламное агентство Serenity\" title=\"Рекламное агентство Serenity\" /></a></td></tr></table>";quo=rndnumber(0);quox=H[quo];document.write(quox);}function show_hello(p){var H=new Array(15);H[0]=p+" лучше всех!";H[1]=p+", мы гордимся тобой!";H[2]=p+", ты просто душка!";H[3]=p+", респект тебе!";H[4]=p+" - утка, что надо!";H[5]=p+", держи клюв поветру!";H[6]=p+", а ну дыхни-ка. Все ясно.";H[7]=p+", ты еще не на юге?";H[8]=p+" - утка кря кря какая!";H[9]=p+", улыбнись! Тебя снимает скрытая камера.";H[10]="Стой кто идет? А, "+p+"... Проходи.";H[11]=p+"! Ну наконец ты здесь!";H[12]=p+", без тебя скучно. Приходи почаще!";H[13]="Всем интересно, что скажет "+p+".";H[14]=p+", <a href=\"/viewtopic.php?t=17\" style=\"text-decoration: underline\">поделись</a> своей радостью.";quo=rndnumber(14);quox=H[quo];document.write("<div class=\"right\" style=\"font-weight: bold\">"+quox+"</div>");}function rndnumber(H){var p=-1;while(p<0||p>H||isNaN(p)){p=parseInt(Math.random()*(H+1));}return p;}function snav(S){var S=(typeof S=="object")?S:_gel(S);if(S==null){return false;}var H=(S.id=="a-nav-b")?_gel("f-nav-b"):_gel("f-nav");if(H==null){return false;}if(H.style.display=="block"){if(is_ie&&S.id=="a-nav-b"){_close(H.previousSibling);}S.style.textDecoration="none";S.style.fontWeight="normal";H.style.display="none";}else{if(is_ie&&S.id=="a-nav-b"){var p=document.createElement("br");H.parentNode.insertBefore(p,H);}S.style.textDecoration="underline";S.style.fontWeight="bold";H.style.display="block";}return false;}function openWin(S,p,x,H){param="width="+x+", height="+H+", status=no, toolbar=no, menubar=no, scrollbars=no";myWin=open(S,p,param);if(myWin.opener==null||!myWin.opener){myWin.opener=self;}myWin.focus();}function closeWin(H){if(opener){if(opener.closed){window.open(H,"");}else{if(opener.location.href.search(H)==-1){opener.location.href=H;}}self.close();return false;}return true;}function on(H){if(H==null){return false;}if(H.value=="логин"){H.style.color="#595959";H.value="";}}function off(H){if(H==null){return false;}if(H.value==""){H.style.color="#c0c0c0";H.value="логин";}}