/* GZIPPED 9a9569e9d73f33740eada95275da7f30 */ var smf_formSubmitted=false;var lastKeepAliveCheck=new Date().getTime();var smf_editorArray=new Array();var ua=navigator.userAgent.toLowerCase();var is_opera=ua.indexOf('opera')!=-1;var is_opera5=ua.indexOf('opera/5')!=-1||ua.indexOf('opera 5')!=-1;var is_opera6=ua.indexOf('opera/6')!=-1||ua.indexOf('opera 6')!=-1;var is_opera7=ua.indexOf('opera/7')!=-1||ua.indexOf('opera 7')!=-1;var is_opera8=ua.indexOf('opera/8')!=-1||ua.indexOf('opera 8')!=-1;var is_opera9=ua.indexOf('opera/9')!=-1||ua.indexOf('opera 9')!=-1;var is_opera95=ua.indexOf('opera/9.5')!=-1||ua.indexOf('opera 9.5')!=-1;var is_opera96=ua.indexOf('opera/9.6')!=-1||ua.indexOf('opera 9.6')!=-1;var is_opera10=(ua.indexOf('opera/9.8')!=-1||ua.indexOf('opera 9.8')!=-1||ua.indexOf('opera/10.')!=-1||ua.indexOf('opera 10.')!=-1)||ua.indexOf('version/10.')!=-1;var is_opera95up=is_opera95||is_opera96||is_opera10;var is_ff=(ua.indexOf('firefox')!=-1||ua.indexOf('iceweasel')!=-1||ua.indexOf('icecat')!=-1||ua.indexOf('shiretoko')!=-1||ua.indexOf('minefield')!=-1)&&!is_opera;var is_gecko=ua.indexOf('gecko')!=-1&&!is_opera;var is_chrome=ua.indexOf('chrome')!=-1;var is_safari=ua.indexOf('applewebkit')!=-1&&!is_chrome;var is_webkit=ua.indexOf('applewebkit')!=-1;var is_ie=ua.indexOf('msie')!=-1&&!is_opera;var is_ie4=is_ie&&ua.indexOf('msie 4')!=-1;var is_ie5=is_ie&&ua.indexOf('msie 5')!=-1;var is_ie50=is_ie&&ua.indexOf('msie 5.0')!=-1;var is_ie55=is_ie&&ua.indexOf('msie 5.5')!=-1;var is_ie5up=is_ie&&!is_ie4;var is_ie6=is_ie&&ua.indexOf('msie 6')!=-1;var is_ie6up=is_ie5up&&!is_ie55&&!is_ie5;var is_ie6down=is_ie6||is_ie5||is_ie4;var is_ie7=is_ie&&ua.indexOf('msie 7')!=-1;var is_ie7up=is_ie6up&&!is_ie6;var is_ie7down=is_ie7||is_ie6||is_ie5||is_ie4;var is_ie8=is_ie&&ua.indexOf('msie 8')!=-1;var is_ie8up=is_ie8&&!is_ie7down;var is_iphone=ua.indexOf('iphone')!=-1||ua.indexOf('ipod')!=-1;var is_android=ua.indexOf('android')!=-1;var ajax_indicator_ele=null;if(!('getElementById'in document)&&'all'in document) document.getElementById=function(sId){return document.all[sId];} else if(!('XMLHttpRequest'in window)&&'ActiveXObject'in window) window.XMLHttpRequest=function(){return new ActiveXObject(is_ie5?'Microsoft.XMLHTTP':'MSXML2.XMLHTTP');};if(!'getElementsByTagName'in document&&'all'in document) document.getElementsByTagName=function(sName){return document.all.tags[sName];} if(!('forms'in document)) document.forms=document.getElementsByTagName('form');function getXMLDocument(sUrl,funcCallback) {if(!window.XMLHttpRequest) return null;var oMyDoc=new XMLHttpRequest();var bAsync=typeof(funcCallback)!='undefined';var oCaller=this;if(bAsync) {oMyDoc.onreadystatechange=function(){if(oMyDoc.readyState!=4) return;if(oMyDoc.responseXML!=null&&oMyDoc.status==200) {if(funcCallback.call) {funcCallback.call(oCaller,oMyDoc.responseXML);} else {oCaller.tmpMethod=funcCallback;oCaller.tmpMethod(oMyDoc.responseXML);delete oCaller.tmpMethod;}}};} oMyDoc.open('GET',sUrl,bAsync);oMyDoc.send(null);return oMyDoc;} function sendXMLDocument(sUrl,sContent,funcCallback) {if(!window.XMLHttpRequest) return false;var oSendDoc=new window.XMLHttpRequest();var oCaller=this;if(typeof(funcCallback)!='undefined') {oSendDoc.onreadystatechange=function(){if(oSendDoc.readyState!=4) return;if(oSendDoc.responseXML!=null&&oSendDoc.status==200) funcCallback.call(oCaller,oSendDoc.responseXML);else funcCallback.call(oCaller,false);};} oSendDoc.open('POST',sUrl,true);if('setRequestHeader'in oSendDoc) oSendDoc.setRequestHeader('Content-Type','application/x-www-form-urlencoded');oSendDoc.send(sContent);return true;} String.prototype.oCharsetConversion={from:'',to:''};String.prototype.php_to8bit=function() {if(smf_charset=='UTF-8') {var n,sReturn='';for(var i=0,iTextLen=this.length;i>6)+String.fromCharCode(128|n&63);else if(n<65536) sReturn+=String.fromCharCode(224|n>>12)+String.fromCharCode(128|n>>6&63)+String.fromCharCode(128|n&63);else sReturn+=String.fromCharCode(240|n>>18)+String.fromCharCode(128|n>>12&63)+String.fromCharCode(128|n>>6&63)+String.fromCharCode(128|n&63);} return sReturn;} else if(this.oCharsetConversion.from.length==0) {switch(smf_charset) {case'ISO-8859-1':this.oCharsetConversion={from:'\xa0-\xff',to:'\xa0-\xff'};break;case'ISO-8859-2':this.oCharsetConversion={from:'\xa0\u0104\u02d8\u0141\xa4\u013d\u015a\xa7\xa8\u0160\u015e\u0164\u0179\xad\u017d\u017b\xb0\u0105\u02db\u0142\xb4\u013e\u015b\u02c7\xb8\u0161\u015f\u0165\u017a\u02dd\u017e\u017c\u0154\xc1\xc2\u0102\xc4\u0139\u0106\xc7\u010c\xc9\u0118\xcb\u011a\xcd\xce\u010e\u0110\u0143\u0147\xd3\xd4\u0150\xd6\xd7\u0158\u016e\xda\u0170\xdc\xdd\u0162\xdf\u0155\xe1\xe2\u0103\xe4\u013a\u0107\xe7\u010d\xe9\u0119\xeb\u011b\xed\xee\u010f\u0111\u0144\u0148\xf3\xf4\u0151\xf6\xf7\u0159\u016f\xfa\u0171\xfc\xfd\u0163\u02d9',to:'\xa0-\xff'};break;case'ISO-8859-5':this.oCharsetConversion={from:'\xa0\u0401-\u040c\xad\u040e-\u044f\u2116\u0451-\u045c\xa7\u045e\u045f',to:'\xa0-\xff'};break;case'ISO-8859-9':this.oCharsetConversion={from:'\xa0-\xcf\u011e\xd1-\xdc\u0130\u015e\xdf-\xef\u011f\xf1-\xfc\u0131\u015f\xff',to:'\xa0-\xff'};break;case'ISO-8859-15':this.oCharsetConversion={from:'\xa0-\xa3\u20ac\xa5\u0160\xa7\u0161\xa9-\xb3\u017d\xb5-\xb7\u017e\xb9-\xbb\u0152\u0153\u0178\xbf-\xff',to:'\xa0-\xff'};break;case'tis-620':this.oCharsetConversion={from:'\u20ac\u2026\u2018\u2019\u201c\u201d\u2022\u2013\u2014\xa0\u0e01-\u0e3a\u0e3f-\u0e5b',to:'\x80\x85\x91-\x97\xa0-\xda\xdf-\xfb'};break;case'windows-1251':this.oCharsetConversion={from:'\u0402\u0403\u201a\u0453\u201e\u2026\u2020\u2021\u20ac\u2030\u0409\u2039\u040a\u040c\u040b\u040f\u0452\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u2122\u0459\u203a\u045a\u045c\u045b\u045f\xa0\u040e\u045e\u0408\xa4\u0490\xa6\xa7\u0401\xa9\u0404\xab-\xae\u0407\xb0\xb1\u0406\u0456\u0491\xb5-\xb7\u0451\u2116\u0454\xbb\u0458\u0405\u0455\u0457\u0410-\u044f',to:'\x80-\x97\x99-\xff'};break;case'windows-1253':this.oCharsetConversion={from:'\u20ac\u201a\u0192\u201e\u2026\u2020\u2021\u2030\u2039\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u2122\u203a\xa0\u0385\u0386\xa3-\xa9\xab-\xae\u2015\xb0-\xb3\u0384\xb5-\xb7\u0388-\u038a\xbb\u038c\xbd\u038e-\u03a1\u03a3-\u03ce',to:'\x80\x82-\x87\x89\x8b\x91-\x97\x99\x9b\xa0-\xa9\xab-\xd1\xd3-\xfe'};break;case'windows-1255':this.oCharsetConversion={from:'\u20ac\u201a\u0192\u201e\u2026\u2020\u2021\u02c6\u2030\u2039\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u02dc\u2122\u203a\xa0-\xa3\u20aa\xa5-\xa9\xd7\xab-\xb9\xf7\xbb-\xbf\u05b0-\u05b9\u05bb-\u05c3\u05f0-\u05f4\u05d0-\u05ea\u200e\u200f',to:'\x80\x82-\x89\x8b\x91-\x99\x9b\xa0-\xc9\xcb-\xd8\xe0-\xfa\xfd\xfe'};break;case'windows-1256':this.oCharsetConversion={from:'\u20ac\u067e\u201a\u0192\u201e\u2026\u2020\u2021\u02c6\u2030\u0679\u2039\u0152\u0686\u0698\u0688\u06af\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u06a9\u2122\u0691\u203a\u0153\u200c\u200d\u06ba\xa0\u060c\xa2-\xa9\u06be\xab-\xb9\u061b\xbb-\xbe\u061f\u06c1\u0621-\u0636\xd7\u0637-\u063a\u0640-\u0643\xe0\u0644\xe2\u0645-\u0648\xe7-\xeb\u0649\u064a\xee\xef\u064b-\u064e\xf4\u064f\u0650\xf7\u0651\xf9\u0652\xfb\xfc\u200e\u200f\u06d2',to:'\x80-\xff'};break;default:this.oCharsetConversion={from:'',to:''};break;} var funcExpandString=function(sSearch){var sInsert='';for(var i=sSearch.charCodeAt(0),n=sSearch.charCodeAt(2);i<=n;i++) sInsert+=String.fromCharCode(i);return sInsert;};this.oCharsetConversion.from=this.oCharsetConversion.from.replace(/.\-./g,funcExpandString);this.oCharsetConversion.to=this.oCharsetConversion.to.replace(/.\-./g,funcExpandString);} var sReturn='',iOffsetFrom=0;for(var i=0,n=this.length;i-1?this.oCharsetConversion.to.charAt(iOffsetFrom):(this.charCodeAt(i)>127?'&#'+this.charCodeAt(i)+';':this.charAt(i));} return sReturn} String.prototype.php_strtr=function(sFrom,sTo) {return this.replace(new RegExp('['+sFrom+']','g'),function(sMatch){return sTo.charAt(sFrom.indexOf(sMatch));});} String.prototype.php_strtolower=function() {return typeof(smf_iso_case_folding)=='boolean'&&smf_iso_case_folding==true?this.php_strtr('ABCDEFGHIJKLMNOPQRSTUVWXYZ\x8a\x8c\x8e\x9f\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde','abcdefghijklmnopqrstuvwxyz\x9a\x9c\x9e\xff\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe'):this.php_strtr('ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz');} String.prototype.php_urlencode=function() {return escape(this).replace(/\+/g,'%2b').replace('*','%2a').replace('/','%2f').replace('@','%40');} String.prototype.php_htmlspecialchars=function() {return this.replace(/&/g,'&').replace(//g,'>').replace(/"/g,'"');} String.prototype.php_unhtmlspecialchars=function() {return this.replace(/"/g,'"').replace(/>/g,'>').replace(/</g,'<').replace(/&/g,'&');} String.prototype.php_addslashes=function() {return this.replace(/\\/g,'\\\\').replace(/'/g,'\\\'');} String.prototype._replaceEntities=function(sInput,sDummy,sNum) {return String.fromCharCode(parseInt(sNum));} String.prototype.removeEntities=function() {return this.replace(/&(amp;)?#(\d+);/g,this._replaceEntities);} String.prototype.easyReplace=function(oReplacements) {var sResult=this;for(var sSearch in oReplacements) sResult=sResult.replace(new RegExp('%'+sSearch+'%','g'),oReplacements[sSearch]);return sResult;} function reqWin(desktopURL,alternateWidth,alternateHeight,noScrollbars) {if((alternateWidth&&self.screen.availWidth*0.80&&(theValue.charAt(0)==' '||theValue.charAt(0)=='\t')) theValue=theValue.substring(1,theValue.length);while(theValue.length>0&&(theValue.charAt(theValue.length-1)==' '||theValue.charAt(theValue.length-1)=='\t')) theValue=theValue.substring(0,theValue.length-1);if(theValue=='') return true;else return false;} function submitonce(theform) {smf_formSubmitted=true;for(var i=0;i';break;case 3:sReturnValue+=oNode.nodeValue;break;case 4:sReturnValue+='';break;case 5:sReturnValue+='&'+oNode.nodeName+';';break;case 8:sReturnValue+='';break;} return sReturnValue;} function in_array(variable,theArray) {for(var i in theArray) if(theArray[i]==variable) return true;return false;} function array_search(variable,theArray) {for(var i in theArray) if(theArray[i]==variable) return i;return null;} function selectRadioByName(oRadioGroup,sName) {if(!('length'in oRadioGroup)) return oRadioGroup.checked=true;for(var i=0,n=oRadioGroup.length;i900000) {var tempImage=new Image();tempImage.src=smf_prepareScriptUrl(smf_scripturl)+'action=keepalive;time='+curTime;lastKeepAliveCheck=curTime;} window.setTimeout('smf_sessionKeepAlive();',1200000);} window.setTimeout('smf_sessionKeepAlive();',1200000);function smf_setThemeOption(option,value,theme,cur_session_id,cur_session_var,additional_vars) {if(cur_session_id==null) cur_session_id=smf_session_id;if(typeof(cur_session_var)=='undefined') cur_session_var='sesc';if(additional_vars==null) additional_vars='';var tempImage=new Image();tempImage.src=smf_prepareScriptUrl(smf_scripturl)+'action=jsoption;var='+option+';val='+value+';'+cur_session_var+'='+cur_session_id+additional_vars+(theme==null?'':'&id='+theme)+';time='+(new Date().getTime());} function smf_avatarResize() {var possibleAvatars=document.getElementsByTagName('img');for(var i=0;ismf_avatarMaxWidth) {possibleAvatars[i].height=(smf_avatarMaxWidth*tempAvatar.height)/tempAvatar.width;possibleAvatars[i].width=smf_avatarMaxWidth;} else if(smf_avatarMaxHeight!=0&&tempAvatar.height>smf_avatarMaxHeight) {possibleAvatars[i].width=(smf_avatarMaxHeight*tempAvatar.width)/tempAvatar.height;possibleAvatars[i].height=smf_avatarMaxHeight;} else {possibleAvatars[i].width=tempAvatar.width;possibleAvatars[i].height=tempAvatar.height;}} if(typeof(window_oldAvatarOnload)!='undefined'&&window_oldAvatarOnload) {window_oldAvatarOnload();window_oldAvatarOnload=null;}} function hashLoginPassword(doForm,cur_session_id) {if(cur_session_id==null) cur_session_id=smf_session_id;if(typeof(hex_sha1)=='undefined') return;if(doForm.user.value.indexOf('@')!=-1) return;if(!('opera'in window)) doForm.passwrd.autocomplete='off';doForm.hash_passwrd.value=hex_sha1(hex_sha1(doForm.user.value.php_to8bit().php_strtolower()+doForm.passwrd.value.php_to8bit())+cur_session_id);if(is_ff!=-1) doForm.passwrd.value='';else doForm.passwrd.value=doForm.passwrd.value.replace(/./g,'*');} function hashAdminPassword(doForm,username,cur_session_id) {if(cur_session_id==null) cur_session_id=smf_session_id;if(typeof(hex_sha1)=='undefined') return;doForm.admin_hash_pass.value=hex_sha1(hex_sha1(username.php_to8bit().php_strtolower()+doForm.admin_pass.value.php_to8bit())+cur_session_id);doForm.admin_pass.value=doForm.admin_pass.value.replace(/./g,'*');} function expandPages(spanNode,baseURL,firstPage,lastPage,perPage) {var replacement='',i,oldLastPage=0;var perPageLimit=50;spanNode.style.fontWeight='normal';spanNode.onclick='';if((lastPage-firstPage)/perPage>perPageLimit) {oldLastPage=lastPage;lastPage=firstPage+perPageLimit*perPage;} for(i=firstPage;i'+(1+i/perPage)+' ';if(oldLastPage>0) replacement+=' ... ';setInnerHTML(spanNode,replacement);} function smc_preCacheImage(sSrc) {if(!('smc_aCachedImages'in window)) window.smc_aCachedImages=[];if(!in_array(sSrc,window.smc_aCachedImages)) {var oImage=new Image();oImage.src=sSrc;}} function smc_Cookie(oOptions) {this.opt=oOptions;this.oCookies={};this.init();} smc_Cookie.prototype.init=function() {if('cookie'in document&&document.cookie!='') {var aCookieList=document.cookie.split(';');for(var i=0,n=aCookieList.length;i0;i--) sChildLevelPrefix+=this.opt.sBoardChildLevelIndicator;setInnerHTML(document.getElementById(this.opt.sContainerId),this.opt.sJumpToTemplate.replace(/%select_id%/,this.opt.sContainerId+'_select').replace(/%dropdown_list%/,' '));this.dropdownList=document.getElementById(this.opt.sContainerId+'_select');} JumpTo.prototype.fillSelect=function(aBoardsAndCategories) {var bIE5x=!('implementation'in document);var iIndexPointer=0;var oDashOption=document.createElement('option');oDashOption.appendChild(document.createTextNode(this.opt.sCatSeparator));oDashOption.disabled='disabled';oDashOption.value='';if(bIE5x) {this.dropdownList.onmouseover=null;this.dropdownList.remove(0);} if('onbeforeactivate'in document) this.dropdownList.onbeforeactivate=null;else this.dropdownList.onfocus=null;var oListFragment=bIE5x?this.dropdownList:document.createDocumentFragment();for(var i=0,n=aBoardsAndCategories.length;i0;j--) sChildLevelPrefix+=this.opt.sBoardChildLevelIndicator;oOption=document.createElement('option');oOption.appendChild(document.createTextNode((aBoardsAndCategories[i].isCategory?this.opt.sCatPrefix:sChildLevelPrefix+this.opt.sBoardPrefix)+aBoardsAndCategories[i].name));oOption.value=aBoardsAndCategories[i].isCategory?'?action=forum#c'+aBoardsAndCategories[i].id:'?board='+aBoardsAndCategories[i].id+'.0';oListFragment.appendChild(oOption);if(aBoardsAndCategories[i].isCategory) oListFragment.appendChild(oDashOption.cloneNode(true));} this.dropdownList.appendChild(oListFragment);if(bIE5x) this.dropdownList.options[iIndexPointer].selected=true;this.dropdownList.style.width='auto';this.dropdownList.focus();this.dropdownList.onchange=function(){if(this.selectedIndex>0&&this.options[this.selectedIndex].value) window.location.href=smf_scripturl+this.options[this.selectedIndex].value.substr(smf_scripturl.indexOf('?')==-1||this.options[this.selectedIndex].value.substr(0,1)!='?'?0:1);}} var aIconLists=new Array();function IconList(oOptions) {if(!window.XMLHttpRequest) return;this.opt=oOptions;this.bListLoaded=false;this.oContainerDiv=null;this.funcMousedownHandler=null;this.funcParent=this;this.iCurMessageId=0;this.iCurTimeout=0;if(!('sSessionVar'in this.opt)) this.opt.sSessionVar='sesc';this.initIcons();} IconList.prototype.initIcons=function() {for(var i=document.images.length-1,iPrefixLength=this.opt.sIconIdPrefix.length;i>=0;i--) if(document.images[i].id.substr(0,iPrefixLength)==this.opt.sIconIdPrefix) setOuterHTML(document.images[i],'
'+document.images[i].alt+'
');} IconList.prototype.onBoxHover=function(oDiv,bMouseOver) {oDiv.style.border=bMouseOver?this.opt.iBoxBorderWidthHover+'px solid '+this.opt.sBoxBorderColorHover:'';oDiv.style.background=bMouseOver?this.opt.sBoxBackgroundHover:this.opt.sBoxBackground;oDiv.style.padding=bMouseOver?(3-this.opt.iBoxBorderWidthHover)+'px':'3px'} IconList.prototype.openPopup=function(oDiv,iMessageId) {this.iCurMessageId=iMessageId;if(!this.bListLoaded&&this.oContainerDiv==null) {this.oContainerDiv=document.createElement('div');this.oContainerDiv.id='iconList';this.oContainerDiv.style.display='none';this.oContainerDiv.style.cursor=is_ie&&!is_ie6up?'hand':'pointer';this.oContainerDiv.style.position='absolute';this.oContainerDiv.style.width=oDiv.offsetWidth+'px';this.oContainerDiv.style.background=this.opt.sContainerBackground;this.oContainerDiv.style.border=this.opt.sContainerBorder;this.oContainerDiv.style.padding='1px';this.oContainerDiv.style.textAlign='center';document.body.appendChild(this.oContainerDiv);ajax_indicator(true);this.tmpMethod=getXMLDocument;this.tmpMethod(smf_prepareScriptUrl(this.opt.sScriptUrl)+'action=xmlhttp;sa=messageicons;board='+this.opt.iBoardId+';xml',this.onIconsReceived);delete this.tmpMethod;createEventListener(document.body);} var aPos=smf_itemPos(oDiv);if(is_ie50) aPos[1]+=4;this.oContainerDiv.style.top=(aPos[1]+oDiv.offsetHeight)+'px';this.oContainerDiv.style.left=(aPos[0]-1)+'px';this.oClickedIcon=oDiv;if(this.bListLoaded) this.oContainerDiv.style.display='block';document.body.addEventListener('mousedown',this.onWindowMouseDown,false);} IconList.prototype.onIconsReceived=function(oXMLDoc) {var icons=oXMLDoc.getElementsByTagName('smf')[0].getElementsByTagName('icon');var sItems='';for(var i=0,n=icons.length;i'+icons[i].getAttribute('name')+'';setInnerHTML(this.oContainerDiv,sItems);this.oContainerDiv.style.display='block';this.bListLoaded=true;if(is_ie) this.oContainerDiv.style.width=this.oContainerDiv.clientWidth+'px';ajax_indicator(false);} IconList.prototype.onItemHover=function(oDiv,bMouseOver) {oDiv.style.background=bMouseOver?this.opt.sItemBackgroundHover:this.opt.sItemBackground;oDiv.style.border=bMouseOver?this.opt.sItemBorderHover:this.opt.sItemBorder;if(this.iCurTimeout!=0) window.clearTimeout(this.iCurTimeout);if(bMouseOver) this.onBoxHover(this.oClickedIcon,true);else this.iCurTimeout=window.setTimeout(this.opt.sBackReference+'.collapseList();',500);} IconList.prototype.onItemMouseDown=function(oDiv,sNewIcon) {if(this.iCurMessageId!=0) {ajax_indicator(true);this.tmpMethod=getXMLDocument;var oXMLDoc=this.tmpMethod(smf_prepareScriptUrl(this.opt.sScriptUrl)+'action=jsmodify;topic='+this.opt.iTopicId+';msg='+this.iCurMessageId+';'+this.opt.sSessionVar+'='+this.opt.sSessionId+';icon='+sNewIcon+';xml');delete this.tmpMethod;ajax_indicator(false);var oMessage=oXMLDoc.responseXML.getElementsByTagName('smf')[0].getElementsByTagName('message')[0];if(oMessage.getElementsByTagName('error').length==0) {if(this.opt.bShowModify&&oMessage.getElementsByTagName('modified').length!=0) setInnerHTML(document.getElementById('modified_'+this.iCurMessageId),oMessage.getElementsByTagName('modified')[0].childNodes[0].nodeValue);this.oClickedIcon.getElementsByTagName('img')[0].src=oDiv.getElementsByTagName('img')[0].src;}}} IconList.prototype.onWindowMouseDown=function() {for(var i=aIconLists.length-1;i>=0;i--) {aIconLists[i].funcParent.tmpMethod=aIconLists[i].collapseList;aIconLists[i].funcParent.tmpMethod();delete aIconLists[i].funcParent.tmpMethod;}} IconList.prototype.collapseList=function() {this.onBoxHover(this.oClickedIcon,false);this.oContainerDiv.style.display='none';this.iCurMessageId=0;document.body.removeEventListener('mousedown',this.onWindowMouseDown,false);} function smf_mousePose(oEvent) {var x=0;var y=0;if(oEvent.pageX) {y=oEvent.pageY;x=oEvent.pageX;} else if(oEvent.clientX) {x=oEvent.clientX+(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft);y=oEvent.clientY+(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop);} return[x,y];} function smf_itemPos(itemHandle) {var itemX=0;var itemY=0;if('offsetParent'in itemHandle) {itemX=itemHandle.offsetLeft;itemY=itemHandle.offsetTop;while(itemHandle.offsetParent&&typeof(itemHandle.offsetParent)=='object') {itemHandle=itemHandle.offsetParent;itemX+=itemHandle.offsetLeft;itemY+=itemHandle.offsetTop;}} else if('x'in itemHandle) {itemX=itemHandle.x;itemY=itemHandle.y;} return[itemX,itemY];} 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)==';'?'':';');} var aOnloadEvents=new Array();function addLoadEvent(fNewOnload) {if(!('onload'in window)||typeof(window.onload)!='function') window.onload=fNewOnload;else if(aOnloadEvents.length==0) {aOnloadEvents[0]=window.onload;aOnloadEvents[1]=fNewOnload;window.onload=function(){for(var i=0,n=aOnloadEvents.length;i