var ie4=document.all?1:0,gecko=navigator.userAgent.indexOf("Gecko")>-1?1:0,op6=navigator.userAgent.indexOf("Opera/6")>-1?1:0,op7=navigator.userAgent.indexOf("Opera/7")>-1?1:navigator.userAgent.indexOf("Opera 7")>-1?1:0,ns4=navigator.userAgent.indexOf("Mozilla/4.7")>-1?1:0,sf=navigator.userAgent.indexOf("Safari")>-1?1:0;if(op7)ie4=0;if(sf){ie4=0;gecko=1}var LinkToField=""; function openspell(){height=391;width=555;if(ie4)LinkToField=self.document.getElementById("postform").message;if(gecko){LinkToField=parent.document.getElementById("postform").message;height+=6}if(op6){LinkToField=document.getElementById("postform").message;height+=10;width+=10}if(op7)LinkToField=document.getElementById("postform").message;if(op6||gecko||ie4||op7){if(LinkToField.value.length==0)return;directory="spelling/";k=openspell.arguments.length;if(k==1)directory="";win1=window.open(directory+ "phpSpell.html","spellcheckwin","resizable=no,width="+width+",height="+height);if(win1.opener==null)win1.opener=self}else alert("phpSpell only supports one of the following browsers:\nOpera 6+, Netscape 6+, Mozilla 1+, Internet Explorer 4+, Safari");return false}function Opera_Get_Link(){return LinkToField} function fontsizeup(a){if(a&&getKeyCode(a)==9)return true;a=getActiveStyleSheet();switch(a){case "A--":setActiveStyleSheet("A-");break;case "A-":setActiveStyleSheet("A");break;case "A":setActiveStyleSheet("A+");break;case "A+":setActiveStyleSheet("A++");break;case "A++":setActiveStyleSheet("A");break;default:setActiveStyleSheet("A");break}return false} function fontsizedown(a){if(a&&getKeyCode(a)==9)return true;a=getActiveStyleSheet();switch(a){case "A++":setActiveStyleSheet("A+");break;case "A+":setActiveStyleSheet("A");break;case "A":setActiveStyleSheet("A-");break;case "A-":setActiveStyleSheet("A--");break;case "A--":break;default:setActiveStyleSheet("A--");break}return false}function getKeyCode(a){var b=a.keyCode?a.keyCode:0;if(!b&&a.charCode)b=a.charCode;return b} function setActiveStyleSheet(a){var b,c;for(b=0;c=document.getElementsByTagName("link")[b];b++)if(c.getAttribute("rel").indexOf("style")!=-1&&c.getAttribute("title")){c.disabled=true;if(c.getAttribute("title")==a)c.disabled=false}}function getActiveStyleSheet(){var a,b;for(a=0;b=document.getElementsByTagName("link")[a];a++)if(b.getAttribute("rel").indexOf("style")!=-1&&b.getAttribute("title")&&!b.disabled)return b.getAttribute("title");return null}function getPreferredStyleSheet(){return"A-"} function createCookie(a,b,c){if(c){var d=new Date;d.setTime(d.getTime()+c*24*60*60*1000);c="; expires="+d.toGMTString()}else c="";document.cookie=a+"="+b+c+style_cookie_settings}function readCookie(a){a=a+"=";for(var b=document.cookie.split(";"),c=0;c=0)document.location.href=base_url.replace(/&/g,"&")+"&start="+a+b;else if(a>0){c=base_url.match(/\.[a-z0-9]+$/i);if(c!==null)document.location.href=base_url.replace(/\.[a-z0-9]+$/i,"")+seo_delim_start+a+c+b;c=base_url.match(/\/$/);if(c!==null)document.location.href=base_url+seo_static_pagination+ a+seo_ext_pagination+b}else document.location.href=base_url+b}} function phpbb_seo_href(){var a=document.domain.toLowerCase();if(a&&document.getElementsByTagName){if(seo_external_sub&&a.indexOf(".")>=0)a=a.replace(new RegExp(/^[a-z0-9_-]+\.([a-z0-9_-]+\.([a-z]{2,6}|[a-z]{2,3}\.[a-z]{2,3}))$/i),"$1");if(seo_ext_classes)var b=new RegExp("(^|s)("+seo_ext_classes+")(s|$)");if(seo_hashfix){var c=document.getElementsByTagName("base")[0];if(c){c=c.href;var d=new RegExp("^("+c+"|)#[a-z0-9_-]+$"),e=document.location.href.replace(/#[a-z0-9_-]+$/i,"")}else seo_hashfix=false}c= document.getElementsByTagName("a");for(var f=c.length,h=0;h=0||i.indexOf("=0)){if(seo_hashfix&&g.hash&&d.test(g.href))g.href=e+g.hash;if(seo_external)if(!(g.href.indexOf(a)>=0&&!(seo_ext_classes&&b.test(g.className))))g.onclick=function(){window.open(this.href);return false}}}}}if(seo_external||seo_hashfix)onload_functions.push("phpbb_seo_href()"); function marklist(a,b,c){var d=document.getElementById(a);d||eval("parent = document."+a);if(d){a=d.getElementsByTagName("input");for(d=0;d")a.innerHTML+=" ";var c=document.createRange();c.selectNodeContents(a);b.removeAllRanges();b.addRange(c)}}else if(document.getSelection){b=document.getSelection();c=document.createRange();c.selectNodeContents(a);b.removeAllRanges(); b.addRange(c)}else if(document.selection){c=document.body.createTextRange();c.moveToElementText(a);c.select()}}function play_qt_file(a){var b=a.GetRectangle();if(b){b=b.split(",");var c=parseInt(b[0]),d=parseInt(b[2]),e=parseInt(b[1]);b=parseInt(b[3]);c=c<0?c*-1+d:d-c;e=e<0?e*-1+b:b-e}else{c=200;e=0}a.width=c;a.height=e+16;a.SetControllerVisible(true);a.Play()}function is_node_name(a,b){return a.nodeName&&a.nodeName.toUpperCase()==b.toUpperCase()} function is_in_array(a,b){for(var c=0,d=b.length;c-1))return f;if(f.childNodes.length)e=find_in_tree(f,b,c,d);if(e)return e}}var in_autocomplete=false,last_key_entered=""; function phpbb_check_key(a){if(a.keyCode&&(a.keyCode==40||a.keyCode==38))in_autocomplete=true;if(in_autocomplete)if(!last_key_entered||last_key_entered==a.which){in_autocompletion=false;return true}if(a.which!=13){last_key_entered=a.which;return true}return false} function submit_default_button(a,b,c){if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(phpbb_check_key(a))return true;for(a=b.parentNode;a&&(!a.nodeName||a.nodeType!=1||!is_node_name(a,"form"))&&a!=document;)a=a.parentNode;b=a.getElementsByTagName("input");a=false;for(var d=0,e=b[0];d-1)a=e;if(!a)return true;a.focus();a.click();return false} function apply_onkeypress_event(){if(jquery_present)$("form input").live("keypress",function(d){var e=$(this).parents("form").find("input[type=submit].default-submit-action");if(!e||e.length<=0)return true;if(phpbb_check_key(d))return true;if(d.which&&d.which==13||d.keyCode&&d.keyCode==13){e.click();return false}return true});else for(var a=document.getElementsByTagName("input"),b=0,c=a[0];b