// This script is from www.chatzy.com - Copyright 2010. All rights reserved. This script or parts of it may not be used at any other site.
var X1='17P08';var X2=70;var X3="#E8E8E8";var X4="; path=/; expires=Sun, 01-Jan-2040 00:00:00 GMT;";var X5="Are you sure you want to remove »X6« from your personal room list?\n\n(The room itself will not be deleted.)";var X7="Cookies have been removed";var X8="No cookies found";var X9=new Array ("No Alerts", "Alert By Dialog", "Alert By Sound");var X10=new Array ("Message alerts are off. When people join or new messages arrive, the room will update silently.", "Message alerts by dialog are on. When people join or new messages arrive, a dialog box will show on your computer.", "Message alerts by sound are on. When people join or new messages arrive, your computer will make a sound (Internet Explorer only).");var X11="You have left the chat. New messages will not be displayed.";var X12="Loading...";var X13="Checking for messages..";var X14="Error: Ajax call failed";var X15="Updating chat window...";var X16="Chat window updated";var X17="No new messages";var X18="Posting form...";var X19="Posting message...";var X20="Refreshing browser...";var X21="Updating visitors...";var X22="Sorry, your browser does not seem to support the Ajax technology which is required in Chatzy version 17 and newer.";var X23="The connection to Chatzy seems to have been cut off. New messages may not appear automatically.";var X24="Did not understand the server response. Chatzy may have a server problem.";var X25="Sorry, could not open the form. Please try again later.\n\nIf this problem continues, press F5 to refresh your browser.";var X26="Sorry, could not submit your input. Please try again later.";var X27="The system did not recognize you. Try logging in again.\n\nPlease let us know if this continues to happen";var X28="New message(s) in the room!\n\n(This shows because you have selected 'Alert By Dialog')";var X29="New message(s) in the room! Click 'OK' to update your browser.\n\n(This shows because you have selected 'Alert By Dialog')";var X30="No messages were posted in the room for more than X31. Do you want to stay in this room?\n\n(This message is displayed so that inactive chatrooms don't slow down our system. If you leave the room, you can easily return later.)";var X32="No more fonts";var X33="This is the largest text size available.";var X34="This is the smallest text size available.";var X35="Notice: You have selected to use your room for many-to-one messaging (write-only).\n\nRegular users will be able to leave messages to you, but they will <B>not</B> be able to view the contents of the room. Only you (or anybody with the administrator password) can view the room.";var X36="Notice: You have selected to use your room for one-to-many messaging (read-only).\n\nRegular users will <B>not</B> be able to leave messages to the room; only you (or anybody with the administrator password) can post messages.";var X37="You are not logged in as administrator for this room. Only the room administrator(s) can allow or ban visitors.\n\nDo you want to log in as administrator now?";var X38="Cannot Ban/Allow Visitor";var X39="This room was created as a Quick Chat. Users can only be banned or allowed specifically in Virtual Rooms.";var X40="This visitor is not a registered Chatzy user. Since we don't know this person's email address, you cannot ban or allow him/her in the room.\n\n(If you don't want such unregistered users entering the room, go to 'Room Properties' and select the appropriate option in the 'Allow to enter' drop-down box.)";var X41="The maximum message size of X42 characters has been reached.";var X43="Sorry, your browser does not support this function (Internet Explorer or Mozilla/Firefox required).\nTo apply the format, manually insert these codes around the text to be formatted:\n";var X44=(navigator.userAgent.indexOf('MSIE')>-1);function X45(X46,X47){with(X47?X47:window.document){if(getElementById){return getElementById(X46);}else if(all){return all(X46);}else if(layers){return layers(X46);}}}var X48=(window.location.hostname.substring(window.location.hostname.length-11)=='.chatzy.com');function X49(X50){return X50.replace(/^\s+/,'').replace(/\s+$/,'')}function X51(X50){return escape(X50).replace(/\+/g,'%2B');}function X52(){if(event.keyCode==27){if(X53&&X53.value=='/away'){X54('back',true);return;}X55();}}var X53,X56,X57,X58;var X59=70;var X60=false;function X61(X62){if(X62){X60=true;X59=X62;if(X63=='X64'){X53=window.document.X65.X53;}X56=X66.split(" ");}document.write('<DIV id="X67" style="'+(X44?'filter:alpha(opacity=50);':'opacity:0.5;-moz-opacity:0.5;')+'"></DIV><DIV id="X68"></DIV>');if(X60){if(X63!='X69'){if(X70=='2'){var X71=X45('X72');X71.innerHTML=X73(X71.innerHTML);}}if(X63.match(/^(X74|X64|X75)$/)){X76();X77();X78();if(X63=='X64'){X58=window.document.X65.innerHTML;X79();}X80(true);}else if(X63=='X81'){X82(X11);}}X83();if(typeof(window.event)=='object'){document.onkeypress=X52;}if(X60&&X63.match(/^(X74|X64|X75)$/)&&X70!='2'){X45('X72').innerHTML+='';}}var X84=null;var X85=new Array(0,11,13,14,16,18);function X83(){var X86=(document.documentElement.clientHeight||document.body.clientHeight||window.innerHeight||480);var X87=((X86>200?X86:200)-(X88>=2?(X45('X89')?102:42):X59+(X53?(X57[8]==1?69:(X85[X90]-14)):0)))+'px';if(X60&&X63!='X69'){X45('X91').style.height=X87;}else{X45('X91').style.minHeight=X87;}if(X53){X53.style.width='300px';}var X92=(document.documentElement.clientWidth||document.body.clientWidth||window.innerWidth||640);if(X53){var X93=X92-68-(X57[6]==1?0:125)-(X94||X57[7]==1?0:125)-(X57[8]==1?16:X45('X95').offsetWidth);X53.style.width=(X93<150?150:X93)+'px';}if(X60&&X88==0){X96(X70!='2');}if(X45('X67').style.display=='block'){X45('X68').style.top=parseInt((X86-6-X45('X68').offsetHeight)/2)+'px';X45('X68').style.left=parseInt((X92-X45('X68').offsetWidth)/2)+'px';X45('X67').style.height=X86+'px';}X97();}window.onresize=X83;function X98(X99,X100,X101){X45('X67').style.display=(X99?'block':'');X45('X68').style.display=(X99?'block':'');X45('X68').innerHTML=(X99?X99:'');X45('X68').style.width=(X101||!X99?150:X45('X68').innerHTML.match(/<FORM/i)?350:parseInt(275+(X45('X68').innerHTML.length*0.25)))+'px';if(X60){X82(X100?X100:'');}X83();}function X102(X100){X98('<DIV style="margin:0 30px 24px 30px;"><IMG src="/elements/loading.gif" style="display:block;margin:0 auto;width:32px;height:32px;" alt="Loading..."></DIV><DIV style="margin:0;text-align:center;"><INPUT type="button" value="Cancel"'+(X100==X20?' DISABLED':' onClick="X55();"')+'></DIV>',X100,true);}function X103(X104,X105,X106,X107){X98('<H3><IMG class="X108" src="/elements/icon30/'+X104+'.gif">'+X105+'</H3><P>'+X106.replace(/\n/g,'<BR>')+'</P><DIV id="X109">'+(X107?X107:'<INPUT type="button" onClick="X98();" value="OK">')+'</DIV>');}function X110(X105,X106,X107){X103('info',X105,X106,X107);}function X111(X112,X105,X106){if(!window.document.cookie.match(X112+'=1')){window.document.cookie=X112+'=1'+X4;X110(X105,X106);}}function X113(X106){X114();var X115=(X88>=2?'X98();':'X55();');X103('critical','Connection Error',X106,'<INPUT type="button" onClick="'+X115+'" value="OK">');}function X116(X105,X106,X107){if(X107=='Clean Up!'){X107='<INPUT type="button" onClick="X117(this.value);" value="Clean Up!"><INPUT type="button" onClick="X98();" value="Cancel">';}else if(X105=='Registered Users Only'){X106+=' Signing up is free and only takes a few seconds.\n\nDo you want to log in or register now?';X107='<INPUT type="button" onClick="window.document.location.href=\'/sign.htm\';" value="Sign Up/Log In" style="width:150px;"><INPUT type="button" onClick="X98();" value="Cancel">';}X103('question',X105,X106,X107);X88=5;}function X118(X119){if(X84){X84.style.backgroundColor='';X84=null;}if(X119){X84=X119;X84.style.backgroundColor='#FFFF80';}}function X120(){X57[6]=(X57[6]==1?0:1);X77();X121();X83();}function X77(){var X122=(X57[6]==1);X45('X123').innerHTML='<A href="#" onClick="X120();return false;"><IMG src="/elements/icon10/'+(X122?'right':'left')+'.gif" style="width:10px;height:15px;border:none;" alt="Click here to '+(X122?'show':'hide')+' the menu"></A>';X45('X124').style.display=(X122?'none':'');X45('X125').style.display=(X122?'':'none');}function X126(){if(X94){return;}X57[7]=(X57[7]==1?0:1);X78();X121();X83();if(X57[7]==1){X45('X127').innerHTML='';X128='';X129=30;}else{X130(1);}}function X78(X131){var X122=(X57[7]==1);X45('X132').innerHTML=(X131||X94?'':'<A href="#" onClick="X126();return false;"><IMG src="/elements/icon10/'+(X122?'left':'right')+'.gif" style="width:10px;height:15px;border:none;" alt="Click here to '+(X122?'show':'hide')+' the visitor list"></A>');X45('X133').style.display=(X122||X131||X94?'none':'');X45('X134').style.display=(X122||X131||X94?'':'none');}function X135(){X57[8]=(X57[8]==1?0:1);X79(true);X80();X121();X83();}function X79(X136){var X137=(X57[8]==1);if(X136||X137){var X138=X53.value;if(X137){window.document.X65.innerHTML='<TABLE id="X139" cellSpacing="0"><TR><TD class="X140"></TD><TD></TD><TD class="X141"></TD></TR><TR><TD style="height:44px;"><IMG src="/elements/input/spacer.gif" border="0" style="height:10px;width:10px;"/></TD><TD style="vertical-align:middle;"><TEXTAREA id="X53" name="X142"></TEXTAREA><A href="#" title="Click to send(or simply hit the ENTER key)" onClick="X143();return false;" style="float:left;margin:17px 0 0 6px;height:32px;width:32px;background-image:url(\'/elements/input/ok4.gif\');background-color:#BBCFB8;padding:0;">&nbsp;</A></TD><TD></TD></TR><TR><TD class="X144"></TD><TD></TD><TD class="X145"></TD></TR></TABLE>';window.document.X65.X53.onkeyup=function(e){e=e||event;if(e.keyCode===13){X143();}return true;}}else{window.document.X65.innerHTML=X58;}X53=window.document.X65.X53;X53.value=X138;}X45(X70=='2'?'X146':'X147').innerHTML='<A href="#" onClick="X135('+(X137?0:1)+');return false;"><IMG src="/elements/icon10/'+(X137!=(X70=='2')?'down':'up')+'.gif" style="display:block;margin-left:auto;margin-right:auto;width:15px;height:10px;border:none;" alt="Click here to '+(X137?'minimize':'enlarge')+' the input field"></A>';}function X148(X149){X57[3]+=X149;if(X57[3]>5){X110(X32,X33);X57[3]=5;return false;}else if(X57[3]<1){X110(X32,X34);X57[3]=1;return false;}X80();X121();X83();}function X80(X150){X90=X57[3];if(X150){X45(X70=='2'?'X147':'X146').innerHTML='<DIV class="X151"><A href="#" onClick="X148(-1);return false;"><IMG src="/elements/icon10/size-m.gif" border="0" title="Click here to decrease the text size"></A><IMG src="/elements/icon10/size-o.gif" border="0"><A href="#" onClick="X148(1);return false;"><IMG src="/elements/icon10/size-p.gif" border="0" title="Click here to increase the text size"></A></DIV>';}var X152=''+(X90?X85[X90]+'px':'');X45('X72').style.fontSize=X152;if(X53){var X153=''+(X90?(3+X85[X90])+'px':'');X53.style.fontSize=X152;if(X57[8]!=1){X53.style.height=X153;var X154=X45('X95');var X155=X45('X156');X154.style.fontSize=X152;X154.style.height=X153;X154.style.backgroundImage="url('/elements/backgrounds/link21G"+X90+".gif')";X155.style.fontSize=X152;X155.style.height=X153;X155.style.backgroundImage=X154.style.backgroundImage;}}}function X157(X50){X158('X159&X160=faq&X161='+X51(X50));}function X162(X163){if(X163){X164(document.X165.X166);X164(document.X165.X167);X164(document.X165.X6);}else{X168(document.X165.X166,'John');X168(document.X165.X167,'somebody@somewhere.com');X168(document.X165.X6,'Whatever is on my mind');}}function X168(X169,X170){if(X169.value==''){X169.value=X170;X169.style.color='silver';X169.onfocus=function(){if(this.style.color=='silver'){this.valueWas=this.value;this.value='';this.style.color='';}};X169.onblur=function(){if(this.value==''){this.value=this.valueWas;this.style.color='silver';}};}}function X164(X169){if(X169.style.color=='silver'){X169.value='';}}function X171(X165){X165.X172.checked=(X165.X173.value!='00W');X165.X174.checked=(X165.X173.value.match(/(CRW|CR0|0RW)/));X165.X175.checked=false;if(X176(X165)){X110('Special Room Type Selected',X35);}else if(X165.X173.value=='0R0'){X110('Special Room Type Selected',X36);}}var X177='';function X178(X169){var X179=(X169.value=='3');var X180=X169.form.X181;if(X179){X177=X180.value;X180.value='';}else if(X177!=''){X180.value=X177;X177='';}X180.style.backgroundColor=(X179?'#D2E5CF':'');X180.disabled=X179;}function X176(X165){var X182=new Array(X165.X172,X165.X174,X165.X175);var X131=(X165.X173.value=='00W');for(var X183=0;X183<3;X183++){X182[X183].disabled=X131;}return X131;}function X184(){for(var X183=0;X183<document.images.length;X183++){if(document.images[X183].id.match(/X185(\d+)/)){X186(RegExp.$1);}}}function X186(X187){var X104=X45('X185'+X187);var X170=(X104.src.match(/down.gif$/));X104.src=X104.src.replace(/\/\w+\.gif$/,(X170?'/right.gif':'/down.gif'));X45('X188'+X187).style.display=(X170?'none':'');X45('X189'+X187).style.fontWeight=(X170?'normal':'');}function X190(X191,X6){var X192='with(window.document.X165){X193.value='+X191+';submit();}';if(X6){X116('Remove room',X5.replace('X6',X6),'<INPUT type="button" id="X194" onClick="'+X192+'" value="Remove"><INPUT type="button" onClick="X55();" value="Cancel">');}else{eval(X192);}}var X195,X196;function X197(X198){var X199=window.document.X165;X199.X200.value=X195[X198];X199.X201.value=X196[X198];X199.X202.value=(X199.X201.value?'US\$ '+X199.X201.value:'N/A');X199.X203.disabled=(!(X199.X201.value>=1));}function X204(){var X199=window.document.X165;var X205=X199.X206[0].checked;X45('X207').style.display=(X205?'':'none');if(X205){X199.X208.focus();}else if(!X199.X206[1].checked){return false;}X199.X203.value=(X205?'Log me in':'Send password');X199.X203.disabled=false;}function X209(){var X199=window.document.X165;window.document.cookie="ChatzyUser="+escape(X49(X199.X210.value))+"&"+escape(X49(X199.X208.value))+"&"+(X199.X211[0].checked==1?X4:";path=/;");window.document.cookie="ChatzyEternal="+(X199.X211[0].checked?"1":"0")+X4;return true;}function X212(){if(window.document.cookie){var X213=window.document.cookie.split(';');for(var X183=0;X183<X213.length;X183++){window.document.cookie=X213[X183].substring(0,X213[X183].indexOf('='))+"=0;path=/;expires=Sat,01-Jan-2000 00:00:00 GMT;";}alert(X7);}else{alert(X8);}}function X76(){X214();X121(X215,X216,X70,X90);return true;}function X214(){if(window.document.cookie){var X213=window.document.cookie.split(';');for(var X183=0;X183<X213.length;X183++){if(X213[X183].match(/^\s*ChatzyPrefs6=[^&]+&\w+&[012]&[012345]&[012]&[0123]&[01]&[01]&[01]&/)){X57=X213[X183].replace(/^\s*ChatzyPrefs6=/,'').split('&');for(var X183=0;X183<=8;X183++){X57[X183]=(X183<2?unescape(X57[X183]):parseInt(X57[X183]));}return true;}}}X57=new Array('','',0,0,0,0,0,0,0);return false;}function X121(){var X217='ChatzyPrefs6=';for(var X183=0;X183<=8;X183++){if(arguments[X183]){X57[X183]=(X183<2?arguments[X183]:parseInt(arguments[X183]));}X217+=escape(X57[X183])+'&';}window.document.cookie=X217+X4;}var X218=true;function X73(X50){var X219=(X50.substring(0,3)=='<p '?'<p ':'<P ');var X220=X50.split(X219);var X221='';for(var X183=X220.length-1;X183>=0;X183--){if(X218||X220[X183].match(/class="?a"?/i)){X221+=X219+X220[X183];}}return X221;}function X96(X222){if(X222){X45('X91').scrollTop=X45('X91').scrollHeight;}else{X45('X91').scrollTop=0;}}var X223;function X82(X71){if(X223){clearTimeout(X223);}if(X60){X45('X224').innerHTML=(X71?X71:'');}X223=setTimeout('X82()',5000);}var X225,X226,X227,X228,X229,X230,X231,X232,X233,X234;function X235(X236,X93,X237){X225=X236;X226=X93;X227=X237;if(X63.match(/^(X74|X64)$/)){X228=parseInt(X63=='X74'?X57[5]:X57[4]);X229=X45('X238');X230=X229.innerHTML;X231=X229.title;X239(0);}if(X63.match(/^(X74|X64|X75)$/)){X130(1);X234=true;if(X63!='X75'){X240(false);}}X97();}function X241(){if(X234){X130(-1);}}function X97(){if(X53&&!X53.disabled){X53.blur();X53.focus();X53.focus();}}function X239(X149){X228=X228+X149;if(X228>2){X228=0;}X229.innerHTML=X9[X228];X229.title=X10[X228]+' Click for more options.';X232=(X63=='X74'?5000:X228>0?2000:1000);X233=(X63=='X74'?1.179:X228>0?1.064:1.051);}var X242,X243,X128,X244,X245;var X129=30;function X130(X246){if(X243){clearTimeout(X243);X243='';}if(X242){X242.onreadystatechange=function(){};X242.abort();X242=null;}if(X246){if(X246==-1){X247(0);}X82(X21);X245=false;}else{X244+=X129;X245=((X244+X129)<=70);}if(X245&&(X88>=2||X57[7]==1)){X243=setTimeout('X130()',X129*1000);}else{X242=X248();if(X242){var X249=(X246==-1?0:X246==1?1:X246==4||X88>=2?4:X57[7]==1?3:X245?2:1);var X250='/?visitor:'+X191+'&'+X249+'&'+X251+'&'+escape(X215)+'&'+Math.random();X242.open('GET',X250,true);X242.onreadystatechange=X252;X242.send(null);if(X249!=2){X244=0;}if(X246==-1){var X253=new Date();do{var X254=(new Date())-X253;}while(X254<1000&&X242.readyState!=4);}}else{X82(X14);}}}function X252(){if(!X242){return;}if(X242.readyState==4){if(X242.status==200){if(X242.responseText=='X255'){X114();X103('error','Error',X27,'<INPUT type="button" onClick="window.location.href=\'/'+X191+'\';" value="OK">');return;}else if(X242.responseText!='X256'&&X57[7]!=1){if(X242.responseText!=X128){X128=X242.responseText;var X257='';var X258=X128.split("\n");var X259=1;for(var X183=0;X183<(X258.length-1);X183++){var X260=X258[X183].split("\t");if(X260[2]<X259){X259=X260[2];X257+='<DIV style="height:15px;overflow:hidden;"></DIV>';}X257+='<P class="'+Array('X261','','','X262')[X260[2]]+'"'+(X260[1]&&X260[2]>0?' style="color:'+X260[1]+';"':'')+'><IMG src="/elements/icon16/user/'+Array('unknown','present','admin','clock')[X260[2]]+'.gif" border="0" title="'+X260[0]+'"><NOBR>'+X260[0]+'</NOBR></P>';}X45('X127').innerHTML=X257;X129=15;}else{X129+=3;if(X129>30){X129=30;}}}if(X45('X224').innerHTML==X21){X45('X224').innerHTML='';}}X242=null;X243=setTimeout('X130()',X129*1000);}}var X263,X264,X265,X266,X267,X268;function X240(X269){X247(0);if(!X48||X63=='X81'){return 1;}X263=0;X264=0;X267=(new Date()).getTime();X268=X232;if(X269){X265=1;X270();}else if(X232>0){X271();}}function X114(){X247(0);X268=null;X82();}function X270(){if(!X265){return 1;}X247(1);if(X272){X272.open('GET','/?check:'+X191+'&'+X225+'&'+X226+'&'+X227+'&'+Math.random(),true);X272.onreadystatechange=X273;X272.send(null);X82(X13);}else{alert(X22);}}function X271(){if(X263){X82(X13+'..');}X263++;if(X263>X2){X274();return 1;}X266=X228;if(X265){clearTimeout(X265);X265='';}X265=setTimeout('X270()',X268);X268=X268*X233;if(X268>60000){X268=60000;}}function X274(){X114(true);var X31=((new Date()).getTime()-X267);var X106=X30.replace('X31',X275(X31));var X107='<INPUT type="button" onClick="X130(5);X55();" value="Stay"><INPUT type="button" onClick="X276(\'X277\');" value="Leave">';X116('Confirmation required',X106,X107);X130(4);}function X275(X278){var X236=(X278/1000);return(X236>7200?parseInt(X236/3600)+' hours':X236>3600?'one hour':X236>600?parseInt(X236/600)+'0 minutes':X236>120?parseInt(X236/60)+' minutes':X236>60?'one minute':parseInt(X236)+' seconds');}var X272,X279,X280,X281;function X247(X249){if(X265){clearTimeout(X265);X265='';}if(X272){X272.onreadystatechange=function(){};X272.abort();X272=null;X280=null;}X279=X249;if(!X279){return;}X272=X248();if(!X272){X82(X14);}}function X248(){var X45;if(window.XMLHttpRequest){X45=new XMLHttpRequest();if(X45.overrideMimeType){X45.overrideMimeType('text/html');}}else if(window.ActiveXObject){try{X45=new ActiveXObject("MSXML2.XMLHTTP");}catch(e){try{X45=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){X45=null;}}}return X45;}function X282(X192,X165){var X283=(X192=='X284'?'X285='+X280:'X1='+X1+'&X285='+X192);if(!X192.match(/^X159/)){for(var X183=0;X183<X56.length;X183++){X283+="&"+X56[X183]+"="+X51(eval(X56[X183]));}if(X192=='X286'){X283+='&X142='+X51(X165.X142.value);}else if(X165){for(var X183=0;X183<X165.elements.length;X183++){var X287=X165.elements[X183];if(!X287.name)continue;if((X287.type=="radio"||X287.type=="checkbox")&&X287.checked==false)continue;X283+="&"+escape(X287.name)+"="+X51(X287.value);}}}X283+='&X288=1';X272.onreadystatechange=X273;X272.open('POST','/default.cgi',true);X272.setRequestHeader("Content-type","application/x-www-form-urlencoded");X272.setRequestHeader("Content-length",X283.length);X272.setRequestHeader("Connection","close");X272.send(X283);if(!X192.match(/^(X284|X159)/)){X280=X192;}}function X273(){if(!X272){return;}var X289='';if(X272.readyState==4){if(X272.status==200){var X50=X272.responseText;X281=0;if(X50.match(/^X290:/)){X50=X50.replace(/^X290:\s*([^\n]+)\n/,'');if(X45('X89')){X45('X89').innerHTML=RegExp.$1;}}if(X50.match(/^X289:/)){X50=X50.replace(/^X289:\s*([^\n]+)\n/,'');X289=RegExp.$1;}if(X50=='X291'){X82();if(X53&&X53.disabled){X292();}}else if(X50.match(/^X293:/)){X293(X50.replace(/^X293:\s*/,''));X264++;if(X264>100){X289+="X158('X294');";}}else if(X50.match(/^X295:/)){X295(X50.replace(/^X295:\s*/,''));}else if(X50.match(/^X296:/)){if(X88==1||X88==3){X297(X50.replace(/^X296:\s*/,''));}else{X289='';}}else if(X50.match(/^X298:/)){X234=false;X45('X91').innerHTML=X50.replace(/^X298:\s*/,'');X102(X20);window.document.X165.submit();return;}else if(X50.match(/^X299:/)){X98(X50.replace(/^X299:\s*/,''));X88=4;X279=3;}else if(X50=='X300'){X82(X15);X301(X29);X289+="X158('X294');";}else{X113(X24);}}else{if(X279==1){X281+=1;if(X281==5){X279=0;X113(X23);}}else{X279=0;X113(X88==1?X25:X26);}}X272=null;if(X279==1){X280=null;}else if(X279==2){if(X280=='X286'||X280=='X302'){if(X53){X53.value='';}X97();}else if(X280=='X294'){X97();}}if(X88==0){if(X268){X271();}else{X240(false);}}}if(X289){eval(X289);}}function X293(X50){X292();X303(X50);X301(X28);}function X295(X50){X292();X264=0;if(X50.replace(/\n$/,'')==X45('X72').innerHTML){X82(X17);}else{X45('X72').innerHTML='';X303(X50);}}function X303(X50){var X71=X45('X72');if(X70=='2'){X71.innerHTML=X73(X50)+X71.innerHTML;}else{X71.innerHTML+=X50;}X96(X70!='2');X82(X16);}function X301(X304){if(X266==1){window.focus();alert(X304);X97();}else if(X266==2){X45('X305').innerHTML=(navigator.appName.indexOf('Microsoft')>-1?'<IMG border="0" style="height:1px;width:1px;"><BGSOUND src="/elements/doodoo.wav" autostart="TRUE">':'<EMBED src="/elements/doodoo.wav" hidden="TRUE" autostart="TRUE">');}}function X158(X192,X119){if(X192=='X238'){X306(X119);return;}if(X60&&X63!='X69'){X114(true);}X247(2);if(X272){X307(0);X118(X119);X102(X12);X88=1;X282(X192);}else{X113(X25);}}function X276(X192){X158(X192,X45(X192));}function X306(X119){if(X119.innerHTML==X230){X158('X294',X119);return;}X239(1);if(X63=='X74'){X57[5]=X228;}else{X57[4]=X228;}X121();X240(false);X97();}var X88=0;var X308=null;var X309=null;var X310=null;function X297(X50){var X311=X45('X91');if(X50){if(!X308){X308=X311.innerHTML;X309=window.onload;X96(false);}window.onload=null;X311.innerHTML=X50;X88=2;X310=X84;}else{if(X308){X311.innerHTML=X308;window.onload=X309;X96(X70!='2');X308=null;}X88=0;X310=null;}if(X60&&X63!='X69'){if(X63=='X64'){window.document.X65.style.display=(X50?'none':'');}else{X45('X312').style.display=(X50?'none':'');}X45('X147').style.visibility=(X50?'hidden':'');X45('X146').style.visibility=(X50?'hidden':'');X78(X50?true:false);X130(X50?4:5);}X98();}function X55(){X247(0);X292(true);if(X310&&X310!=X84){X118();X118(X310);}if(X60&&X88==0){X240(true);}X97();}function X292(X313){if(X45('X67').style.display=='block'){X98();if(X308&&X313){return;}}if(X88>0){X297();if(X60&&X63=='X75'){X276('X314');return;}X118();}X307(1);}function X117(X192){if(X192){window.document.X165.X315.value=X192;}X247(2);if(X272){X102(X18);X282('X284',window.document.X165);X88=3;}else{X113(X26);}}function X143(){X53.value=X53.value.replace(/\s*\r?\n?$/,'');if(X53.value==''){X158('X294');return false;}if(X53.value.match(/^\s*\/(\w+\s*\d?)$/)){var X316=RegExp.$1;if(X316.match(/^(na|da|sa|input|menu|pane|font\s*[12345])$/)){X53.value='';if(X316.match(/^font\s*([12345])$/)){X57[3]=parseInt(RegExp.$1);X148(0);}else if(X316=='input'){X135();}else if(X316=='menu'){X120();}else if(X316=='pane'){X126();}else{X239((X316=='da'?1:X316=='sa'?2:0)-parseInt(X228));}return false;}var X317=new Array('c','clear','v','visitor','visitors','i','invite','p','prefs','r','room','message');var X318=new Array('X302','','X319','','','X320','','X321','','X322','','X314');for(var X183=0;X183<X317.length;X183++){if(X316==X317[X183]){var X192=(X318[X183]==''?X318[X183-1]:X318[X183]);X276(X192);X53.value='';return false;}}}X114(false);X247(2);if(X272){X307(0);X118(X45('X286'));X82(X19);X266=0;X282('X286',window.document.X65);}else{X113(X26);}}function X307(X323){if(typeof(X63)!="undefined"&&X63=='X64'){X53.disabled=(!X323);if(X57[8]==1){}else{X53.style.backgroundColor=(X323?'':X3);X45('X95').style.backgroundColor=(X323?'':X3);X45('X156').style.backgroundColor=(X323?'':X3);X45('X156').style.color=(X323?'':'gray');}}}function X54(X316,X163){X55();if(X53){X53.value='/'+X316;if(X163){X143();}}}function X324(){var X199=window.document.X165;var X325=parseInt(X199.X326.value);var X327=parseInt((X199.X328[1].checked?X199.X329:X199.X330).value.substr(3));if(!(X325>0)||(X325>X327)){X325=X327;}X199.X326.value=X325;}function X331(){var X199=window.document.X165;X199.X330.style.display=(X199.X328[1].checked?'none':'');X199.X329.style.display=(X199.X328[1].checked?'':'none');X199.X326.value=(X199.X328[1].checked?X199.X329:X199.X330).value.substr(3);}var X42=3200;var X332=new Array('b','i','u','font','size','color');var X106,X333,X334,X335,X336,X337;function X338(){var X199=window.document.X165;X106=X199.X142;if(X106.createTextRange){X334=true;}else if(X106.setSelectionRange){X335=true;}X339(X199.X340.value);X341(X45('X342'),X199.X340.value);X199.X142.focus();}function X343(X344){var X345=new Array(/\[\/?b\]/g,/\[\/?i\]/g,/\[\/?u\]/g,/\[(\/font|font\:[^\]]+)\]/g,/\[(\/size|size\:\d+)\]/g,/\[(\/color|color\:\#\d+)\]/g);for(var X183=0;X183<X332.length;X183++){if(X344==X332[X183]){return X345[X183];}}return false;}function X341(X119,X346){X119.style.backgroundColor=(X346?'#E0E0E0':'');X119.style.borderColor=(X346?'gray white white gray':'');}function X347(X119,X344,X348){var X346=(X119&&X119.style.backgroundColor!='');if(X334){if(X119){X337=document.selection.createRange().getBookmark();}else{var X349=document.body.createTextRange();X349.moveToBookmark(X337);if(X349.text)X349.select();}}if(X119){X336=X119;}else{X119=X336;}var X350='['+X344+(X348?':'+X348:'')+']';var X351='[/'+X344+']';X106.focus();if(X334){X352();if(document.selection.createRange().text){document.selection.createRange().text=X350+document.selection.createRange().text.replace(X343(X344),'')+X351;X346=false;}else{X346=!X346;document.selection.createRange().text+=(X346?X350:X351);}}else if(X335){if(X106.selectionStart!=X106.selectionEnd){X353(X350+X106.value.substring(X106.selectionStart,X106.selectionEnd).replace(X343(X344),'')+X351);X346=false;}else{X346=!X346;X353(X346?X350:X351);}}else{alert(X43+X350+' '+X351);}X341(X119,X346);}function X354(X119,X344,X348){var X346=X119.style.backgroundColor!='';if(X346){X355();}else{X341(X119,true);X336=X119;var X356='<FORM style="margin:0;"><TABLE id="FormatSelect" cellSpacing="6"><TR>';var X357=new Array('FF8080','FFB266','FFFF00','66FF66','33FFFF','8080FF','FF66FF','AAAAAA','','FFA6A6','FFC58C','FFFF55','8CFF8C','6EFFFF','9F9FFF','FF90FF','BBBBBB','','FFCCCC','FFD9B2','FFFFAA','B3FFB3','AAFFFF','BFBFFF','FFBBFF','CCCCCC');for(var X183=0;X183<X357.length;X183++){X356+=(X357[X183]?'<TD onClick="X355(\''+X357[X183]+'\');" style="background-color:#'+X357[X183]+';">&nbsp;</TD>':'</TR><TR>');}X356+='</TR></TABLE></FORM>';X116('Select Margin Color',X356,'<INPUT type="button" onClick="X355();" value="Cancel">');}}function X355(X348){X339(X348);window.document.X165.X340.value=(X348?X348:'');X98();if(!X348){X341(X336,false);}}function X339(X348){X106.style.borderLeftColor=(X348?X348:'#D0D0D0');}function X358(X119,X344){X106.focus();if(X334){if(document.selection.createRange().text){document.selection.createRange().text=X359(X344,document.selection.createRange().text);return true;}}else if(X335){if(X106.selectionStart!=X106.selectionEnd){X353(X359(X344,X106.value.substring(X106.selectionStart,X106.selectionEnd)));return true;}}X106.value=X359(X344,X106.value);}function X359(X344,X45){if(X344=='clear.font'){return X45.replace(/\[\/?(b|i|u|font|size|color)\]/g,'');}else if(X344=='clear.para'){return X45.replace(X333,"$1");}}function X352(){var X349=document.selection.createRange();var X360=X349.text.length;if(X360>0){do{X349.moveEnd('character',-1);}while(X349.text.length==X360);X349.moveEnd('character',1);}X349.select();}function X353(X361,X362){X106.value=X106.value.substring(0,X106.selectionStart)+X361+X106.value.substring(X106.selectionEnd);X106.setSelectionRange(X106.selectionStart+(X362?X361.length:0),X106.selectionStart+X361.length);}function X363(X45){if(X45.value.length>X42){alert(X41.replace('X42',X42));X45.value=String(X45.value).substring(0,X42);}}function X364(X365){if(X365=='X366'){X116('Log In As Administrator',X37,'<INPUT type="button" id="X194" onClick="X158(\'X367\',X45(\'X321\'));" value="Yes"><INPUT type="button" onClick="X98();" value="No">');}else if(X365=='X368'){X110(X38,X39);}else if(X365==''){X110(X38,X40);}else{var X104=X45('MAILTO:'+X365);var X170=X104.src.match(/visitor\/(\w+)\.gif$/);X170[1]=(X170[1]=='allow'?'deny':X170[1]=='reg'?'allow':'reg');X104.src='/elements/icon16/visitor/'+X170[1]+'.gif';with(window.document.X165){X369.value='Discard Changes';X369.style.backgroundColor='#FFAAAA';X370.value='Save Changes';X370.style.backgroundColor='#AAFFAA';X371.disabled=true;}}}function X372(X192){var X373=window.document.X165.X373;X373.value='';for(var X183=0;X183<window.document.images.length;X183++){var X104=window.document.images[X183];if(X104.id.substr(0,7)=='MAILTO:'){var X170=X104.src.match(/visitor\/(\w+)\.gif$/);X373.value+=(X373.value?',':'')+window.document.images[X183].id.substr(7)+':'+X170[1];}}X117(X192);}