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