/*@cc_on _d=document;eval('var document=_d');@*/var PAGMO={version:"0.2.x",existModules:"VISITOR,CHAT,CHARACTER,TSUKKOMI",$:function(A){if(document.getElementById(A)){return document.getElementById(A);}else{return false;}},init:function(){if((!!PAGMO.SYS.getCookie("pagmo_UseOrNo")&&PAGMO.SYS.getCookie("pagmo_UseOrNo")!="Use")||(!PAGMO.SYS.getCookie("pagmo_UseOrNo")&&PAGMO.defaultStatus!="start")){PAGMO.start();return false;}document.body.appendChild(PAGMO.ATTRGEN.getPagmoRootTag());PAGMO.load();var A=PAGMO.modules.split(",");if(A.length==1&&A[0]=="tsukkomi"){PAGMO.socketStart=false;}A.push("VISITOR","NETWORK","IMGLIST");PAGMO.banAreaEffect();PAGMO.initCheck(A);},load:function(){var A=PAGMO.modules.split(",");var C=PAGMO.style;for(var B=0;A.length>B;B++){if(A[B]==""){continue;}PAGMO.code("js",A[B]);}PAGMO.code("js","visitor");PAGMO.code("js","network");PAGMO.code("js","imglist");PAGMO.code("js","taglist");return true;},code:function(C,A){var D=new Date();if(C=="js"){var B=document.createElement("script");B.language="javascript";B.type="text/javascript";B.charset="utf-8";B.src=PAGMO.path+A+".js?"+D.getTime();document.body.appendChild(B);}else{if(C=="css"){var B=document.createElement("link");B.rel="stylesheet";B.type="text/css";B.helf=PAGMO.path+A+".css";document.body.appendChild(B);}else{if(C=="js2"){var B=document.createElement("script");var E=D.getTime();B.language="javascript";B.type="text/javascript";B.id="js2_"+E;B.charset="utf-8";B.src=A+((A.match(/\?/))?"":"?"+E);document.body.appendChild(B);setTimeout(function(){document.body.removeChild(PAGMO.$("js2_"+E));},10000);}}}return true;},initCheckTimer:false,initCheck:function(modules){var swit=0;for(var i=0;i<modules.length;i++){eval("if(typeof PAGMO."+modules[i].toUpperCase()+' != "undefined") swit += 1');}if(swit<modules.length){PAGMO.initCheckTimer=setTimeout(function(){PAGMO.initCheck(modules);},100);return false;}clearTimeout(PAGMO.initCheckTimer);PAGMO.start();},start:function(){PAGMO.pageSize=PAGMO.SYS.getPageSize();PAGMO.scrollLeft=PAGMO.SYS.getPageScroll().scrollLeft;PAGMO.scrollTop=PAGMO.SYS.getPageScroll().scrollTop;PAGMO.SYS.addEvent(window.document,PAGMO.CONTROLLER.onMouseDown,"onmousedown");PAGMO.SYS.addEvent(window.document,PAGMO.CONTROLLER.onMouseUp,"onmouseup");PAGMO.SYS.addEvent(window.document,PAGMO.CONTROLLER.onMouseMove,"onmousemove");PAGMO.SYS.addEvent(window,PAGMO.CONTROLLER.onScroll,"onscroll");document.body.appendChild(PAGMO.ATTRGEN.getPagmoFuncTag());if(PAGMO.socketStart){document.body.appendChild(PAGMO.ATTRGEN.getProfileBoxTag());}if(document.cookie!=""&&PAGMO.SYS.getCookie("pagmo_UseOrNo")){this.pagmoUseOrNo=PAGMO.SYS.getCookie("pagmo_UseOrNo");}else{if(PAGMO.defaultStatus=="start"){this.pagmoUseOrNo="Use";}else{this.pagmoUseOrNo="NoUse";}}if(this.pagmoUseOrNo=="Use"){PAGMO.NETWORK.start();PAGMO.TIMER.start();PAGMO.started=true;}else{PAGMO.announce("normal","PAGMO is stop mode");}if(document.cookie!=""&&PAGMO.SYS.getCookie("PAGMO_IMAGE")){PAGMO.img=PAGMO.SYS.getCookie("PAGMO_IMAGE");}if(!PAGMO.socketStart){PAGMO.TIMER.set("timeout",function(){PAGMO.announce("normal","Pagmo"+PAGMO.version);},2000);}},callConnected:function(A){if(A){PAGMO.pageSize=PAGMO.SYS.getPageSize();PAGMO.startSession(0);}},startSession:function(){var B=PAGMO.SYS.getPageScroll();var A=PAGMO.SYS.getPageSize();PAGMO.NETWORK.send({call:"room",room:PAGMO.room});PAGMO.CONTROLLER.startSession();},announce:function(A,B){if(!!PAGMO.$("AnnounceBox")&&A=="normal"){PAGMO.$("AnnounceBox").innerHTML=B;}else{PAGMO.$("AnnounceBox").innerHTML+="<br>"+B;}},allEnd:function(){PAGMO.SYS.setCookie("pagmo_UseOrNo","noUse",3);PAGMO.SYS.removeEvent(window.document,PAGMO.CONTROLLER.onMouseDown,"onmousedown");PAGMO.SYS.removeEvent(window.document,PAGMO.CONTROLLER.onMouseUp,"onmouseup");PAGMO.SYS.removeEvent(window.document,PAGMO.CONTROLLER.onMouseMove,"onmousemove");PAGMO.SYS.removeEvent(window,PAGMO.CONTROLLER.onScroll,"onscroll");PAGMO.CONTROLLER.allEnd();delete PAGMO.CONTROLLER;delete PAGMO.MODEL;PAGMO.TIMER.end();delete PAGMO.TIMER;delete PAGMO.SYS;delete PAGMO.ATTRGEN;delete PAGMO.BUFFER;document.body.removeChild(PAGMO.$("CrFuncBox"));document.body.removeChild(PAGMO.$("PAGMO_ProfileBox"));PAGMO=null;return false;},allPause:function(){if(!PAGMO.pausing){PAGMO.pausing=PAGMO.CONTROLLER.allPause();PAGMO.announce("normal","pause");}else{PAGMO.allStart();PAGMO.TIMER.set("timeout",function(){PAGMO.announce("normal","Pagmo"+PAGMO.version);},2000);}return false;},allStart:function(){if(PAGMO.started){if(PAGMO.pausing){PAGMO.CONTROLLER.allStart();PAGMO.pausing=false;}else{return PAGMO.announce("normal","aleady started");}}else{PAGMO.SYS.setCookie("pagmo_UseOrNo","Use",3);return PAGMO.announce("normal","please reload");}},banAreaEffect:function(){var B=PAGMO.ban;if(B==""){return false;}var A=B.split(",");for(i=0;A.length>i;i++){if(PAGMO.$(A[i])){PAGMO.SYS.addEvent(PAGMO.$(A[i]),function(){PAGMO.mouseMode="banMode";},"onmouseover");}if(PAGMO.$(A[i])){PAGMO.SYS.addEvent(PAGMO.$(A[i]),function(){PAGMO.mouseMode="moveMode";},"onmouseout");}}},started:false,pausing:false,socketStart:true,modules:(document.getElementById("pagmo").getAttribute("p_module"))?document.getElementById("pagmo").getAttribute("p_module"):"character",defaultStatus:(document.getElementById("pagmo").getAttribute("default_status"))?document.getElementById("pagmo").getAttribute("default_status"):"start",style:(document.getElementById("pagmo").getAttribute("p_style"))?document.getElementById("pagmo").getAttribute("p_style"):"default_black",room:(document.getElementById("pagmo").getAttribute("room"))?document.getElementById("pagmo").getAttribute("room"):"test",img:(document.getElementById("pagmo").getAttribute("character"))?document.getElementById("pagmo").getAttribute("character"):"default",ban:(document.getElementById("pagmo").getAttribute("p_area"))?document.getElementById("pagmo").getAttribute("p_area"):"",port:"5702",mouseMode:"moveMode",mouseDown:false,mouseX:0,prevMouseX:0,mouseMoveSpanX:0,mouseY:0,prevMouseY:0,mouseMoveSpanY:0,scrollLeftMoveSpan:0,scrollTopMoveSpan:0,scrollLeft:0,scrollTop:0,path:"http://www.pagmo.net/bin2/",host:"www.pagmo.net"};Function.prototype._inherits_=function(A){this.prototype=new A();return this;};Function.prototype._swiss_=function(C){for(var B=1;B<arguments.length;B++){var A=arguments[B];this.prototype[A]=C.prototype[A];}return this;};Function.prototype._addition_=function(A){for(var B in A){this.prototype[B]=A[B];}return this;};Function.prototype._new_=function(){return new this();};PAGMO.SYS=(function(){this.initialize.apply(this,arguments);})._addition_({initialize:function(){},addEvent:function(C,B,A){if(window.addEventListener){C.addEventListener(A.replace("on",""),B,false);}else{if(window.attachEvent){C.attachEvent(A,B);}}},removeEvent:function(C,B,A){if(window.removeEventListener){C.removeEventListener(A.replace("on",""),B,false);}else{if(window.detachEvent){C.detachEvent(A,B);}}},browser:function(){var browser="";if(/*@cc_on!@*/false){if(typeof document.documentElement.style.msInterpolationMode!="undefined"){browser="ie7~";}else{browser="~ie6";}}else{browser="other";}return browser;},getMousePosition:function(e){var mouse=new Object;mouse.x=(e&&!(/*@cc_on!@*/false))?e.pageX:(event.x+document.body.scrollLeft);mouse.y=(e&&!(/*@cc_on!@*/false))?e.pageY:(event.y+document.body.scrollTop);return mouse;},getCookie:function(C){var A=document.cookie.split(";");var B;for(i=0;i<A.length;i++){B=A[i].indexOf("=");if(A[i].substring(0,B)==C||A[i].substring(0,B)==" "+C){return decodeURIComponent(A[i].substring(B+1));}}return false;},setCookie:function(cookieId,data,months){if(cookieId==""||cookieId==null){return false;}if(months==""||months==null){document.cookie=cookieId+"="+encodeURIComponent(data)+";";}else{months=eval(months);var limitMonths=new Date();limitMonths.setMonth(limitMonths.getMonth()+months);document.cookie=cookieId+"="+encodeURIComponent(data)+";expires="+limitMonths.toGMTString();}return true;},getPageScroll:function(){var A=new Object();A.scrollLeft=document.documentElement.scrollLeft||document.body.scrollLeft||0;A.scrollTop=document.documentElement.scrollTop||document.body.scrollTop||0;return A;},getPageSize:function(){var C=new Object();var D,A;var B,E;if(window.innerHeight&&window.scrollMaxY){D=window.innerWidth+window.scrollMaxX;A=window.innerHeight+window.scrollMaxY;}else{if(document.body.scrollHeight>document.body.offsetHeight){D=document.body.scrollWidth;A=document.body.scrollHeight;}else{D=document.body.offsetWidth;A=document.body.offsetHeight;}}if(self.innerHeight){if(document.documentElement.clientWidth){B=document.documentElement.clientWidth;}else{B=self.innerWidth;}E=self.innerHeight;}else{if(document.documentElement&&document.documentElement.clientHeight){B=document.documentElement.clientWidth;E=document.documentElement.clientHeight;}else{if(document.body){B=document.body.clientWidth;E=document.body.clientHeight;}}}if(A<E){pageHeight=E;}else{pageHeight=A;}if(D>B){pageWidth=D;}else{pageWidth=B;}C.pageWidth=pageWidth;C.pageHeight=pageHeight;C.windowWidth=B;C.windowHeight=E;return C;},cumulativeOffset:function(C,E,D){var A=PAGMO.SYS;if(!E&&!D){var E=D=0;}if(!window.opera){var B=A.getBorder(C);E+=B.top;D+=B.left;}E+=C.offsetTop||0;D+=C.offsetLeft||0;C=C.offsetParent;return(C)?arguments.callee(C,E,D):{top:E,left:D};},getBorder:function(A){var D,C,B;if(A==null){return{left:0,top:0};}B=A.style.borderTopStyle;if(B&&B!="none"){D=parseInt(A.style.borderTopWidth);}B=A.style.borderLeftStyle;if(B&&B!="none"){C=parseInt(A.style.borderLeftWidth);}D=(isNaN(D))?0:D;C=(isNaN(C))?0:C;return{left:C,top:D};}})._new_();PAGMO.ATTRGEN=(function(){this.initialize.apply(this,arguments);})._addition_({initialize:function(){},getTag:function(data){var dataArr=this.getTagParser(data);var elemName=data.match(/[^{]+/).toString();var retAttr=document.createElement(elemName);for(var i in dataArr){eval("retAttr."+dataArr[i]+";");}return retAttr;},getTagParser:function(data){var dataArr=new Array();var retArr=new Array();var retStr="";var startPoint=0;var cutPoint=0;var i=0;while(true){if(!data.charAt(i)){break;}if(data.charAt(i)=="{"){if(cutPoint>0){cutPoint++;}else{startPoint=eval(i)+1;cutPoint++;}}if(data.charAt(i)=="}"){if(cutPoint>1){cutPoint--;}else{dataArr.push(data.substring(startPoint,i));cutPoint--;}}i++;}for(var i=0;i<dataArr.length;i++){var retStr="";var dataArr2=new Array();var Fstr=dataArr[i].match(/^[^,]+/).toString();var Sstr=dataArr[i].replace(/^[^,]+/,"").substring(1);dataArr2.push(Fstr);dataArr2.push(Sstr);dataArr[i]=dataArr2;for(var j=0;j<dataArr[i].length;j++){if(dataArr[i][j].match(/{/)||dataArr[i][j].match(/}/)){dataArr[i][j]=this.getTagParser(dataArr[i][j]);for(var k=0;k<dataArr[i][j].length;k++){retArr.push(retStr+"."+dataArr[i][j][k]);}}else{if(j>=1){retStr+="='"+dataArr[i][j]+"'";retArr.push(retStr);}else{retStr+=dataArr[i][j];}}}}return retArr;},getPagmoRootTag:function(){var A=PAGMO.SYS.getPageSize();var B=this.getTag("div{id,PAGMO_ROOT_TAG}{style,{position,absolute}{top,0px}{left,0px}{width,"+(A.pageWidth-20)+"px}{height,"+(A.pageHeight-20)+"px}{visibility,hidden}{background,none}{overflow,hidden}{display,block}{margin,0px}{padding,0px}{border,none}}");return B;},getPagmoFuncTag:function(){var G=new Image();var C=new Image();var H=new Image();var L=new Image();G.src=PAGMO.path+"sysimg/pagmo_pause.gif";C.src=PAGMO.path+"sysimg/pagmo_start.gif";H.src=PAGMO.path+"sysimg/pagmo_stop.gif";L.src=PAGMO.path+"sysimg/pagmo_func_close.gif";var J=this.getTag("div{id,CrFuncBox}{style,{cursor,pointer}{position,absolute}{top,"+PAGMO.scrollTop+"px}{right,0px}}");var F=this.getTag("div{id,AnnounceBox}{innerHTML,Pagmo Loading ...}");F.onmouseover=function(){PAGMO.mouseMode="announceBoxMode";};F.onmouseout=function(){PAGMO.mouseMode="moveMode";};J.appendChild(F);var A=this.getTag("div{id,PausePagmo}{className,PagmoFuncs}{innerHTML,Pause}");A.onmouseover=function(){PAGMO.mouseMode="pauseButtonMode";PAGMO.$("PausePagmo").style.background="url("+G.src+") 5px 1px no-repeat #F00";};A.onmouseout=function(){PAGMO.mouseMode="moveMode";PAGMO.$("PausePagmo").style.background="#111";};J.appendChild(A);var M=this.getTag("div{id,RestartPagmo}{className,PagmoFuncs}{innerHTML,Start}");M.onmouseover=function(){PAGMO.mouseMode="startButtonMode";PAGMO.$("RestartPagmo").style.background="url("+C.src+") 5px 1px no-repeat #F00";};M.onmouseout=function(){PAGMO.mouseMode="moveMode";PAGMO.$("RestartPagmo").style.background="#111";};J.appendChild(M);var K=this.getTag("div{id,StopPagmo}{className,PagmoFuncs}{innerHTML,Stop}");K.onmouseover=function(){PAGMO.mouseMode="stopButtonMode";PAGMO.$("StopPagmo").style.background="url("+H.src+") 5px 1px no-repeat #F00";};K.onmouseout=function(){PAGMO.mouseMode="moveMode";PAGMO.$("StopPagmo").style.background="#111";};J.appendChild(K);var I=this.getTag("div{id,PAGMO_NameImg}{className,PagmoFuncs}{innerHTML,SET PROFILE}");I.onmouseover=function(){PAGMO.mouseMode="profileMode";PAGMO.$("PAGMO_NameImg").style.background="#F00";};I.onmouseout=function(){PAGMO.mouseMode="moveMode";PAGMO.$("PAGMO_NameImg").style.background="#111";};if(PAGMO.socketStart){J.appendChild(I);}var B=this.getTag("a{href,"+PAGMO.path.replace("bin2/","")+"}{target,_blank}{style,{textDecoration,none}}");var E=this.getTag("div{id,GoPagmoSite}{className,PagmoFuncs}{innerHTML,Pagmo.net}");E.onmouseover=function(){return function(){PAGMO.mouseMode="goSiteMode";PAGMO.$("GoPagmoSite").style.backgroundColor="#F00";};}();E.onmouseout=function(){return function(){PAGMO.mouseMode="moveMode";PAGMO.$("GoPagmoSite").style.backgroundColor="#111";};}();B.appendChild(E);J.appendChild(B);var D=this.getTag('div{id,PAGMO_FuncClose}{className,PagmoFuncs}{innerHTML,<span style="visibility:hidden">func close</span>}{style,{background,url('+L.src+") center no-repeat #111}}");D.onmouseover=function(){PAGMO.mouseMode="funcCloseButtonMode";};D.onmouseout=function(){PAGMO.mouseMode="moveMode";};J.appendChild(D);return J;},getFlashTag:function(B,C){var A=new String();if(window.ActiveXObject){A+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';A+='codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" ';A+='width="1" ';A+='height="1" ';A+='id="'+C+'" ';A+='name="'+C+'">';A+='<param name="movie" value="'+B+'"/>';A+='<param name="quality" value="high"/>';A+='<param name="wmode" value="transparent"/>';A+='<param name="bgcolor" value="#FFFFFF"/>';A+='<param name="allowScriptAccess" value="always"/>';A+="</object>";}else{A+='<embed src="'+B+'"';A+='name="'+C+'" ';A+='quality="high" ';A+='bgcolor="#FFFFFF" ';A+='width="1" ';A+='height="1" ';A+='wmode="transparent" ';A+='swliveconnect="TRUE" ';A+='type="application/x-shockwave-flash" ';A+='allowScriptAccess="always" ';A+='pluginspage="http://www.macromedia.com/go/getflashplayer">';A+="</embed>";}return A;},characterImgsBoxReflesh:function(){PAGMO.$("PAGMO_imgsListBox_and_buttons").innerHTML="";if(PAGMO.$("PAGMO_imgsListBox_and_buttons")){PAGMO.$("PAGMO_imgsListBox_and_buttons").appendChild(this.getCharacterImgsBox(PAGMO.IMGLIST,false));}},getCharacterImgsBox:function(I,A){var K=0;var H=8;var B=I.split(",");B.pop();var J=this.getTag("div{id,PAGMO_imgsListBox}{style,{width,500px}{height,100px}{marginLeft,50px}{marginRight,50px}{marginTop,0}{marginBottom,10px}{padding,0px}{background,#CCC}}");for(var E=K,C=B.length;E<K+H;E++){if(E>=C||E<0){break;}var N=this.getTag("img{src,"+PAGMO.path.replace("bin2/","")+"charimgs/charimg/"+B[E]+"_ds.gif}{border,1}{style,{marginLeft,"+((E==K)?0:20)+"px}{marginTop,15px}{cursor,pointer}}");N.onclick=function(O){return function(){PAGMO.$("PAGMO_imgBox").value=O;};}(B[E]);J.appendChild(N);}var G=this.getTag("span{id,PAGMO_imgsListNextButton}{innerHTML,<button>Next</button>}{style,{marginLeft,300px}{cursor,pointer}}");var L=this.getTag("span{id,PAGMO_imgsListBackButton}{innerHTML,<button>Back</button>}{style,{cursor,pointer}}");var D=new Object();var M=this;D.characterImgListFlow=function(R){var O=(R)?K+1:K-1;if(O+H>B.length||O<0){return false;}K=O;PAGMO.$("PAGMO_imgsListBox").innerHTML="";for(var Q=K,P=B.length;Q<K+H;Q++){var S=M.getTag("img{src,"+PAGMO.path.replace("bin2/","")+"charimgs/charimg/"+B[Q]+"_ds.gif}{border,1}{style,{marginLeft,"+((Q==K)?0:20)+"px}{marginTop,15px}{cursor,pointer}}");S.onclick=function(T){return function(){PAGMO.$("PAGMO_imgBox").value=T;};}(B[Q]);PAGMO.$("PAGMO_imgsListBox").appendChild(S);}};G.onclick=function(){D.characterImgListFlow(true);};L.onclick=function(){D.characterImgListFlow(false);};if(A){var F=this.getTag("div{id,PAGMO_imgsListBox_and_buttons}");}else{var F=document.createDocumentFragment();}F.appendChild(J);F.appendChild(L);F.appendChild(G);F.appendChild(PAGMO.ATTRGEN.getTag("br"));F.appendChild(PAGMO.ATTRGEN.getTag("br"));return F;},getCharacterTagsBox:function(list){var tagList=list.split(";");tagList.pop();var characterTagsBoxForm=this.getTag("form{style,{marginLeft,50px}{marginRight,50px}{marginTop,10px}{marginBottom,0}{padding,0}{paddingTop,10px}{background,#CCC}{width,500px}}");var characterTagsBox=this.getTag("select{id,PAGMO_tagsListBox}{style,{background,#CCC}}");characterTagsBox.onchange=function(){return function(){var si=PAGMO.$("PAGMO_tagsListBox").selectedIndex;var url=PAGMO.$("PAGMO_tagsListBox").options[si].value;if(url==-1){PAGMO.code("js","imglists_tag/all");}else{PAGMO.code("js","imglists_tag/"+url);}};}();tagList.unshift('[-1,"ALL"]');for(var i=0,l=tagList.length;i<l;i++){var tag=eval(tagList[i]);var characterTag=this.getTag("option{value,"+tag[0]+"}{innerHTML,"+tag[1]+"}");characterTagsBox.appendChild(characterTag);}characterTagsBoxForm.appendChild(characterTagsBox);return characterTagsBoxForm;},getProfileBoxTag:function(){var F=300;var G=100;if(!!PAGMO.CONTROLLER.CHARACTER){F=600;G=310;var J=this.getCharacterImgsBox(PAGMO.IMGLIST,true);var C=this.getCharacterTagsBox(PAGMO.TAGLIST);}var H=PAGMO.SYS.getPageSize();var I=this.getTag("div{id,PAGMO_ProfileBox}{style,{position,absolute}{left,"+((H.windowWidth-F)/2)+"px}{top,"+((H.windowHeight-G)/2)+"px}{width,"+F+"px}{height,"+G+"px}}");I.onmouseover=function(){PAGMO.mouseMode="profileBoxMode";};I.onmouseout=function(){PAGMO.mouseMode="moveMode";};var A=PAGMO.ATTRGEN.getTag("input{id,PAGMO_nameBox}{type,text}{className,PAGMO_profileInputs}{style,{width,160px}}");var E=PAGMO.ATTRGEN.getTag("input{id,PAGMO_imgBox}{type,text}{className,PAGMO_profileInputs}{style,{width,100px}}");var K=PAGMO.ATTRGEN.getTag("input{id,PAGMO_profileButton}{type,button}{value,Save}{className,PAGMO_profileInputs}{style,{width,100px}{marginLeft,20px}}");K.onclick=function(){PAGMO.CONTROLLER.setProfile();PAGMO.CONTROLLER.visi_hideProfileBox();return false;};var D=PAGMO.ATTRGEN.getTag("input{id,PAGMO_cancelButton}{type,button}{value,Cancel}{className,PAGMO_profileInputs}{style,{width,100px}{marginLeft,20px}}");D.onclick=function(){PAGMO.CONTROLLER.visi_hideProfileBox();return false;};var B=PAGMO.ATTRGEN.getTag("a{id,PAGMO_imgId}{target,_blank}{innerHTML,LIST}{href,"+PAGMO.path.replace("bin2/","")+"charimg.php?req=imglist&page=0&width=5&height=5}");I.appendChild(C);I.appendChild(J);I.appendChild(document.createTextNode("MyName:"));I.appendChild(A);I.appendChild(PAGMO.ATTRGEN.getTag("br"));I.appendChild(document.createTextNode(" MyImage:"));I.appendChild(E);I.appendChild(document.createTextNode(" ("));I.appendChild(B);I.appendChild(document.createTextNode(")"));I.appendChild(PAGMO.ATTRGEN.getTag("br"));I.appendChild(K);I.appendChild(D);return I;}})._new_();PAGMO.TIMER=(function(){this.initialize.apply(this,arguments);})._addition_({initialize:function(){this.interval=false;this.orderArr=[];this.funcArr=[];},start:function(){var A=this;this.interval=setInterval(function(){A.timer();},20);},set:function(C,D,F,H){var F=Math.round(F/20);var G,E;if(!H){var H="none";}G=E=F;var A=[D,G,E,H,C];if(this.orderArr.length==0){this.orderArr.push(A);return this;}for(var B=0;B<this.orderArr.length;B++){if(!this.orderArr[B]){this.orderArr[B]=A;break;}else{if(B==this.orderArr.length-1){this.orderArr.push(A);break;}}}return this;},clear:function(C){for(var B=0;B<this.orderArr.length;B++){if(!!this.orderArr[B]){for(var A=0;A<arguments.length;A++){if(this.orderArr[B][3]==arguments[A]){delete this.orderArr[B];}}}}},timer:function(){for(var i=0;i<this.orderArr.length;i++){if(!!this.orderArr[i]){if(this.orderArr[i][1]<=0){this.funcArr.push(this.orderArr[i][0]);if(this.orderArr[i][4]=="timeout"){delete this.orderArr[i];}else{if(this.orderArr[i][4]=="interval"){this.orderArr[i][1]=this.orderArr[i][2];}}}else{this.orderArr[i][1]=eval(this.orderArr[i][1])-1;}}}for(var i=0;i<this.funcArr.length;i++){this.funcArr[i]();}this.funcArr=[];},end:function(){clearInterval(this.interval);}})._new_();PAGMO.CONTROLLER=(function(){this.initialize.apply(this,arguments);})._addition_({profileBox:false,initialize:function(){var self=this;this.pagmoFunc=false;this.modules=PAGMO.existModules.split(",");this.pagmoProfileBoxTop=0;this.pagmoProfileBoxLeft=0;this.onMouseDown=function(evt){PAGMO.mouseX=PAGMO.SYS.getMousePosition(evt).x;PAGMO.mouseY=PAGMO.SYS.getMousePosition(evt).y;PAGMO.mouseMoveSpanX=PAGMO.mouseX-PAGMO.prevMouseX;PAGMO.mouseMoveSpanY=PAGMO.mouseY-PAGMO.prevMouseY;for(var i=0;i<self.modules.length;i++){eval("if(self."+self.modules[i]+") self."+self.modules[i]+".onMouseDown();");}PAGMO.mouseDown=true;PAGMO.prevMouseX=PAGMO.mouseX;PAGMO.prevMouseY=PAGMO.mouseY;return true;};this.onMouseUp=function(evt){PAGMO.mouseX=PAGMO.SYS.getMousePosition(evt).x;PAGMO.mouseY=PAGMO.SYS.getMousePosition(evt).y;PAGMO.mouseMoveSpanX=PAGMO.mouseX-PAGMO.prevMouseX;PAGMO.mouseMoveSpanY=PAGMO.mouseY-PAGMO.prevMouseY;if(PAGMO.mouseMode=="announceBoxMode"||PAGMO.mouseMode=="funcCloseButtonMode"){if(this.pagmoFunc){PAGMO.$("RestartPagmo").style.display="none";PAGMO.$("StopPagmo").style.display="none";PAGMO.$("PausePagmo").style.display="none";PAGMO.$("GoPagmoSite").style.display="none";if(PAGMO.socketStart){PAGMO.$("PAGMO_NameImg").style.display="none";}PAGMO.$("PAGMO_FuncClose").style.display="none";this.pagmoFunc=false;}else{PAGMO.$("GoPagmoSite").style.display="block";PAGMO.$("PausePagmo").style.display="block";PAGMO.$("StopPagmo").style.display="block";PAGMO.$("RestartPagmo").style.display="block";if(PAGMO.socketStart){PAGMO.$("PAGMO_NameImg").style.display="block";}PAGMO.$("PAGMO_FuncClose").style.display="block";this.pagmoFunc=true;}}else{if(PAGMO.mouseMode=="profileMode"){PAGMO.CONTROLLER.visi_hideProfileBox();}else{if(PAGMO.mouseMode=="moveMode"){}}}for(var i=0;i<self.modules.length;i++){eval("if(self."+self.modules[i]+") self."+self.modules[i]+".onMouseUp();");}PAGMO.mouseDown=false;PAGMO.prevMouseX=PAGMO.mouseX;PAGMO.prevMouseY=PAGMO.mouseY;if(PAGMO.mouseMode=="startButtonMode"){PAGMO.allStart();}else{if(PAGMO.mouseMode=="pauseButtonMode"){PAGMO.allPause();}else{if(PAGMO.mouseMode=="stopButtonMode"){PAGMO.allEnd();}}}return true;};this.onMouseMove=function(evt){PAGMO.mouseX=PAGMO.SYS.getMousePosition(evt).x;PAGMO.mouseY=PAGMO.SYS.getMousePosition(evt).y;PAGMO.mouseMoveSpanX=PAGMO.mouseX-PAGMO.prevMouseX;PAGMO.mouseMoveSpanY=PAGMO.mouseY-PAGMO.prevMouseY;for(var i=0;i<self.modules.length;i++){eval("if(self."+self.modules[i]+") self."+self.modules[i]+".onMouseMove(evt);");}PAGMO.prevMouseX=PAGMO.mouseX;PAGMO.prevMouseY=PAGMO.mouseY;};this.onScroll=function(){PAGMO.scrollLeftMoveSpan=PAGMO.SYS.getPageScroll().scrollLeft-PAGMO.scrollLeft;PAGMO.scrollTopMoveSpan=PAGMO.SYS.getPageScroll().scrollTop-PAGMO.scrollTop;PAGMO.scrollLeft+=PAGMO.scrollLeftMoveSpan;PAGMO.scrollTop+=PAGMO.scrollTopMoveSpan;PAGMO.$("CrFuncBox").style.top=PAGMO.scrollTop+"px";for(var i=0;i<self.modules.length;i++){eval("if(self."+self.modules[i]+") self."+self.modules[i]+".onScroll();");}if(PAGMO.CONTROLLER.profileBox){this.pagmoProfileBoxLeft+=PAGMO.scrollLeftMoveSpan;this.pagmoProfileBoxTop+=PAGMO.scrollTopMoveSpan;PAGMO.$("PAGMO_ProfileBox").style.left=this.pagmoProfileBoxLeft+"px";PAGMO.$("PAGMO_ProfileBox").style.top=this.pagmoProfileBoxTop+"px";}};PAGMO.scrollTop;return true;},visi_hideProfileBox:function(){if(this.profileBox){PAGMO.$("PAGMO_ProfileBox").style.display="none";this.profileBox=false;}else{this.pagmoProfileBoxWidth=(PAGMO.CONTROLLER.CHARACTER)?600:300;this.pagmoProfileBoxHeight=(PAGMO.CONTROLLER.CHARACTER)?300:100;var A=PAGMO.SYS.getPageSize();this.pagmoProfileBoxLeft=PAGMO.scrollLeft+((A.windowWidth-this.pagmoProfileBoxWidth)/2);this.pagmoProfileBoxTop=PAGMO.scrollTop+((A.windowHeight-this.pagmoProfileBoxHeight)/2);PAGMO.$("PAGMO_ProfileBox").style.display="block";PAGMO.$("PAGMO_ProfileBox").style.left=this.pagmoProfileBoxLeft+"px";PAGMO.$("PAGMO_ProfileBox").style.top=this.pagmoProfileBoxTop+"px";this.profileBox=true;}},startSession:function(){var self=this;for(var i=0;i<self.modules.length;i++){eval("if(self."+self.modules[i]+") self."+self.modules[i]+".startSession();");}PAGMO.NETWORK.send({call:"start"});PAGMO.NETWORK.firstRecv=false;},parse:function(parseData){switch(parseData.call){case"id":this.getId(parseData);break;case"redirect":this.redirect(parseData);break;case"busy":this.busy(parseData);break;}for(var i=0;i<this.modules.length;i++){eval("if(this."+this.modules[i]+") this."+this.modules[i]+".parse(parseData);");}return true;},getId:function(A){PAGMO.MYMODEL.id=A.id;PAGMO.announce("normal","Login Success !!");PAGMO.TIMER.set("timeout",function(){PAGMO.announce("normal","Pagmo"+PAGMO.version);},5000);PAGMO.TIMER.set("interval",function(){PAGMO.NETWORK.send({call:"list"});},5000,"list_send_timer");return true;},redirect:function(A){PAGMO.announce("normal","Redirect ...");PAGMO.host=A.addr;PAGMO.port=A.port;PAGMO.NETWORK.socketClose();PAGMO.NETWORK.socketConnect(PAGMO.host,PAGMO.port);return true;},busy:function(A){if(A[1].match(/'userOver'/)){PAGMO.announce("normal","Sorry, server is busy");}else{PAGMO.announce("normal","multiple log in?");}return true;},setProfile:function(){var B=false;var C="complete\n";var D=PAGMO.$("PAGMO_nameBox").value;var A=PAGMO.$("PAGMO_imgBox").value;if(D!=""){PAGMO.SYS.setCookie("PAGMO_NAME",D,1);B=true;C+="name:"+D+"\n";}if(A!=""){PAGMO.SYS.setCookie("PAGMO_IMAGE",A,1);B=true;C+="image:"+A+"\n";}if(B){alert(C);}},allEnd:function(){for(var i=0;i<this.modules.length;i++){eval("if(this."+this.modules[i]+") this."+this.modules[i]+".allEnd();");eval("if(this."+this.modules[i]+") delete this."+this.modules[i]+";");}PAGMO.NETWORK.allEnd();delete PAGMO.NETWORK;return true;},allPause:function(){for(var i=0;i<this.modules.length;i++){eval("if(this."+this.modules[i]+") this."+this.modules[i]+".allPause();");}PAGMO.NETWORK.allPause();return true;},allStart:function(){for(var i=0;i<this.modules.length;i++){eval("if(this."+this.modules[i]+") this."+this.modules[i]+".allStart();");}PAGMO.NETWORK.allStart();return true;}})._new_();PAGMO.MYMODEL=(function(){this.initialize.apply(this,arguments);})._addition_({initialize:function(){this.id=false;this.name=(document.cookie!=""&&!!PAGMO.SYS.getCookie("PAGMO_NAME")&&PAGMO.SYS.getCookie("PAGMO_NAME")!="")?PAGMO.SYS.getCookie("PAGMO_NAME"):false;this.img=false;}})._new_();PAGMO.MODEL=new Object();document.write('<link rel="stylesheet" type="text/css" href="'+PAGMO.path+PAGMO.style+'.css">');PAGMO.SYS.addEvent(window,PAGMO.init,"onload");