var mc=[0,0],or,response,req,reqstr,reqpos,reqid,start,stat,timerID,mID,row,url,nc,c=new Object,notl,dht,m,startoffset=[0,0],scrolloffset=[0,0];var width=typeof (w)!="undefined"?w:250;var height=typeof (h)!="undefined"?h:100;var half=width/2-15;if(document.captureEvents&&Event.MOUSEMOVE){document.captureEvents(Event.MOUSEMOVE);}document.onmousemove=getCoords;document.onscroll=scrolled;function scrolled(){var _1=window.pageXOffset?window.pageXOffset:document.body.scrollLeft;var _2=window.pageYOffset?window.pageYOffset:document.body.scrollTop;_1-=startoffset[0];_2-=startoffset[1];scrolloffset=[_1,_2];}function m(e){if(!e){e=window.event;}row=e.parentNode;while(row.tagName!="TR"){row=row.parentNode;}clearTimeout(dht);}function addEvent(_4,_5,_6){if(_4.addEventListener){_4.addEventListener(_5,_6,false);return true;}else{if(_4.attachEvent){return _4.attachEvent("on"+_5,_6);}}}function getOffset(){var _7=document.cookie.match("(^|;) ?tz=([^;]*)(;|$)");if(_7){return (unescape(_7[2]));}else{return null;}}function changeVis(_7){clearTimeout(timerID);clearTimeout(mID);if(or==1){return;}var _8=document.getElementById("tipdiv");if(!_8){return;}_8.style.display=_7?"":"none";}function changePos(_9,_a){iWidth=window.innerWidth?window.innerWidth:document.body.clientWidth;if(_9>iWidth-(width+50)){_9=iWidth-(width+50);}var _b=document.getElementById("tipdiv");if(!_b){return;}if(_b.style){_b=_b.style;}var _c=document.childNodes?"px":0;if(typeof (_9)=="number"){_b.left=_9+_c;}if(typeof (_a)=="number"){_b.top=_a+_c;}}function getCoords(e){if(document.all){var _e=event.clientX;var _f=event.clientY;if(!((window.ScriptEngine&&ScriptEngine().indexOf("InScript")+1)||window.navigator.vendor=="KDE")){if(document.documentElement&&(document.documentElement.scrollTop||document.documentElement.scrollLeft)){_e+=document.documentElement.scrollLeft;_f+=document.documentElement.scrollTop;}else{if(document.body&&(document.body.scrollTop||document.body.scrollLeft)){_e+=document.body.scrollLeft;_f+=document.body.scrollTop;}}}}else{if(typeof (e.pageX)=="number"){var _e=e.pageX;var _f=e.pageY;}}_e+=scrolloffset[0];_f+=scrolloffset[1];mc=[_e,_f];var _10=window.pageXOffset?window.pageXOffset:document.body.scrollLeft;var top=window.pageYOffset?window.pageYOffset:document.body.scrollTop;startoffset=[_10,top];scrolled();}function mark(mn,hd){if(mn){url=mn;}if(hd=="m"){for(i=0;i<row.childNodes.length;i++){if(row.childNodes[i].tagName=="TD"){if(row.childNodes[i].innerHTML.indexOf("N.gif")!=-1){for(x=0;x<row.childNodes[i].childNodes.length;x++){var _14=row.childNodes[i].childNodes[x];if(typeof (_14.tagName)!="undefined"&&_14.tagName.toLowerCase()=="img"&&_14.src.indexOf("N")!=-1){_14.src=_14.src.replace("N","V");_14.onclick=null;_14.style.cursor="default";_14.title=null;_17="m";}}}}}}if(row.className.indexOf("new")!=-1){row.className=row.className.replace("new","");for(i=0;i<row.childNodes.length;i++){if(row.childNodes[i].tagName=="TD"){if(row.childNodes[i].innerHTML.indexOf("newfolder")!=-1){for(x=0;x<row.childNodes[i].childNodes.length;x++){var _14=row.childNodes[i].childNodes[x];if(typeof (_14.tagName)!="undefined"&&_14.tagName.toLowerCase()=="img"&&_14.src.indexOf("newfolder")!=-1){_14.src=_14.src.replace("newfolder","nonewfolder");var n=mn;_14.onclick=function onclick(_16){m(this);mark(n,2);};_14.title="Click to hide.";}}}if(row.childNodes[i].innerHTML.indexOf("standouttext")!=-1){row.childNodes[i].innerHTML=row.childNodes[i].innerHTML.replace(/<font class="standouttext">\(\d+\)<\/font>/,"");}}}var _17=1;}else{if(hd!="m"){if(typeof (hd)!="undefined"){var _18=confirm("Do you want to hide this thread?");if(_18==false){return;}row.parentNode.removeChild(row);var _17=2;}else{return;}}}if(window.XMLHttpRequest){req=new XMLHttpRequest();nchar=null;}else{req=new ActiveXObject("Microsoft.XMLHTTP");nchar="";}req.open("GET","/forums/includes/tooltip/postcontents.php?n="+url+"&m="+_17,true);req.send(nchar);}function show(txt,e){var _1b,_1c,_1d,_1e,txt,_1g,_21;try{url=txt.getElementsByTagName("id").item(0).firstChild.data;}catch(e){}try{_1g=txt.getElementsByTagName("first").item(0).firstChild.data;}catch(e){}try{_1h=txt.getElementsByTagName("last").item(0).firstChild.data;}catch(e){}try{_1b=txt.getElementsByTagName("prev").item(0).firstChild.data;}catch(e){}try{_1c=txt.getElementsByTagName("next").item(0).firstChild.data;}catch(e){}try{_1d=txt.getElementsByTagName("name").item(0).firstChild.data;}catch(e){}try{var tz=getOffset();if(!tz){tz=0;}var _21=parseInt(txt.getElementsByTagName("when").item(0).firstChild.data)+parseInt(tz);var _22=parseInt(new Date().getTime().toString().substring(0,10))-_21;var _23="";if(_22<60){_23="just now";}else{if(_22>=60&&_22<3600){var x=Math.round(_22/60);_23=x+" minute"+(x>1?"s":"")+" ago";}else{if(_22>=3600&&_22<86400){var x=Math.round(_22/3600);_23=x+" hour"+(x>1?"s":"")+" ago";}else{if(_22>=86400){var x=Math.round(_22/86400);_23=x+" day"+(x>1?"s":"")+" ago";}}}}_1e=_23;}catch(e){}try{txt=txt.getElementsByTagName("content").item(0).firstChild.data;}catch(e){}var _1f="";if(_1b||_1c){_1f="<div class=\"menubar\" id=\"tiptitle\" style=\"padding:0px;margin-bottom:2px;right:0px;\">";_1f+="<center><a style=\"display:inline-block;z-index:1002;position:relative;top:0px;\" href=\"/forums/showflat.php/Number/"+url+"#"+url+"\">By "+_1d+" ("+_1e+")</a></center></div>";if(_1b){_1f+="<div id=\"lbar\" onmouseover=\"this.style.backgroundPosition='0px -21px';document.getElementById('lar').style.backgroundPosition='1px -21px';\" onmouseout=\"this.style.backgroundPosition='0px 0px';document.getElementById('lar').style.backgroundPosition='1px 0px'\" style=\"z-index:1001;position:absolute;top:0px;left:3px;width:6px;height:15px;background:url(/forums/images/bar.gif);background-repeat:no-repeat;background-position:0px 0px;cursor:pointer;cursor:hand;\" onclick=\"getBody('"+_1g+"','',1);\"></div>";_1f+="<div id=\"lar\" onmouseover=\"this.style.backgroundPosition='1px -21px';\" onmouseout=\"this.style.backgroundPosition='1px 0px';\" style=\"z-index:1001;position:absolute;top:0px;left:9px;width:"+half+"px;height:15px;background:url(/forums/images/left2.gif);background-repeat:no-repeat;background-position:1px 0px;cursor:pointer;cursor:hand;\" onclick=\"getBody('"+_1b+"','',1);\"></div>";}if(_1c){_1f+="<div id=\"rar\" onmouseover=\"this.style.backgroundPosition='"+(half-7)+"px -21px';\" onmouseout=\"this.style.backgroundPosition='"+(half-7)+"px 0px';\" style=\"z-index:1001;position:absolute;top:0px;right:9px;width:"+half+"px;height:15px;background:url(/forums/images/right2.gif);background-repeat:no-repeat;background-position:"+(half-7)+"px 0px;cursor:pointer;cursor:hand;\" onclick=\"getBody('"+_1c+"','',1);\"></div>";_1f+="<div id=\"rbar\" onmouseover=\"this.style.backgroundPosition='0px -21px';document.getElementById('rar').style.backgroundPosition='"+(half-7)+"px -21px';\" onmouseout=\"this.style.backgroundPosition='0px 0px';document.getElementById('rar').style.backgroundPosition='"+(half-7)+"px 0px'\" style=\"z-index:1001;position:absolute;top:0px;right:3px;width:6px;height:15px;background:url(/forums/images/bar.gif);background-repeat:no-repeat;background-position:0px 0px;cursor:pointer;cursor:hand;\" onclick=\"getBody('"+_1h+"','',1);\"></div>";}_1f+="<div id=\"tipbody\" style=\"padding:0px;margin:0px;\">";}if(!txt){return;}txt=_1f+txt+"</div>";x=mc[0]+10;y=mc[1]+10;x+=scrolloffset[0];y+=scrolloffset[1];var bl=0,bt=0,bw=0,bh=0;if(window.innerWidth){bl=window.pageXOffset;bt=window.pageYOffset;bw=window.innerWidth;bh=window.innerHeight;}else{if(document.documentElement){bl=document.documentElement.scrollLeft;bt=document.documentElement.scrollTop;bw=document.documentElement.clientWidth;bh=document.documentElement.clientHeight;}else{if(document.body){bl=document.body.scrollLeft;bt=document.body.scrollTop;bw=document.body.clientWidth;bh=document.body.clientHeight;}}}if(x-bl+width>bw){x=bl+bw-width-8;}if(y-bt+height>bh){y=bt+bh-height-8;}if(nc!=1){changePos(x,y);}document.getElementById("tipdiv").innerHTML=txt;if(stat){changeVis(true);with(document.getElementById("tipdiv")){scrollTop=0;scrollLeft=0;}if(row&&mr>0){mID=self.setTimeout("mark('"+url+"','m')",mr*1000);}}if(document.getElementById("tiptitle")){if(document.getElementById("tipbody").offsetHeight+document.getElementById("tiptitle").offsetHeight<height&&document.getElementById("tipbody").offsetWidth<width){document.getElementById("tiptitle").style.width=width+"px";}else{document.getElementById("tiptitle").style.width="";}if(document.getElementById("rar")&&document.getElementById("tiptitle").clientWidth&&navigator.userAgent.indexOf("Opera")!=-1){document.getElementById("rar").style.left=(document.getElementById("tiptitle").clientWidth-half)+"px";}}if(document.getElementById("tipdiv").className!="lighttable"){document.getElementById("tipdiv").className="lighttable";}}function delayedHide(){if(or==1){return;}clearTimeout(reqid);clearTimeout(timerID);if(typeof (req)!="undefined"){req.abort();}if(document.getElementById("tipdiv").className!="lighttable"){document.getElementById("tipdiv").className="lighttable";}dht=self.setTimeout(function(){timerID=self.setTimeout("changeVis(false)",250);},1);}function delayHide(){stat=0;or=0;timerID=self.setTimeout("delayedHide()",1);}function over(){clearTimeout(dht);or=1;}function getBody(u,q,s){clearTimeout(dht);if(!document.getElementById("tipdiv")){var _23=document.createElement("div");_23.id="tipdiv";document.body.appendChild(_23);with(_23){className="lighttable";style.display="none";style.position="absolute";style.padding="2px";style.zIndex="1000";style.width=width+"px";style.height=height+"px";style.top="-500";style.overflow="auto";style.fontSize="smaller";style.border="1px solid white";}addEvent(_23,"mouseover",over);addEvent(_23,"mouseout",delayHide);}response=null;today=new Date();start=today.getTime();stat=1;if(!q){q="";}if(!s){s="";}url=u;nc=!s?0:s;if(document.getElementById("tipdiv").style.display!="none"&&nc!=1){changeVis(false);}if(c[url]){reqChange();return;}if(document.getElementById("tipdiv").className!="lighttable wait"){document.getElementById("tipdiv").className="lighttable wait";}reqpos=mc;reqstr="/forums/includes/tooltip/postcontents.php?q="+q+"&n="+u+"&s="+s;if(!getOffset()){reqstr+="&tz="+parseInt(new Date().getTime().toString().substring(0,10));}if(or!=1){reqid=self.setTimeout("doReq(reqstr)",200);}else{doReq(reqstr);}}function doReq(r){if(mc==reqpos||or==1){if(window.XMLHttpRequest){req=new XMLHttpRequest();nchar=null;}else{req=new ActiveXObject("Microsoft.XMLHTTP");nchar="";}req.onreadystatechange=reqChange;req.open("GET",r,true);req.send(nchar);}else{reqpos=mc;reqid=self.setTimeout("doReq(reqstr)",200);}}function reqChange(){if(typeof (c)!="undefined"&&c[url]){response=c[url];}else{try{if(req.readyState==4&&req.status==200){try{req.responseXML.normalize();}catch(e){}response=req.responseXML;if(response){c[response.getElementsByTagName("id").item(0).firstChild.data]=response;}}}catch(e){}}if(typeof (response)!="undefined"){today=new Date();lag=500-(today.getTime()-start);if(lag>0&&nc!=1){timerID=self.setTimeout("show(response)",lag);}else{show(response);}}}