<!--[442,2,28] published at 2008-08-13 20:02:15 from #221 by 1786-->
if(typeof IO=='undefined')IO={};IO.WebTunnel=function(){this.Init.apply(this,arguments);};IO.WebTunnel.isIE=(navigator.appName.indexOf("Microsoft",0)!=-1)?true:false;IO.WebTunnel.Runner=false;IO.WebTunnel.MyConf={SwfFileId:'sina_web_push_fla_tunnel',FlaPath:'http://i3.sinaimg.cn/woocall/cli/webtunnel/stable_0724.swf',CmdTok:'GMSG',LMSGTok:'LMSG',ScriptId:'_sina_livecast_script_id',FlaUpt:'http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW'};IO.WebTunnel.getInstance=function(G){if(IO.WebTunnel.Runner)return IO.WebTunnel.Runner;else return new IO.WebTunnel(G);};IO.WebTunnel.prototype={flag:-1,flaver:null,dp:null,fT:null,dg:null,dV:false,Init:function(G){if(IO.WebTunnel.Runner!=false)return;this.cH=IO.WebTunnel.MyConf;if(!(this.fZ=G.server)){this.fZ=this.cH.server;}if(G.port)this.fL=G.port;if(G.onConnected)this.fe=G.onConnected;if(G.onError)this.fq=G.onError;if(G.onData)this.fg=G.onData;if(G.update)this.gM=G.update;if(G.onClose)this.fc=G.onClose;if(G.utf8)this.cH.FlaPath+='.utf_8';if(G.passwd)this.fK=G.passwd;if(G.BoxId)this.cv=G.BoxId;if(G.ScriptId)this.fS=G.ScriptId;this.eo=this.cH.ScriptId;this.gT();IO.WebTunnel.Runner=this;},send:function(J){if(this.flag!=3)return-1;window.document.sina_web_push_fla_tunnel.SetVariable("DataSend",Math.round(Math.random()*2147483648)+' '+J);return 0;},fO:function(L){var aG=/\s*((\S+\s*)*)/;L=L.replace(aG,"$1");if(this.fg)this.fg(L);if(this.fr||this.dV)this.fN(L);},dj:function(R){if(this.dg)return;if(R!=1002)clearTimeout(this.dk);this.flag=2;if(this.fq)this.fq(R);},gF:function(an){if(this.gM)this.gM(an);this.dg=1;},gl:function(){if(this.flag==-1){return;}},cO:function(){this.flag=1;if(this.fc)this.fc();},dX:function(an){this.flag=0;clearTimeout(this.dp);if(an){this.flaver=an;if(an.split(' ')[1].substr(0,1)<7){this.gF(an);return;}}if(this.fK){window.document.sina_web_push_fla_tunnel.SetVariable("Probe",this.fK);}else{if(!this.dZ)this.dZ=1;this.fT=setTimeout(this.fP(this),90*1000);}},fP:function(o){return function(){if(o.dZ>=3){return;}o.dZ++;var s=document.getElementById(o.eo);if(s){s.parentNode.removeChild(s);}if(o.fS){var t=document.getElementById(o.fS);var m=document.createElement('script');if(t){t.parentNode.appendChild(m);t.parentNode.removeChild(t);}else{document.body.appendChild(m);}m.id=o.fS;}o.dX();}},cR:function(V){clearTimeout(this.dk);this.ep=V;this.flag=3;if(this.dU)this.send(this.cH.CmdTok+' add '+this.ep+' '+this.dU);if(this.fe)this.fe(V);},gE:function(R){},du:function(){var aN=window.location.href;var p=aN.indexOf('/',7);var au='';if(p!=-1){au=aN.substr(0,p);}else au=aN;return au;},gT:function(){var aJ=Array();var au=this.du();if(IO.WebTunnel.isIE){aJ.push('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="');aJ.push("1");aJ.push('" height="');aJ.push("1");aJ.push('" id="');aJ.push(this.cH.SwfFileId);aJ.push('" align="middle"><param name="allowScriptAccess" value="always" />');aJ.push('<param name="movie" value="');aJ.push(this.cH.FlaPath);aJ.push('?Domain=');aJ.push(au);aJ.push('&Server=');aJ.push(this.fZ);aJ.push('&IsIE=');aJ.push((IO.WebTunnel.isIE)?1:0);if(this.fL){aJ.push('&Port=');aJ.push(this.fL);}aJ.push('" />');aJ.push('<param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />');aJ.push('</object>');}else{aJ.push('<embed src="');aJ.push(this.cH.FlaPath);aJ.push('" FlashVars="');aJ.push('Domain=');aJ.push(au);aJ.push('&Server=');aJ.push(this.fZ);aJ.push('&IsIE=');aJ.push((IO.WebTunnel.isIE)?1:0);if(this.fL){aJ.push('&Port=');aJ.push(this.fL);}aJ.push('" quality="high" bgcolor="#FFFFFF" width="');aJ.push("1");aJ.push('" height="');aJ.push("1");aJ.push('" name="');aJ.push(this.cH.SwfFileId);aJ.push('" align="middle" allowScriptAccess="always" swLiveConnect="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');}var ax=aJ.join('');if(this.cv){var aB=document.getElementById(this.cv);}else{var aB=document.createElement('div');document.body.appendChild(aB);}if(aB){aB.innerHTML=ax;}this.flag=1;}};function sina_web_push_fla_tunnel_DoFSCommand(command,args){if(!IO.WebTunnel.Runner){return;}switch(command){case 'Init':IO.WebTunnel.Runner.dX(args);break;case 'Data':IO.WebTunnel.Runner.fO(args);break;case 'Connected':IO.WebTunnel.Runner.cR(args);break;case 'Error':IO.WebTunnel.Runner.dj(args);break;case 'Update':IO.WebTunnel.Runner.gF(args);break;case 'Close':IO.WebTunnel.Runner.cO();break;case 'Start':IO.WebTunnel.Runner.gl();break;case 'Trace':IO.WebTunnel.Runner.gE(args);break;}};if(IO.WebTunnel.isIE){document.write('<SCRIPT event=FSCommand(command,args) for=sina_web_push_fla_tunnel>');document.write('sina_web_push_fla_tunnel_DoFSCommand(command, args);');document.write('</SCRIPT>');}if(typeof Util=='undefined')Util={};Util.isIE=(navigator.appName.indexOf("Microsoft",0)!=-1)?true:false;Util.getBodyHeight=function(){var Dim=Util.getBodyDim();return Dim.H;};Util.getBodyWidth=function(){var Dim=Util.getBodyDim();return Dim.W;};Util.getBodyDim=function(){var Dim={};if(window.innerWidth){Dim.W=window.innerWidth;Dim.H=window.innerHeight;}else if(document.documentElement&&document.documentElement.clientWidth){Dim.W=document.documentElement.clientWidth;Dim.H=document.documentElement.clientHeight;}else if(document.body){Dim.W=document.body.clientWidth;Dim.H=document.body.clientHeight;}return Dim;};Util.getScrollTop=function(){var scrollPos;if(typeof window.pageYOffset!='undefined'){scrollPos=window.pageYOffset;}else if(typeof document.compatMode!='undefined'&&document.compatMode!='BackCompat'){scrollPos=document.documentElement.scrollTop;}else if(typeof document.body!='undefined'){scrollPos=document.body.scrollTop;}return scrollPos;};Util.randomString=function(string_length,first_alpha){var alphachars="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";var chars=alphachars+"0123456789";var randomstring='';for(var i=0;i<string_length;i++){if(first_alpha&&i==0){var rnum=Math.floor(Math.random()*alphachars.length);randomstring+=alphachars.substring(rnum,rnum+1);}else{var rnum=Math.floor(Math.random()*chars.length);randomstring+=chars.substring(rnum,rnum+1);}}return randomstring;};Util.setCookie=function(name,value,expires,path,domain,secure){var curCookie=name+"="+escape(value)+((expires)?"; expires="+expires.toGMTString():"")+((path)?"; path="+path:"")+((domain)?"; domain="+domain:"")+((secure)?"; secure":"");document.cookie=curCookie;};Util.getCookie=function(name){var dc=document.cookie;var prefix=name+"=";var begin=dc.indexOf("; "+prefix);if(begin==-1){begin=dc.indexOf(prefix);if(begin!=0)return null;}else begin+=2;var end=document.cookie.indexOf(";",begin);if(end==-1)end=dc.length;return unescape(dc.substring(begin+prefix.length,end));};Util.AddEvent=function(el,name,cb,useCapture){if(el.addEventListener){el.addEventListener(name,cb,useCapture);}else if(el.attachEvent){el.attachEvent('on'+name,cb);}};Util.StrFmt=function(){var fmt=arguments[0],bF=fmt.split("%s"),rtn=new Array();for(var i=0;i<bF.length;i++){rtn.push(bF[i]);if(i+1<arguments.length&&i!=bF.length-1)rtn.push(arguments[i+1]);}return rtn.join('');};Function.prototype.cq=function(){var __m=this,object=arguments[0],args=new Array();for(var i=1;i<arguments.length;i++){args.push(arguments[i]);}return function(){var c_args=[];for(var k=0;k<arguments.length;k++){c_args.push(arguments[k]);}return __m.apply(object,c_args.concat(args));}};Function.prototype.cs=function(){var __m=this,object=arguments[0],args=new Array();for(var i=1;i<arguments.length;i++){args.push(arguments[i]);}return function(event){return __m.apply(object,[(event||window.event)].concat(args));}};Array.prototype.SearchItem=function(item,start){var i;var s;s=parseInt(start);if(isNaN(s)||s<0){s=0;}if(typeof item=='function'){for(i=s;i<this.length;i++){if(item(this[i])){return i;}}}else{for(i=s;i<this.length;i++){if(this[i]==item){return i;}}}return-1;};if(typeof Util=='undefined')Util={};Util.Crypt=function(){this.Init.apply(this,arguments);};Util.Crypt.prototype={Init:function(){},long2str:function(v,w){var vl=v.length;var sl=v[vl-1]&0xffffffff;for(var i=0;i<vl;i++){v[i]=String.fromCharCode(v[i]&0xff,v[i]>>>8&0xff,v[i]>>>16&0xff,v[i]>>>24&0xff);}if(w){return v.join('').substring(0,sl);}else{return v.join('');}},str2long:function(s,w){var len=s.length;var v=[];for(var i=0;i<len;i+=4){v[i>>2]=s.charCodeAt(i)|s.charCodeAt(i+1)<<8|s.charCodeAt(i+2)<<16|s.charCodeAt(i+3)<<24;}if(w){v[v.length]=len;}return v;},decrypt:function(str,key,ishex){if(str==""){return "";}if(ishex)str=this.hexToString(str);var v=this.str2long(str,false);var k=this.str2long(key,false);var n=v.length-1;var z=v[n-1],y=v[0],delta=0x9E3779B9;var mx,e,q=Math.floor(6+52/(n+1)),sum=q*delta&0xffffffff;var r_var=1;while(sum!=0){e=sum>>>2&3;for(var p=n;p>0;p--){z=v[p-1];mx=(z>>>5^y<<2)+(y>>>3^z<<4)^(sum^y)+(k[p&3^e]^z);y=v[p]=v[p]-mx&0xffffffff;}z=v[n];mx=(z>>>5^y<<2)+(y>>>3^z<<4)^(sum^y)+(k[p&3^e]^z);y=v[0]=v[0]-mx&0xffffffff;sum=sum-delta&0xffffffff;}return this.long2str(v,true);},hexToString:function(h){var r="";for(var i=(h.substr(0,2)=="0x")?2:0;i<h.length;i+=2)r+=String.fromCharCode(parseInt(h.substr(i,2),16));return r;}};if(typeof Util=='undefined')Util={};Util.Crypt=function(){this.Init.apply(this,arguments);};Util.Crypt.prototype={Init:function(){},l:function(v,w){var C=v.length;var o=v[C-1]&0xffffffff;for(var i=0;i<C;i++){v[i]=String.fromCharCode(v[i]&0xff,v[i]>>>8&0xff,v[i]>>>16&0xff,v[i]>>>24&0xff);}if(w){return v.join('').substring(0,o);}else{return v.join('');}},A:function(s,w){var j=s.length;var v=[];for(var i=0;i<j;i+=4){v[i>>2]=s.charCodeAt(i)|s.charCodeAt(i+1)<<8|s.charCodeAt(i+2)<<16|s.charCodeAt(i+3)<<24;}if(w){v[v.length]=j;}return v;},decrypt:function(t,g,f){if(t==""){return "";}if(f)t=this.d(t);var v=this.A(t,false);var k=this.A(g,false);var n=v.length-1;var z=v[n-1],y=v[0],c=0x9E3779B9;var m,e,q=Math.floor(6+52/(n+1)),B=q*c&0xffffffff;while(B!=0){e=B>>>2&3;for(var p=n;p>0;p--){z=v[p-1];m=(z>>>5^y<<2)+(y>>>3^z<<4)^(B^y)+(k[p&3^e]^z);y=v[p]=v[p]-m&0xffffffff;}z=v[n];m=(z>>>5^y<<2)+(y>>>3^z<<4)^(B^y)+(k[p&3^e]^z);y=v[0]=v[0]-m&0xffffffff;B=B-c&0xffffffff;}return this.l(v,true);},d:function(h){var r="";for(var i=(h.substr(0,2)=="0x")?2:0;i<h.length;i+=2)r+=String.fromCharCode(parseInt(h.substr(i,2),16));return r;}};if(typeof Util=='undefined')Util={};Util.Drag={obj:null,init:function(o,oRoot,minX,maxX,minY,maxY,bSwapHorzRef,bSwapVertRef,fXMapper,fYMapper){o.onmousedown=Util.Drag.start;o.hmode=bSwapHorzRef?false:true;o.vmode=bSwapVertRef?false:true;o.root=oRoot&&oRoot!=null?oRoot:o;if(o.hmode&&isNaN(parseInt(o.root.style.left)))o.root.style.left="0px";if(o.vmode&&isNaN(parseInt(o.root.style.top)))o.root.style.top="0px";if(!o.hmode&&isNaN(parseInt(o.root.style.right)))o.root.style.right="0px";if(!o.vmode&&isNaN(parseInt(o.root.style.bottom)))o.root.style.bottom="0px";o.minX=typeof minX!='undefined'?minX:null;o.minY=typeof minY!='undefined'?minY:null;o.maxX=typeof maxX!='undefined'?maxX:null;o.maxY=typeof maxY!='undefined'?maxY:null;o.xMapper=fXMapper?fXMapper:null;o.yMapper=fYMapper?fYMapper:null;o.root.onDragStart=new Function();o.root.onDragEnd=new Function();o.root.onDrag=new Function();},start:function(e){var o=Util.Drag.obj=this;e=Util.Drag.fixE(e);var y=parseInt(o.vmode?o.root.style.top:o.root.style.bottom);var x=parseInt(o.hmode?o.root.style.left:o.root.style.right);o.root.onDragStart(x,y);o.lastMouseX=e.clientX;o.lastMouseY=e.clientY;if(o.hmode){if(o.minX!=null)o.minMouseX=e.clientX-x+o.minX;if(o.maxX!=null)o.maxMouseX=o.minMouseX+o.maxX-o.minX;}else{if(o.minX!=null)o.maxMouseX=-o.minX+e.clientX+x;if(o.maxX!=null)o.minMouseX=-o.maxX+e.clientX+x;}if(o.vmode){if(o.minY!=null)o.minMouseY=e.clientY-y+o.minY;if(o.maxY!=null)o.maxMouseY=o.minMouseY+o.maxY-o.minY;}else{if(o.minY!=null)o.maxMouseY=-o.minY+e.clientY+y;if(o.maxY!=null)o.minMouseY=-o.maxY+e.clientY+y;}document.onmousemove=Util.Drag.drag;document.onmouseup=Util.Drag.end;return false;},drag:function(e){e=Util.Drag.fixE(e);var o=Util.Drag.obj;var ey=e.clientY;var ex=e.clientX;var y=parseInt(o.vmode?o.root.style.top:o.root.style.bottom);var x=parseInt(o.hmode?o.root.style.left:o.root.style.right);var nx,ny;if(o.minX!=null)ex=o.hmode?Math.max(ex,o.minMouseX):Math.min(ex,o.maxMouseX);if(o.maxX!=null)ex=o.hmode?Math.min(ex,o.maxMouseX):Math.max(ex,o.minMouseX);if(o.minY!=null)ey=o.vmode?Math.max(ey,o.minMouseY):Math.min(ey,o.maxMouseY);if(o.maxY!=null)ey=o.vmode?Math.min(ey,o.maxMouseY):Math.max(ey,o.minMouseY);nx=x+((ex-o.lastMouseX)*(o.hmode?1:-1));ny=y+((ey-o.lastMouseY)*(o.vmode?1:-1));if(o.xMapper)nx=o.xMapper(y);else if(o.yMapper)ny=o.yMapper(x);Util.Drag.obj.root.style[o.hmode?"left":"right"]=nx+"px";Util.Drag.obj.root.style[o.vmode?"top":"bottom"]=ny+"px";Util.Drag.obj.lastMouseX=ex;Util.Drag.obj.lastMouseY=ey;Util.Drag.obj.root.onDrag(nx,ny);return false;},end:function(){document.onmousemove=null;document.onmouseup=null;Util.Drag.obj.root.onDragEnd(parseInt(Util.Drag.obj.root.style[Util.Drag.obj.hmode?"left":"right"]),parseInt(Util.Drag.obj.root.style[Util.Drag.obj.vmode?"top":"bottom"]));Util.Drag.obj=null;},fixE:function(e){if(typeof e=='undefined')e=window.event;if(typeof e.layerX=='undefined')e.layerX=e.offsetX;if(typeof e.layerY=='undefined')e.layerY=e.offsetY;return e;}};Util.MsgBox=function(){this.Init.apply(this,arguments);};Util.MsgBox.eW='OK';Util.MsgBox.dB=document.body;Util.MsgBox.dz=120;Util.MsgBox.dA=360;Util.MsgBox.dx=0;Util.MsgBox.dy=0;Util.MsgBox.dC=0;Util.MsgBox.dD=0;Util.MsgBox.prototype={Init:function(K,ah){this.cS=K;this.gC=(typeof ah=='undefined')?'http://www.sina.com.cn':ah;this.cx=new Array();this.gS=Util.MsgBox.dA;this.dE=Util.MsgBox.dz;this.eR=Util.MsgBox.dC;this.eS=Util.MsgBox.dD;this.db='sina_webdiag';this.df=0;try{this.ea=Util.MsgBox.dB;}catch(e){}},AddButton:function(af,F){this.cx.push({t:af,c:F});},SetDefaultButton:function(n){if(n>=0&&n<this.cx.length){this.df=n;}return this.df;},SetSize:function(w,h){this.gS=w;this.dE=h;},SetClass:function(c){this.db=c;},SetOnClose:function(f){this.fd=f;},SetMainObj:function(o,w,h){this.ea=o;this.co=w;this.cn=h;},Show:function(){var s,t;if(!this.cx.length){this.cx.push({t:Util.MsgBox.eW,c:function(){}});}if(this.ea!=document.body){s={W:Util.MsgBox.dy,H:Util.MsgBox.dx};t=0;}else{s=Util.getBodyDim();t=Util.getScrollTop();}this.eB=$C('div');this.eB.style.cssText='width: '+s.W+'px; height: '+s.H+'px; z-index: 30000; position: absolute; left: '+this.eR+'px; top: '+(t+this.eS)+'px; background: black; margin: 0px;';try{this.eB.style.filter='Alpha(opacity=60)';this.eB.style.opacity='0.60';}catch(e){}Util.AddEvent(this.eB,'click',this.Cover.cs(this));Util.AddEvent(this.eB,'mouseup',this.Cover.cs(this));Util.AddEvent(this.eB,'keypress',this.Cover.cs(this));this.ea.appendChild(this.eB);this.eC=$C('div');this.eC.className=this.db;this.eC.style.cssText='width: '+this.gS+'px; height: '+this.dE+'px; z-index: 31000; position: absolute; left: '+(s.W-this.gS)/2+'px; top: '+(t+(s.H-this.dE)/2)+'px; background: white; border-top: 1px #cccccc solid; border-left: 1px #cccccc solid; '+'border-bottom: 2px #666666 solid; border-right: 2px #666666 solid;';this.ea.appendChild(this.eC);this.eP=$C('div');this.eP.className='sina_webdiag_title';this.eP.style.cssText='border-bottom: 1px #333333 solid; text-align: center; margin-bottom: 20px;';this.eP.appendChild(document.createTextNode(this.gC));this.eC.appendChild(this.eP);this.ez=$C('div');this.ez.className='sina_webdiag_cont';this.ez.style.textAlign='center';try{this.ez.appendChild(this.cS);}catch(e){this.ez.appendChild(document.createTextNode(this.cS));}this.eC.appendChild(this.ez);this.eu=$C('div');this.eu.className='sina_webdiag_buttons';this.eu.style.cssText='position: absolute; text-align: center; width: 100%; bottom: 0px;';this.eC.appendChild(this.eu);for(var i=0;i<this.cx.length;i++){var o;if(i){this.eu.appendChild(document.createTextNode('   '));}o=$C('input');o.setAttribute('type','button');o.setAttribute('value',this.cx[i].t);this.eu.appendChild(o);Util.AddEvent(o,'click',this.Pressed.cs(this,i));if(i==this.df){o.focus();}}},Pressed:function(ev,i){try{this.cx[i].c();}catch(e){}this.CloseDialog();},Cover:function(ev){try{ev.stopPropagation();}catch(e){}try{ev.cancelBubble=true;}catch(e){}},CloseDialog:function(){try{this.eC.parentNode.removeChild(this.eC);this.eB.parentNode.removeChild(this.eB);}catch(e){}if(this.fd){this.fd();}}};Util.MsgBox.SetOK=function(s){Util.MsgBox.eW=s;};Util.MsgBox.SetDefaultMO=function(o,w,h){Util.MsgBox.dB=o;Util.MsgBox.dy=w;Util.MsgBox.dx=h;};Util.MsgBox.SetDefaultOff=function(x,y){Util.MsgBox.dC=x;Util.MsgBox.dD=y;};Util.MsgBox.SetDefaultDiag=function(w,h){Util.MsgBox.dA=w;Util.MsgBox.dz=h;};if(typeof Util=='undefined')Util={};if(typeof $=='undefined')$=function(id){return document.getElementById(id)};if(typeof $C=='undefined')$C=function(t){return document.createElement(t)};if(typeof $S=='undefined')$S={};Util.Resize=function(){this.Init.apply(this,arguments);};Util.Resize.prototype={oResBtn:null,oResBox:null,Init:function(RBtn,RBox){if(typeof RBox=='string')this.oResBox=$(RBox);else this.oResBox=RBox;if(typeof RBtn=='string')this.oResBox=$(RBtn);else this.oResBtn=RBtn;},Setup:function(MinWidth,MinHeight,Debug){this.minW=MinWidth;this.minH=MinHeight;this.de=Debug;this.gb();},gb:function(){var fX=this;var minW=this.minW;var minH=this.minH;this.oResBtn.onmousedown=function(evt){if(fX.Disable){fX.Disable();return;}fX.oResBox.style.width=fX.oResBox.clientWidth+"px";fX.oResBox.style.height=fX.oResBox.clientHeight+"px";document.onmousemove=function(evt){var e=(window.event)?window.event:evt;if(fX.onResizeStart)fX.onResizeStart(e);var ey=e.clientY;var ex=e.clientX;var calcuW=0;var calcuH=0;var xoffset=0;var yoffset=0;if(fX.lastMouseX&&fX.lastMouseY){xoffset=ex-fX.lastMouseX;yoffset=ey-fX.lastMouseY;if(xoffset){calcuW=(parseInt(fX.oResBox.style.width)+xoffset);if(calcuW>=minW){if(fX.onWidthChange)fX.onWidthChange(xoffset,calcuW);fX.oResBox.style.width=calcuW+'px';}}if(yoffset){calcuH=(parseInt(fX.oResBox.style.height)+yoffset);if(calcuH>=minH){if(fX.onHeightChange)fX.onHeightChange(yoffset,calcuH);fX.oResBox.style.height=calcuH+'px';}}if(fX.de)document.title='mouse x: '+ex+' mouse y: '+ey+' x offset:'+(ex-fX.lastMouseX)+'y offset:'+(ey-fX.lastMouseY)+'box h:'+fX.oResBox.style.height+' box W:'+fX.oResBox.style.width;}fX.lastMouseX=ex;fX.lastMouseY=ey;};document.onmouseup=function(evt){var e=(window.event)?window.event:evt;document.onmousemove=null;document.onmouseup=null;if(fX.onResizeEnd)fX.onResizeEnd(e,fX.lastMouseX,fX.lastMouseY);fX.lastMouseX=null;fX.lastMouseY=null;};};}};if(typeof Util=='undefined')Util={};Util.SHA1={hexcase:0,b64pad:"",chrsz:8};Util.SHA1.hex_sha1=function(s){return Util.SHA1.binb2hex(Util.SHA1.core_sha1(Util.SHA1.str2binb(s),s.length*Util.SHA1.chrsz));};Util.SHA1.b64_sha1=function(s){return Util.SHA1.binb2b64(Util.SHA1.core_sha1(Util.SHA1.str2binb(s),s.length*Util.SHA1.chrsz));};Util.SHA1.str_sha1=function(s){return Util.SHA1.binb2str(Util.SHA1.core_sha1(Util.SHA1.str2binb(s),s.length*Util.SHA1.chrsz));};Util.SHA1.hex_hmac_sha1=function(key,data){return Util.SHA1.binb2hex(Util.SHA1.core_hmac_sha1(key,data));};Util.SHA1.b64_hmac_sha1=function(key,data){return Util.SHA1.binb2b64(Util.SHA1.core_hmac_sha1(key,data));};Util.SHA1.str_hmac_sha1=function(key,data){return Util.SHA1.binb2str(Util.SHA1.core_hmac_sha1(key,data));};Util.SHA1.sha1_vm_test=function(){return Util.SHA1.hex_sha1("abc")=="a9993e364706816aba3e25717850c26c9cd0d89d";};Util.SHA1.core_sha1=function(x,len){x[len>>5]|=0x80<<(24-len%32);x[((len+64>>9)<<4)+15]=len;var w=Array(80);var a=1732584193;var b=-271733879;var c=-1732584194;var d=271733878;var e=-1009589776;for(var i=0;i<x.length;i+=16){var olda=a;var oldb=b;var oldc=c;var oldd=d;var olde=e;for(var j=0;j<80;j++){if(j<16)w[j]=x[i+j];else w[j]=Util.SHA1.rol(w[j-3]^w[j-8]^w[j-14]^w[j-16],1);var t=Util.SHA1.safe_add(Util.SHA1.safe_add(Util.SHA1.rol(a,5),Util.SHA1.sha1_ft(j,b,c,d)),Util.SHA1.safe_add(Util.SHA1.safe_add(e,w[j]),Util.SHA1.sha1_kt(j)));e=d;d=c;c=Util.SHA1.rol(b,30);b=a;a=t;}a=Util.SHA1.safe_add(a,olda);b=Util.SHA1.safe_add(b,oldb);c=Util.SHA1.safe_add(c,oldc);d=Util.SHA1.safe_add(d,oldd);e=Util.SHA1.safe_add(e,olde);}return Array(a,b,c,d,e);};Util.SHA1.sha1_ft=function(t,b,c,d){if(t<20)return(b&c)|((~b)&d);if(t<40)return b^c^d;if(t<60)return(b&c)|(b&d)|(c&d);return b^c^d;};Util.SHA1.sha1_kt=function(t){return(t<20)?1518500249:(t<40)?1859775393:(t<60)?-1894007588:-899497514;};Util.SHA1.core_hmac_sha1=function(key,data){var bkey=Util.SHA1.str2binb(key);if(bkey.length>16)bkey=Util.SHA1.core_sha1(bkey,key.length*Util.SHA1.chrsz);var ipad=Array(16),opad=Array(16);for(var i=0;i<16;i++){ipad[i]=bkey[i]^0x36363636;opad[i]=bkey[i]^0x5C5C5C5C;}var hash=Util.SHA1.core_sha1(ipad.concat(Util.SHA1.str2binb(data)),512+data.length*Util.SHA1.chrsz);return Util.SHA1.core_sha1(opad.concat(hash),512+160);};Util.SHA1.safe_add=function(x,y){var lsw=(x&0xFFFF)+(y&0xFFFF);var msw=(x>>16)+(y>>16)+(lsw>>16);return(msw<<16)|(lsw&0xFFFF);};Util.SHA1.rol=function(num,cnt){return(num<<cnt)|(num>>>(32-cnt));};Util.SHA1.str2binb=function(str){var bin=Array();var mask=(1<<Util.SHA1.chrsz)-1;for(var i=0;i<str.length*Util.SHA1.chrsz;i+=Util.SHA1.chrsz)bin[i>>5]|=(str.charCodeAt(i/Util.SHA1.chrsz)&mask)<<(32-Util.SHA1.chrsz-i%32);return bin;};Util.SHA1.binb2str=function(bin){var str="";var mask=(1<<Util.SHA1.chrsz)-1;for(var i=0;i<bin.length*32;i+=Util.SHA1.chrsz)str+=String.fromCharCode((bin[i>>5]>>>(32-Util.SHA1.chrsz-i%32))&mask);return str;};Util.SHA1.binb2hex=function(binarray){var hex_tab=Util.SHA1.hexcase?"0123456789ABCDEF":"0123456789abcdef";var str="";for(var i=0;i<binarray.length*4;i++){str+=hex_tab.charAt((binarray[i>>2]>>((3-i%4)*8+4))&0xF)+hex_tab.charAt((binarray[i>>2]>>((3-i%4)*8))&0xF);}return str;};Util.SHA1.binb2b64=function(binarray){var tab="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var str="";for(var i=0;i<binarray.length*4;i+=3){var bA=(((binarray[i>>2]>>8*(3-i%4))&0xFF)<<16)|(((binarray[i+1>>2]>>8*(3-(i+1)%4))&0xFF)<<8)|((binarray[i+2>>2]>>8*(3-(i+2)%4))&0xFF);for(var j=0;j<4;j++){if(i*8+j*6>binarray.length*32)str+=Util.SHA1.b64pad;else str+=tab.charAt((bA>>6*(3-j))&0x3F);}}return str;};if(typeof Util=='undefined')Util={};Util.SHA1=function(){this.Init.apply(this,arguments);};Util.SHA1.prototype={hexcase:0,b64pad:"",chrsz:8,Init:function(){},hex:function(s){return this.binb2hex(this.core_sha1(this.str2binb(s),s.length*this.chrsz));},core_sha1:function(x,len){x[len>>5]|=0x80<<(24-len%32);x[((len+64>>9)<<4)+15]=len;var w=Array(80);var a=1732584193;var b=-271733879;var c=-1732584194;var d=271733878;var e=-1009589776;for(var i=0;i<x.length;i+=16){var olda=a;var oldb=b;var oldc=c;var oldd=d;var olde=e;for(var j=0;j<80;j++){if(j<16)w[j]=x[i+j];else w[j]=this.rol(w[j-3]^w[j-8]^w[j-14]^w[j-16],1);var t=this.safe_add(this.safe_add(this.rol(a,5),this.sha1_ft(j,b,c,d)),this.safe_add(this.safe_add(e,w[j]),this.sha1_kt(j)));e=d;d=c;c=this.rol(b,30);b=a;a=t;}a=this.safe_add(a,olda);b=this.safe_add(b,oldb);c=this.safe_add(c,oldc);d=this.safe_add(d,oldd);e=this.safe_add(e,olde);}return Array(a,b,c,d,e);},sha1_ft:function(t,b,c,d){if(t<20)return(b&c)|((~b)&d);if(t<40)return b^c^d;if(t<60)return(b&c)|(b&d)|(c&d);return b^c^d;},sha1_kt:function(t){return(t<20)?1518500249:(t<40)?1859775393:(t<60)?-1894007588:-899497514;},safe_add:function(x,y){var lsw=(x&0xFFFF)+(y&0xFFFF);var msw=(x>>16)+(y>>16)+(lsw>>16);return(msw<<16)|(lsw&0xFFFF);},rol:function(num,cnt){return(num<<cnt)|(num>>>(32-cnt));},str2binb:function(str){var bin=Array();var mask=(1<<this.chrsz)-1;for(var i=0;i<str.length*this.chrsz;i+=this.chrsz)bin[i>>5]|=(str.charCodeAt(i/this.chrsz)&mask)<<(32-this.chrsz-i%32);return bin;},binb2hex:function(binarray){var hex_tab=this.hexcase?"0123456789ABCDEF":"0123456789abcdef";var str="";for(var i=0;i<binarray.length*4;i++){str+=hex_tab.charAt((binarray[i>>2]>>((3-i%4)*8+4))&0xF)+hex_tab.charAt((binarray[i>>2]>>((3-i%4)*8))&0xF);}return str;}};S_WC_P=function(){this.Init.apply(this,arguments);};S_WC_P.Runner=null;S_WC_P.prototype={ed:200,ec:50,dq:12,dM:18,gz:5*1000,dW:120,dS:380,dJ:330,gn:'',fG:null,dO:0,cI:null,bordermask:0,CSSPREFIX:'woocall_',Init:function(c,t,p,d){if(this.eI){return false;}if(S_WC_P.DefaultSize){this.dS=S_WC_P.DefaultSize.w;this.dJ=S_WC_P.DefaultSize.h;}this.gr=c;this.gn=S_WC_P.Locale.aT;this.gx=S_WC.UI.RUNNER.Conf;if(!d){d=this.gx.StaticDiv;}if(d){this.dS=d.width;this.dJ=d.height;}this.fJ=new S_WC_API(c,{onUpdateStat:this.cF.cq(this),onConnected:this.cz.cq(this),onShieldListChanged:this.cE.cq(this),onUserListChanged:this.cG.cq(this),onData:null,onMessageInfo:this.cB.cq(this),onGotMsg:this.dw.cq(this),onDisplaySysinfo:this.cA.cq(this),onUpdateNick:this.cC.cq(this),onSetTitle:this.ga.cq(this),onUserEnter:this.gO.cq(this),onUserQuit:this.gR.cq(this),onUserNickChanged:this.gQ.cq(this),onRoomListChanged:this.cD.cq(this)},t,p);this.gw=t;Util.MsgBox.SetOK(S_WC_P.Locale.bo);this.cW();this.cr();this.SetSize();},cW:function(){var o;if(!this.eI){this.eI=$C('div');}this.eI.className=this.CSSPREFIX+'mainpanel';this.da();this.eI.appendChild(this.eQ);this.cY();this.eI.appendChild(this.eG);this.cX();this.eI.appendChild(this.eD);this.cZ();},da:function(){this.eQ=$C('div');this.eQ.className=this.CSSPREFIX+'divtop';this.eH=$C('div');this.eU=$C('form');this.eU.style.margin='0px';this.eU.setAttribute('action',S_WC_P.Locale.bg);this.fI=$C('input');this.fI.setAttribute('type','text');this.fI.className=this.CSSPREFIX+'clstxt';this.fI.readOnly='readOnly';this.fI.style.fontSize=this.dq+'px';this.fI.style.height=this.dq+'px';this.fI.style.width=(this.dq*6)+'px';this.fI.style.marginLeft=this.dq+'px';this.fI.style.border='none';this.fI.style.color='black';this.fI.style.background='transparent';this.eU.appendChild(this.fI);this.fF=$C('span');this.fF.style.height=(this.dq)+'px';this.fF.style.paddingLeft='10px';this.et=document.createTextNode(S_WC_P.Locale.aW);this.fF.appendChild(this.et);this.eU.appendChild(this.fF);this.eX=$C('a');this.eX.setAttribute('href',S_WC_P.Locale.bg);this.eX.style.display='block';this.eX.style.cssFloat=this.eX.style.styleFloat='right';this.eX.style.margin='2px';this.eX.style.zIndex='110';this.er=document.createTextNode(S_WC_P.Locale.aS);this.eX.appendChild(this.er);this.eH.style.clear='none';this.eH.display='block';this.eH.style.cssFloat=this.eH.style.styleFloat='left';this.eH.appendChild(this.eU);this.eQ.appendChild(this.eH);this.eQ.appendChild(this.eX);},cY:function(){var o;this.eG=$C('div');this.eG.className=this.CSSPREFIX+'divmain';this.eJ=$C('div');this.eJ.className=this.CSSPREFIX+'sysinfobar';this.eG.appendChild(this.eJ);this.eA=$C('div');this.eA.className=this.CSSPREFIX+'content';this.eA.style.styleFloat=this.eA.style.cssFloat='left';this.eA.style.wordWrap='break-word';this.eG.appendChild(this.eA);this.eF=$C('div');this.eF.className=this.CSSPREFIX+'listpanel';this.eF.style.display='none';this.eF.style.width=(this.dW)+'px';this.eF.style.clear='none';this.eF.style.overflow='auto';this.eG.appendChild(this.eF);o=$C('div');o.style.clear='both';o.style.width='100%';o.style.height='200px';o.style.marginBottom='-200px';this.eI.appendChild(o);this.eE=$C('div');this.eE.className=this.CSSPREFIX+'divlinks';this.eE.style.textAlign='right';this.eZ=$C('a');this.eZ.appendChild(document.createTextNode(S_WC_P.Locale.bM));this.eZ.setAttribute('href',S_WC_P.Locale.bg);this.eE.appendChild(this.eZ);this.eE.appendChild(document.createTextNode(' | '));this.eY=$C('a');this.eY.appendChild(document.createTextNode(S_WC_P.Locale.bd));this.eY.setAttribute('href',S_WC_P.Locale.be.replace('%1',''));this.eY.setAttribute('target','_blank');this.eE.appendChild(this.eY);this.eG.appendChild(this.eE);this.ew=$C('div');this.ew.className=this.CSSPREFIX+'chatlog';this.ew.style.display='none';this.eG.appendChild(this.ew);},cX:function(){this.eD=$C('div');this.eD.className=this.CSSPREFIX+'divfoot';this.eD.style.marginTop=(this.dq-8)+'px';this.eT=$C('form');this.eT.style.margin='0px';this.eT.setAttribute('action',S_WC_P.Locale.bg);this.fH=$C('input');this.fH.setAttribute('type','text');this.fH.setAttribute('maxlength',(this.ed).toString());this.fH.className=this.CSSPREFIX+'clstxt';this.fH.style.fontSize=(this.dM)+'px';this.fH.style.height=(this.dM+2)+'px';this.fH.style.marginLeft=(this.dq/2)+'px';this.fH.style.color='#cccccc';this.fH.value=S_WC_P.Locale.bJ;this.cw=true;this.eT.appendChild(this.fH);this.fE=$C('span');this.fE.style.fontSize=this.dq+'px';this.es=document.createTextNode('('+this.ed+')');this.fE.appendChild(this.es);this.eT.appendChild(this.fE);this.eq=$C('input');this.eq.setAttribute('type','submit');this.eq.setAttribute('value',S_WC_P.Locale.bV);this.eq.className=this.CSSPREFIX+'clsbtn';this.eT.appendChild(this.eq);this.eD.appendChild(this.eT);},cZ:function(){this.eK=$C('div');this.eK.className=this.CSSPREFIX+'tab_clc';this.eK.style.height=(this.dq+5)+'px';this.eK.style.position='relative';this.eN=$C('div');this.eN.className=this.CSSPREFIX+'tab_left';this.eN.style.cssFloat=this.eN.style.styleFloat='left';this.eN.style.width=this.dq+'px';this.eN.style.height=(this.dq+5)+'px';this.eN.style.textAlign='left';this.fa=$C('a');this.fa.appendChild(document.createTextNode('<'));this.fa.setAttribute('href',S_WC_P.Locale.bg);this.eN.appendChild(this.fa);this.eK.appendChild(this.eN);this.eL=$C('div');this.eL.className=this.CSSPREFIX+'tab_ctr';this.eL.style.cssFloat=this.eL.style.styleFloat='left';this.eL.style.overflow='hidden';this.eL.style.position='absolute';this.eL.style.left=(this.dq)+'px';this.eL.style.top='0px';this.eL.style.height=(this.dq+5)+'px';this.eM=$C('div');this.eM.style.width='11111px';this.eM.style.height=(this.dq+5)+'px';this.eL.appendChild(this.eM);this.eK.appendChild(this.eL);this.eO=$C('div');this.eO.className=this.CSSPREFIX+'tab_right';this.eO.style.width=this.dq+'px';this.eO.style.height=(this.dq+5)+'px';this.eO.style.position='absolute';this.eO.style.right='0px';this.eO.style.top='0px';this.eO.style.textAlign='right';this.eO.style.cssFloat=this.eO.style.styleFloat='left';this.fb=$C('a');this.fb.appendChild(document.createTextNode('>'));this.fb.setAttribute('href',S_WC_P.Locale.bg);this.eO.appendChild(this.fb);this.eK.appendChild(this.eO);this.eM.appendChild(this.cV(S_WC_P.Locale.aT));this.gy(S_WC_P.Locale.aT);},cr:function(){Util.AddEvent(this.eX,'click',this.ge.cs(this));Util.AddEvent(this.eZ,'click',this.gg.cs(this,1));Util.AddEvent(this.eT,'submit',this.fY.cs(this));Util.AddEvent(this.fH,'change',this.gK.cs(this));Util.AddEvent(this.fH,'keypress',this.gK.cs(this));Util.AddEvent(this.fH,'keydown',this.cM.cs(this));Util.AddEvent(this.fH,'focus',this.dG.cs(this));Util.AddEvent(this.fH,'blur',this.gf.cs(this));Util.AddEvent(this.eU,'submit',this.cJ.cs(this));Util.AddEvent(this.fa,'click',this.fV.cs(this,-1));Util.AddEvent(this.fb,'click',this.fV.cs(this,1));},SetSize:function(wid,hei){if(wid&&hei){wid=parseInt(wid);hei=parseInt(hei);if(wid<=300){wid=300;}if(hei<=200){hei=200;}this.dS=wid;this.dJ=hei;}this.eI.style.width=this.dS+'px';this.eI.style.height=this.dJ+'px';this.eI.style.fontSize=this.dq+'px';this.eI.style.overflow='hidden';this.eI.style.zIndex=3;this.eI.style.paddingTop=(this.gx.hasHeader?'2px':'0px');this.eI.style.position='relative';this.eG.style.height=(this.dJ-this.dq*3-this.dM-3)+'px';this.eG.style.background='white';this.eJ.style.height=(this.dq+4)+'px';this.eJ.style.zIndex='2';this.eA.style.height=(parseInt(this.eG.style.height)-this.dq*3)+'px';this.eA.style.overflow='auto';this.eA.style.width=(this.dO?(this.dS-this.dW):this.dS)+'px';this.eF.style.height=(parseInt(this.eG.style.height)-this.dq*3)+'px';this.eF.style.marginTop='-'+this.eF.style.height;this.fH.style.width=(this.dS-this.dq*10)+'px';this.eK.style.width=this.dS+'px';this.eL.style.width=(this.dS-(this.dq*2))+'px';Util.MsgBox.SetDefaultMO(this.eI,this.dS,this.dJ);this.dT();this.eA.scrollTop=99999999;},GetRootDiv:function(){return this.eI;},cV:function(S){var o,o1;o=$C('span');o.className=this.CSSPREFIX+'tabn';o1=$C('a');o1.className=this.CSSPREFIX+'tab_name';o1.appendChild(document.createTextNode(S));o1.setAttribute('href',S_WC_P.Locale.bg);Util.AddEvent(o1,'click',this.gy.cs(this));o.appendChild(o1);o1=$C('a');o1.className=this.CSSPREFIX+'tab_close';o1.appendChild(document.createTextNode('(x)'));o1.setAttribute('href',S_WC_P.Locale.bg);Util.AddEvent(o1,'click',this.cQ.cs(this));o.appendChild(o1);return o;},gB:function(o,T){var x,i,n;if(!o||!o.parentNode){return '';}if(o.tagName.toLowerCase()!='a'){x=o;}else{x=o.parentNode;}for(i=0;i<x.childNodes.length;i++){if(x.childNodes[i].className==this.CSSPREFIX+'tab_name'){if(x.childNodes[i].firstChild&&x.childNodes[i].firstChild.data){n=x.childNodes[i].firstChild.data;if(T){x.childNodes[i].firstChild.data=T;}return n;}}}return '';},gy:function(ev){var t,o,i,x;if(typeof ev=='string'){t=ev;}else{t=this.gB(ev.target?ev.target:ev.srcElement);}for(i=0;i<this.eM.childNodes.length;i++){x=this.eM.childNodes[i];if(x.className.indexOf(this.CSSPREFIX+'tab')){continue;}if(this.gB(x)==t){x.className=this.CSSPREFIX+'tabf';}else{x.className=this.CSSPREFIX+'tabn';}}if(this.eX.firstChild.data!=S_WC_P.Locale.aS){this.ge();}if(this.dO){this.gg('',this.dO);}if(t==S_WC_P.Locale.aT||this.fJ.GetUserList().SearchItem(t)>=0){this.di(true);}else{this.di(false);}this.gn=t;this.gi();this.fW(this.gA(t));},gA:function(S){var i,o;for(i=0;i<this.eM.childNodes.length;i++){o=this.eM.childNodes[i];if(!o.className.indexOf(this.CSSPREFIX+'tab')){if(this.gB(o)==S){return o;}}}return null;},fV:function(ev,d){var o,i,l,aq,as,ar;aq=-parseInt(this.eM.offsetLeft);as=this.eL.offsetWidth;ar=aq+as;l=-parseInt(this.eL.style.left);if(d<0){for(i=0;i<this.eM.childNodes.length;i++){o=this.eM.childNodes[i];if(o.className.indexOf(this.CSSPREFIX+'tab')){continue;}if(o.offsetLeft>=0){break;}l=o.offsetLeft+aq;}}else if(d>0){for(i=this.eM.childNodes.length-1;i>=0;i--){var aD;o=this.eM.childNodes[i];if(o.className.indexOf(this.CSSPREFIX+'tab')){continue;}aD=o.offsetLeft+o.offsetWidth;if(aD<=ar){break;}l=aD-as+aq;}}else{return;}this.eM.style.marginLeft='-'+l+'px';},fW:function(o){var aq,ar,aC,aD,as;try{aq=-parseInt(this.eM.offsetLeft);as=this.eL.offsetWidth;ar=aq+as;aC=o.offsetLeft;aD=aC+o.offsetWidth;if(aC<0){this.eM.style.marginLeft='-'+(aC+aq)+'px';}else if(aD>as){this.eM.style.marginLeft='-'+(aD-as+aq)+'px';}}catch(e){}},cQ:function(ev){var t,m;if(typeof ev=='string'){t=ev;}else{t=this.gB(ev.target?ev.target:ev.srcElement);}if(t==S_WC_P.Locale.aT){return;}m=new Util.MsgBox(S_WC_P.Locale.bq.replace('%1',t));m.AddButton(S_WC_P.Locale.bo,this.cy.cq(this,t));m.AddButton(S_WC_P.Locale.aR,function(){});m.Show();},cy:function(t){var o;o=this.gA(t);if(!o){return;}o.parentNode.removeChild(o);this.gy(S_WC_P.Locale.aT);},fM:function(ak){var o=this.gA(ak);if(!o){o=this.cV(ak);this.eM.appendChild(o);}this.gy(ak);},dN:function(R,ag){var t;t=ag;if(typeof t=='undefined'){t=this.gn;}return this.ds(R)==t;},ds:function(R){var n,t;n=this.fJ.GetNick();t='';if(R.receiver&&R.receiver!=n){t=R.receiver;}else if(R.sender&&R.sender!=n){t=R.sender;}if(!t||t.indexOf('#')>=0||t==S_WC_P.Locale.bX){t=S_WC_P.Locale.aT;}return t;},gi:function(){var a,i,c,o;a=this.fJ.GetMsgArray();c=0;while(this.eA.firstChild){this.eA.removeChild(this.eA.firstChild);}for(i=a.length-1;i>=0;i--){if(!this.dN(a[i])||(a[i].mask&1)){continue;}o=this.eb(a[i]);if(this.eA.firstChild){this.eA.insertBefore(o,this.eA.firstChild);}else{this.eA.appendChild(o);}c++;if(c>=this.ec){break;}}this.eA.scrollTop=99999999;return c;},eb:function(R){var aA,aF,aE,az;aA=$C('div');aF=$C('span');aE=$C('span');aF.className=this.CSSPREFIX+'msgsender';aE.className=this.CSSPREFIX+'msgcont';aA.className=this.CSSPREFIX+'msg'+R.type;if(R.sender){if(R.sender==S_WC_P.Locale.bX||(R.mask&4)){aF.appendChild(document.createTextNode(R.sender+': '));}else{az=$C('a');az.setAttribute('href',S_WC_P.Locale.bg);Util.AddEvent(az,'click',this.gN.cs(this,R.sender));az.appendChild(document.createTextNode(R.sender));aF.appendChild(az);aF.appendChild(document.createTextNode(': '));}aA.appendChild(aF);}aE.appendChild(document.createTextNode(R.content));aA.appendChild(aE);return aA;},di:function(N){if(N){this.fH.removeAttribute('disabled');this.eq.removeAttribute('disabled');}else{this.fH.setAttribute('disabled','disabled');this.eq.setAttribute('disabled','disabled');}},cz:function(V){this.fJ.GotMsg(S_WC_P.Locale.bX,S_WC_P.Locale.ce.replace('%1',this.fJ.GetNick()),1);this.fJ.Join(this.gr);},cB:function(Q){var m=new Util.MsgBox(Q);m.Show();},dw:function(R){var aM=this.ds(R);if(aM==this.gn&&!(R.mask&1)){var x=this.eb(R);while(this.eA.childNodes.length>=this.ec){this.eA.removeChild(this.eA.firstChild);}this.eA.appendChild(x);this.eA.scrollTop=99999999;}else if(aM!=this.gn){var o;if(!(o=this.gA(aM))){o=this.cV(aM);o.className=this.CSSPREFIX+'tabm';this.eM.appendChild(o);}else{o.className=this.CSSPREFIX+'tabm';}this.fW(o);}},cF:function(ab,aj){S_WC.UI.setUser(aj);this.eY.setAttribute('href',S_WC_P.Locale.be.replace('%1',encodeURIComponent(this.fJ.GetChannel())));return this.et.data=S_WC_P.Locale.bB.replace('%1',ab).replace('%2',aj);},dG:function(){if(this.cw){this.cw=false;this.fH.value='';this.fH.style.color='black';}},gf:function(){if(!this.cw&&!this.fH.value.length){this.cw=true;this.fH.value=S_WC_P.Locale.bJ;this.fH.style.color='#cccccc';}},cM:function(ev){},gK:function(){var v=this.fH.value;if(v==S_WC_P.Locale.bJ){v='';}this.es.data='('+(this.ed-v.length)+')';},ga:function(s){try{S_WC.UI.setMsg(s);}catch(e){}return;},gO:function(ak){},gR:function(ak,O){var o=this.gA(ak);if(o){if(this.gn==ak){this.di(false);}this.fJ.GotMsg(S_WC_P.Locale.bX,((O&1)?S_WC_P.Locale.bu:S_WC_P.Locale.bt).replace('%1',ak),1,0,ak);}},cJ:function(){var nn=this.fI.value;var r;if(r=this.fJ.ChangeNickCmd(nn)){m=new Util.MsgBox(r);m.Show();return-1;}return;},fY:function(){var t=this.fH.value;var r,s;if(this.cw){return;}s=this.gn;if(s==S_WC_P.Locale.aT){s=this.fJ.GetChannel();}if(t.length==0){return;}if(t.length<=0||t.length>this.ed){r=S_WC_P.Locale.bm;}else{r=this.fJ.SendMsg(s,t,this.fJ.GetNick());}if(r){m=new Util.MsgBox(r);m.Show();return-1;}this.fH.value='';this.gK();return false;},cN:function(){while(this.eJ.firstChild){this.eJ.removeChild(this.eJ.firstChild);}this.eJ.style.background='transparent';},cA:function(K){if(this.eA.style.display.toLowerCase()=='none'){}if(this.fG){clearTimeout(this.fG);this.fG=null;}this.cN();this.eJ.appendChild(document.createTextNode(K));this.eJ.style.background='white';this.fG=setTimeout(this.cN.cq(this),this.gz);},ge:function(){var op=false;var a=this.fJ.GetMsgArray();try{op=(this.eX.firstChild.data==S_WC_P.Locale.aS);}catch(e){}if(op){while(this.ew.firstChild){this.ew.removeChild(this.ew.firstChild);}for(var i=0;i<a.length;i++){var aA,aF,aE,az,ay;ay=a[i];if(!this.dN(ay)){continue;}aA=$C('div');aF=$C('span');aE=$C('span');aF.className=this.CSSPREFIX+'msgsender';aE.className=this.CSSPREFIX+'msgcont';aA.className=this.CSSPREFIX+'msg'+ay.type;if(ay.sender){aF.appendChild(document.createTextNode(ay.sender+': '));aA.appendChild(aF);}aE.appendChild(document.createTextNode(ay.content));aA.appendChild(aE);this.ew.appendChild(aA);}while(this.eX.firstChild){this.eX.removeChild(this.eX.firstChild);}this.dT(true);this.eX.appendChild(document.createTextNode(S_WC_P.Locale.bz));}else{this.eJ.style.display=this.eA.style.display=this.eE.style.display='';this.ew.style.display='none';if(this.dO){this.eF.style.display='';}while(this.eX.firstChild){this.eX.removeChild(this.eX.firstChild);}this.eX.appendChild(document.createTextNode(S_WC_P.Locale.aS));}},dT:function(a){try{if(a||(this.eX.firstChild.data!=S_WC_P.Locale.aS)){this.eJ.style.display=this.eA.style.display=this.eE.style.display=this.eF.style.display='none';this.ew.style.display='';this.ew.style.height='100%';}}catch(e){}},gg:function(ev,x){if(this.dO==x){this.eA.style.width=this.dS+'px';this.eF.style.display='none';this.dO=0;}else{this.dO=x;switch(x){case 1:this.cE();break;case 2:this.cG();break;case 3:this.gH();break;}this.eA.style.width=(this.dS-this.dW)+'px';this.eF.style.display='';this.eA.scrollTop=99999999;}return;},cG:function(){var o,oa;var a=this.fJ.GetUserList();if(this.dO==2){while(this.eF.firstChild){this.eF.removeChild(this.eF.firstChild);}o=$C('div');o.className=this.CSSPREFIX+'usertitle';o.appendChild(document.createTextNode(S_WC_P.Locale.cc));this.eF.appendChild(o);for(var i=0;i<a.length;i++){o=$C('div');oa=$C('a');oa.appendChild(document.createTextNode(a[i]));oa.setAttribute('href',S_WC_P.Locale.bg);Util.AddEvent(oa,'click',this.gN.cs(this,a[i]));o.appendChild(oa);o.className=this.CSSPREFIX+'userlist';this.eF.appendChild(o);}}this.cF(this.fJ.GetCurrRoom(),a.length);},cE:function(){var o,oa;var a=this.fJ.GetShieldList();if(this.dO==1){while(this.eF.firstChild){this.eF.removeChild(this.eF.firstChild);}o=$C('div');o.className=this.CSSPREFIX+'shieldtitle';o.appendChild(document.createTextNode(S_WC_P.Locale.bN));this.eF.appendChild(o);for(var i=0;i<a.length;i++){o=$C('div');oa=$C('a');oa.appendChild(document.createTextNode(a[i]));oa.setAttribute('href',S_WC_P.Locale.bg);Util.AddEvent(oa,'click',this.gN.cs(this,a[i]));o.appendChild(oa);o.className=this.CSSPREFIX+'shieldlist';this.eF.appendChild(o);}}while(this.eZ.firstChild){this.eZ.removeChild(this.eZ.firstChild);}this.eZ.appendChild(document.createTextNode(S_WC_P.Locale.bM+(a.length?(' ('+a.length+')'):'')));},cD:function(){var o,oa,ar;var a=this.fJ.GetRoomList();ar=this.fJ.GetCurrRoom();if(this.dO==3){while(this.eF.firstChild){this.eF.removeChild(this.eF.firstChild);}o=$C('div');o.className=this.CSSPREFIX+'roomlisttitle';o.appendChild(document.createTextNode(S_WC_P.Locale.bE));this.eF.appendChild(o);for(var i=0;i<a.length;i++){o=$C('div');oa=$C('a');oa.appendChild(document.createTextNode(S_WC_P.Locale.bD.replace('%1',a[i].id)+(a[i].id==ar?S_WC_P.Locale.aX:'')));oa.setAttribute('href',S_WC_P.Locale.bg);Util.AddEvent(oa,'click',this.fQ.cs(this,a[i].id));o.appendChild(oa);o.className=this.CSSPREFIX+'roomlist';this.eF.appendChild(o);}}},gH:function(){this.fJ.ListRooms();this.cD();},fQ:function(ev,ac){if(ac!=this.fJ.GetCurrRoom()){var m=new Util.MsgBox(S_WC_P.Locale.bs.replace('%1',ac));m.AddButton(S_WC_P.Locale.bo,this.cK.cq(this,ac));m.AddButton(S_WC_P.Locale.aR,function(){});m.Show();}},cK:function(ac){this.fJ.ChangeRoom(ac);},gN:function(e,am){var i;if(!am||am==S_WC_P.Locale.bX||am==this.fJ.GetNick()){return;}i=this.fJ.GetUserList().SearchItem(am);if(i<0){return;}i=this.fJ.GetShieldList().SearchItem(am);var s=(i>=0)?S_WC_P.Locale.bY:S_WC_P.Locale.bK;this.ee=new Util.MsgBox(S_WC_P.Locale.bv.replace('%1',am));this.ee.AddButton(s,this.fJ.DoShieldUsr.cq(this.fJ,am));this.ee.AddButton(S_WC_P.Locale.aR,function(){});this.ee.Show();return;},cC:function(U){this.fI.value=U;},gQ:function(Z,U){var a,i,o;a=this.fJ.GetMsgArray();for(i=0;i<a.length;i++){if(a[i].sender==Z){a[i].sender=U;}if(a[i].receiver==Z){a[i].receiver=U;}}o=this.gA(Z);if(this.gn==Z){this.gn=U;}if(o){this.gB(o,U);this.fJ.GotMsg(S_WC_P.Locale.bX,S_WC_P.Locale.bx.replace('%1',Z).replace('%2',U),1,0,U);}this.gi();},gc:function(){var o,o1,o2,o3;o=$C('div');o.style.cssText='text-align: center; font-size: 12px;';o.innerHTML='<font size="6" face="黑体" color="#375A8E"><b>Woocall</b></font><br />版本 jsui.0.2beta<br /><font color="#339900">志同道合者的沟通工具</font><br />Copyright (R) 1996-2008<br>SINA Corporation All Rights Reserved<br><a href="http://corp.sina.com.cn/chn/sina_priv.html" target="_blank"><font color="#375A8E">隐私保护</font></a> <a href="http://www.sina.com.cn/intro/copyright.shtml" target="_blank"><font color="#375A8E">新浪公司版权所有</font></a> <a href="http://www.miibeian.gov.cn" target="_blank"><font color="#375A8E">京ICP证000007</font></a>';var m=new Util.MsgBox(o,'关于Woocall');m.SetSize(360,220);m.Show();return;}};S_WC_P.getInstance=function(){if(S_WC_P.Runner){return S_WC_P.Runner;}else{return S_WC_P.Runner=new S_WC_P(arguments[0],arguments[1],arguments[2],arguments[3]);}};S_WC_API=function(){this.Init.apply(this,arguments);};S_WC_API.Runner=null;S_WC_API.prototype={eV:null,fR:5000,ci:new Array(),cm:new Array(),gs:'',gu:'',ck:new Array(),gv:'',gp:'',dP:0,cl:new Array(),gq:'0',fG:null,ct:false,cI:null,dI:256,Init:function(c,f,t,p){var ap,o;this.gp=c;this.gv=c;this.gu=this.gs=S_WC_P.Locale.bf;ap=window.SINA_WOOCALL_CONFIG?SINA_WOOCALL_CONFIG:IO.WebTunnel.MyConf;ap.onConnected=this.ff.cq(this);ap.onUpdate=this.fx.cq(this);ap.onData=this.fh.cq(this);ap.onError=this.fq.cq(this);ap.onClose=this.fc.cq(this);ap.passwd=p;ap.port=8080;this.eV=IO.WebTunnel.getInstance(ap);this.dK(f);this.gw=t;if(!this.gw){this.gw=window.location.href;}},dK:function(f){this.dr=new Array();this.dr['KICK']=this.fj.cq(this);this.dr['NOTICE']=this.fl.cq(this);this.dr['PART']=this.fm.cq(this);this.dr['QUIT']=this.fo.cq(this);this.dr['JOIN']=this.fi.cq(this);this.dr['PRIVMSG']=this.fn.cq(this);this.dr['NICK']=this.fk.cq(this);this.fz=f.onUpdateStat;this.fe=f.onConnected;this.fw=f.onShieldListChanged;this.fg=f.onData;this.ft=f.onMessageInfo;this.fs=f.onGotMsg;this.fp=f.onDisplaySysinfo;this.fy=f.onUpdateNick;this.fv=f.onSetTitle;this.fB=f.onUserListChanged;this.fA=f.onUserEnter;this.fD=f.onUserQuit;this.fC=f.onUserNickChanged;this.fu=f.onRoomListChanged;},GetShieldList:function(){return this.cm;},GetNick:function(){return this.gs;},GetChannel:function(){return this.gp;},GetCurrRoom:function(){return this.gq;},GetUserList:function(){return this.ck;},GetRoomList:function(){return this.cl;},GetRoomCode:function(P,ae){if(typeof ae=='undefined'){ae=this.gv;}if(typeof P=='undefined'){P=this.gq;}return '#CMXD_'+P+'_'+ae;},GetMsgArray:function(){return this.ci;},Send:function(J){return this.eV.send(J);},Join:function(I){if(I.charAt(0)!='#'){I='#'+I;}this.Send('JOIN '+I+' \n');this.gp=I;},SendMsg:function(ai,af,ad){var t=af;var i=t.indexOf('\r');var s=ad;if(typeof s=='undefined'){s=this.gs;}if(i>=0){t=t.substr(0,i);}if(t.length<=0){return S_WC_P.Locale.bm;}if(this.gk!=af){if(this.Send('PRIVMSG '+ai+' :'+this.CharTableConv(t)+'\n')){return S_WC_P.Locale.bI;}}this.gk=af;this.GotMsg(ad,t,0,4,ai==this.gp?S_WC_P.Locale.aT:ai);return 0;},CharTableConv:function(R){var i,c;if(!S_WC_P.Locale.bG){return R;}for(i=0;i<R.length;i++){if((c=S_WC_P.Locale.bG.indexOf(R.substr(i,1)))>=0){R=R.substr(0,i)+S_WC_P.Locale.aY[c]+R.substr(i+1);}}return R;},ChangeNickCmd:function(U){var i;var bc='`~!@#$%^&*()-+=\\|[]{};:\'\",./<>?';if(U.length<2||U.length>16){return S_WC_P.Locale.bn;}for(i=0;i<U.length;i++){var x=U.charCodeAt(i);if((x>=0&&x<=32)||bc.indexOf(U.charAt(i))>=0){return S_WC_P.Locale.bn;}}if(this.Send('NICK '+U+'\n')){return S_WC_P.Locale.bI;}this.gu=this.gs;this.gs=U;},DoShieldUsr:function(am){var i;i=this.cm.SearchItem(am);if(i>=0){this.cm.splice(i,1);this.GotMsg(S_WC_P.Locale.bX,S_WC_P.Locale.bZ.replace('%1',am),1);}else{this.cm.push(am);this.GotMsg(S_WC_P.Locale.bX,S_WC_P.Locale.bL.replace('%1',am),1);}this.gI();},ChangeRoom:function(id){this.Send('sha1list '+this.gv+' '+id+'\n');},Part:function(){this.Send('PART '+this.gp+'\n');},ListRooms:function(force){var t;t=new Date();if(force||!this.__tmrLastRoomList||t-this.__tmrLastRoomList.getTime()>this.fR){this.__tmrLastRoomList=t;this.Send('sha1list '+this.gv+'\n');}},GotMsg:function(R){if(typeof R==undefined){return null;}if(arguments.length>=3){R={sender:arguments[0],content:arguments[1],type:arguments[2],mask:arguments[3],receiver:arguments[4]};}try{R.content=R.content.replace(/[\n\r]/g,'');}catch(e){}if(this.cm.SearchItem(R.sender)>=0){return;}if(this.fs){if(this.fs(R)){return;}}if(!(R.mask&2)){this.ci.push(R);if(this.dI&&this.ci.length>this.dI){this.ci.splice(0,1);}}return this.ci.length;},ff:function(V){this.gs=V;this.gG();if(this.fe){if(this.fe(V)){return;}}return;},fx:function(){return;},fq:function(R){this.OnMessageInfo(R);return;},fc:function(){return;},fh:function(L){if(this.fg&&this.fg(L)){return;}var r=this.ek(L);if(!r){;}else if(typeof r=='string'){this.OnMessageInfo(r);}else{this.GotMsg(r);}},ek:function(L){var m,s;s='';if(L.substr(0,4)=='PING'){this.send('PONG'+L.substr(4)+'\n');}if(L.substr(0,5)=='ERROR'){if(L.indexOf('Closing Link')>=0&&L.indexOf('kill by')>=0){return{sender:S_WC_P.Locale.bX,content:S_WC_P.Locale.bh,mask:1};}else if(L.indexOf('Closing Link')>=0&&L.indexOf('Excess Flood')>=0){return{sender:S_WC_P.Locale.bX,content:S_WC_P.Locale.bb,mask:1};}else{return{sender:S_WC_P.Locale.bX,content:L.substr(6),mask:1};}}var ao,at,aO;try{ao=L.split(':');at=ao[1].split(' ');aO=at[0].split('!');}catch(e){return;}if(at[0]!=undefined&&!this.dQ){this.dQ=at[0];}if(ao[0]=='WooCall'){if(ao[1]=='login'){return{sender:S_WC_P.Locale.bX,content:ao[2],mask:1};}else if(ao[1]=='unshield'){return{sender:S_WC_P.Locale.bX,content:S_WC_P.Locale.bZ.replace('%1',ao[2]),mask:1};}}var a,i;a=at[1];if(this.dr[a]){this.dr[a](ao,at,aO);}if(at[1]=='255'){this.Join(this.gp);}if(at[1]=='353'&&at[2]==this.gs){var aL=ao[2].split(' ');aL.pop();for(i=0;i<aL.length;i++){if(aL[i].charAt(0)=='@'){aL[i]=aL[i].substr(1);}}this.ck=this.ck.concat(aL);}if(at[1]=='366'){if(!this.cp&&this.ck.length<=1){this.Send("TOPIC "+this.gp+' '+this.gw+"\n");this.Send("MODE "+this.gp+" -o "+this.gs+"\n");this.cp=true;}this.ListRooms();this.dP=this.ck.length;this.gL();this.gJ();}var aw,av,aP;aw=parseInt(at[1]);if(!isNaN(aw)&&aw>=400&&aw<600){av=S_WC_P.Locale.ba[aw];switch(aw){case 401:av=av.replace('%1',at[3]);break;case 432:this.gs=this.gu;this.gG();break;case 433:av=av.replace('%1',at[3]);this.gs=this.gu;this.gG();break;}if(av){return av;}}},fj:function(D,M,al){this.GotMsg(S_WC_P.Locale.bX,S_WC_P.Locale.bU.replace('%1',M[3]),1);if(M[3]==this.gs){this.OnMessageInfo(S_WC_P.Locale.bh);}else{this.Send('NAMES '+M[2]+'\n');}},fl:function(D,M,al){var aH=D[2].split(' ');if(aH[0]=='353'){this.cl=new Array();}else if(aH[0]=='351'){this.cl.push({id:parseInt(aH[1]),usr:parseInt(aH[2])});}if(aH[0]=='354'){this.gH();}},fm:function(D,M,al){return this.gP(D,M,al,1);},fo:function(D,M,al){return this.gP(D,M,al,0);},fi:function(D,M,al){if(al[0]==this.gs){this.ck=new Array();var aI=D[2].split('_',2);aI=parseInt(aI[1]);this.gq=aI.toString();this.GotMsg(S_WC_P.Locale.bX,S_WC_P.Locale.cf.replace('%1',aI),3);if(S_WC_P.Locale.cg){this.GotMsg('',S_WC_P.Locale.cg,3);}this.gG();this.gJ();}else{if(this.fA&&!this.fA(al[0])){this.dh(S_WC_P.Locale.bX+': '+S_WC_P.Locale.aZ.replace('%1',al[0]));this.GotMsg(S_WC_P.Locale.bX,S_WC_P.Locale.aZ.replace('%1',al[0]),1,1);var i;i=this.ck.SearchItem(al[0]);if(i<0){this.ck.push(al[0]);}this.gL();this.dP++;this.gJ();}}this.gp=D[2];},fn:function(D,M,al){var ay=new Array();for(var n=2;n<=D.length-1;n++){ay.push(D[n]);}var aK=ay.join(':');if(D[2].substr(1,6)=='ACTION'){this.GotMsg(S_WC_P.Locale.bX,al[0]+' '+D[2].substr(7,D[2].length-8),1);}else{this.GotMsg(al[0],aK,0,0,M[2]);this.ga(al[0]+':'+aK);}},fk:function(D,M,al){if(al[0]==this.gs){this.gs=D[2];}if(this.fC&&!this.fC(al[0],D[2])){this.GotMsg(S_WC_P.Locale.bX,S_WC_P.Locale.bx.replace('%1',al[0]).replace('%2',D[2]),1);var i;i=this.ck.SearchItem(al[0]);if(i>=0){this.ck[i]=D[2];this.gL();}i=this.cm.SearchItem(al[0]);if(i>=0){this.cm[i]=D[2];this.gI();}}},gP:function(D,M,al,aa){if(al[0]!=this.gs&&this.fD&&!this.fD(al[0],aa)){this.dh(S_WC_P.Locale.bX+': '+((aa&1)?S_WC_P.Locale.bu:S_WC_P.Locale.bt).replace('%1',al[0]));var i=this.ck.SearchItem(al[0]);if(i>=0){this.ck.splice(i,1);}this.GotMsg(S_WC_P.Locale.bX,((aa&1)?S_WC_P.Locale.bu:S_WC_P.Locale.bt).replace('%1',al[0]),1,1);i=this.cm.SearchItem(al[0]);if(i>=0){i=this.cm.splice(i,1);this.gI();}this.gL();this.dP--;this.gJ();}},OnMessageInfo:function(Q){if(this.ft){this.ft(Q);}},ga:function(s){if(this.fv){this.fv(s);}},dh:function(K){if(this.fp){this.fp(K);}},gI:function(){if(this.fw){this.fw();}},gJ:function(){if(this.fz){if(this.fz(this.gq,this.ck.length)){return;}}},gG:function(){if(this.fy){this.fy(this.gs);}},gL:function(){if(this.fB){this.fB();}},gH:function(){if(this.fu){this.fu();}}};S_WC_API.getInstance=function(){if(S_WC_API.Runner){return S_WC_API.Runner;}else{return S_WC_API.Runner=new S_WC_API(arguments[0],arguments[1],arguments[2],arguments[3]);}};S_WC_P.Locale={bX:'系统信息',aS:'聊天记录',bz:'返回聊天',bf:'游客',bw:'改名',aW:'正在连接服务器',bM:'屏蔽列表',bN:'被屏蔽用户列表',ca:'用户',cc:'本房间用户列表',bC:'房间',bE:'相关房间列表',cd:'官网',bd:'举报',aQ:'关于',bV:'发言',ce:'您的昵称是“%1”。',cf:'每60人自动分聊天室，欢迎您进入%1号聊天室。请文明聊天，点击用户名可以屏蔽刷屏用户。',bh:'您违反聊天规则，已经被踢出聊天室。',bU:'用户“%1”已被管理员踢出聊天室。',bb:'长时间未发言，系统认为您不想聊天了，所以自动掉线了。',bt:'%1 退出。',bu:'%1 退出房间。',aZ:'%1 进入房间。',bx:'%1 改名为 %2 。',bB:'当前房间：%1 在线人数：%2',bm:'您输入的内容长度不合适，请重新输入。',bI:'发送过程中发生错误。',bn:'您的昵称不合法，请重新输入。',bv:'请选择您要对用户“%1”进行的操作。',bK:'屏蔽',bY:'取消屏蔽',bp:'私聊',bq:'您确定要关闭“%1”窗口吗？',bs:'您确定要切换到%1号房间吗？',bL:'您成功地屏蔽了用户“%1”。',bZ:'您已经成功地取消了对用户“%1”的屏蔽。',bD:'房间%1',aX:'(当前)',aT:'*群聊*',bo:'确定',aR:'取消',bW:'点击这里与访问本页的网友聊天',bJ:'输入内容，按Enter键发送',bg:'javascript:void(0);',be:'http://comment.2008.sina.com.cn/comment/skin/feedback.html?channel=ly&newsid=150&ext=%1',ba:{402:'未知服务器。',403:'未知房间。',405:'您同时加入了太多房间。',406:'未知的用户名。',407:'信息未发送。',408:'请求的内容不存在。',412:'您尚未加入任何聊天室。',431:'该昵称不存在。',432:'无效的用户名。',433:'昵称“%1”已存在。',438:'改名太频繁，系统已禁用您的改名功能，请稍后再试！',442:'您不在当前频道。',461:'命令错误——参数不够。',467:'频道密码已经设定好。',471:'因房间已满等原因，您无法加入此房间。',473:'您没有被邀请。',474:'您已经被管理员封掉。',475:'频道密码错误。',501:'未知聊天模式。',502:'不能改变其他用户的模式。'},bH:Array("１","２","３","４","５","６","７","８","９","０","⒈","⒉","⒊","⒋","⒌","⒍","⒎","⒏","⒐","⒑","⑴","⑵","⑶","⑷","⑸","⑹","⑺","⑻","⑼","⑽","①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","㈠","㈡","㈢","㈣","㈤","㈥","㈦","㈧","㈨","㈩","ａ","ｂ","ｃ","ｄ","ｅ","ｆ","ｇ","ｈ","ｉ","ｊ","ｋ","ｌ","ｍ","ｎ","ｏ","ｐ","ｑ","ｒ","ｓ","ｔ","ｕ","ｖ","ｗ","ｘ","ｙ","ｚ","Ａ","Ｂ","Ｃ","Ｄ","Ｅ","Ｆ","Ｇ","Ｈ","Ｉ","Ｊ","Ｋ","Ｌ","Ｍ","Ｎ","Ｏ","Ｐ","Ｑ","Ｒ","Ｓ","Ｔ","Ｕ","Ｖ","Ｗ","Ｘ","Ｙ","Ｚ","－","＝","［","］","、","；","｀","′","‘","’","，","。","／","～","！","?","＃","￥","％","","＆","＊","※","（","）","―","＋","｛","｝","｜","：","《","》","？","…","＼","．","＠","＄","＿","“","＂","”","＜","＞","　","〈","〉","【","】"),aY:Array('1','2','3','4','5','6','7','8','9','0','1','2','3','4','5','6','7','8','9','0','1','2','3','4','5','6','7','8','9','0','1','2','3','4','5','6','7','8','9','0','1','2','3','4','5','6','7','8','9','0','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','-','=','[',']',',',';','`','\'','`','\'',',','.','/','~','!','.','#','$','%','^','&','*','*','(',')','-','+','{','}','|',':','<','>','?','.','\\','.','@','$','_','"','"','"','<','>',' ','<','>','[',']')};S_WC_P.Locale.bG=S_WC_P.Locale.bH.join('');if(typeof S_WC=='undefined'){S_WC=function(){};}S_WC.Locale={bj:"在线 %s 人",bl:"最小化",bi:"最大化",by:"还原",bk:"与同时访问此页面的网友聊天",bO:"显示聊天窗口",aU:"关闭",bT:"Powered by SINER",bP:"收起聊友列表",bQ:"展开聊友列表",aV:"确认要关闭Woocall吗？刷新页面可重新显示",bS:"当聊天窗口大小发生变化后聊友列表无法收起",bR:"此功能在聊友列表收起时不可用"};if(typeof S_WC=='undefined')S_WC={};if(typeof $=='undefined')$=function(id){return document.getElementById(id)};if(typeof $C=='undefined')$C=function(t){return document.createElement(t)};if(typeof $S=='undefined')$S={};S_WC.MyConf={Enable:true,Version:false,Phrase:'9icn4po62xa2nbcd',ChatBox:{SwfFileName:'Woocall',SwfFilePath:'http://localhost.sina.com.cn/woocall/Woocall/flash/WebPush',SwfFileExt:'.swf',SwfFileId:'woocall_swf_file',Width:400,Height:370,MinW:350,MinH:320,MaximumPadding:10,FitOuterBox:true,PopPosi:'RightBottom',InitDisplay:false},ThemeBaseURL:'http://i3.sinaimg.cn/woocall/theme/',CoreURL:'http://chat.woocall.sina.com.cn/chat_core?v=o&t=5',CtrlBtnIDPostfix:'_CtrlBtn',ChatBoxPostfix:'_ChatBox',NamePrefix:'S_WC',FlaBoxId:'_FLA_BOX',ExtBoxId:'_EXT_BOX',IsLoginName:'_IsLogin',PgTitleLen:10,SBarPos:'r',SBarWidth:191,SBarHeight:61,SBarInitDisplay:true,HeaderHeight:36,ResizerHeight:14,StealthMode:false,URLMaxChar:0};function LdPgCfg(Config){if(typeof SINA_WOOCALL_CONFIG!='undefined'){if(SINA_WOOCALL_CONFIG.URLCutCharLen){Config.URLMaxChar=SINA_WOOCALL_CONFIG.URLCutCharLen;}if(SINA_WOOCALL_CONFIG.Popup){Config.ChatBox.InitDisplay=true;Config.SBarInitDisplay=false;}if(SINA_WOOCALL_CONFIG.DispPosi){Config.ChatBox.PopPosi=SINA_WOOCALL_CONFIG.DispPosi;}if(SINA_WOOCALL_CONFIG.CustomURL){Config.CusURL=SINA_WOOCALL_CONFIG.CustomURL;}if(SINA_WOOCALL_CONFIG.TopicHeader){Config.ExternTopic=SINA_WOOCALL_CONFIG.TopicHeader;}if(SINA_WOOCALL_CONFIG.Stealth){Config.StealthMode=true;Config.ChatBox.InitDisplay=true;Config.SBarInitDisplay=true;}if(SINA_WOOCALL_CONFIG.Disable){Config.Enable=false;}if(SINA_WOOCALL_CONFIG.SBarPosi){Config.SBarPos=SINA_WOOCALL_CONFIG.SBarPosi;}if(SINA_WOOCALL_CONFIG.StaticDiv){Config.StaticDiv=SINA_WOOCALL_CONFIG.StaticDiv;}if(SINA_WOOCALL_CONFIG.AdvConf){Config.AdvConf=SINA_WOOCALL_CONFIG.AdvConf;}}};S_WC.UI=function(){this.Init.apply(this,arguments);};S_WC.UI.setMsg=function(MsgText){if($S.S_WC.SBar.style.display!='none'){if(MsgText.length>15)MsgText=MsgText.substr(0,14)+'..';$S.S_WC.SBarText.innerHTML=MsgText;}};S_WC.UI.setUser=function(UsrN){$S.S_WC.SBarUsr.innerHTML=Util.StrFmt(S_WC.Locale.bj,UsrN);};S_WC.UI.prototype={Conf:null,en:null,dR:true,CSSPREFIX:'woocall_',Init:function(Conf){if(!S_WC.Locale){}S_WC.UI.RUNNER=this;if(Conf.Enable&&S_WC.Locale){this.Conf=Conf;if(this.Conf.Version)this.Conf.ChatBox.SwfFilePath=this.Conf.ChatBox.SwfFilePath+this.Conf.Version+'/';$S.S_WC={};this.en=this.Conf.NamePrefix;this.dR=Util.isIE;if(Conf.StaticDiv){this.Conf.ChatBox.Width=Conf.StaticDiv.width;this.Conf.ChatBox.Height=Conf.StaticDiv.height;}this.Conf.hasHeader=!this.Conf.StaticDiv||this.Conf.StaticDiv.KeepHead;if(!Conf.AdvConf){this.Conf.AdvConf={Width:0,Height:0,SRC:'',Frame:''};}}},Draw:function(){if(this.Conf&&this.Conf.Enable){this.ej();this.ef();this.dL();}},dL:function(){oLink=$C("link");oLink.rel="stylesheet";oLink.type="text/css";oLink.href=this.Conf.Theme.CssURL;var head=document.getElementsByTagName("head")[0];head.appendChild(oLink);if(this.Conf.SBarInitDisplay){if(this.dR){Util.AddEvent(oLink,"readystatechange",function(evt,o){if(o.readyState=='complete'){if(this.Conf.ChatBox.InitDisplay||this.Conf.StaticDiv)this.gd();this.gh();if(this.Conf.StealthMode){this.cL.style.left="-5000px";}}}.cs(this,oLink));}else{if(this.Conf.ChatBox.InitDisplay||this.Conf.StaticDiv)this.gd();this.gh();if(this.Conf.StealthMode){this.cL.style.left="-5000px";}}}else if(this.Conf.ChatBox.InitDisplay){if(this.dR){Util.AddEvent(oLink,"readystatechange",function(evt,o){if(o.readyState=='complete'){this.gd();}}.cs(this,oLink));}else{this.gd();}}if(this.dR){Util.AddEvent(window,"scroll",this.fU.cs(this))}},ef:function(){var ChatBox;if(!this.Conf.StaticDiv||!(ChatBox=$(this.Conf.StaticDiv.divid))){ChatBox=$C('div');}ChatBox.style.textAlign='left';var HndBox=$C('div');var ContentBox=$C('div');var AdvBox=$C('div');var BottomBox=$C('div');var SinerBox=$C('box');var o,o1;if(!this.Conf.hasHeader){HndBox.style.height='0px';HndBox.style.display='none';this.Conf.HeaderHeight=0;}else{ChatBox.appendChild(HndBox);HndBox.style.height=this.Conf.HeaderHeight+'px';}if(this.Conf.StaticDiv){this.Conf.ResizerHeight=0;}else{document.body.appendChild(ChatBox);}ChatBox.appendChild(ContentBox);ChatBox.appendChild(AdvBox);ChatBox.appendChild(BottomBox);ChatBox.className=this.en+this.Conf.ChatBoxPostfix;ChatBox.style.width=this.Conf.ChatBox.Width+'px';ChatBox.style.height=this.Conf.ChatBox.Height+'px';if(!this.Conf.StaticDiv){if(this.dR)ChatBox.style.position="absolute";else ChatBox.style.position="fixed";}ChatBox.style.zIndex=100;ChatBox.style.display='none';ChatBox.style.overflow='hidden';ContentBox.className=this.Conf.NamePrefix+'_content';ContentBox.id=this.Conf.NamePrefix+this.Conf.FlaBoxId;ContentBox.style.width=(this.Conf.ChatBox.Width-this.Conf.AdvConf.Width)+"px";ContentBox.style.height=(this.Conf.ChatBox.Height-this.Conf.HeaderHeight-this.Conf.ResizerHeight)+'px';AdvBox.style.width=(this.Conf.AdvConf.Width)+'px';AdvBox.style.height=ContentBox.style.height;AdvBox.style.marginTop='-'+ContentBox.style.height;AdvBox.style.marginLeft=ContentBox.style.width;AdvBox.setAttribute('id',this.Conf.NamePrefix+this.Conf.ExtBoxId);o=$C('iframe');o.setAttribute('src',this.Conf.AdvConf.SRC);o.style.width=this.Conf.AdvConf.Width+'px';o.style.height=this.Conf.AdvConf.Height+'px';o.style.border='none';o.style.overflow='hidden';o.setAttribute('border','0');o.setAttribute('frameborder','0');o.setAttribute('scroll','none');o.setAttribute('scrolling','none');o.frameBorder=0;o.scrolling='no';AdvBox.appendChild(o);o=$C('iframe');o.setAttribute('src',this.Conf.AdvConf.Frame);o.style.width=this.Conf.AdvConf.Width+'px';o.style.height=this.Conf.AdvConf.Height+'px';o.style.border='none';o.style.overflow='hidden';o.frameBorder=0;o.scrolling='no';SinerBox=$C('div');SinerBox.style.position='absolute';SinerBox.style.top='100%';SinerBox.style.marginTop='-40px';SinerBox.style.zIndex='5';SinerBox.style.width=this.Conf.AdvConf.Width+'px';SinerBox.style.textAlign='center';o=$C('img');o.setAttribute('src',this.Conf.Theme.SinerLogoURL);o.setAttribute('alt',S_WC.Locale.bT);o.setAttribute('title',S_WC.Locale.bT);o.style.border='none';if(parseInt(this.Conf.AdvConf.Width)>100){SinerBox.appendChild(o);}AdvBox.appendChild(SinerBox);BottomBox.className=this.Conf.NamePrefix+'_Bottom';var ResizeBox=$C('div');if(this.Conf.StaticDiv){BottomBox.style.height='0px';}else{BottomBox.appendChild(ResizeBox);ResizeBox.className=this.Conf.NamePrefix+'_Resize';this.eg(HndBox,ChatBox);}this.eh(HndBox);this.dH=HndBox;this.cL=ChatBox;this.cT=ContentBox;this.cj=AdvBox;this.gj=SinerBox;this.dn=ContentBox;this.cu=BottomBox;if(!this.Conf.StaticDiv){this.ei();}},eh:function(HndBox){var CtrlBox=$C('div');var TitleBox=$C('div');HndBox.appendChild(TitleBox);HndBox.appendChild(CtrlBox);HndBox.className=this.Conf.NamePrefix+'_Hnd';CtrlBox.className=this.Conf.NamePrefix+'_Ctrl';if(this.Conf.StaticDiv){HndBox.style.cursor='default';}else{var ImgMin=$C('img');var ImgMax=$C('img');var ImgClose=$C('img');ImgMin.src=this.Conf.Theme.HideImg;ImgMin.height=36;ImgMin.width=14;ImgMin.alt=S_WC.Locale.bl;ImgMin.title=S_WC.Locale.bl;Util.AddEvent(ImgMin,'mousedown',this.dF.cs(this));ImgMax.src=this.Conf.Theme.MaxImg;ImgMax.height=36;ImgMax.width=14;ImgMax.alt=S_WC.Locale.bi;ImgMax.title=S_WC.Locale.bi;Util.AddEvent(ImgMax,'mousedown',this.gD.cs(this));ImgClose.src=this.Conf.Theme.CloseImg;ImgClose.height=36;ImgClose.width=16;ImgClose.alt=S_WC.Locale.aU;ImgClose.title=S_WC.Locale.aU;Util.AddEvent(ImgClose,'mousedown',this.cP.cs(this));CtrlBox.appendChild(ImgMin);CtrlBox.appendChild(ImgMax);CtrlBox.appendChild(ImgClose);}var PgTitle=document.title;if(PgTitle.length>this.Conf.PgTitleLen){PgTitle=PgTitle.substr(0,this.Conf.PgTitleLen)+'..';}TitleBox.innerHTML=['<div class="',this.Conf.NamePrefix,'_Title"><img align="absmiddle" src="',this.Conf.Theme.TitleImg,'" /> ',PgTitle,'</div>'].join('');},ej:function(){var oBar=$C('div');document.body.appendChild(oBar);if(this.dR)oBar.style.position='absolute';else oBar.style.position='fixed';oBar.style.zIndex=99;oBar.className=this.Conf.NamePrefix+'_SBar';if(this.Conf.SBarPos.toLowerCase()=='r'){oBar.style.left=(document.body.clientWidth-this.Conf.SBarWidth-10)+'px';}else if(this.Conf.SBarPos.toLowerCase()=='l'){oBar.style.left=10+'px';}else{oBar.style.left=(document.body.clientWidth-this.Conf.SBarWidth-10)+'px';}oBar.style.top=(Util.getBodyHeight()-this.Conf.SBarHeight)+'px';oBar.style.display='none';var oMBody=$C('div');oMBody.className=this.Conf.NamePrefix+'_mbody';oBar.appendChild(oMBody);var oBarText=$C('div');oBarText.className=this.Conf.NamePrefix+'_bartext';Util.AddEvent(oBarText,"mousedown",this.gd.cs(this));oMBody.appendChild(oBarText);var oInfoBar=$C('div');oInfoBar.className=this.Conf.NamePrefix+'_infobar';oInfoBar.innerHTML=Util.StrFmt('<span class="%s_barlogoblk"><img src="%s" align="absmiddle"/></span>'+'<span class="%s_ctrlimg"><img src="%s" align="absmiddle" title="%s" alt="%s"/>'+'<img src="%s" align="absmiddle" title="%s" alt="%s"/></span>'+'<span class="%s_olusr"></span>',this.Conf.NamePrefix,this.Conf.Theme.SBarLogoImg,this.Conf.NamePrefix,this.Conf.Theme.SBarResumeImg,S_WC.Locale.bO,S_WC.Locale.bO,this.Conf.Theme.SBarCloseImg,S_WC.Locale.aU,S_WC.Locale.aU,this.Conf.NamePrefix);oMBody.appendChild(oInfoBar);var oR=oInfoBar.childNodes[1].childNodes[0];Util.AddEvent(oR,"mousedown",this.gd.cs(this));var oX=oInfoBar.childNodes[1].childNodes[1];Util.AddEvent(oX,"mousedown",this.cP.cs(this));$S.S_WC.SBar=this.SBar=oBar;$S.S_WC.SBarText=oBarText;$S.S_WC.SBarUsr=oInfoBar.childNodes[2];Util.AddEvent(window,"resize",this.dm.cs(this));},gd:function(evt){this.cL.style.display='';if(!this.Conf.StaticDiv){this.cL.style.left='-5000px';}this.SBar.style.display='none';if((!this.Conf.StaticDiv||this.InitDisplay)&&!this.BoxShow){this.dY();this.BoxShow=true;}if(this.Conf.StaticDiv){var o1=$C('a');o1.appendChild(document.createTextNode(S_WC_P.Locale.bW));o1.setAttribute('href',S_WC_P.Locale.bg);o1.className=this.en+'_startchat';this.cT.appendChild(o1);Util.AddEvent(o1,'click',this.gm.cs(this));}var pos=this.dv(this.Conf.ChatBox.PopPosi);if(this.dR){this.dH.style.width=this.cL.clientWidth+'px';this.cu.style.width=this.cL.clientWidth+'px';if(!this.Conf.StaticDiv){if($S.S_WC.X&&$S.S_WC.Y){this.cL.style.top=(Util.getScrollTop()+$S.S_WC.Y)+"px";this.cL.style.left=$S.S_WC.X+"px";}else{this.cL.style.top=(Util.getScrollTop()+pos.y)+"px";this.cL.style.left=pos.x+"px";}}}else{if(!this.Conf.StaticDiv){if(!this.Conf.ChatBox.InitDisplay){this.cL.style.top=($S.S_WC.Y?$S.S_WC.Y:pos.y)+"px";this.cL.style.left=($S.S_WC.X?$S.S_WC.X:pos.x)+"px";}else{setTimeout(function(){var pos=this.dv(this.Conf.ChatBox.PopPosi);this.cL.style.top=($S.S_WC.Y?$S.S_WC.Y:pos.y)+"px";this.cL.style.left=($S.S_WC.X?$S.S_WC.X:pos.x)+"px";}.cq(this),500);}}}S_WC_P.DefaultSize={w:(this.Conf.ChatBox.Width-this.Conf.AdvConf.Width),h:this.Conf.ChatBox.Height-this.Conf.HeaderHeight-this.Conf.ResizerHeight};},gh:function(){if(this.Conf.StaticDiv){return;}this.SBar.style.display='';var offset=0;this.SBar.childNodes[offset].childNodes[0].innerHTML=Util.StrFmt('<span class="%s_weltxt">%s</span>',this.Conf.NamePrefix,S_WC.Locale.bk);if(this.dR){this.SBar.style.top=(Util.getScrollTop()+Util.getBodyHeight()-this.SBar.offsetHeight)+"px";}},cP:function(evt){evt.cancelBubble=true;if(this.SBar.style.display!='none'){this.cL.innerHTML='';this.SBar.style.display='none';this.cL.style.display='none';}else{if(confirm(S_WC.Locale.aV)){this.cL.innerHTML='';this.SBar.style.display='none';this.cL.style.display='none';}}},dm:function(evt){if(this.Conf.SBarPos.toLowerCase()=='r'){this.SBar.style.left=(document.body.clientWidth-this.Conf.SBarWidth-10)+'px';}else if(this.Conf.SBarPos.toLowerCase()=='l'){this.SBar.style.left=10+'px';}else this.SBar.style.left=(document.body.clientWidth-this.Conf.SBarWidth-10)+'px';this.SBar.style.top=(Util.getBodyHeight()-this.SBar.offsetHeight)+'px';},fU:function(evt){if(this.SBar&&this.SBar.display!='none'){this.SBar.style.top=(Util.getScrollTop()+Util.getBodyHeight()-this.SBar.offsetHeight)+"px";}if(this.cL){if($S.S_WC.X&&$S.S_WC.Y){this.cL.style.top=(Util.getScrollTop()+$S.S_WC.Y)+"px";}else{var pos=this.dv(this.Conf.ChatBox.PopPosi);this.cL.style.top=(Util.getScrollTop()+pos.y)+"px";}}},dF:function(evt){if(evt){if(typeof evt.layerY=='undefined')evt.layerY=evt.offsetY;if(evt.layerY>50||evt.layerY<-10)return;evt.cancelBubble=true;this.cL.style.left="-5000px";this.gh();}},gD:function(evt){evt.cancelBubble=true;if(this.ResumeBoxInfo){this.cL.style.left=this.ResumeBoxInfo.left+'px';if(Util.isIE){this.cL.style.top=(Util.getScrollTop()+this.ResumeBoxInfo.top)+'px';}else{this.cL.style.top=this.ResumeBoxInfo.top+'px';}$S.S_WC.X=this.ResumeBoxInfo.left;$S.S_WC.Y=this.ResumeBoxInfo.top;this.cU(this.ResumeBoxInfo.width,this.ResumeBoxInfo.height);this.cL.style.width=this.ResumeBoxInfo.width+'px';this.cL.style.height=this.ResumeBoxInfo.height+'px';this.ResumeBoxInfo=null;var oImg=this.dH.childNodes[1].childNodes[1];oImg.src=this.Conf.Theme.MaxImg;oImg.title=S_WC.Locale.bi;oImg.alt=S_WC.Locale.bi;}else{this.ResumeBoxInfo={};this.ResumeBoxInfo.left=parseInt(this.cL.style.left);if(Util.isIE)this.ResumeBoxInfo.top=parseInt(this.cL.style.top)-Util.getScrollTop();else this.ResumeBoxInfo.top=parseInt(this.cL.style.top);this.ResumeBoxInfo.width=this.cL.clientWidth;this.ResumeBoxInfo.height=this.cL.clientHeight;var Padding=this.Conf.ChatBox.MaximumPadding;this.cL.style.left=Padding+'px';$S.S_WC.X=Padding;$S.S_WC.Y=Padding;if(Util.isIE){this.cL.style.top=(Util.getScrollTop()+Padding)+'px';}else{this.cL.style.top=Padding+'px';}var dim=Util.getBodyDim();this.cU((dim.W-2*Padding),(dim.H-2*Padding));this.cL.style.width=(dim.W-2*Padding)+'px';this.cL.style.height=(dim.H-2*Padding)+'px';var oImg=this.dH.childNodes[1].childNodes[1];oImg.src=this.Conf.Theme.ResumeImg;oImg.title=S_WC.Locale.by;oImg.alt=S_WC.Locale.by;}},cU:function(width,height){this.cT.style.height=(height-this.dH.clientHeight-this.cu.clientHeight)+"px";this.cT.style.width=(width-this.Conf.AdvConf.Width)+'px';if(Util.isIE){this.cu.style.width=width+"px";this.dH.style.width=width+"px";}var FinalH=this.dn.style.height;var AdvBox=this.cj;var ContentBox=this.cT;AdvBox.style.height=ContentBox.style.height=parseInt(FinalH)+'px';AdvBox.style.marginLeft=ContentBox.style.width;AdvBox.style.marginTop='-'+ContentBox.style.height;S_WC_P.Runner.SetSize(this.dn.style.width,this.dn.style.height);},eg:function(hnd,root){Util.Drag.init(hnd,root,0,document.body.clientWidth,0);if(this.dR){root.onDragStart=function(x,y){this.children[1].style.visibility='hidden';};root.onDragEnd=function(x,y){this.children[1].style.visibility='visible';$S.S_WC.X=x;$S.S_WC.Y=y-Util.getScrollTop();};}else{root.onDragEnd=function(x,y){$S.S_WC.X=x;$S.S_WC.Y=y};}},ei:function(){var ChatBox=this.cL;var ContentBox=this.cT;var HndBox=this.dH;var BottomBox=this.cu;var Resizer=new Util.Resize(BottomBox,ChatBox);var AdvBox=this.cj;var SinerBox=this.gj;var Debug=0;var MinH=HndBox.clientHeight+BottomBox.clientHeight+this.Conf.ChatBox.MinH;Resizer.Setup(this.Conf.ChatBox.MinW+this.Conf.AdvConf.Width,MinH,Debug);var fX=this;Resizer.onResizeStart=function(){ContentBox.style.visibility='hidden';};Resizer.onWidthChange=function(xoffset,boxwidth){ContentBox.style.width=(boxwidth-this.Conf.AdvConf.Width)+"px";if(Util.isIE){BottomBox.style.width=boxwidth+"px";HndBox.style.width=boxwidth+"px";}AdvBox.style.marginLeft=ContentBox.style.width;}.cq(this);Resizer.onHeightChange=function(yoffset,boxheight){AdvBox.style.height=ContentBox.style.height=(boxheight-HndBox.clientHeight-BottomBox.clientHeight)+"px";AdvBox.style.marginTop='-'+ContentBox.style.height;};Resizer.onResizeEnd=function(){ContentBox.style.visibility='';ContentBox.style.width=(parseInt(ChatBox.clientWidth)-this.Conf.AdvConf.Width)+"px";var FinalH=(ChatBox.clientHeight-HndBox.clientHeight-BottomBox.clientHeight);AdvBox.style.height=ContentBox.style.height=FinalH+"px";AdvBox.style.marginLeft=ContentBox.style.width;AdvBox.style.marginTop='-'+ContentBox.style.height;S_WC_P.Runner.SetSize(this.dn.style.width,this.dn.style.height);}.cq(this);},dv:function(PosConf){var rtn={};switch(PosConf.toLowerCase()){case 'middle':rtn.x=(document.body.clientWidth-this.cL.clientWidth)/2;rtn.y=(Util.getBodyHeight()-this.cL.clientHeight)/2;break;case 'rightbottom':rtn.x=document.body.clientWidth-this.cL.clientWidth-10;rtn.y=Util.getBodyHeight()-this.cL.clientHeight;break;case 'lefttop':rtn.x=2;rtn.y=2;break;case 'leftbottom':rtn.x=2;rtn.y=Util.getBodyHeight()-this.cL.clientHeight;break;case 'righttop':rtn.x=document.body.clientWidth-this.cL.clientWidth-10;rtn.y=2;break;default:var arr=PosConf.split(':');rtn.x=parseInt(arr[0]);rtn.y=parseInt(arr[1]);break;}return rtn;},dY:function(){var s=$C('script');s.src=this.Conf.CoreURL;s.type='text/javascript';document.body.appendChild(s);},setTheme:function(n,burl){if(!this.Conf||!this.Conf.Enable)return;if(typeof burl=='string'){this.Conf.ThemeBaseURL=burl;}var url=this.Conf.ThemeBaseURL+n+'/';this.Conf.Theme={TitleImg:url+'boxlogo.gif',HideImg:url+'boxmin.gif',CloseImg:url+'boxclose.gif',MaxImg:url+'boxmax.gif',ResumeImg:url+'boxresume.gif',CssURL:url+"wc_style.css",SinerLogoURL:url+"siner.gif",SBarLogoImg:url+"barlogo.gif",SBarResumeImg:url+"barresume.gif",SBarCloseImg:url+"barclose.gif"};},gm:function(ev){var o=ev.currentTarget||ev.srcElement;o.parentNode.removeChild(o);this.BoxShow=true;setTimeout(this.dY.cq(this),100);}};function woocall_init_loadui(){if(arguments.callee.done)return;arguments.callee.done=true;LdPgCfg(S_WC.MyConf);var x=new S_WC.UI(S_WC.MyConf);x.setTheme('Beijing2008_4');x.Draw();};var __SafeMode=false;if(typeof SINA_WOOCALL_CONFIG!='undefined'&&SINA_WOOCALL_CONFIG.SafeMode)__SafeMode=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",woocall_init_loadui,false);}if(window.addEventListener){window.addEventListener('load',woocall_init_loadui,false);}else if(window.attachEvent){window.attachEvent('onload',woocall_init_loadui);} 
if(window.SINA_WOOCALL_CONFIG && window.SINA_WOOCALL_CONFIG.StaticDiv)
{
	woocall_init_loadui();
}
/*@cc_on @*/
/*@if (@_win32)
	if(!__SafeMode){
		document.write("<script id=__ie_onload defer src=javascript:void(0)><\/script>");
		var __script = document.getElementById("__ie_onload");
		__script.onreadystatechange = function() 
		{    
			if (this.readyState == "complete") 
			{        
				woocall_init_loadui(); // call the onload handler    
			}
		};	
	}
/*@end @*/