function Forum(B,A){this._base=B;this._forum=0;this._topic=0;this._min_points=A;}Forum.prototype.editPost=function(D){var B=document.getElementById(D);if(!B){this.showHiddenPost(D,"$this.editPost (id);");return;}var C=this;var A=function(F){var E=B.innerHTML;if(B.getElementsByTagName("form")[0]){return false;}if(!B.parentNode.style.height||B.parentNode.style.height!="auto"){B.parentNode._height=B.parentNode.style.height;B.parentNode.style.height="auto";}var G=document.createElement("div");G.innerHTML=F;B.appendChild(G);B.style.height="310px";B.style.overflow="hidden";window.orcaSetupContent=function(J,H,I){H.innerHTML=E;window.orcaSetupContent=function(M,K,L){};};if(document.getElementById("tinyEditor_"+D)){tinyMCE.execCommand("mceAddControl",false,"tinyEditor_"+D);}C.checkHeight();return false;};new BxXslTransform(this._base+"?action=edit_post_xml&post_id="+D+"&topic_id="+this._topic,urlXsl+"edit_post.xsl",A);return false;};Forum.prototype.editPostCancel=function(D){var B=document.getElementById(D);var C=B.getElementsByTagName("form")[0];if(!C){return false;}try{tinyMCE.execCommand("mceRemoveControl",false,"tinyEditor_"+D);}catch(A){}B.removeChild(C.parentNode);B.style.height="auto";if(B.parentNode._height){B.parentNode.style.height=B.parentNode._height;}this.checkHeight();};Forum.prototype.expandPost=function(A){var B=document.getElementById(A);var G=B.parentNode.parentNode;var J=G.getElementsByTagName("li");var H=B.parentNode.getElementsByTagName("div");var I=H.length;var D=J.length;var C=parseInt(J[0].style.height);var F=null;for(var E=0;E<I;++E){if(H[E].className=="colexp2"){F=H[E];break;}}if(36==C||""==J[0].style.height){for(var E=0;E<D;++E){J[E].style.height=parseInt(J[E].clientHeight)+parseInt(B.clientHeight?B.clientHeight:B.offsetHeight)+15+"px";}F.style.backgroundPosition="0px -13px";}else{for(var E=0;E<D;++E){J[E].style.height="36px";}F.style.backgroundPosition="0px 0px";}this.checkHeight();};Forum.prototype.search=function(H,F,C,D,B){this.loading("SEARCHING");var A=document.getElementById("orca_main");if(!A){new BxError("orca_main div is not defined","please name orca_main content container");}var G=this;if(-1==H.search("%")){H=encodeURIComponent(H);}var E=function(J){var I=document.getElementById("orca_main");I.innerHTML=J;G.runScripts("orca_main");G.setWindowTitle(null);G.stopLoading();G.checkHeight();};new BxXslTransform(this._base+"?action=search&text="+H+"&type="+F+"&forum="+C+"&u="+D+"&disp="+B,urlXsl+"search.xsl",E);document.h.makeHist("action=goto&search_result=1&"+H+"&"+F+"&"+C+"&"+D+"&"+B);return false;};Forum.prototype.selectCat=function(H,B){var F=document.getElementById(B);if(!F){new BxError("category id is not defined","please set category ids");return false;}var I=F.nextSibling;while(I&&!(I.tagName=="DIV"||I.tagName=="div"||I.tagName=="UL"||I.tagName=="ul")){I=I.nextSibling;}if(I&&I.tagName!="DIV"&&I.tagName!="div"){I=null;}var A=F.nextSibling;while(A&&A.tagName!="UL"&&A.tagName!="ul"&&A.id&&!A.id.match(/^cat/)){A=A.nextSibling;}var C=F.getElementsByTagName("div")[0];if(I){C.style.backgroundPosition="0px 0px";F.parentNode.removeChild(I);return false;}this.loading("LOADING FORUMS");var G=this;var D=function(J){var K=document.createElement("div");K.innerHTML=J;if(I){F.parentNode.replaceChild(K,I);}else{F.parentNode.insertBefore(K,A);}G.setWindowTitle(null);C.style.backgroundPosition="0px -32px";G.stopLoading();G.checkHeight();};new BxXslTransform(this._base+"?action=list_forums&cat="+encodeURIComponent(H),urlXsl+"cat_forums.xsl",D);var E=document.h.rw("cat");document.h.makeHist(E.pre+H+E.ext);return false;};Forum.prototype.selectForum=function(F,E){this.loading("LOADING FORUM TOPICS");var B=document.getElementById("orca_main");if(!B){new BxError("orca_main div is not defined","please name orca_main content container");}this._forum=F;var D=this;var C=function(H){var G=document.getElementById("orca_main");G.innerHTML=H;D.setWindowTitle(null);D.stopLoading();D.checkHeight();};new BxXslTransform(this._base+"?action=list_topics&forum="+encodeURIComponent(this._forum)+"&start="+E,urlXsl+"forum_topics.xsl",C);var A=document.h.rw("forum");document.h.makeHist(A.pre+this._forum+A.page+E+A.ext);return false;};Forum.prototype.selectForumIndex=function(C){this.loading("LOADING FORUM INDEX");var B=document.getElementById("orca_main");if(!B){new BxError("orca_main div is not defined","please name orca_main content container");}var E=this;var D=function(G){B.innerHTML=G;E.setWindowTitle(null);E.stopLoading();E.checkHeight();var F=document.getElementById("cat"+C);if(F){F.blur();}correctPNG("live_fade");};new BxXslTransform(this._base+"?action=forum_index"+(C?("&cat="+C):""),urlXsl+"home.xsl",D);var A=document.h.rw("cat");document.h.makeHist(A.pre+C+A.ext);return false;};Forum.prototype.showProfile=function(C){this.loading("LOADING PROFILE PAGE");var B=document.getElementById("orca_main");if(!B){new BxError("orca_main div is not defined","please name orca_main content container");}var E=this;var D=function(F){B.innerHTML=F;E.setWindowTitle(null);E.stopLoading();E.checkHeight();};new BxXslTransform(this._base+"?action=profile&user="+C,urlXsl+"profile.xsl",D);var A=document.h.rw("user");document.h.makeHist(A.pre+C+A.ext);return false;};Forum.prototype.selectTopic=function(E){this.loading("LOADING TOPIC POSTS");var B=document.getElementById("orca_main");if(!B){new BxError("orca_main div is not defined","please name orca_main content container");}this._topic=E;var D=this;var C=function(F){B.innerHTML=F;D.setWindowTitle(null);D.runScripts("orca_main");D.stopLoading();D.checkHeight();};new BxXslTransform(this._base+"?action=list_posts&topic="+encodeURIComponent(this._topic),urlXsl+"forum_posts.xsl",C);var A=document.h.rw("topic");document.h.makeHist(A.pre+this._topic+A.ext);return false;};Forum.prototype.newTopic=function(D){this.loading("LOADING POST TOPIC PAGE");var A=document.getElementById("orca_main");if(!A){new BxError("orca_main div is not defined","please name orca_main content container");}this._forum=D;var C=this;var B=function(F){var E=document.getElementById("orca_main");E.innerHTML=F;C.setWindowTitle(null);if(document.getElementById("tinyEditor")){if(0<document.getElementById("tinyEditor").value.length){document.getElementById("tinyEditor").value="";}tinyMCE.execCommand("mceAddControl",false,"tinyEditor");}C.stopLoading();C.checkHeight();};new BxXslTransform(this._base+"?action=new_topic&forum="+encodeURIComponent(this._forum),urlXsl+"new_topic.xsl",B);document.h.makeHist("action=goto&new_topic="+this._forum);return false;};Forum.prototype.cancelNewTopic=function(A,C){if(document.getElementById("tinyEditor")){try{tinyMCE.execCommand("mceRemoveControl",false,"tinyEditor");}catch(B){}}return this.selectForum(A,C);};Forum.prototype.showMyThreads=function(){if(!isLoggedIn){alert("Please login to view topics you participate in");return;}this.loading("LOADING");var A=document.getElementById("orca_main");if(!A){new BxError("orca_main div is not defined","please name orca_main content container");}var C=this;var B=function(E){var D=document.getElementById("orca_main");D.innerHTML=E;C.setWindowTitle(null);C.stopLoading();C.checkHeight();};new BxXslTransform(this._base+"?action=show_my_threads",urlXsl+"forum_topics.xsl",B);document.h.makeHist("action=goto&my_threads=1");return false;};Forum.prototype.showMyFlags=function(){if(!isLoggedIn){alert("Please login to view flagged topics");return;}this.loading("LOADING");var A=document.getElementById("orca_main");if(!A){new BxError("orca_main div is not defined","please name orca_main content container");}var C=this;var B=function(E){var D=document.getElementById("orca_main");D.innerHTML=E;C.setWindowTitle(null);C.stopLoading();C.checkHeight();};new BxXslTransform(this._base+"?action=show_my_flags",urlXsl+"forum_topics.xsl",B);document.h.makeHist("action=goto&my_flags=1");return false;};Forum.prototype.showSearch=function(){this.loading("LOADING SEARCH PAGE");var A=document.getElementById("orca_main");if(!A){new BxError("orca_main div is not defined","please name orca_main content container");}var C=this;var B=function(E){var D=document.getElementById("orca_main");D.innerHTML=E;C.setWindowTitle(null);C.stopLoading();C.checkHeight();};new BxXslTransform(this._base+"?action=show_search",urlXsl+"search_form.xsl",B);document.h.makeHist("action=goto&search=1");return false;};Forum.prototype.postReply=function(F,D){this.loading("LOADING POST REPLY PAGE");var A=document.getElementById("reply_container");if(!A){new BxError("orca_main div is not defined","please name orca_main content container");}if(document.getElementById("tinyEditor")){try{tinyMCE.execCommand("mceRemoveControl",false,"tinyEditor");}catch(C){}}this._forum=F;this._topic=D;var E=this;var B=function(G){A.innerHTML=G;A.style.display="block";if(document.getElementById("tinyEditor")){if(0<document.getElementById("tinyEditor").value.length){document.getElementById("tinyEditor").value="";}tinyMCE.execCommand("mceAddControl",false,"tinyEditor");}E.stopLoading();E.checkHeight();};new BxXslTransform(this._base+"?action=reply&forum="+this._forum+"&topic="+this._topic,urlXsl+"post_reply.xsl",B);return false;};Forum.prototype.postReplyWithQuote=function(G,D,F){this.loading("LOADING POST REPLY PAGE");var A=document.getElementById("reply_container");if(!A){new BxError("orca_main div is not defined","please name orca_main content container");}if(document.getElementById("tinyEditor")){try{tinyMCE.execCommand("mceRemoveControl",false,"tinyEditor");}catch(C){}}this._forum=G;this._topic=D;var E=this;var B=function(I){A.innerHTML=I;A.style.display="block";var H=E.getPostText(F);H=H.replace(/<text>/ig,"");H=H.replace(/<\/text>/ig,"");H='<p>&#160;</p><div class="quote_post">'+H+"</div> <p>&#160;</p>";window.orcaSetupContent=function(L,J,K){J.innerHTML=H;window.orcaSetupContent=function(O,M,N){};};if(document.getElementById("tinyEditor")){tinyMCE.execCommand("mceAddControl",false,"tinyEditor");}E.stopLoading();E.checkHeight();};new BxXslTransform(this._base+"?action=reply&forum="+this._forum+"&topic="+this._topic,urlXsl+"post_reply.xsl",B);return false;};Forum.prototype.cancelReply=function(){if(document.getElementById("tinyEditor")){try{tinyMCE.execCommand("mceRemoveControl",false,"tinyEditor");}catch(B){}}var A=document.getElementById("reply_container");if(!A){new BxError("orca_main div is not defined","please name orca_main content container");}A.innerHTML="&#160;";A.style.display="none";};Forum.prototype.accessDenied=function(){this.loading("LOADING");var A=document.getElementById("orca_main");if(!A){new BxError("orca_main div is not defined","please name orca_main content container");}var C=this;var B=function(E){var D=document.getElementById("orca_main");D.innerHTML=E;C.setWindowTitle(null);C.stopLoading();C.checkHeight();};new BxXslTransform(this._base+"?action=access_denied",urlXsl+"default_access_denied.xsl",B);return false;};Forum.prototype.postSuccess=function(B){this.loading("LOADING");var A=document.getElementById("orca_main");if(!A){new BxError("orca_main div is not defined","please name orca_main content container");}if(document.getElementById("tinyEditor")){try{tinyMCE.execCommand("mceRemoveControl",false,"tinyEditor");}catch(D){}}this._forum=B;var E=this;var C=function(G){var F=document.getElementById("orca_main");F.innerHTML=G;E.stopLoading();E.checkHeight();};new BxXslTransform(this._base+"?action=post_success&forum="+encodeURIComponent(B),urlXsl+"default_post_success.xsl",C);return false;};Forum.prototype.replySuccess=function(B,C){try{tinyMCE.execCommand("mceRemoveControl",false,"tinyEditor");}catch(A){}return this.selectTopic(C);};Forum.prototype.deletePost=function(D,C,A,E){if(E){if(!confirm("Are you sure ?")){return false;}}var B=document.getElementById("tmp_del_form");if(!B){B=document.createElement("form");B.style.display="none";B.id="tmp_del_form";B.method="post";B.target="post_actions";document.body.appendChild(B);}if(!B){return;}B.action="index.php?action=delete_post&post_id="+D+"&forum_id="+C+"&topic_id="+A;B.submit();return false;};Forum.prototype.deleteSuccess=function(A,B,C){if(A){if(C){this.selectTopic(B);}else{this.selectForum(A,0);}}else{if(0==A&&0==B){orca_admin.reportedPosts();}}if(C){this.showModalMsg("Post was successfully deleted");}else{this.showModalMsg("Topic and post were successfully deleted");}return false;};Forum.prototype.editSuccess=function(A){this.selectTopic(A);this.showModalMsg("Post was successfully edited");return false;};Forum.prototype.composeMessage=function(D,A){this.loading("LOADING");var C=this;var B=function(E){var F=document.getElementById("messages");F.innerHTML=E;C.stopLoading();C.checkHeight();};new BxXslTransform(this._url+"&compose=1&to="+D+"&mID="+A,urlXsl+"mailbox_compose.xsl",B);};Forum.prototype.composeComplete=function(A){this.loading("SENDING MESSAGE");var C=this;var B=function(D){var E=document.getElementById("messages");E.innerHTML=D;C.stopLoading();C.checkHeight();};new BxXslTransform(this._url+"&compose_complete=1&ret="+A,urlXsl+"mailbox_compose_complete.xsl",B);};Forum.prototype.validateForm=function(A){if(A.mText.value.length==0){alert("Message body empty");return false;}this.loading("SENDING MESSAGE");return true;};Forum.prototype.showValidChars=function(A){alert("Valid chars:\r\n A-Z a-z 0-9 ! @ # $ % ^ & * ( ) < > _ = + { } ' \" ? . : , | / \\ [] -");};Forum.prototype.checkSubject=function(A){if(A.length<5||A.length>50){return false;}return true;};Forum.prototype.checkText=function(A){return((A.length>4&&A.length<64000)?true:false);};Forum.prototype.checkPostTopicValues=function(B,A,F){var E=false;var C=false;var D;if(true==F){D=document.getElementById("err_"+B.name);if(!this.checkSubject(B.value)){if(D){D.style.display="inline";}B.style.backgroundColor="#ffaaaa";B.focus();}else{if(D){D.style.display="none";}B.style.backgroundColor="#ffffff";E=true;}}D=document.getElementById("err_"+A.name);if(!this.checkText(A.value)){if(D){D.style.display="inline";}A.style.backgroundColor="#ffaaaa";}else{if(D){D.style.display="none";}A.style.backgroundColor="#ffffff";C=true;}return(F?(E&&C):C);};Forum.prototype.hideModalMsg=function(){var B=document.body;var A=document.getElementById("modal_msg");B.removeChild(A);};Forum.prototype.showModalMsg=function(G){var E=document.body;var C=document.createTextNode(G);var F=document.createElement("div");var D=document.createElement("div");var B=document.createElement("br");var A=document.createElement("input");E.appendChild(F);F.id="modal_msg";F.style.position="absolute";F.style.zIndex="50001";F.style.textAlign="center";F.style.width=E.clientWidth+"px";F.style.height=(window.innerHeight?(window.innerHeight+30):screen.height)+"px";F.style.top=getScroll()-30+"px";F.style.left=0+"px";F.style.display="inline";F.style.backgroundImage="url("+urlImg+"img/loading_bg.gif)";D.style.border="1px solid #B5B5B5";D.style.backgroundColor="#F3F3F3";D.style.color="#333333";D.style.padding="20px";D.style.marginTop=(parseInt(F.style.height)/2-20)+"px";D.style.marginLeft="auto";D.style.marginRight="auto";D.style.width="300px";D.style.fontWeight="bold";D.style.lineHeight="30px";A.type="reset";A.value=" OK ";A.style.marginTop="15px";A.onclick=function(){document.f.hideModalMsg();return false;};F.appendChild(D);D.appendChild(C);D.appendChild(B);D.appendChild(A);};Forum.prototype.stopLoading=function(){var A=document.getElementById("loading");if(A){A.style.display="none";}};Forum.prototype.loading=function(A){var D=document.getElementById("loading");var C=document.body;if(D){D.firstChild.innerHTML=A+"...";D.style.top=getScroll()-30+"px";D.style.left=0+"px";D.style.display="inline";}else{var D=document.createElement("div");var B=document.createElement("span");C.appendChild(D);D.id="loading";D.style.position="absolute";D.style.zIndex="50000";D.style.textAlign="center";D.style.width=C.clientWidth+"px";D.style.height=(window.innerHeight?(window.innerHeight+30):screen.height)+"px";D.style.top=getScroll()-30+"px";D.style.left=0+"px";D.style.display="inline";D.style.backgroundImage="url("+urlImg+"img/loading_bg.gif)";B.style.border="1px solid #B5B5B5";B.style.backgroundColor="#F3F3F3";B.style.color="#333333";B.style.padding="20px";B.style.fontWeight="bold";B.style.lineHeight=D.style.height;D.appendChild(B);B.innerHTML=A+"...";}};Forum.prototype.hideHTML=function(B,D,C){var A=document.getElementById("show_html");if(A){document.body.removeChild(A);}};Forum.prototype.showHTML=function(B,A,C){var E=document.getElementById("show_html");var D=document.body;if(E){var F=E.firstChild;F.innerHTML=B;E.style.top=getScroll()-30+"px";E.style.left=0+"px";E.style.display="block";if(A){F.style.width=A+"px";}if(C){F.style.height=C+"px";}F.style.top=parseInt(E.style.height)/2-C/2+"px";F.style.width=parseInt(E.style.width)/2-A/2+"px";}else{var E=document.createElement("div");var F=document.createElement("div");D.appendChild(E);E.id="show_html";E.style.position="absolute";E.style.zIndex="49000";E.style.textAlign="center";E.style.width=D.clientWidth+"px";E.style.height=(window.innerHeight?(window.innerHeight+30):screen.height)+"px";E.style.top=getScroll()-30+"px";E.style.left=0+"px";E.style.display="inline";E.style.backgroundImage="url("+urlImg+"img/loading_bg.gif)";F.innerHTML=B;F.style.position="absolute";if(A){F.style.width=A+"px";}if(C){F.style.height=C+"px";}F.style.top=parseInt(E.style.height)/2-C/2+"px";F.style.left=parseInt(E.style.width)/2-A/2+"px";E.appendChild(F);}};Forum.prototype.checkHeight=function(){};Forum.prototype.hideHiddenPost=function(D){this.loading("POST IS LOADING");var A=document.getElementById("post_row_"+D);if(!A){return false;}var C=this;var B=function(E){A.innerHTML=E;C.stopLoading();C.checkHeight();};new BxXslTransform(this._base+"?action=hide_hidden_post&post_id="+D,urlXsl+"forum_posts.xsl",B);return false;};Forum.prototype.showHiddenPost=function(id,run){this.loading("POST IS LOADING");var m=document.getElementById("post_row_"+id);if(!m){return false;}var $this=this;var h=function(r){m.innerHTML=r;var mm=document.getElementById("post_row_"+id);if(mm){mm.innerHTML=$this.replaceTildaA(mm.innerHTML);}$this.runScripts("post_row_"+id);$this.stopLoading();$this.checkHeight();if(run){eval(run);}};new BxXslTransform(this._base+"?action=show_hidden_post&post_id="+id,urlXsl+"forum_posts.xsl",h);return false;};Forum.prototype.alignPost=function(A,B){if(A.parentNode&&B>=this._min_points){var C=A.parentNode.parentNode.parentNode;var D=35;if((A.clientHeight+D)>C.clientHeight){C.style.height=A.clientHeight+5+"px";}document.f.checkHeight();}};Forum.prototype.voteGood=function(A){var C=this;var B=function(E){var G=new BxXmlRequest("","","");var D=G.getRetNodeValue(E,"ret");if("1"==D){var F=document.getElementById("points_"+A);F.innerHTML=parseInt(F.innerHTML)+1;C.hideVoteButtons(A);C.hideReportButton(A);return false;}alert("Vote error");return false;};new BxXmlRequest(this._base+"?action=vote_post_good&post_id="+A,B,true);return false;};Forum.prototype.flag=function(A){var C=this;var B=function(E){var F=new BxXmlRequest("","","");var D=F.getRetNodeValue(E,"ret");if("1"==D){alert("Topic has been successfully added to your flagged topics");return false;}if("-1"==D){alert("Topic has been successfully removed from your flagged topics");return false;}alert("Please login to flag topics");return false;};new BxXmlRequest(this._base+"?action=flag_topic&topic_id="+A,B,true);return false;};Forum.prototype.report=function(A){var C=this;var B=function(E){var F=new BxXmlRequest("","","");var D=F.getRetNodeValue(E,"ret");if("1"==D){alert("Post has been reported");return false;}alert("Report error");return false;};new BxXmlRequest(this._base+"?action=report_post&post_id="+A,B,true);return false;};Forum.prototype.voteBad=function(A){var C=this;var B=function(E){var G=new BxXmlRequest("","","");var D=G.getRetNodeValue(E,"ret");if("1"==D){var F=document.getElementById("points_"+A);F.innerHTML=parseInt(F.innerHTML)-1;C.hideHiddenPost(A);return false;}alert("Vote error");return false;};new BxXmlRequest(this._base+"?action=vote_post_bad&post_id="+A,B,true);return false;};Forum.prototype.hideVoteButtons=function(B){var C=document.getElementById("rate_"+B);var A=C.getElementsByTagName("img");if(A[0]){A[0].src=urlImg+"vote_good_gray.gif";A[0].parentNode.onclick=function(){};}if(A[1]){A[1].src=urlImg+"vote_bad_gray.gif";A[1].parentNode.onclick=function(){};}};Forum.prototype.hideReportButton=function(B){var C=document.getElementById("report_"+B);var A=C.getElementsByTagName("img");if(A[0]){A[0].src=urlImg+"report_gray.gif";A[0].parentNode.onclick=function(){};}};Forum.prototype.getPostText=function(A){var B=document.getElementById(A);if(!B){return"";}return B.innerHTML;};function getScroll(){if(navigator.appName=="Microsoft Internet Explorer"){return document.documentElement.scrollTop;}else{return window.pageYOffset;}}Forum.prototype.livePost=function(C){var E=3000;var D=this;var A=document.getElementById("live_tracker");var B=function(H){var I=new BxXmlRequest("","","");var F=I.getRetNodeValue(H,"ret");if(F>0){var G=function(L){if(!A){return;}var K=A.lastChild;while(K.className!="live_post"){K=K.previousSibling;if(!K){break;}}if(K){A.removeChild(K);}A.innerHTML=L+A.innerHTML;setTimeout("f.livePost("+F+")",E);var J=A.firstChild;while(J.className!="live_post"){J=J.nextSibling;if(!J){break;}}setTimeout("f.fade('"+J.id+"',1,1,1)",100);};new BxXslTransform(D._base+"?action=get_new_post&ts="+C+"&now="+(new Date()),urlXsl+"live_tracker_main.xsl",G);return false;}setTimeout("f.livePost("+C+")",E);return false;};if(A){new BxXmlRequest(this._base+"?action=is_new_post&ts="+C+"&now="+(new Date()),B,true);}return false;};Forum.prototype.fade=function(E,C,B,A){C+=5;B+=5;A+=5;if(C>59){C=59;}if(B>59){B=59;}if(A>59){A=59;}var D=document.getElementById(E);D.style.height=A+"px";if(C<59||B<59||A<59){setTimeout("f.fade('"+E+"',"+C+","+B+","+A+")",100);}};Forum.prototype.setWindowTitle=function(A){if((!A||!A.length)&&document.getElementById("forum_title")){A=document.getElementById("forum_title").innerHTML;}if(!A||!A.length){window.document.title=defTitle;}else{window.document.title=A+" :: Orca Forum ";}};Forum.prototype.runScripts=function(id){var ee=document.getElementById(id);var a=ee.getElementsByTagName("script");var ajs=new Array(a.length);if(!a.length){return;}for(var i=0;i<a.length;++i){if(!a[i]){continue;}ajs[i]=a[i].innerHTML;}for(var i=0;i<ajs.length;++i){eval(ajs[i]);}};Forum.prototype.replaceTildaA=function(A){return A.replace(/\xC2/gm,"");};