function init(){u={nav:"",w:0,h:0,x:0,y:0,index:0,active:void 0,boxowner:void 0,boxchildw:void 0,boxchildh1:void 0,boxchildh2:void 0,boxmode:0,minw:300,minh:80,camw:380,camh:240,minwbox:{x_ban:760,x_top:400},roomwadd:192,boxmax:50,emoticon:"",panelactivity:!0,me:"",level:0,admin:!1,domain:"",bg:"binary/wallpaper/01.jpg",conex:"enter General",denyreg:!1,denygcam:!1,denyarchive:!0};var a=navigator.userAgent.toLowerCase();-1!==a.indexOf("chrome")?u.nav="chrome":-1!==a.indexOf("firefox")?u.nav="firefox":
-1!==a.indexOf("opera")?u.nav="opera":-1!==a.indexOf("safari")?u.nav="safari":-1!==a.indexOf("msie")&&(u.nav=-1!==a.indexOf("msie 8")?"ie8":-1!==a.indexOf("msie 7")?"ie7":-1!==a.indexOf("msie 6")?"ie6":"ie");var b,a=eval("("+load("main.php")+")");for(b in a.e)u.emoticon+="|("+b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")+")";u.emoticon=RegExp(u.emoticon.substr(1),"gi");for(b in a)u[b]=a[b];document.body.style.backgroundImage="url("+u.bg+")";create(document.body,"div",{id:"bar",className:"box1",innerHTML:"
"});
create(document.body,"span",{id:"connection"});swfobject.createSWF({data:"binary/connection_net_net.swf",width:10,height:10},{},"connection");win();window.onresize=win;document.ondragstart=function(){return!1};document.onselectstart=function(){return!1};h=!0}
function type(a,b){if("O"===b)return"object"===typeof a?null===a?void 0:a:void 0;if("E"===b)return"string"===typeof a?document.getElementById(a)||void 0:void 0;return"S"===b?"string"===typeof a?a:"number"===typeof a?""+a:"":(a=parseInt(a))?"N"===b?Math.abs(a):a:0}function rand(a,b){a=type(a,"N");return Math.floor(Math.random()*(type(b,"N")-a+1)+a)}function replace(a,b){for(var c in b)a=a.replace(RegExp(c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"g"),b[c]);return a}
function dated(){var a=new Date,b=a.getHours(),c=a.getMinutes(),a=a.getSeconds();return(10>b?"0"+b:b)+":"+(10>c?"0"+c:c)+":"+(10>a?"0"+a:a)}
function load(a,b){var c="i"===u.nav.charAt(0)?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;c.open("POST",a,!1);if(!b)return c.send(null),200===c.status?c.responseText:"";var d,e="";for(d in b)e+="&"+d+"="+encodeURIComponent(b[d]).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+");c.setRequestHeader("content-type","application/x-www-form-urlencoded");c.send(e);return 200===c.status?c.responseText:""}
function win(){window.innerWidth?(u.w=window.innerWidth,u.h=window.innerHeight):document.body&&document.body.offsetWidth?(u.w=document.body.offsetWidth,u.h=document.body.offsetHeight):(u.w=document.documentElement.offsetWidth,u.h=document.documentElement.offsetHeight)}
function create(a,b,c,d){if(!type(c.id,"E")&&(b=document.createElement(b))){var e,f="i"===u.nav.charAt(0);for(e in c)"css"!==e?b[e]=c[e]:f?b.style.cssText=c[e]:b.setAttribute("style",c[e]);d?a.insertBefore(b,d):a.appendChild(b);return b}}function ax(a){for(var b=[0,0];a;)b[0]+=a.offsetLeft,b[1]+=a.offsetTop,a=a.offsetParent;return b}function owner(a,b){for(;b;){if(!a.parentNode)return;a=a.parentNode;b--}return a}
function preceed(a,b){for(var c=a.getElementsByTagName("a"),d=0;c[d];){if(c[d].me>b)return c[d];d++}}function follow(a){if(a){var b=a.offsetWidth,c=a.offsetHeight;a.style.left=u.x+10+b'+a+""}).replace(/\*/g,'');return a.replace(/\> \ <")}function typed(a,b,c){c?(a.value||(a.value=b),a.style.backgroundPosition="0 -248px",a.blur()):(a.value===b&&(a.value=""),a.style.backgroundPosition="0 -272px")}
function roomed(a){var b=a.children[0];"none"===b.style.display?(b.style.display="",a.style.backgroundPosition="0 center"):(b.style.display="none",a.style.backgroundPosition="-10px center");a=a.parentNode.children[0].children[0];a.scrollTop=a.scrollHeight}function minimize(a){a.style.marginTop||(a.style.marginTop="-2000px",rearrange())}
function maximize(a){a===u.active?"f"!==a.id.charAt(0)&&(a=a.getElementsByTagName("input"),a[0]&&("i"===u.nav.charAt(0)?a[0].select():a[0].focus())):("f_config"===a.id?a.style.zIndex=1000004:(u.index++,a.style.zIndex=u.index),a.style.marginTop&&(a.style.marginTop=""),rearrange())}
function rearrange(){for(var a=document.body.getElementsByTagName("div"),b=0,c=0,d=0,e;a[b];){if(a[b].win&&!("f_config"===a[b].id||a[b].style.marginTop))c=type(a[b].style.zIndex,"N"),c<=d||(e=a[b],d=c);b++}a=type("bar","E").children[0].children;for(b=0;a[b];)!e||e!==a[b].box?"now"===a[b].className&&(a[b].className=""):"now"!==a[b].className&&(a[b].className="now"),b++;if(e){if(u.active&&e!==u.active){a=u.active.getElementsByTagName("input");for(b=0;a[b];)a[b].blur(),b++}u.active=e;"f"!==e.id.charAt(0)&&
(a=e.getElementsByTagName("input"),a[0]&&("i"===u.nav.charAt(0)?a[0].select():a[0].focus()))}else if(u.active){a=u.active.getElementsByTagName("input");for(b=0;a[b];)a[b].blur(),b++;u.active=void 0}}
function pop(a,b,c){free(type("pop","E"));free(type("option","E"));var d=type("f_config","E");d&&minimize(d);object=create(document.body,"span",{command:c?c:"",id:"pop",innerHTML:[1===a?""].join("")});object.style.margin="-"+Math.floor(object.offsetHeight/
2)+"px 0 0 -"+Math.floor(object.offsetWidth/2)+"px"}
function option(a,b,c){var d,e="",f=1;if("emoticon"===a)for(d in u.e)e+='"+u.e[d][1]+'">'+(f%9||81===f?"":"
"),f++;else if("avatar"===a)for(d=1;30>=d;d++)e+=''+(d%6||30===d?"":"
");else if("color"===a)for(d=0;u.color[d];)e+='',d++,!(d%8)&&u.color[d]&&(e+="
");else if("region"===a)for(d in u.region)e+=''+d+""+(f%
3||43===f?"":"
"),f++;else"action"===a&&(d=c?">"+b.innerHTML:">"+b.id.substr(2),e+=''+d.substr(d.lastIndexOf(">")+1)+''+u.action.message+"",c&&(-1!==b.className.indexOf("c")&&(e+=''+u.action.camera+""),owner(b,6).op&&(e+=''+u.action.ban+"")));c=type("f_config","E");b=create(document.body,"span",{belong:b,id:"option",innerHTML:""+e+""});e=b.offsetWidth;d=b.offsetHeight;
"avatar"===a||"color"===a?b.style.zIndex=c.style.zIndex+1:c&&minimize(c);b.style.left="region"===a?Math.floor((u.w-e)/2)+"px":u.x+10+e',u.input.demo,'',u.input.login,'',u.input.register,""].join("");if("config"===a){var b=u.denygcam&&!u.level?!1:!0;return[b?'':"",'',
u.choice["private"].title,'":' style="display:none">',u.choice["public"].title,'',u.choice.invisible.title,'',u.choice.palert.title,'',u.input.avatar,'',
u.input.color,""].join("")}if("demo"===a)return['',u.input.enter,""].join("");if("login"===a)return['',u.input.login,""].join("");if("register"===a)return['',u.input.register,""].join("");if("why"===a)return['',u.input.ok,""].join("")}
function box(a,b,c,d){var e=type(a,"E");if(e)d&&maximize(e);else{d=a.charAt(0);u.index++;c=Math.max(type(c,"N"),1);if("f"===d)c=create(document.body,"div",{win:!0,id:a,css:"z-index:"+("f_config"===a?1000004:u.index),className:"box"+c,innerHTML:replace(u.html[d],{"[name]":b,"[form]":form(a.substr(2))}),onmousedown:function(){maximize(this)}}),c.style.top=Math.floor((u.h-c.offsetHeight)/2)+"px",c.style.left=Math.floor((u.w-c.offsetWidth)/2)+"px";else{e=u.minwbox[a]?u.minwbox[a]:"c"===d?u.camw:u.minw+
rand(0,180);"r"===d&&(e+=u.roomwadd);var f="c"===d?u.camh:u.minh+rand(0,100),i=rand(0,u.w-e-100),g=rand(0,u.h-f-200),c=create(document.body,"div",{win:!0,id:a,css:"top:"+g+"px;left:"+i+"px;z-index:"+u.index,className:"box"+c,innerHTML:replace(u.html[d],{"[name]":b,"[w]":e,"[h]":f,"[emoticon]":u.icon.emoticon,"[ban]":u.icon.ban,"[ignore]":u.icon.ignore,"[accept]":u.icon.accept,"[quiet]":u.icon.quiet,"[activity]":u.icon.activity,"[sletter]":u.icon.sletter}),onmousedown:function(){maximize(this)}});
"x"===d||"c"===d||("u"===d&&(d=type("pan1_"+a.substr(2),"E")?1:type("pan2_"+a.substr(2),"E")?2:0,1===d?c.children[0].children[0].children[2].children[0].children[0].children[0].children[1].style.display="none":2===d&&(c.children[0].children[0].children[2].children[0].children[0].children[0].children[2].style.display="none")),create(type("bar","E").children[0],"a",{box:c,id:"b_"+a,href:"#",className:"now",innerHTML:b}))}rearrange()}}
function rooml(a,b){for(var c=0,d,e="";a[c];)d=a[c].split(":"),e+=''+d[0]+" "+d[1]+"",c++;b?box("x_game",u.ui.game,1,!0):box("x_room",u.ui.room,1,!0);type(b?"x_game":"x_room","E").children[0].children[0].children[1].children[0].children[0].innerHTML=e}
function banl(a,b){for(var c=0,d,e="";b[c];)d=b[c].split(" "),e+=''+d[0]+""+d[1]+""+d[2]+""+d[3]+"",e+='",d[4]).replace("",d.slice(5).join(" ").replace(/\"/g,"""))+'">',c++;box("x_ban",u.ui.banl,1,!0);type("x_ban","E").children[0].children[0].children[1].children[0].children[0].innerHTML=e}
function log(a,b,c){var d=type(a,"E");if(d){u.active!==d&&(a=type("b_"+a,"E"))&&"action"!==a.className&&(a.className="action");d=d.children[0].children[0].children[1].children[0].children[0];d.lined?d.lined")+4,3===a&&(a=d.innerHTML.indexOf("
")+4),3===a&&(a=d.innerHTML.indexOf("
")+6),5===a&&(a=d.innerHTML.indexOf("
")+6),d.innerHTML=d.innerHTML.substr(a)):d.lined=1;if(c){var c=c.split(":"),a="0"===c[4]?" a31":" a"+c[2],c="("+dated()+
')'+c[0]+"",e=0,f="",c=c+b.replace(u.emoticon,function(a){if(4'});d.innerHTML+=c+"
"}else d.innerHTML+="("+dated()+")"+b+"
";d.scrollTop=d.scrollHeight}}
function addp(a,b){var c=type("pan","E");u.panelactivity&&("-20px"!==c.style.marginLeft&&(c.style.marginLeft="-20px"),c.timer&&clearTimeout(c.timer),c.timer=setTimeout('type("pan","E")["style"]["marginLeft"]=""',3E3));c=c.children[0].children[0].children[1].children[0].children[2*a-1];c.count=c.count?c.count+1:1;c.parentNode.children[2*a-2].innerHTML=(1===a?u.ui.ignored:2===a?u.ui.accepted:u.ui.watchedby)+" "+c.count;var d=b.toLowerCase();create(c,"a",{me:d,holding:a,id:"pan"+a+"_"+b,href:"#",innerHTML:b+
""},preceed(c,d));3!==a&&(b=type("u_"+b,"E"))&&(1===a?free(b):b.children[0].children[0].children[2].children[0].children[0].children[0].children[2].style.display="none")}
function remp(a,b){var c=type("pan"+a+"_"+b,"E"),d=c.parentNode;free(c);d.count--;c=1===a?u.ui.ignored:2===a?u.ui.accepted:u.ui.watchedby;d.parentNode.children[2*a-2].innerHTML=d.count?c+" "+d.count:c;3!==a&&(b=type("u_"+b,"E"))&&(1===a?b.children[0].children[0].children[2].children[0].children[0].children[0].children[1].style.display="":b.children[0].children[0].children[2].children[0].children[0].children[0].children[2].style.display="")}
function addr(a,b){var c=type("r_"+a,"E"),d=c.children[0].children[0].children[1].children[1].children[0];d.count=d.count?d.count+1:1;c.children[0].children[0].children[0].children[0].children[0].children[1].innerHTML=a+" "+d.count;type("b_r_"+a,"E").innerHTML=a+" "+d.count;var b=b.split(":"),e=b[0].toLowerCase(),f="u"+b[1]+("2"===b[4]?"c":"")+("o"===b[5]?"o":"");create(d,"a",{me:e,id:"r_"+a+"_"+b[0],className:"u0"===f?"":f,innerHTML:''+b[0],title:b[0]+
"
"+u.ui["u"+b[1]]},preceed(d,e));b[0]===u.me&&(c.op="o"===b[5],c.op&&(c.children[0].children[0].children[2].children[0].children[0].children[0].children[1].style.display=""))}
function updu(a,b){var b=b.split(":"),c=type("r_"+a+"_"+b[0],"E"),d="u"+b[1]+("2"===b[4]?"c":"")+("o"===b[5]?"o":"");"u0"===d&&(d="");c.className!==d&&(c.className=d);c.tip="";c.title=b[0]+"
"+u.ui["u"+b[1]];d="a"+("0"===b[4]?31:b[2]);c.children[0].className!==d&&(c.children[0].className=d);b[0]===u.me&&(a=type("r_"+a,"E"),a.op="o"===b[5],a.children[0].children[0].children[2].children[0].children[0].children[0].children[1].style.display=a.op?"":"none")}
function remr(a,b){var c=type("r_"+a+"_"+b,"E"),d=c.parentNode;free(c);d.count--;owner(d,3).children[0].children[0].children[0].children[1].innerHTML=a+" "+d.count;type("b_r_"+a,"E").innerHTML=a+" "+d.count}
function topl(a){var b=eval("("+load("top.php",{top:a})+")"),c=0,d="",e="";for("valiza"===a?e=' style="background-position:-24px -192px"':"scrabble"===a?e=' style="background-position:-24px -216px"':"trivia"===a?e=' style="background-position:-24px -240px"':"trivieros"===a&&(e=' style="background-position:-24px -288px"');b[c];)d+='"+(c+1)+""+b[c].user+""+b[c].point+"",c++;box("x_top",u.ui["top"+a],1,!0);type("x_top","E").children[0].children[0].children[1].children[0].children[0].innerHTML=
d}document.onmouseout=function(){h&&free(type("tip","E"))};document.onmouseover=function(a){if(h){a||(a=window.event);a.stopPropagation?a.stopPropagation():a.cancelBubble=!0;a=a.target||a.srcElement;if(!a.tip){if(!a.title)return;a.tip=a.title;a.title=""}follow(create(document.body,"span",{id:"tip",innerHTML:a.tip}))}};
document.onmousedown=function(a){if(h){a||(a=window.event);a.stopPropagation?a.stopPropagation():a.cancelBubble=!0;var b=a.target||a.srcElement,c=b.className,d,a=0,e=b.parentNode;"h1"===c?(d=owner(b,4),a=5):"sletter"===c?(d=owner(b,7),a=5):"h2"===c||"v1"===c?(d=owner(b,4),a=4):"h3"===c?(d=owner(b,4),a=8):"v2"===c||"c1"===c?(d=owner(b,4),a=6):"c2"===c?(d=owner(b,4),a=9):"name"===c||"control"===c?(d=owner(b,6),a=5):"c"===c?"h3"===e.className?(d=owner(b,5),a=7):"h1"===e.className?(d=owner(b,5),a=4):
"DIV"===e.tagName?(d=owner(b,6),a=1):(d=owner(b,5),a=3):"DIV"===b.tagName&&"h1"===e.className&&(d=owner(b,5),a=2);if(d&&d.win&&(b=d.id.charAt(0),!("f"===b&&5!==a)))return u.boxowner=d,u.boxchildw=d.children[0],u.boxchildh1=d.children[0].children[0].children[1].children[0],"r"===b&&(u.boxchildh2=d.children[0].children[0].children[1].children[1]),u.boxmode=a,!1}};
document.onmouseup=function(a){h&&(a||(a=window.event),a.stopPropagation?a.stopPropagation():a.cancelBubble=!0,free(type("tip","E")),free(type("option","E")),u.boxowner?(u.boxowner=void 0,u.boxchildw=void 0,u.boxchildh1=void 0,u.boxchildh2=void 0,u.boxmode=0):action(a.target||a.srcElement),u.active&&maximize(u.active))};
document.onmousemove=function(a){if(h){a||(a=window.event);a.stopPropagation?a.stopPropagation():a.cancelBubble=!0;var b=a.clientX||a.pageX,c=a.clientY||a.pageY,a=b-u.x,d=c-u.y;u.x=b;u.y=c;follow(type("tip","E"));if(b=u.boxowner)if(free(type("option","E")),c=u.boxmode,5===c)d&&(b.style.top=type(b.style.top,"n")+d+"px"),a&&(b.style.left=type(b.style.left,"n")+a+"px");else{var e=b.id.charAt(0),f=type(u.boxchildw.style.width,"n"),i=type(u.boxchildh1.style.height,"n"),g=f,j=i;if(1===c||3===c||4===c||
6===c||7===c||9===c)g=1===c||4===c||7===c?Math.max("c"===e?u.camw:u.minw,f-a):Math.max("c"===e?u.camw:u.minw,f+a);if(1===c||2===c||3===c||7===c||8===c||9===c)j=4>c?Math.max("c"===e?u.camh:u.minh,i-d):Math.max("c"===e?u.camh:u.minh,i+d);if(g!==f&&(u.minwbox[b.id]?g=Math.max(u.minwbox[b.id],g):"r"===e&&(g=Math.max(u.minw+u.roomwadd,g)),u.boxchildw.style.width=g+"px","r"===e&&(u.boxchildh1.children[0].scrollTop+=1E3),1===c||4===c||7===c))b.style.left=type(b.style.left,"n")+(f-g)+"px";j!==i&&(u.boxchildh1.style.height=
j+"px","r"===e&&(u.boxchildh1.children[0].scrollTop+=1E3,u.boxchildh2.style.height=j+"px"),4>c&&(b.style.top=type(b.style.top,"n")+(i-j)+"px"))}}};
document.onkeypress=function(a){if(h&&(a||(a=window.event),13===(a.keyCode||a.which))){var b=type("pop","E");b?action(b.children[0].children[3]):u.active&&(b=u.active.id.charAt(0),"f"===b?(a=u.active.children[0].children[0].children[1].children[0].children[0],a=a.children[a.children.length-1],a.className&&"button"===a.className&&action(a)):(a=a.target||a.srcElement,a.value&&(write("/"===a.value.charAt(0)?a.value.replace(/^\/+/,""):b+"m "+u.active.id.substr(2)+" "+a.value),a.value="")))}};
function action(a){if(a.box)"now"===a.className?minimize(a.box):maximize(a.box);else{var b=a.id;if(a.me)"r"===b.charAt(0)&&a.me!==u.me.toLowerCase()&&"a32"!==a.children[0].className&&option("action",a,!0);else{var c=a.parentNode;if(c.holding)write("rem "+(1===c.holding?"ignored":2===c.holding?"accepted":"watchedby")+" "+c.innerHTML.substr(0,c.innerHTML.indexOf("<")));else{var d=a.className;if(c.id)"SPAN"===a.tagName&&"bn_"===c.id.substr(0,3)?write("unban "+c.id.substr(3).replace("_"," ")):"f_register_r"===
c.id?option("region"):"menu"===c.id&&(""===d?maximize(type("f_config","E")):"room"===d?write("room"):"game"===d&&write("room 1"));else{if((c=owner(a,2))&&c.id&&"option"===c.id){if("region"===d){type("f_register_r","E").children[0].value=a.innerHTML;return}if("action"===d){b=c.belong.id.substr(c.belong.id.lastIndexOf("_")+1);if(a.innerHTML===u.action.message){box("u_"+b,b,1,!0);return}if(a.innerHTML===u.action.camera){write("watch "+b);return}a.innerHTML===u.action.ban&&(type("f_why_w","E").children[0].value=
u.input.why,type("f_why_c","E").value="ban "+c.belong.id.substr(2,c.belong.id.length-b.length-3)+" "+b,a=type("f_why","E"),c=a.getElementsByTagName("input"),maximize(a),"i"===u.nav.charAt(0)?c[0].select():c[0].focus());return}if("a"===d.charAt(0)){write("face "+d.substr(1)+" 0");return}if("e"===d.charAt(0)){c=c.belong.children[0].children[0].children[2].children[0].children[0].children[1].children[0];c.value+=a.tip.substr(0,a.tip.lastIndexOf("<"));c.focus();return}for(var c=0,e=a.style.backgroundColor.replace(/ /g,
"");u.color[c];){if(e===u.color[c]){write("face 0 "+(c+1));return}c++}}if(b){if("f_config_private"===b){write("umode "+(-1!==a.style.backgroundPosition.indexOf("-48")?"+M":"-M"));return}if("f_config_public"===b){write("umode "+(-1!==a.style.backgroundPosition.indexOf("-48")?"-P":"+P"));return}if("f_config_invisible"===b){write("umode "+(-1!==a.style.backgroundPosition.indexOf("-48")?"-I":"+I"));return}if("f_config_palert"===b){u.panelactivity=u.panelactivity?!1:!0;a.style.backgroundPosition=u.panelactivity?
"-24px -48px":"-24px -24px";return}}if("who"===d)a.innerHTML!==u.me&&(c=owner(a,6),"r"===c.id.charAt(0)?option("action",type(c.id+"_"+a.innerHTML,"E"),!0):option("action",c));else if("alt"===d)"nomore"===a.parentNode.className?pop(2,u.box[6]):(write("rm "+owner(a,7).id.substr(2)+" "+a.innerHTML),a.parentNode.className="nomore");else if("room"===d.substr(0,4))b=a.innerHTML.substr(0,a.innerHTML.indexOf(" ")),(a=type("r_"+b,"E"))?maximize(a):write("enter "+b);else if("m"===d)roomed(a);else if("emoticon"===
d||"avatar"===d||"color"===d)option(d,owner(a,7));else if("ban"===d)write("bans "+owner(a,7).id.substr(2));else if("ignore"===d||"accept"===d)write("add "+("ignore"===d?"ignored":"accepted")+" "+owner(a,7).id.substr(2));else if("qon"===d||"qoff"===d)owner(a,7).quiet="qon"===d,a.className="qon"===d?"qoff":"qon";else if("jon"===d||"joff"===d)owner(a,7).activity="jon"===d,a.className="jon"===d?"joff":"jon";else if("topi"===d)topl(a.game);else if("mini"===d)c=owner(a,6),"f_main"!==c.id&&("f_demo"!==c.id&&
"f_login"!==c.id&&"f_register"!==c.id?minimize(c):(free(c),box("f_main",u.input.welcome)));else if("close"===d)c=owner(a,6),"c"!==c.id.charAt(0)?"r"===c.id.charAt(0)?write("leave "+c.id.substr(2)):free(c):(swfobject.removeSWF("cam_"+c.id.substr(2)),write("watched "+c.id.substr(2)),free(c));else if("button"===d)if(c=owner(a,6)||owner(a,2),"pop"===c.id)a.innerHTML===u.input.yes&&eval(c.command),free(c);else if("f_main"===c.id){if(a.innerHTML===u.input.demo)box("f_demo",u.input.demo);else if(a.innerHTML===
u.input.login)box("f_login",u.input.login);else if(a.innerHTML===u.input.register){if(u.denyreg){pop(2,u.box[0]);return}box("f_register",u.input.register)}free(type("f_main","E"))}else if("f_demo"===c.id)b=type("f_demo_u","E").children[0].value,b===u.input.username?pop(2,u.box[1]):write("auth "+b);else if("f_login"===c.id)b=type("f_login_u","E").children[0].value,b===u.input.username?pop(2,u.box[1]):(a=type("f_login_p","E").children[0].value,a===u.input.password?pop(2,u.box[2]):write("auth "+b+(a===
u.input.password?"":" "+a)));else{if("f_register"===c.id){b=type("f_register_u","E").children[0].value;if(b===u.input.username){pop(2,u.box[1]);return}a=type("f_register_p","E").children[0].value;if(a===u.input.password){pop(2,u.box[2]);return}d=type("f_register_e","E").children[0].value;if(d===u.input.email){pop(2,u.box[3]);return}e=type("f_register_r","E").children[0].value;if(e===u.input.region){pop(2,u.box[4]);return}write("account "+u.domain+" "+b+" "+d+" "+u.region[e]+" "+a)}"f_why"===c.id&&
(a=type("f_why_w","E").children[0].value,a===u.input.why?pop(2,u.box[5]):(write(type("f_why_c","E").value+" "+a),minimize(c)))}}}}}}
function raw(a){var b=type(a[0],"N");if(110<=b&&140>=b)free(type("f_login","E")),free(type("f_demo","E")),140===b&&pop(3,u.box[b].replace("",a[1])),create(document.body,"div",{id:"pan",className:"box1",onmouseover:function(){clearTimeout(this.timer);this.style.marginLeft="-20px"},onmouseout:function(){clearTimeout(this.timer);this.timer=setTimeout('type("pan","E")["style"]["marginLeft"]=""',500)},innerHTML:replace(u.html.pan,{"[ignored]":u.ui.ignored,"[accepted]":u.ui.accepted,"[watchedby]":u.ui.watchedby})}),
b=['',u.denyarchive?"":''].join(""),create(document.body,"div",{id:"menu",innerHTML:b}),box("f_why",u.input.why),minimize(type("f_why","E")),document.title=a[1],u.me=a[1],u.level=type(a[2],"N"),u.conex&&write(u.conex),box("f_config",u.input.config),type("f_config_palert","E").style.backgroundPosition=
u.panelactivity?"-24px -48px":"-24px -24px",(!u.denygcam||"0"!==a[2])&&swfobject.createSWF({data:"binary/cam.swf?performer="+a[1],width:"100%",height:"100%"},{allowfullscreen:!0},"mywebcam"),minimize(type("f_config","E"));else if(11===b||12===b||13===b||99===b||101===b||151===b||156===b||157===b||158===b||159===b||175===b||201===b||501===b||502===b||803===b)pop(2,u.box[b]);else if(102===b||103===b||104===b||105===b||106===b||152===b||153===b||154===b||171===b||172===b||173===b||176===b)pop(2,u.box[b].replace("",
a[1]));else if(100===b)box("f_main",u.input.welcome);else if(602===b||603===b||802===b||850===b||860===b)pop(2,u.box[b].replace("",a[1]));else if(155===b)pop(2,u.box[b].replace("",a[1]));else if(160===b)box("c_"+a[1],a[1]),swfobject.createSWF({data:"binary/view.swf?performer="+a[2],width:"100%",height:"100%"},{wmode:"opaque",allowfullscreen:!0},"cam_"+a[1]);else if(161===b)swfobject.removeSWF("cam_"+a[1]),free(type("c_"+a[1],"E"));else{var c=2;if(150!==b)if(200===b)for(b="ignored"===
a[1]?1:"accepted"===a[1]?2:3;a[c];)addp(b,a[c]),c++;else if(170===b)free(type("f_register","E")),box("f_login",u.input.login),pop(1,u.box[b].replace("",a[1]));else if(174===b)pop(2,u.box[b].replace("",a[1]));else if(210===b)"ignored"===a[1]?addp(1,a[2]):addp("accepted"===a[1]?2:3,a[2]);else if(220===b)"ignored"===a[1]?remp(1,a[2]):remp("accepted"===a[1]?2:3,a[2]);else if(300===b)a[1]||(a[1]=""),u.admin=-1!==a[1].indexOf("A")||-1!==a[1].indexOf("O"),type("f_config_private","E").style.backgroundPosition=
-1===a[1].indexOf("M")?"-24px -48px":"-24px -24px",type("f_config_public","E").style.backgroundPosition=-1!==a[1].indexOf("P")?"-24px -48px":"-24px -24px",type("f_config_invisible","E").style.backgroundPosition=-1!==a[1].indexOf("I")?"-24px -48px":"-24px -24px";else if(310===b)type("f_config_avatar","E").style.backgroundPosition="1"===a[1]?"-24px 0":"-24px -"+24*(a[1]-1)+"px",type("f_config_color","E").style.backgroundColor=u.color[a[2]-1];else if(500===b)b=a[2]===u.me?a[1].substr(0,a[1].indexOf(":")):
a[2],box("u_"+b,b),log("u_"+b,a.slice(3).join(" ").replace(/([^ ]{20})/g,"$1 "),a[1]);else if(510===b)type("r_"+a[2],"E").quiet||log("r_"+a[2],a.slice(3).join(" ").replace(/([^ ]{20})/g,"$1 "),a[1]);else if(601===b)pop(4,u.box[b].replace("",a[1]),'write("enter '+a[1]+' 1")');else if(600===b)for(box("r_"+a[1],a[1]);a[c];)addr(a[1],a[c]),c++;else if(610===b)addr(a[2],a[1]),type("r_"+a[2],"E").activity||log("r_"+a[2],''+u.box[b].replace("",a[1].substr(0,a[1].indexOf(":"))).replace("",
a[2]));else if(620===b)u.me===a[1]?free(type("r_"+a[2],"E")):(remr(a[2],a[1]),type("r_"+a[2],"E").activity||log("r_"+a[2],''+u.box[b].replace("",a[1]).replace("",a[2])));else if(630===b)remr(a[2],a[1]),type("r_"+a[2],"E").activity||log("r_"+a[2],''+u.box[b].replace("",a[1]));else if(640===b)updu(a[2],a[1]);else if(650===b)b=type("ti_"+a[1],"E"),b.game=a[2],b.title=u.ui["top"+a[2]],b.style.display="";else if(700===b)rooml(a.slice(1).join(" ").split(" "));
else if(710===b)rooml(a.slice(1).join(" ").split(" "),!0);else if(801===b)pop(2,u.box[b].replace("",a[2]).replace("",a[1]));else if(810===b&&free(type("bn_"+a[1]+"_"+a[2],"E")),820===b)banl(a[1],a.slice(2).join(" ").split("\t"));else if(870===b)log("r_"+a[1],u.box[b].replace("",a.slice(2).join(" ")));else if(1010===b||1020===b)log("r_"+a[1],u.box[b].replace("",a[2]));else if(1030===b)c=type("sl_"+a[1],"E"),c.innerHTML=a[2].replace(/\:/g," "),c.style.display="",log("r_"+
a[1],u.box[b].replace("",a[2].split(":").join("")));else if(1040===b)c=a.slice(2).join(" ").split(";"),log("r_"+a[1],u.box[b].replace("",c[0]).replace("",c[1]));else if(1050===b)log("r_"+a[1],u.box[b].replace("",a.slice(2).join(" ").split(":").join(" ")));else if(1060===b)log("r_"+a[1],u.box[b].replace("",hint(a.slice(2).join(" "))));else if(1111===b)pop(2,u.box[b].replace("",a[1]));else if(1112===
b)pop(2,u.box[b].replace("",a[1]));else if(1110===b||1120===b||1130===b||1140===b||1150===b||1160===b||1170===b||1180===b){var c=a.slice(5).join(" "),d=c.length;if(1110===b||1180===b)c=c.substr(0,d-2)+""+c.substr(d-2)+"";log("r_"+a[2],u.box[b].replace("",c).replace("",a[3]).replace("",a[4]),a[1])}else 1200===b?(type("sl_"+a[1],"E").style.display="none",log("r_"+a[1],u.box[b].replace("",a[2]))):1210===b?log("r_"+a[1],u.box[b].replace("",a[2]).replace("",
a[3])):1220===b&&log("r_"+a[1],u.box[b].replace("",a[2]).replace("",a.slice(3).join(" ")))}};