/* GZIPPED 1f913da514af8f0b836a61fb6e4aa0ca */ if(typeof(smf_editorArray)=="undefined") portal_smf_version=1.1;else portal_smf_version=2;function sp_collapse_object(id,has_image) {mode=document.getElementById("sp_object_"+id).style.display==''?0:1;document.getElementById("sp_object_"+id).style.display=mode?'':'none';if(typeof(has_image)=="undefined"||has_image==true) document.getElementById("sp_collapse_"+id).src=smf_images_url+(mode?'/collapse.gif':'/expand.gif');} function sp_image_resize() {var possible_images=document.getElementsByTagName("img");for(var i=0;i300) {possible_images[i].height=(300*temp_image.height)/temp_image.width;possible_images[i].width=300;} else {possible_images[i].width=temp_image.width;possible_images[i].height=temp_image.height;}} if(typeof(window_oldSPImageOnload)!="undefined"&&window_oldSPImageOnload) {window_oldSPImageOnload();window_oldSPImageOnload=null;}} function sp_submit_shout(shoutbox_id,sSessionVar,sSessionId) {if(window.XMLHttpRequest) {shoutbox_indicator(shoutbox_id,true);var shout_body="";if(portal_smf_version==1.1) shout_body=escape(textToEntities(document.getElementById('new_shout_'+shoutbox_id).value.replace(/&#/g,"&#"))).replace(/\+/g,"%2B");else shout_body=escape(document.getElementById('new_shout_'+shoutbox_id).value.replace(/&#/g,"&#").php_to8bit()).replace(/\+/g,"%2B");sendXMLDocument(smf_prepareScriptUrl(smf_scripturl)+'action=portal;sa=shoutbox;xml','shoutbox_id='+shoutbox_id+'&shout='+shout_body+'&'+sSessionVar+'='+sSessionId,onShoutReceived);document.getElementById('new_shout_'+shoutbox_id).value='';return false;}} function sp_delete_shout(shoutbox_id,shout_id,sSessionVar,sSessionId) {if(window.XMLHttpRequest) {shoutbox_indicator(shoutbox_id,true);sendXMLDocument(smf_prepareScriptUrl(smf_scripturl)+'action=portal;sa=shoutbox;xml','shoutbox_id='+shoutbox_id+'&delete='+shout_id+'&'+sSessionVar+'='+sSessionId,onShoutReceived);return false;}} function sp_refresh_shout(shoutbox_id,last_refresh) {if(window.XMLHttpRequest) {shoutbox_indicator(shoutbox_id,true);getXMLDocument(smf_prepareScriptUrl(smf_scripturl)+'action=portal;sa=shoutbox;shoutbox_id='+shoutbox_id+';time='+last_refresh+';xml',onShoutReceived);return false;}} function onShoutReceived(XMLDoc) {var shouts=XMLDoc.getElementsByTagName("smf")[0].getElementsByTagName("shout");var shoutbox_id,updated,error,warning,reverse,shout,id,author,time,timeclean,delete_link,body,is_me,new_body='';shoutbox_id=XMLDoc.getElementsByTagName("smf")[0].getElementsByTagName("shoutbox")[0].childNodes[0].nodeValue;updated=XMLDoc.getElementsByTagName("smf")[0].getElementsByTagName("updated")[0].childNodes[0].nodeValue;if(updated==1) {error=XMLDoc.getElementsByTagName("smf")[0].getElementsByTagName("error")[0].childNodes[0].nodeValue;warning=XMLDoc.getElementsByTagName("smf")[0].getElementsByTagName("warning")[0].childNodes[0].nodeValue;reverse=XMLDoc.getElementsByTagName("smf")[0].getElementsByTagName("reverse")[0].childNodes[0].nodeValue;if(warning!=0) new_body+='
  • '+warning+'
  • ';if(error!=0) setInnerHTML(document.getElementById('shouts_'+shoutbox_id),new_body+'
  • '+error+'
  • ');else {for(var i=0;i'+(is_me==0?''+author+': ':'')+body+'
    '+(delete_link!=0?(''+delete_link+''):'')+''+time+'';} setInnerHTML(document.getElementById('shouts_'+shoutbox_id),new_body);if(reverse!=0) document.getElementById('shouts_'+shoutbox_id).scrollTop=document.getElementById('shouts_'+shoutbox_id).scrollHeight;else document.getElementById('shouts_'+shoutbox_id).scrollTop=0;var sp_date=new Date;eval("last_refresh_"+shoutbox_id+" = "+Math.round(sp_date.getTime()/1000,0)+";");}} shoutbox_indicator(shoutbox_id,false);return false;} function shoutbox_indicator(shoutbox_id,turn_on) {document.getElementById('shoutbox_load_'+shoutbox_id).style.display=turn_on?'':'none';} function sp_catch_enter(key) {var keycode;if(window.event) keycode=window.event.keyCode;else if(key) keycode=key.which;if(keycode==13) return true;} function style_highlight(something,mode) {something.style.backgroundImage='url('+smf_images_url+(mode?'/bbc/bbc_hoverbg.gif)':'/bbc/bbc_bg.gif)');} function smf_prepareScriptUrl(sUrl) {return sUrl.indexOf('?')==-1?sUrl+'?':sUrl+(sUrl.charAt(sUrl.length-1)=='?'||sUrl.charAt(sUrl.length-1)=='&'||sUrl.charAt(sUrl.length-1)==';'?'':';');} function sp_compat_showMoreSmileys(postbox,sTitleText,sPickText,sCloseText,smf_theme_url,smf_smileys_url) {if(this.oSmileyPopupWindow) this.oSmileyPopupWindow.close();this.oSmileyPopupWindow=window.open('','add_smileys','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=480,height=220,resizable=yes');this.oSmileyPopupWindow.document.write('\n');this.oSmileyPopupWindow.document.write('\n\t\n\t\t'+sTitleText+'\n\t\t\n\t');this.oSmileyPopupWindow.document.write('\n\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t
    '+sPickText+'
    ');for(i=0;i'+sp_smileys[i][2]+' ');} this.oSmileyPopupWindow.document.write('
    '+sCloseText+'
    ');this.oSmileyPopupWindow.document.write('\n\t\n');this.oSmileyPopupWindow.document.close();} function sp_showMoreSmileys(postbox,sTitleText,sPickText,sCloseText,smf_theme_url,smf_smileys_url) {if(this.oSmileyPopupWindow!=null&&'closed'in this.oSmileyPopupWindow&&!this.oSmileyPopupWindow.closed) {this.oSmileyPopupWindow.focus();return;} if(sp_smileyRowsContent==undefined) {var sp_smileyRowsContent='';for(i=0;i'+sp_smileys[i][2]+' ';}} this.oSmileyPopupWindow=window.open('','add_smileys','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=480,height=220,resizable=yes');this.oSmileyPopupWindow.document.open('text/html','replace');this.oSmileyPopupWindow.document.write(sp_moreSmileysTemplate.easyReplace({smileyRows:sp_smileyRowsContent}));this.oSmileyPopupWindow.document.close();}