if(!$CONFIG){$CONFIG={}}var scope=$CONFIG;Function.prototype.bind2=function(b){var a=this;return function(){return a.apply(b,arguments)}};scope.$VERSION="t3";scope.$BASEIMG="http://img.t.sinajs.cn/"+scope.$VERSION+"/";scope.$BASECSS="http://img.t.sinajs.cn/"+scope.$VERSION+"/";scope.$BASEJS="http://js.t.sinajs.cn/"+scope.$VERSION+"/";scope.$BASESTATIC="http://js.t.sinajs.cn/"+scope.$VERSION+"/";scope._ua=navigator.userAgent.toLowerCase();scope.$IE=/msie/.test(scope._ua);scope.$OPERA=/opera/.test(scope._ua);scope.$MOZ=/gecko/.test(scope._ua);scope.$IE5=/msie 5 /.test(scope._ua);scope.$IE55=/msie 5.5/.test(scope._ua);scope.$IE6=/msie 6/.test(scope._ua);scope.$IE7=/msie 7/.test(scope._ua);scope.$SAFARI=/safari/.test(scope._ua);scope.$winXP=/windows nt 5.1/.test(scope._ua);scope.$winVista=/windows nt 6.0/.test(scope._ua);var $IE=scope.$IE,$MOZ=scope.$MOZ,$IE6=scope.$IE6;function $import(a){}var Boot={};Boot.addDOMLoadEvent=function(a){if(!window.__load_events){var b=function(){if(arguments.callee.done){return}arguments.callee.done=true;if(window.__load_timer){clearInterval(window.__load_timer);window.__load_timer=null}for(var f=0;f<window.__load_events.length;f++){window.__load_events[f]()}window.__load_events=null};if(document.addEventListener){document.addEventListener("DOMContentLoaded",b,false)}if(/WebKit/i.test(navigator.userAgent)){window.__load_timer=setInterval(function(){if(/loaded|complete/.test(document.readyState)){b()}},10)}if(window.ActiveXObject){window.__load_timer=setInterval(function(){try{document.body.doScroll("left");b()}catch(f){}},10)}window.onload=b;window.__load_events=[]}window.__load_events.push(a)};Boot.getJsVersion=function(){var a=false;if($CONFIG){a=$CONFIG.js?$CONFIG.js:""}if(a){return"?v="+a}else{return""}};try{Boot.addDOMLoadEvent(main)}catch(e){}var $Debug=(function(){var a=[];function f(h,n,g){var j;var m=h!=null?h:"";var k={color:null,bgcolor:null,html:null};var l=g!=null?g:"log";n=n!=null?n:{};for(j in k){if(n[j]!=null){k[j]=n[j]}}a.push({label:m,cmd:l,opts:k,time:new Date()})}function b(g,h){f(g,h,"log")}b.fatal=function(g,h){f(g,h,"fatal")};b.error=function(g,h){f(g,h,"error")};b.warning=function(g,h){f(g,h,"warning")};b.info=function(g,h){f(g,h,"info")};b.log=function(g,h){f(g,h,"log")};b.clear=function(){a=[]};b.contentList=a;return b})();if(typeof Sina=="undefined"){Sina={}}Sina.pkg=function(f){if(!f||!f.length){return null}var g=f.split(".");var b=Sina;for(var a=(g[0]=="Sina")?1:0;a<g.length;++a){b[g[a]]=b[g[a]]||{};b=b[g[a]]}return b};function $E(b){var a=typeof b=="string"?document.getElementById(b):b;if(a!=null){return a}else{}return null}function $C(a){return document.createElement(a)}try{document.execCommand("BackgroundImageCache",false,true)}catch(e){}(function(){var k="trace";var j=[];var h=new Date().valueOf();var g=new Date().valueOf();var a;var f=function(l,n,m){n=n||{};if(typeof n=="string"){n={color:n};if(typeof m!="undefined"&&typeof m=="string"){n.bgColor=m}}j[j.length]=[l,n]};var b=function(l){f(l,{color:"#F00"})};f.error=b;f.traceList=j;f.toString=function(){return"Trace调试已关闭"};window[k]=f;window.traceError=b})();Sina.pkg("Core");if(typeof Core=="undefined"){Core=Sina.Core}Sina.pkg("Core.Array");Core.Array.each=function(f,b){var h=[];for(var g=0;g<f.length;g++){var a=b(f[g],g);if(a!==null){h.push(a)}}return h};function Jobs(){this._jobTable=[]}Jobs.prototype={_registedJobTable:{},initialize:function(){},_registJob:function(b,a){this._registedJobTable[b]=a},add:function(a){this._jobTable.push(a)},start:function(){var a=this._jobTable;var f=this._registedJobTable;var j=0;var h=this._jobTable.length;var b=function(){return new Date().valueOf()};var g=window.setInterval(function(){if(j>=h){clearInterval(g);return}var p=a[j];var n=f[p];j++;if(typeof n=="undefined"){$Debug.error("<b>["+p+"# is undefiend!!!</b>",{html:true});return}var m=true;var l=b();try{n.call()}catch(o){$Debug.error("<b>["+p+"] failed!!!</b>",{html:true});m=false}finally{if(m){var k=b();$Debug.info("["+p+"] done in "+(k-l)+"ms.")}}},10)},call:function(b,a){if(typeof this._registedJobTable[b]!="undefined"){this._registedJobTable[b].apply(this,a)}else{$Debug("#"+b+"# is undefined!!!",{color:"#900",bgColor:"#FFF;"})}}};$registJob=function(b,a){Jobs.prototype._registJob(b,a)};$callJob=function(b){var a=[];if(arguments.length>1){Core.Array.foreach(arguments,function(f,g){a[g]=f});a.shift()}Jobs.prototype.call(b,a)};if(typeof App=="undefined"){var App={}}Sina.pkg("Utils");if(typeof Utils=="undefined"){Utils=Sina.Utils}Sina.pkg("Utils.Io");Sina.pkg("Core.String");Utils.Url=function(a){a=a||"";this.url=a;this.query={};this.parse()};Utils.Url.prototype={parse:function(a){if(a){this.url=a}this.parseAnchor();this.parseParam()},parseAnchor:function(){var a=this.url.match(/\#(.*)/);a=a?a[1]:null;this._anchor=a;if(a!=null){this.anchor=this.getNameValuePair(a);this.url=this.url.replace(/\#.*/,"")}},parseParam:function(){var a=this.url.match(/\?([^\?]*)/);a=a?a[1]:null;if(a!=null){this.url=this.url.replace(/\?([^\?]*)/,"");this.query=this.getNameValuePair(a)}},getNameValuePair:function(b){var a={};b.replace(/([^&=]*)(?:\=([^&]*))?/gim,function(f,h,g){if(h==""){return}a[h]=g||""});return a},getParam:function(a){return this.query[a]||""},clearParam:function(){this.query={}},setParam:function(a,b){if(a==null||a==""||typeof(a)!="string"){throw new Error("no param name set")}this.query=this.query||{};this.query[a]=b},setParams:function(a){this.query=a},serialize:function(f){var a=[];for(var b in f){if(f[b]==null||f[b]==""){a.push(b+"=")}else{a.push(b+"="+f[b])}}return a.join("&")},toString:function(){var a=this.serialize(this.query);return this.url+(a.length>0?"?"+a:"")+(this.anchor?"#"+this.serialize(this.anchor):"")},getHashStr:function(a){return this.anchor?"#"+this.serialize(this.anchor):(a?"#":"")}};Core.String.encodeDoubleByte=function(a){if(typeof a!="string"){return a}return encodeURIComponent(a)};Sina.pkg("Core.Base");(function(){var a=function(){var b=navigator.userAgent.toLowerCase();this.$IE=/msie/.test(b);this.$OPERA=/opera/.test(b);this.$MOZ=/gecko/.test(b);this.$IE5=/msie 5 /.test(b);this.$IE55=/msie 5.5/.test(b);this.$IE6=/msie 6/.test(b);this.$IE7=/msie 7/.test(b);this.$SAFARI=/safari/.test(b);this.$winXP=/windows nt 5.1/.test(b);this.$winVista=/windows nt 6.0/.test(b);this.$FF2=/Firefox\/2/i.test(b);this.$IOS=/\((iPhone|iPad|iPod)/i.test(b)};Core.Base.detect=new a()})();Utils.Io.Ajax={createRequest:function(){var f=null;try{f=new XMLHttpRequest()}catch(b){try{f=new ActiveXObject("Msxml2.XMLHTTP")}catch(g){try{f=ActiveXObject("Microsoft.XMLHTTP")}catch(a){}}}if(f==null){$Debug.error("<b>create request failed</b>",{html:true})}else{return f}},request:function(a,b){b=b||{};b.onComplete=b.onComplete||function(){};b.onException=b.onException||function(){};b.returnType=b.returnType||"txt";b.method=b.method||"get";b.data=b.data||{};if(typeof b.GET!="undefined"&&typeof b.GET.url_random!="undefined"&&b.GET.url_random==0){this.rand=false;b.GET.url_random=null}return this.loadData(a,b)},loadData:function(url,option){var request=this.createRequest(),tmpArr=[];var _url=new Utils.Url(url);if(option.POST){for(var postkey in option.POST){var postvalue=option.POST[postkey];if(postvalue!=null){tmpArr.push(postkey+"="+Core.String.encodeDoubleByte(postvalue))}}}var sParameter=tmpArr.join("&")||"";if(option.GET){for(var key in option.GET){if(key!="url_random"){_url.setParam(key,Core.String.encodeDoubleByte(option.GET[key]))}}}if(this.rand!=false){_url.setParam("rnd",Math.random())}request.onreadystatechange=function(){if(request.readyState==4){var response,type=option.returnType;try{switch(type){case"txt":response=request.responseText;break;case"xml":if(Core.Base.detect.$IE){response=request.responseXML}else{var Dparser=new DOMParser();response=Dparser.parseFromString(request.responseText,"text/xml")}break;case"json":response=eval("("+request.responseText+")");break}option.onComplete(response)}catch(e){option.onException(e.message,_url);return false}}};try{if(option.POST){request.open("POST",_url,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");request.send(sParameter)}else{request.open("GET",_url,true);request.send(null)}return request}catch(e){option.onException(e.message,_url);return false}}};Core.String.trimHead=function(a){return a.replace(/^(\u3000|\s|\t)*/gi,"")};Core.String.trimTail=function(a){return a.replace(/(\u3000|\s|\t)*$/gi,"")};Core.String.trim=function(a){return Core.String.trimHead(Core.String.trimTail(a))};Sina.pkg("Core.Events");Core.Events.addEvent=function(j,g,f,a){var h=$E(j);if(h==null){$Debug("addEvent 找不到对象："+j);return}if(typeof a=="undefined"){a=false}if(typeof f=="undefined"){f="click"}if(h.addEventListener){h.addEventListener(f,g,a);return true}else{if(h.attachEvent){var b=h.attachEvent("on"+f,g);return true}else{h["on"+f]=g}}};Core.Events.removeEvent=function(a,b,f){var g=$E(a);if(g==null){$Debug("removeEvent 找不到对象："+a);return}if(typeof b!="function"){return}if(typeof f=="undefined"){f="click"}if(g.addEventListener){g.removeEventListener(f,b,false)}else{if(g.attachEvent){g.detachEvent("on"+f,b)}}b[f]=null};Core.Events.getEvent=function(){return window.event};if(!Core.Base.detect.$IE){Core.Events.getEvent=function(){if(window.event){return window.event}var b=arguments.callee.caller;var a;var f=0;while(b!=null&&f<40){a=b.arguments[0];if(a&&(a.constructor==Event||a.constructor==MouseEvent)){return a}f++;b=b.caller}return a}}Core.Events.stopEvent=function(a){try{var b=a?a:Core.Events.getEvent();b.cancelBubble=true;b.returnValue=false}catch(f){}};if(!$IE){try{Core.Events.stopEvent=function(a){var b=a?a:Core.Events.getEvent();b.preventDefault();b.stopPropagation()}}catch(e){}}Core.Events.fixEvent=function(a){if(typeof a=="undefined"){a=window.event}if(!a.target){a.target=a.srcElement;a.pageX=a.x;a.pageY=a.y}if(typeof a.layerX=="undefined"){a.layerX=a.offsetX}if(typeof a.layerY=="undefined"){a.layerY=a.offsetY}return a};Sina.pkg("Core.Dom");Core.Dom.opacity=function(b,a){b=$E(b);b.style.filter="alpha(opacity="+a+")";b.style.opacity=a/100};Core.Dom.getElementsByClass=function(f,b,k){f=f||document;var g=[];k=" "+k+" ";var m=f.getElementsByTagName(b),j=m.length;for(var h=0;h<j;++h){var a=m[h];if(a.nodeType==1){var l=" "+a.className+" ";if(l.indexOf(k)!=-1){g[g.length]=a}}}return g};Core.Dom.byClz=Core.Dom.getElementsByClass;Sina.pkg("Core.Function");Core.Function.bind2=function(f,b){var a=f;return function(){return a.apply(b,arguments)}};Function.prototype.bind2=function(b){var a=this;return function(){return a.apply(b,arguments)}};Core.Array.foreach=function(g,f){if(g==null&&g.constructor!=Array){return[]}var h=0,b=g.length,j=[];while(h<b){var a=f(g[h],h);if(a!==null){j[j.length]=a}h++}return j};Utils.Template=function(a){this.tmpl=a;this.pattern=/(#\{(.*?)\})/g};Utils.Template.prototype={evaluate:function(a){return this.tmpl.replace(this.pattern,function(){return a[arguments[2]]||""})},evaluateMulti:function(f,a){var b=[];Core.Array.foreach(f,Core.Function.bind2(function(g,h){h=a?f.length-h:h;b[h]=this.evaluate(g)},this));return b.join("")}};Sina.pkg("Core.System");Core.System.winSize=function(b){var a,f;if(b){target=b.document}else{target=document}if(self.innerHeight){if(b){target=b.self}else{target=self}a=target.innerWidth;f=target.innerHeight}else{if(target.documentElement&&target.documentElement.clientHeight){a=target.documentElement.clientWidth;f=target.documentElement.clientHeight}else{if(target.body){a=target.body.clientWidth;f=target.body.clientHeight}}}return{width:a,height:f}};Core.System.pageSize=function(f){if(f){target=f.document}else{target=document}var h=(target.compatMode=="CSS1Compat"?target.documentElement:target.body);var g,b;if(window.innerHeight&&window.scrollMaxY){g=h.scrollWidth;b=window.innerHeight+window.scrollMaxY}else{if(h.scrollHeight>h.offsetHeight){g=h.scrollWidth;b=h.scrollHeight}else{g=h.offsetWidth;b=h.offsetHeight}}var a=Core.System.winSize(f);if(b<a.height){pageHeight=a.height}else{pageHeight=b}if(g<a.width){pageWidth=a.width}else{pageWidth=g}return[pageWidth,pageHeight,a.width,a.height]};Core.System.getScrollPos=function(f){f=f||document;var a=f.documentElement;var b=f.body;return[Math.max(a.scrollTop,b.scrollTop),Math.max(a.scrollLeft,b.scrollLeft),Math.max(a.scrollWidth,b.scrollWidth),Math.max(a.scrollHeight,b.scrollHeight)]};App.Dialog={};App.Dialog.BasicDialog=function(l,j,a){a=a||{};a.noDrag=a.noDrag||true;this._node=$C("div");document.getElementsByTagName("BODY")[0].appendChild(this._node);var f={title:l?l:"BasicDialog",content:j?j:"......",closeTip:$CLTMSG.CD0018};var h=this._node.style;h.position="absolute";h.visibility="hidden";if(a.zIndex){h.zIndex=a.zIndex}if(a.hidden){h.visibility="hidden"}var k='<table class="mBlogLayer"><tbody><tr><td class="top_l"></td><td class="top_c"></td><td class="top_r"></td></tr><tr><td class="mid_l"></td><td class="mid_c"><div class="layerBox"><div class="layerBoxTop"><div class="topCon"><strong>#{title}</strong><a href="javascript:;" class="close" title="#{closeTip}"></a><div class="clear"></div></div></div><div class="layerBoxCon">#{content}</div></div></td><td class="mid_r"></td></tr>			    	<tr><td class="bottom_l"></td><td class="bottom_c"></td><td class="bottom_r"></td></tr>			    </tbody></table>';var g=new Utils.Template(k);this._node.innerHTML=g.evaluate(f);this._node_body=Core.Dom.getElementsByClass(this._node,"DIV","layerBoxCon")[0];this.setSize(a.width,a.height);this._btn_close=this._node.firstChild.firstChild.childNodes[1].childNodes[1].firstChild.firstChild.firstChild.childNodes[1];this._node_title=this._btn_close.previousSibling;this._btn_close.parent=this;this._btn_close.onclick=function(){Core.Events.stopEvent();if(a.hiddClose){this.parent.hidd()}else{this.parent.close()}};this._btn_close.onmousedown=function(){};this._btn_move=this._btn_close.parentNode.parentNode;this._btn_move.parent=this;this._btn_move.onmousedown=function(){var m=Core.Events.fixEvent(Core.Events.getEvent());this.parent._ondrag=true;this.offsetx=m.layerX;this.offsety=m.layerY};if(!a.noDrag){this._btn_move.style.cursor="pointer"}var b=this;this._btn_move.mousemoveHandler=function(){b._mousemoveHandler()};this._btn_move.mouseupHandler=function(){b._mouserupHandler()};this._btn_move.resize=function(){b.resize()};this._btn_move.scroll=function(){b.scroll()};this._btn_move.close=function(n){if(a.esc){return}var m=n.keyCode;if(m===27){b.close()}};this.setMiddle();if(a.hidden){h.visibility="hidden";this.focusTarget=this._btn_close}else{h.visibility="visible";this._btn_close.focus();this._btn_close.blur()}this.setMask(this._node.style.zIndex,a.hidden);if(!a.noDrag){Core.Events.addEvent(document,this._btn_move.mousemoveHandler,"mousemove");Core.Events.addEvent(document,this._btn_move.mouseupHandler,"mouseup")}Core.Events.addEvent(window,this._btn_move.resize,"resize");Core.Events.addEvent(window,this._btn_move.scroll,"scroll");Core.Events.addEvent(document,this._btn_move.close,"keydown")};App.Dialog.BasicDialog.prototype={onClose:function(){},onHidd:function(){},gc:function(){},distory:function(){if(this._distory){return}this.gc();Core.Events.removeEvent(document,this._btn_move.mousemoveHandler,"mousemove");Core.Events.removeEvent(document,this._btn_move.mouseupHandler,"mouseup");Core.Events.removeEvent(window,this._btn_move.resize,"resize");Core.Events.removeEvent(window,this._btn_move.scroll,"scroll");this._btn_close.onmousedown=null;this._btn_close.onclick=null;this._btn_close.parent=null;this._btn_close=null;this._node.parentNode.removeChild(this._node);this._mask&&this._mask.parentNode.removeChild(this._mask);this._mask1.parentNode.removeChild(this._mask1);if(scope.$IE){this._node.outerHTML=null;this._mask&&(this._mask.outerHTML=null);this._mask1.outerHTML=null}this._node=null;this._btn_move.mousemoveHandler=null;this._btn_move.mouseupHandler=null;this._btn_move.resize=null;this._btn_move.scroll=null;this._btn_move.onmousedown=null;this._btn_move.parent=null;this._btn_move=null;this._mask&&(this._mask=null);this._distory=true},close:function(){if(this.onClose){this.onClose()}this.distory()},show:function(){this._node.style.visibility="visible";this._mask&&(this._mask.style.visibility="visible");this._mask1.style.visibility="visible";if(this.focusTarget){this.focusTarget.focus()}this.resize();this.setMiddle()},hidd:function(){if(this.onHidd){this.onHidd()}this._node.style.visibility="hidden";this._mask&&(this._mask.style.visibility="hidden");this._mask1.style.visibility="hidden"},setMask:function(z,hidden){$IE&&(this._mask=document.getElementsByTagName("BODY")[0].appendChild($C("iframe")));this._mask1=document.getElementsByTagName("BODY")[0].appendChild($C("div"));if(hidden){this._mask&&(this._mask.style.visibility="hidden");this._mask1.style.visibility="hidden"}if(this._mask){with(this._mask.style){position="absolute";width="100%";zIndex=parseInt(z)-2;top="0px";left="0px";border="0"}}with(this._mask1.style){position="absolute";backgroundColor="#000";width="100%";zIndex=parseInt(z)-1;top="0px";left="0px"}this._mask&&Core.Dom.opacity(this._mask,0);Core.Dom.opacity(this._mask1,15);this.resize()},setPosition:function(a,b){this._node.style.left=a+"px";this._node.style.top=b+"px"},resize:function(){if(this._mask1){var f=Core.System.getScrollPos(),b=Core.System.winSize(),a;a=(b.height+160)+"px";this._mask1.style.height=a;this._mask&&(this._mask.style.height=a);a=(f[0]-80)+"px";this._mask1.style.top=a;this._mask&&(this._mask.style.top=a);this.setMiddle()}},scroll:function(){var b=Core.System.getScrollPos(),f=this._mask1.offsetHeight,a;if((b[0]+f)<=b[3]){a=(b[0]-80)+"px";this._mask&&(this._mask.style.top=a);this._mask1.style.top=a}else{a=(b[3]-f)+"px";this._mask&&(this._mask.style.top=a);this._mask1.style.top=a}},setTitle:function(a){this._node_title.innerHTML=a},setMiddle:function(){var g=this._node.offsetWidth;var j=this._node.offsetHeight;var b=Core.System.winSize();var h=Core.System.getScrollPos();var f=(b.width-g)/2;var a=h[0]+(b.height-j)/2;this._node.style.left=f+"px";this._node.style.top=(a<20?20:a)+"px"},setSize:function(a,b){a=a?a+"px":"auto";b=b?b+"px":"auto";var f=this._node_body.style;f.width=a;f.height=b},_mousemoveHandler:function(){if(this._ondrag){var a=Core.Events.fixEvent(Core.Events.getEvent());if(a.target==this._btn_close){return}if($IE){var b=Core.System.getScrollPos();this._node.style.left=a.pageX-this._btn_move.offsetx+b[1]+"px";this._node.style.top=a.pageY-this._btn_move.offsety+b[0]+"px"}else{this._node.style.left=a.pageX-this._btn_move.offsetx+"px";this._node.style.top=a.pageY-this._btn_move.offsety+"px"}}},_mouserupHandler:function(){this._ondrag=false;if(this._btn_move.offsetx){this._btn_move.offsetx=null}if(this._btn_move.offsety){this._btn_move.offsety=null}}};App.alert=function(a,b){b=b?b:{};b.hasBtn=b.hasBtn==null?true:b.hasBtn;var m=b.title?b.title:$CLTMSG.CL0601;var r=b.ok_label?b.ok_label:$CLTMSG.CL0602;if(typeof a=="object"){a=App.getMsg(a.code,a.replace)}var p=b.ok?b.ok:null;var f={};f.width=b.width?b.width:360;f.height=b.height;f.zIndex=b.zIndex?b.zIndex:1000;f.hidden=b.hidden;var n=[];n.push('<div class="commonLayer2">');n.push('<div class="layerL"><img class="PY_ib PY_ib_#{icon}" src="'+scope.$BASEIMG+'style/images/common/PY_ib.gif" alt="" title="" align="absmiddle"/></div>');n.push('<div class="layerR">');n.push("	<strong>#{cnt}</strong>");n.push("</div>");n.push('<div class="clear"></div>');if(b.hasBtn){n.push('	<div class="MIB_btn">')}else{n.push('	<div class="MIB_btn" style="height:0;">')}n.push('	<a href="javascript:;" id="#{btn_id}" class="btn_normal"><em>'+r+"</em></a>");n.push("</div></div>");var g=new Utils.Template(n.join(""));var q="btn_"+(new Date()).getTime();var l=b.icon?b.icon:1;a=g.evaluate({cnt:a,icon:l,btn_id:q});var j=new App.Dialog.BasicDialog(m,a,f);var k=$E(q);var h=function(){if(p){try{p()}catch(s){}}p=null;k.onclick=null;k=null;j.close();Core.Events.removeEvent(document,o,"keyup");return false};var o=function(v){var t=window.event||v;var s;if(t.target){s=v.target}else{if(t.srcElement){s=v.srcElement}}if(s.nodeType==3){s=s.parentNode}if(s.tagName=="INPUT"||s.tagName=="TEXTAREA"){return}switch(t.keyCode){case 27:h();break}};k.onclick=h;Core.Events.addEvent(document,o,"keyup");if(f.hidden){this.focusTarget=k}else{k.focus()}return j};App.confirm=function(f,r){r=r?r:{};var w=r.title?r.title:$CLTMSG.CL0601;var v=r.ok_label?r.ok_label:$CLTMSG.CL0602;var m=r.cancel_label?r.cancel_label:$CLTMSG.CL0603;var b="";if(typeof f=="object"){b=f.des;if(f.code){f=App.getMsg(f.code,f.replace)}else{f=f.html}}if(f){f="<strong>"+f+"</strong>"}if(b){b='<div class="txt">'+b+"</div>"}var g=r.ok?r.ok:null;var p=r.cancel?r.cancel:null;var k={};k.width=r.width?r.width:390;k.height=r.height;k.zIndex=r.zIndex?r.zIndex:1000;k.hidden=r.hidden;var x='<div class="commonLayer2">                        	<div class="layerL"><img class="PY_ib PY_ib_#{icon}" src="'+scope.$BASEIMG+'style/images/common/PY_ib.gif" alt="" title="" align="absmiddle"/></div>                        	<div class="layerR">					#{cnt}			        	#{des}                                	<div class="MIB_btn">						<a href="javascript:;" id="ok_#{t}" class="btn_normal"><em>'+v+'</em></a>						<a href="javascrpt:;" id="cancel_#{t}" class="btn_notclick"><em>'+m+'</em></a>					</div>                            	</div>                            <div class="clear"></div>                        </div>';var q=new Utils.Template(x);var j=(new Date()).getTime();var n=r.icon?r.icon:4;f=q.evaluate({cnt:f,des:b,icon:n,t:j});var l=new App.Dialog.BasicDialog(w,f,k);var s=$E("ok_"+j);var o=$E("cancel_"+j);var h=function(z){var y=window.event||z;var t;if(y.target){t=z.target}else{if(y.srcElement){t=z.srcElement}}if(t.nodeType==3){t=t.parentNode}if(t.tagName=="INPUT"||t.tagName=="TEXTAREA"){return}switch(y.keyCode){case 27:a();break}};var a=function(){if(p){try{p()}catch(t){}}p=null;s.onclick=null;o.onclick=null;o=null;s=null;l.distory();l=null;Core.Events.removeEvent(document,h,"keyup");return false};s.onclick=function(){if(g){try{g()}catch(t){}}g=null;s.onclick=null;o.onclick=null;o=null;s=null;l.distory();l=null;Core.Events.removeEvent(document,h,"keyup");return false};o.onclick=a;if(r.ok_focus){if(r.hidden){this.focusTarget=s}else{s.focus()}}else{if(r.cancel_focus){if(r.hidden){this.focusTarget=o}else{o.focus()}}}Core.Events.addEvent(document,h,"keyup");return l};App.customDialog=function(n,f){f=f?f:{};var p=f.title?f.title:$CLTMSG.CL0601;var h={};h.width=f.width?f.width:360;h.height=f.height;h.zIndex=f.zIndex?f.zIndex:1000;h.hidden=f.hidden;var m='#{cnt} <div class="layerBtn" id="btn_#{t}"></div>';var l=new Utils.Template(m);var r=(new Date()).getTime();var b=l.evaluate({cnt:n,t:r});var o=new App.Dialog.BasicDialog(p,b,h);var q=$E("btn_"+r);var j=f.btns;for(var k=0;k<j.length;k++){var a=q.appendChild($C("a"));a.className="mBlogBtn";a.href="javascript:;";if(j[k].select){if(f.hidden){this.focusTarget=a}else{a.focus()}}a.innerHTML="<em>"+j[k].text+"</em>";a.nohide=f.btns[k].nohide;a.func=f.btns[k].func;a.onclick=function(){var s=this.nohide;if(this.func){try{this.func()}catch(t){}}if(!s){o.close()}return false}}function g(){var s=q.getElementsByTagName("A");for(var t in s){s[t].nohide=null;s[t].func=null;s[t].onclick=null}q=null}o.close=function(){o.onClose();g();o.distory()};return o};if(!App.getMsg){App.getMsg=function(b,a){alert("you should override this function! get more help from dialog.js ");return b}}App.getMsg=function(a,f){if(a===undefined){return""}if(typeof(a)=="object"){a=a.code}var g=$SYSMSG[a]||$CLTMSG[a]||("Error["+a+"]");if(f){var b=new Utils.Template(g);return b.evaluate(f)}else{return g}};Sina.pkg("Core.Class");Core.Class.extend=function(a,f){for(var b in f){a[b]=f[b]}return a};App.enterSubmit=function(options){options=Core.Class.extend({parent:document},options);var _p=$E(options.parent);var _checkEnter=function(){var _e=Core.Events.getEvent();var _k=_e.keyCode;var _act=this.getAttribute("act")||options.action||null;if(_k===13&&_act){try{if(typeof _act==="string"){eval("("+_act+")();")}else{if(typeof _act==="function"){_act()}}}catch(e){}}};if(_p){var els=_p.getElementsByTagName("input");for(var i=0,l=els.length;i<l;i++){var cur=els[i];var _t=cur.getAttribute("type").toLowerCase();if(_t==="text"||_t==="password"||_t==="checkbox"){if(cur.getAttribute("passenter")==="1"){continue}Core.Events.addEvent(cur,_checkEnter.bind2(cur),"keydown")}}}};Core.Dom.getStyle=function(a,f){switch(f){case"opacity":var h=100;try{h=a.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(g){try{h=a.filters("alpha").opacity}catch(g){}}return h/100;case"float":f="styleFloat";default:var b=a.currentStyle?a.currentStyle[f]:null;return(a.style[f]||b)}};if(!Core.Base.detect.$IE){Core.Dom.getStyle=function(a,f){if(f=="float"){f="cssFloat"}try{var b=document.defaultView.getComputedStyle(a,"")}catch(g){traceError(g)}return a.style[f]||b?b[f]:null}}Core.Dom.getXY=function(b){if((b.parentNode==null||b.offsetParent==null||Core.Dom.getStyle(b,"display")=="none")&&b!=document.body){return false}var a=null;var j=[];var f;var g=b.ownerDocument;f=b.getBoundingClientRect();var h=Core.System.getScrollPos(b.ownerDocument);return[f.left+h[1],f.top+h[0]];a=b.parentNode;while(a.tagName&&!/^body|html$/i.test(a.tagName)){if(Core.Dom.getStyle(a,"display").search(/^inline|table-row.*$/i)){j[0]-=a.scrollLeft;j[1]-=a.scrollTop}a=a.parentNode}return j};if(!$IE){Core.Dom.getXY=function(b){if((b.parentNode==null||b.offsetParent==null||Core.Dom.getStyle(b,"display")=="none")&&b!=document.body){return false}var a=null;var j=[];var f;var g=b.ownerDocument;j=[b.offsetLeft,b.offsetTop];a=b.offsetParent;var h=Core.Dom.getStyle(b,"position")=="absolute";if(a!=b){while(a){j[0]+=a.offsetLeft;j[1]+=a.offsetTop;if(scope.$SAFARI&&!h&&Core.Dom.getStyle(a,"position")=="absolute"){h=true}a=a.offsetParent}}if(scope.$SAFARI&&h){j[0]-=b.ownerDocument.body.offsetLeft;j[1]-=b.ownerDocument.body.offsetTop}a=b.parentNode;while(a.tagName&&!/^body|html$/i.test(a.tagName)){if(Core.Dom.getStyle(a,"display").search(/^inline|table-row.*$/i)){j[0]-=a.scrollLeft;j[1]-=a.scrollTop}a=a.parentNode}return j}}Core.Dom.addHTML=function(a,b){a.insertAdjacentHTML("BeforeEnd",b)};if(!$IE){Core.Dom.addHTML=function(b,f){var g=b.ownerDocument.createRange();g.setStartBefore(b);var a=g.createContextualFragment(f);b.appendChild(a)}}App.fixElement={init:function(f){var b=$E("mod_login_tip");if(!b){var a='<div class="errorLayer" id="mod_login_tip" style="visibility:hidden">				<div class="top"></div>			    <div class="mid">			    	<div class="close" onclick="App.fixElement.hidden()" id="mod_login_close">x</div>			        <div class="conn">			        		<p class="bigtxt" id="mod_login_title"></p>				            <span class="stxt" id="mod_login_content" style="padding:0px;"></span>			        </div>			    </div>			    <div class="bot"></div>			</div>			';if(f){f.innerHTML=a}else{Core.Dom.addHTML((document.body),a)}}b=$E("mod_login_tip");this.element=b},setHTML:function(f,b,a){this.init($E(a.wrap));$E("mod_login_title").innerHTML=f||"";if(b){$E("mod_login_content").innerHTML=b;$E("mod_login_content").style.display=""}else{$E("mod_login_content").style.display="none"}this.fixPostion(a||{});this.show()},fixPostion:function(h){var a=h.offsetX||0;var j=h.offsetY||0;var f=$E(h.ref);var g=this.element;var b=Core.Dom.getXY(f);g.style.position="absolute";if(!h.wrap){g.style.left=(b[0]+a)+"px";g.style.top=(b[1]+j-g.offsetHeight)+"px"}else{g.style.marginTop=(-g.offsetHeight+j)+"px";g.style.marginLeft=(a)+"px"}g.style.zIndex=h.zIndex||10;return g},show:function(){this.element&&(this.element.style.visibility="visible");if($E("mod_login_title")){$E("mod_login_title").className="bigtxt"}},hidden:function(){this.element=this.element||$E("mod_login_tip");this.element&&(this.element.style.visibility="hidden")}};Sina.pkg("Utils.Cookie");Utils.Cookie.getCookie=function(a){a=a.replace(/([\.\[\]\$])/g,"\\$1");var f=new RegExp(a+"=([^;]*)?;","i");var g=document.cookie+";";var b=g.match(f);if(b){return b[1]||""}else{return""}};Utils.Cookie.setCookie=function(b,j,f,m,h,a){var k=[];k.push(b+"="+escape(j));if(f){var l=new Date();var g=l.getTime()+f*3600000;l.setTime(g);k.push("expires="+l.toGMTString())}if(m){k.push("path="+m)}if(h){k.push("domain="+h)}if(a){k.push(a)}document.cookie=k.join(";")};Utils.Cookie.deleteCookie=function(a){document.cookie=a+"=;expires=Fri, 31 Dec 1999 23:59:59 GMT;"};App.setUsername=function(f){var b=$E(f);var a="";if(b){if(b.value==$CLTMSG.R01008||b.value==$CLTMSG.CR0001){a=Utils.Cookie.getCookie("un");if(a){b.value=unescape(a);return true}}}return false};window.sinaSSOConfig={feedBackUrl:"http://"+window.location.hostname+"/ajaxlogin.php",service:"miniblog",domain:"sina.com.cn",framelogin:"1",pageCharset:"utf-8",isCheckLoginState:false,customLoginCallBack:function(){},customUpdateCookieCallBack:function(){},entry:"miniblog"};App.initLoginInput=function(a,b){if(a){(function(f,g,h){g.style.color="#999999";g.alt=g.title=f;if(!h){g.value=f}if(!g.binded){Core.Events.addEvent(g,function(){g.style.color="#333333";if(g.value==f){g.value=""}},"focus");Core.Events.addEvent(g,function(){g.style.color="#999999";if(g.value==""){g.value=f;return false}try{if(window.sinaSSOController&&window.sinaSSOController.getServerTime){window.sinaSSOController.getServerTime(g.value)}}catch(j){}},"blur");a.binded=true}})((b?$SYSMSG[b]:$CLTMSG.R01008),a,a.value)}if(a&&(Core.String.trim(a.value)==""||a.value==((b?$SYSMSG[b]:$CLTMSG.R01008)))){App.setUsername(a)}};App.LoginAction=function(l){var k=Core.String.trim(l.name);var a=Core.String.trim(l.pwd);var f=l.remb?"7":"0";if(!k){l.error($CLTMSG.CL0801);return}else{if(!a){l.error($CLTMSG.CL0802);return}}var o=function(){var j=window.sinaSSOController;j.customLoginCallBack=function(q){if(q.result){j.customLoginCallBack=function(){};!App.__no_login_name__&&Utils.Cookie.setCookie("un",k,240,"/","t.sina.com.cn");l.succ()}else{l.error(q.reason,q.errno);a.value=""}j.customLoginCallBack=function(){};j=null};try{j.setLoginType(2);j.customInit=function(){j.setLoginType(2)}}catch(h){}setTimeout(function(){j.login(k,a,f)},100)};if(typeof window.sinaSSOController!="undefined"){o()}else{var n=document,b=n.createElement("script"),g=n.body,p=false;b.type="text/javascript";b.charset="UTF-8";b.src=scope.$BASECSS+"miniblog/static/js/sso.js";b.onload=b.onreadystatechange=function(){if(!p&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){p=true;b.onload=b.onreadystatechange=null;setTimeout(o,1000)}};try{g.appendChild(b)}catch(m){}}};Core.Events.fireEvent=function(b,f){b=$E(b)||b;if($IE){b.fireEvent("on"+f)}else{var a=document.createEvent("HTMLEvents");a.initEvent(f,true,true);b.dispatchEvent(a)}};Core.String.byteLength=function(b){if(typeof b=="undefined"){return 0}var a=b.match(/[^\x00-\x80]/g);return(b.length+(!a?0:a.length))};(function(b){b.checkEml=function(g){if(!/^[\.\w]([(\/)(\-)(\+).\w])*@([(\-)\w]{1,64}\.){1,7}[(\-)\w]{1,64}$/.test(g)){return false}else{if(g&&g!=""&&(g.indexOf("@")!=-1)){var f=g.indexOf("@");var h=g.substring(0,f);if(h.length>64||g.length>256){return false}else{return true}}}return false};b.checkEmpty=function(f){if(!f){return false}if(!(f instanceof String)){f=f.toString()}if((Core.String.trim(f)).length){return true}else{return false}};b.checkRealName=function(f){if(new RegExp("^[\u4e00-\u9fa5]{2,6}$").test(f)){return true}else{if(new RegExp("^[a-z]{2,20}$").test(f)){return true}else{if(new RegExp("^[a-z\u4e00-\u9fa5]{2,6}$")){return true}else{return false}}}};var a=function(f){return function(g){if(new RegExp(f).test(g)){return true}else{return false}}};b.checkQQNum=function(f){if(new RegExp("^[1-9][0-9]{4,11}$").test(f)){return true}else{if(b.checkEml(f)){return true}else{return false}}};b.checkUCNum=function(f){if(new RegExp("^[1-9][0-9]{4,9}$").test(f)){return true}else{return false}};b.checkMobile=a("^1(\\d{10})+$");b.checkTrName=a("^[\u4e00-\u9fa5]{2,6}$");b.checkNickSp=a("^[0-9a-zA-Z\u4e00-\u9fa5_]*$");b.checkNickSp2=a("^[0-9a-zA-Z\u4e00-\u9fa5_-]*$");b.checkTrueNm=a("^[a-zA-Z·s.\u4e00-\u9fa5]*$");b.checkSkype1=a("^[0-9a-zA-Z](-|w){3}(-|w)*$");b.checkSkype2=a("[!#@%&/'\"$^*()+=[]{}?;:<>|~`\x80-\xff\\]");b.checkImgURI=a("(.jpg|.gif|.png|.JPG|.GIF|.PNG)$");b.checkURL=a("^http:\\/\\/([\\w-]+(\\.[\\w-]+)+(\\/[\\w-   .\\/\\?%@&+=\\u4e00-\\u9fa5]*)?)?$");b.checkURLoose=a("^([^://])+\\:\\/\\/([^\\.]+)(\\.)(.+)([^\\.]+)$");b.checkMiniName=a("^[a-zA-Z0-9\u4e00-\u9fa5\uff00-\uffff\u0800-\u4e00\u3130-\u318f\uac00-\ud7a3_]*$");b.checkIdCard=a("^(([0-9]{15})|([0-9]{18})|([0-9]{17}(x|X)))$");b.checkSchool=function(f){if(new RegExp("'|\"|<|>|[|]","g").test(f)){return false}else{return true}};b.checkCompany=function(f){if(new RegExp("'|\"|<|>|[|]","g").test(f)){return false}else{return true}};b.checkMobileCheckCode=a("^[0-9a-z]{6}$");b.checkSepicalSymbol=function(f){if(new RegExp("[,|;|<|>]","g").test(f)){return true}else{return false}};b.checkPwdPower=function(j,h,g){var f=(j.length-h)/(g-h);var k=0;if(/[A-Z]/g.test(j)){k+=0.273}if(/[a-z]/g.test(j)){k+=0.273}if(/[0-9]/g.test(j)){k+=0.114}if(/[^0-9a-zA-Z]/g.test(j)){k+=0.34}return f/2+k/2};b.checkPwdPowerNew=function(j){function h(l){if(l>=65&&l<=90){return 2}if(l>=97&&l<=122){return 4}else{return 1}}function g(l){var m=0;for(i=0;i<3;i++){if(l&1){m++}l>>>=1}return m}var f=0;for(i=0;i<j.length;i++){f|=h(j.charCodeAt(i))}var k=g(f);if(j.length>=10){k++}switch(k){case 1:return 1;case 2:return 2;case 3:return 3;default:return 1}}})(App);App.timer=new function(){this.list={};this.refNum=0;this.clock=null;this.allpause=false;this.delay=25;this.add=function(a){if(typeof a!="function"){throw ("The timer needs add a function as a parameters")}var b=""+(new Date()).getTime()+(Math.random())*Math.pow(10,17);this.list[b]={fun:a,pause:false};if(this.refNum<=0){this.start()}this.refNum++;return b};this.remove=function(a){if(this.list[a]){delete this.list[a];this.refNum--}if(this.refNum<=0){this.stop()}};this.pause=function(a){if(this.list[a]){this.list[a]["pause"]=true}};this.play=function(a){if(this.list[a]){this.list[a]["pause"]=false}};this.stop=function(){clearInterval(this.clock);this.clock=null};this.start=function(){var a=this;this.clock=setInterval(function(){a.loop.apply(a)},this.delay)};this.loop=function(){for(var a in this.list){if(!this.list[a]["pause"]){this.list[a]["fun"]()}}}};App.animation={vibrate:function(l,p,f,j,r,q){var h=2*Math.PI*Math.sqrt(f/j);var a=p*Math.sqrt(f/j);var b=Math.ceil(h*100/l);var o=0;var g=[];while(a>r){g.push(a*Math.sin((o/b)*2*Math.PI));o++;o=o%b;a=a-q}return g},accelerate:function(m,j,k,b){var f=[];var a=0;while(true){var n=b;b=n+m*k/10;a=a+m*(b+n)/20;if(a<j){f.push(a)}else{break}}return f},curtain:function(j,f,g){var b=[f];var a=f;while(a>1){a=a*g;b.unshift(a)}return b},speed:function(k,j,a){var g=Math.ceil(j/a);var l=Math.ceil(g*100/k);var b=[];for(var f=0;f<l;f++){b.push((f+1)*j/l)}return b},circle:function(j,a,b){var h=2*Math.PI*a/b;var k=Math.ceil(h*100/j);var f=[];for(var g=0;g<k;g++){f.push({x:a*Math.sin(((g+1)/k)*2*Math.PI),y:a*Math.cos(((g+1)/k)*2*Math.PI)})}return f},taccelerate:function(j,g,f){var k=Math.ceil(f*100/j);var a=[];for(var b=0;b<k;b++){a.push(Math.pow((b+1)/k,2)*g)}return a}};(function(n){var q=false;var j=10;var b=20;var h=10;var t=0;var r=0;var f=0;var o=0;var a=0.4;n.curtain={droop:function(l,s,w){if(q){return false}q=true;var p=l.style.overflow;l.style.visibility="hidden";l.style.display="block";l.style.overflow="hidden";var m=parseInt(l.offsetHeight);var g=n.animation.curtain(n.timer.delay,m,a);var v=0;var k=n.timer.add(function(){if(v>=g.length){n.timer.remove(k);l.style.height=m+"px";l.style.overflow=p;q=false;if(typeof s=="function"){s()}return false}l.style.height=g[v]+"px";l.scrollTop=(m-g[v]);v++});l.style.height="0px";l.style.visibility="visible";return true},raise:function(m,k,y){if(q){return false}q=true;var g=m.style.overflow;m.style.overflow="hidden";var s=parseInt(m.offsetHeight);var l=[];if(r!==0){var z=n.animation.speed(n.timer.delay,s*f,j/f);for(var p=0,v=z.length;p<v;p++){l.push(s+z[p])}}var x=n.animation.speed(n.timer.delay,s*(1+f),j*10);for(var p=0,v=x.length;p<v;p++){l.push(x[v-p-1])}var w=0;var A=n.timer.add(function(){if(w>=l.length){n.timer.remove(A);m.style.display="none";m.style.height=s+"px";m.style.overflow=g;q=false;if(typeof k=="function"){k()}return false}m.style.height=l[w]+"px";m.scrollTop=(s-l[w]);w++})},setting:function(g){j=g.g||j;b=g.m||b;h=g.k||h;t=g.s||t;r=g.u||r;f=g.l||f}}})(App);App.promptTip=function(a,f,l,h){var g={ask:4,wrong:1,error:2,ok:3};h=h?h:"ok";var b=(typeof a=="object")?App.getMsg(a,f):a;var k='		<div class="PY_clew">	            <div class="PY_clewcon">	                <div class="icon"><img align="absmiddle" class="PY_ib PY_ib_'+g[h]+'" src="'+scope.$BASEIMG+'style/images/common/PY_ib.gif" alt="" title=""/></div>	                <div class="txt bold">	                    '+b+'	                </div>	                <div class="clear"></div>	            </div>	    </div>';var j=$E(l?l:"system_information");j.innerHTML=k;j.style.display="";App.curtain.droop(j);window.scrollTo(0,0);App.promptTip.close=(function(m){return function(){if(m){App.curtain.raise(m)}}})(j);setTimeout(function(){App.promptTip.close()},2000)};(function(a){var b=Core.Events.addEvent;var f=Core.String.trim;a.checkForm=function(j){var g={};var h={};g.add=function(m,o,l,k,n){h[m]=a.checkItem(m,o,l,j,k,n)};g.check=function(p){var n=true;if(p){for(var o=0,l=p.length;o<l;o+=1){if(h[p[o]]){if(!h[p[o]].check()){h[p[o]].changeUI(false);n=false}}}}else{for(var m in h){if(!h[m].check()){h[m].changeUI(false);n=false}}}return n};g.toggleError=function(n,l){for(var m=0,k=n.length;m<k;m+=1){if(h[n[m]]){h[n[m]].changeUI(l);return true}}return false};g.showError=function(k){return this.toggleError(k,false)};g.hideError=function(k){this.toggleError(k,true)};return g};a.checkItem=function(o,m,l,p,g,n){var k={};if(n===undefined){if(m.type==="text"||m.type==="password"||m.tagName==="TEXTAREA"){n="blur"}else{if(m.tagName==="SELECT"){n="change"}else{n="click"}}}if(g===undefined){g=function(q){if(f(q.value)===""){return false}else{return true}}}k.changeUI=function(q){p(o,q,m,l)};k.check=function(){var q=g(m);p(o,q,m,l);return q};k.getAttr=function(){};if(m.tagName!=="SELECT"&&m.length){for(var h=0,j=m.length;h<j;h+=1){b(m[h],function(){k.check()},n)}}else{b(m,function(){k.check()},n)}return k}})(App);Core.Array.findit=function(a,f){var b=-1;Core.Array.foreach(a,function(h,g){if(f==h){b=g}});return b};Core.Array.uniq=function(f){var b=[];for(var g=0;g<f.length;g++){var a=f[g];if(Core.Array.findit(b,a)==-1){b.push(a)}}return b};App.nameValue=function(m,b){var l=m.getAttribute("name");var g=m.getAttribute("type");var k=m.tagName;var n={name:l,value:""};var h=function(o){if(o===false){n=false;return false}if(!n.value){n.value=Core.String.trim(o||"")}else{n.value=[Core.String.trim(o||"")].concat(n.value)}};if(!m.disabled&&l){switch(k){case"INPUT":if(g=="radio"||g=="checkbox"){if(m.checked){h(m.value)}else{h(false)}}else{if(g=="reset"||g=="submit"||g=="image"){h(false)}else{h(b?(m.value||false):m.value)}}break;case"SELECT":if(m.multiple){var a=m.options;for(var f=0,j=a.length;f<j;f++){if(a[f].selected){h(a[f].value)}}}else{h(m.value)}break;case"TEXTAREA":h(b?(m.value||m.getAttribute("value")||false):(m.value||m.getAttribute("value")));break;case"BUTTON":default:h(m.value||m.getAttribute("value")||m.innerHTML||false)}}else{h(false)}return n};App.htmlToJson=function(l,b,g){var o={};b=Core.Array.uniq(b||["INPUT","TEXTAREA","BUTTON","SELECT"]);if(!l||!b){return false}var a=App.nameValue;for(var h=0,k=b.length;h<k;h++){var n=l.getElementsByTagName(b[h]);for(var f=0,m=n.length;f<m;f++){var p=a(n[f],g);if(!p){continue}if(o[p.name]){if(o[p.name] instanceof Array){o[p.name]=o[p.name].concat(p.value)}else{o[p.name]=[o[p.name]].concat(p.value)}}else{o[p.name]=p.value}}}return o};App.jsonToQuery=function(j,f){var l=[];var h=function(k){k=Core.String.trim(k.toString());if(f){return encodeURIComponent(k)}else{return k}};if(typeof j=="object"){for(var b in j){if(j[b] instanceof Array){for(var g=0,a=j[b].length;g<a;g++){l.push(b+"="+h(j[b][g]))}}else{l.push(b+"="+h(j[b]))}}}if(l.length){return l.join("&")}else{return""}};(function(a){a.includeJson=function(g,f){for(var b in g){if(typeof g[b]==Object){if(g[b] instanceof Array){if(f[b]===undefined||f[b].join("|")!=g[b].join("|")){return false}}else{if(typeof f[b]==Object){return argument.callee(g[b],f[b])}else{return false}}}else{if(f[b]===undefined||f[b]!=g[b]){return false}}}return true};a.compareJson=function(f,b){if(a.includeJson(f,b)&&a.includeJson(b,f)){return true}else{return false}}})(App);App.setPassword=function(g,b){var a=$E(g);var f=$E(b);if(a){if(a.value==""){a.style.display="none";f.style.display="";f.value=$SYSMSG.M00902}}Core.Events.addEvent(f,function(){f.style.display="none";a.style.display="";a.focus();return false},"focus");Core.Events.addEvent(a,function(){if(a.value==""){if(a.tagName=="INPUT"&&(a.type=="password"||a.getAttribute("type")=="password")){a.style.display="none";f.value=$SYSMSG.M00902;f.style.display="";Core.Events.fireEvent(f,"blur")}}return false},"blur");return false};(function(a){var b=function(f,g){this.box=null;this.domList={};this.actList={};if(g){this.box=g}else{this.box=document.createElement("DIV")}if(f){this.makeTree(this.box,f)}};(function(f){f.init=function(){};f.disp=function(){};f.NODEMAP={AREA:"MAP",CAPTION:"TABLE",COL:"TABLE|COLGROUP",COLGROUP:"TABLE",LEGEND:"FIELDSET",OPTGROUP:"SELECT",OPTION:"SELECT",PARAM:"OBJECT",TBODY:"TABLE",TD:"TR",TFOOT:"TABLE",TH:"TABLE|TR",THEAD:"TABLE",TR:"TBODY|THEAD|TH|TFOOT"};f.create=function(j,h){var l=null;j=j.toUpperCase();if(j=="TEXT"){l=document.createTextNode(h)}else{l=document.createElement(j)}if(typeof h=="object"){for(var g in h){switch(g){case"class":l.className=h[g];break;case"id":this.domList[h[g]]=l;break;case"action":if(this.actList[h[g]]){this.actList[h[g]]=[l].concat(this.actList[h[g]])}else{this.actList[h[g]]=l}break;case"style":l.style.cssText=h[g];break;case"innerHTML":l.innerHTML=h[g];break;case"nodeValue":l.nodeValue=h[g];break;default:l.setAttribute(g,h[g])}}}return l};f.check=function(l,m){var j=this.NODEMAP[m.tagName];if(this.NODEMAP[m.tagName]){var k=j.split("|");for(var h=0,g=k.length;h<g;h++){if(l.tagName==k[h]){return true}}return false}return true};f.append=function(h,j){j.tagName=j.tagName.toLocaleUpperCase();if(!this.check(h,j)){return false}var g=this.create(j.tagName,j.attributes);h.appendChild(g);return g};f.makeTree=function(k,h){for(var j=0,g=h.length;j<g;j++){var l=this.append(k,h[j]);if(!l){alert("tree wrong!!!");return false}if(h[j].childList&&h[j].childList.length){this.makeTree(l,h[j].childList)}}}})(b.prototype);a.Builder=b;a.domBuilder=new b()})(App);(function(g){var h=[{tagName:"SPAN",attributes:{"class":"zhuolu_isnote",id:"box",style:"width: 170px; position: absolute; z-index: 251; top: 73px; left: 320px;"}}];var a=new App.Builder(h);a.box=a.domList.box;a.box.style.display="none";a.box.style.position="absolute";a.box.style.zIndex=1251;var b='<span class="iswhat isok"><img class="tipicon tip3" src="'+scope.$BASEIMG+'style/images/common/transparent.gif" alt="" title=""></span>';var f='<span class="iswhat iserro"><img class="tipicon tip2" src="'+scope.$BASEIMG+'style/images/common/transparent.gif" alt="" title="" /><em>${error}</em></span>';g.checkFormUI4=function(k,j,n,l){if(n.errorKey&&n.errorKey!==k&&j){return false}else{try{if(j){n.errorKey=false;l.style.display="";l.innerHTML=b;if(n.value!==undefined&&(!n.value.length||n.noRightIcon)){l.style.display="none";return false}}else{n.errorKey=k;l.style.display="";l.innerHTML=f.replace("${error}",$SYSMSG[k])}}catch(m){}}};g.bindFormTips4=function(l){document.body.appendChild(a.box);for(var k=0,j=l.length;k<j;k+=1){(function(m){Core.Events.addEvent(l[m]["el"],function(){var o=l[m]["el"].parentNode;var p=Core.Dom.getXY(o);if(!l[m]["el"].value.length&&l[m]["key"]&&$SYSMSG[l[m]["key"]]){a.domList.box.innerHTML="<em>"+$SYSMSG[l[m]["key"]]+"</em>";a.box.style.top=(p[1]+10)+"px";var n=parseInt(o.getAttribute("positionLeft"))||($IE?7:9);if(n){a.box.style.left=p[0]+o.offsetWidth+n+"px"}else{a.box.style.left=p[0]+o.offsetWidth+"px"}a.box.style.display="";if(l[m]["errorPos"]){l[m]["errorPos"].style.display="none"}}},"focus");Core.Events.addEvent(l[m]["el"],function(){a.box.style.display="none"},"blur")})(k)}}})(App);App.TextareaUtils=(function(){var a={},b=document.selection;a.selectionStart=function(g){if(!b){return g.selectionStart}var l=b.createRange(),k,f,j=0;var h=document.body.createTextRange();h.moveToElementText(g);for(j;h.compareEndPoints("StartToStart",l)<0;j++){h.moveStart("character",1)}return j};a.selectionBefore=function(f){return f.value.slice(0,a.selectionStart(f))};a.selectText=function(f,g,h){f.focus();if(!b){f.setSelectionRange(g,h);return}var j=f.createTextRange();j.collapse(1);j.moveStart("character",g);j.moveEnd("character",h-g);j.select()};a.insertText=function(h,g,k,j){h.focus();j=j||0;if(!b){var l=h.value,n=k-j,f=n+g.length;h.value=l.slice(0,n)+g+l.slice(k,l.length);a.selectText(h,f,f);return}var m=b.createRange();m.moveStart("character",-j);m.text=g};a.getCursorPos=function(j){var h=0;if($IE){j.focus();var f=null;f=b.createRange();var g=f.duplicate();g.moveToElementText(j);g.setEndPoint("EndToEnd",f);j.selectionStart=g.text.length-f.text.length;j.selectionEnd=j.selectionStart+f.text.length;h=j.selectionStart}else{if(j.selectionStart||j.selectionStart=="0"){h=j.selectionStart}}return h};a.getSelectedText=function(g){var h="";var f=function(j){if(j.selectionStart!=undefined&&j.selectionEnd!=undefined){return j.value.substring(j.selectionStart,j.selectionEnd)}else{return""}};if(window.getSelection){h=f(g)}else{h=b.createRange().text}return h};a.setCursor=function(h,j,g){j=j==null?h.value.length:j;g=g==null?0:g;h.focus();if(h.createTextRange){var f=h.createTextRange();f.move("character",j);f.moveEnd("character",g);f.select()}else{h.setSelectionRange(j,j+g)}};a.unCoverInsertText=function(j,l,h){h=(h==null)?{}:h;h.rcs=h.rcs==null?j.value.length:h.rcs*1;h.rccl=h.rccl==null?0:h.rccl*1;var k=j.value,f=k.slice(0,h.rcs),g=k.slice(h.rcs+h.rccl,k==""?0:k.length);j.value=f+l+g;this.setCursor(j,h.rcs+(l==null?0:l.length))};return a})();(function(){var a=function(f,b){var g;try{if(typeof b!="undefined"){for(g in f){if(b[g]!=null){f[g]=b[g]}}}}finally{g=null;return f}};Core.Base.parseParam=a})();Utils.Io.JsLoad={};(function(){function a(m,j){b(m,j);var l=m.urls;var h,g=l.length;for(h=0;h<g;h++){var k=$C("script");k.src=l[h].url;k.charset=l[h].charset;k[Core.Base.detect.$IE?"onreadystatechange":"onload"]=function(){if(Core.Base.detect.$MOZ||this.readyState.toLowerCase()=="complete"||this.readyState.toLowerCase()=="loaded"){j.script_loaded_num++}};document.getElementsByTagName("head")[0].appendChild(k)}}function b(o,k){var n=o.urls;var q=o.GET;var l,m=n.length;var p,h,g,j;for(l=0;l<m;l++){j=parseInt(Math.random()*100000000);h=new Utils.Url(n[l].url);for(p in q){if(o.noencode==true){h.setParam(p,q[p])}else{h.setParam(p,Core.String.encodeDoubleByte(q[p]))}}g=h.getParam("varname")||"requestId_"+j;if(o.noreturn!=true){h.setParam("varname",g)}k.script_var_arr.push(g);n[l].url=h.toString();n[l].charset=n[l].charset||o.charset}}function f(j,k){var h={urls:[],charset:"utf-8",noreturn:false,noencode:true,timeout:-1,POST:{},GET:{},onComplete:null,onException:null};var g={script_loaded_num:0,is_timeout:false,is_loadcomplete:false,script_var_arr:[]};h.urls=typeof j=="string"?[{url:j}]:j;Core.Base.parseParam(h,k);a(h,g);(function(){if(h.noreturn==true&&h.onComplete==null){return}var l,m=[];if(g.script_loaded_num==h.urls.length){g.is_loadcomplete=true;if(h.onComplete!=null){for(l=0;l<g.script_var_arr.length;l++){m.push(window[g.script_var_arr[l]])}if(g.script_var_arr.length<2){h.onComplete(m[0])}else{h.onComplete(m)}}return}if(g.is_timeout==true){return}setTimeout(arguments.callee,50)})();if(h.timeout>0){setTimeout(function(){if(g.is_loadcomplete!=true){if(h.onException!=null){h.onException()}g.is_timeout=true}},h.timeout)}}Utils.Io.JsLoad.request=function(g,h){new f(g,h)}})();(function(){var j=scope.$lang;var b=scope.$lang;var g;var a;var f=false;App.changeLanguage=function(l,k){if(b==l){return false}b=l;var m=scope.$BASEJS+$CONFIG.$product+"/js/lang_"+l+".js"+Boot.getJsVersion();Utils.Io.JsLoad.request(m,{onComplete:function(){if(k){k();return false}if(scope.forbidrefreshD){f=true;scope.forbidrefreshD.close()}f=false;setTimeout(function(){g&&a&&App.forbidrefresh(g,a)},10)},onException:function(){f=false},timeout:30000})};var h=function(m,l){var k=['<a href="javascript:;" onClick="App.changeLanguage(\''+l+"');return false;\">",m,"</a>"];if(l==b){k[0]=k[2]=""}return k.join("")};App.forbidrefresh=function(n,m){g=n;a=m;if(!scope.forbidrefreshD){var l='<div class="auth_code">						<div class="auth_img"><img id="door2img" width="450" height="50" /><div style="text-align:right;padding:3px 0 0 0"><a id="changeyzm" href="javascript:void(0);" onclick="App.refreshCheckCode2();return false;">'+$CLTMSG.CC2103+'</a></div></div>						<p class="tips">'+$CLTMSG.CC2104+'</p>						<div class="code_input" id="yzm_input_div"><input id="yzm_input" type="text" value="" /></div>						<p id="yzm_error" class="errorTs error_color" style="display:none;">'+$CLTMSG.CC3301+'</p>						<p class="btn"><a class="btn_normal" href="javascript:void(0);" id="auth_submit"><em>'+$CLTMSG.CC2105+'</em></a> <a class="btn_normal" href="javascript:void(0);" id="door2Cancel"><em>'+$CLTMSG.CL0603+'</em></a></p>			<div class="change_lan">'+h("中文简体","zh")+'<em class="line">|</em>'+h("中文繁體","zh-tw")+'<!--<em class="line">|</em>'+h("English","en")+"--></div>			</div>";scope.forbidrefreshD=new App.Dialog.BasicDialog($SYSMSG.MR0050,l,{zIndex:1200,hidden:true,hiddClose:false,width:510});scope.forbidrefreshD.onClose=function(){scope.forbidrefreshD=null;if(!f&&j){App.changeLanguage(j,function(){})}};var q=Core.Events.addEvent;var r=Core.String.trim;var o=Core.Events.fireEvent;var p={img_yzm2:$E("door2img"),btn_chgyzm:$E("changeyzm"),input_yzm:$E("yzm_input"),errinfo_yzm:$E("yzm_error"),submit:$E("auth_submit"),door2Cancel:$E("door2Cancel"),yzm_input_div:$E("yzm_input_div"),cb:function(s){scope.forbidrefreshD.close();scope.forbidrefreshD=null;scope.doorretcode=s||"";n()},ecb:function(s){if(s.code!="R01409"){scope.forbidrefreshD.close();scope.forbidrefreshD=null}else{App.refreshCheckCode2();p.errinfo_yzm.style.display="";p.errinfo_yzm.innerHTML=$CLTMSG.CC3301}},url:m||"/attention/aj_addfollow.php"};p.errinfo_yzm.style.display="none";var k=function(){p.door=encodeURIComponent(r(p.input_yzm.value))||r(p.input_yzm.value);App.doRequest({door:p.door},p.url,p.cb||function(){},p.ecb||function(){})};q(p.submit,function(){if(r(p.input_yzm.value)==""){p.errinfo_yzm.style.display="";p.errinfo_yzm.innerHTML=$SYSMSG.MR0050;return false}k();return false},"click");q(p.door2Cancel,function(){scope.forbidrefreshD.close();return false},"click");q(p.input_yzm,function(){p.errinfo_yzm.style.display="none"},"focus");App.enterSubmit({parent:p.yzm_input_div,action:function(){o(p.submit,"click")}})}App.refreshCheckCode2();if($E("yzm_error")){$E("yzm_error").style.display="none"}if($E("yzm_input")){$E("yzm_input").value=""}scope.forbidrefreshD.show()};App.refreshCheckCode2=function(){setTimeout(function(){if($E("door2img")){var k="pin1.php";if(scope.$pageid=="registermail"){k="pin.php"}$E("door2img").src="/pincode/"+k+"?lang="+b+"&r="+((new Date()).getTime())+"&rule";$E("door2img").style.display=""}},100)}})();Core.String.leftB=function(f,a){var b=f.replace(/\*/g," ").replace(/[^\x00-\xff]/g,"**");f=f.slice(0,b.slice(0,a).replace(/\*\*/g," ").replace(/\*/g,"").length);if(Core.String.byteLength(f)>a){f=f.slice(0,f.length-1)}return f};(function(){var l=navigator.userAgent.toLowerCase();var k=/msie/.test(l);var v=/gecko/.test(l);var o=/safari/.test(l);function r(x){return typeof(x)=="string"?q.document.getElementById(x):x}var b=function(x){x=x||document;return[Math.max(x.documentElement.scrollTop,x.body.scrollTop),Math.max(x.documentElement.scrollLeft,x.body.scrollLeft),Math.max(x.documentElement.scrollWidth,x.body.scrollWidth),Math.max(x.documentElement.scrollHeight,x.body.scrollHeight)]};var j=function(x,z){switch(z){case"opacity":var B=100;try{B=x.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(A){try{B=x.filters("alpha").opacity}catch(A){}}return B;case"float":z="styleFloat";default:var y=x.currentStyle?x.currentStyle[z]:null;return(x.style[z]||y)}};if(v){j=function(x,z){if(z=="float"){z="cssFloat"}try{var y=document.defaultView.getComputedStyle(x,"")}catch(A){traceError(A)}return x.style[z]||y?y[z]:null}}var s=function(y){if((y.parentNode==null||y.offsetParent==null||j(y,"display")=="none")&&y!=document.body){return false}var x=null;var C=[];var z;var A=y.ownerDocument;z=y.getBoundingClientRect();var B=b(y.ownerDocument);return[z.left+B[1],z.top+B[0]];x=y.parentNode;while(x.tagName&&!/^body|html$/i.test(x.tagName)){if(j(x,"display").search(/^inline|table-row.*$/i)){C[0]-=x.scrollLeft;C[1]-=x.scrollTop}x=x.parentNode}return C};if(v){s=function(y){if((y.parentNode==null||y.offsetParent==null||j(y,"display")=="none")&&y!=document.body){return false}var x=null;var C=[];var z;var A=y.ownerDocument;C=[y.offsetLeft,y.offsetTop];x=y.offsetParent;var B=j(y,"position")=="absolute";if(x!=y){while(x){C[0]+=x.offsetLeft;C[1]+=x.offsetTop;if(o&&!B&&j(x,"position")=="absolute"){B=true}x=x.offsetParent}}if(o&&B){C[0]-=y.ownerDocument.body.offsetLeft;C[1]-=y.ownerDocument.body.offsetTop}x=y.parentNode;while(x.tagName&&!/^body|html$/i.test(x.tagName)){if(j(x,"display").search(/^inline|table-row.*$/i)){C[0]-=x.scrollLeft;C[1]-=x.scrollTop}x=x.parentNode}return C}}var h=function(){return window.event};if(v){h=function(){var y=arguments.callee.caller;var x;var z=0;while(y!=null&&z<40){x=y.arguments[0];if(x&&(x.constructor==Event||x.constructor==MouseEvent)){return x}z++;y=y.caller}return x}}var t=function(){var x=h();x.cancelBubble=true;x.returnValue=false};if(v){t=function(){var x=h();x.preventDefault();x.stopPropagation()}}Function.prototype.bind3=function(z,y){y=y==null?[]:y;var x=this;return function(){x.apply(z,y)}};function g(B,A,z,x){var B=r(B);if(typeof x=="undefined"){x=false}if(typeof z=="undefined"){z="click"}if(B.addEventListener){B.addEventListener(z,A,x);return true}else{if(B.attachEvent){var y=B.attachEvent("on"+z,A);return true}else{B["on"+z]=A}}}var w;var a=parseInt(Math.random()*100);var f=[];var m=-1;var n="";var q=window;var p={overfcolor:"#999",overbgcolor:"#e8f4fc",outfcolor:"#000000",outbgcolor:"",menuStatus:{"sina.com":true,"163.com":true,"qq.com":true,"126.com":true,"vip.sina.com":true,"sina.cn":true,"hotmail.com":true,"gmail.com":true,"sohu.com":true,"yahoo.cn":true,"139.com":true,"wo.com.cn":true,"189.cn":true}};p.createNode=function(){var x=q.document;var y=x.createElement("div");y.innerHTML='<ul class="passCard" id="sinaNote" style="display:none;"></ul>';x.body.appendChild(y)};p.arrowKey=function(x){if(x==38){if(m<=0){m=f.length}m--;p.selectLi(m)}if(x==40){if(m>=f.length-1){m=-1}m++;p.selectLi(m)}};p.showList=function(I){n="";var M=h().keyCode;if(M==38||M==40){p.arrowKey(M);return false}if(!r("sinaNote")){p.createNode()}var A=r(I).value;var z={};var E=A.indexOf("@");var J="";var D="";if(E>-1){J=A.substr(E+1);D=A.substr(0,E)}f=[];m=0;f[f.length]="sinaNote_MenuItem_Title_"+a;for(var O in this.menuStatus){this.menuStatus[O]=true;if(J!=""&&J!=O.substr(0,J.length)){this.menuStatus[O]=false}else{f[f.length]="sinaNote_MenuItem_"+O+"_"+a}}var G='<li class="note">'+$CLTMSG.CC0301+"</li>";G+='<li id="sinaNote_MenuItem_Title_'+a+'">'+A+"</li>";var L;for(var O in this.menuStatus){if(this.menuStatus[O]==true){if(D==""){L=A+"@"+O}else{L=D+"@"+O}G+='<li id="sinaNote_MenuItem_'+O+"_"+a+'" title="'+L+'">'+L+"</li>"}}r("sinaNote").innerHTML=G;for(var H=0;H<A.length;H++){if(A.charCodeAt(H)<160){r("sinaNote").style.display="";this.selectList(I)}else{this.hideList()}}var x=r(I);var y=r("sinaNote");var C=0;var F=0;var B;if(q!=window){B=s(window.frameElement);C=B[0];F=B[1]}var K=x.offsetWidth;if(K<200){K=200}y.style.width=K-2+"px";var N=s(x);y.style.left=(N[0]-(k?2:-1)+C)+"px";y.style.top=(N[1]+x.offsetHeight-(k?2:-1)+F)+"px"};p.selectList=function(z){var x=r("sinaNote").getElementsByTagName("li");for(var y=1;y<x.length;y++){x[1].style.backgroundColor=p.overbgcolor;x[1].style.color=p.outfcolor;x[y].onmousedown=function(){var A=this.innerHTML;if(A.indexOf($CLTMSG.CC0302)>-1){var B=A.split("@");r(z).value=B[0]}else{r(z).value=this.innerHTML}t()};x[y].onmouseover=function(){if(y!=1){x[1].style.backgroundColor=p.outbgcolor;x[1].style.color=p.overfcolor}this.style.backgroundColor=p.overbgcolor;this.style.color=p.outfcolor};x[y].onmouseout=function(){this.style.backgroundColor=p.outbgcolor;this.style.color=p.overfcolor;x[1].style.backgroundColor=p.overbgcolor;x[1].style.color=p.outfcolor}}};p.selectLi=function(x){var z;if(r("sinaNote_MenuItem_Title_"+a)){r("sinaNote_MenuItem_Title_"+a).style.backgroundColor=p.outbgcolor;r("sinaNote_MenuItem_Title_"+a).style.color=p.overfcolor;for(var y=0;y<f.length;y++){z=r(f[y]);z.style.backgroundColor=p.outbgcolor;z.style.color=p.overfcolor}r(f[x]).style.backgroundColor=p.overbgcolor;r(f[x]).style.color=p.outfcolor;n=r(f[x]).innerHTML}};p.hideList=function(){if(!r("sinaNote")){p.createNode()}r("sinaNote").style.display="none"};p.init=function(B,z,x,A){for(var y in z){this[y]=z[y]}g(document,p.hideList,"click");g(B,p.hideList,"blur");g(B,p.showList.bind3(this,[B]),"keyup");g(B,function(E){var D=h().keyCode;if(D==13||D==9){if(n!=""){var C=n;if(C.indexOf($CLTMSG.CC0302)>-1){var F=C.split("@");B.value=F[0]}else{B.value=n}}try{if(x!=null&&x.style.display!=="none"){x.focus()}}catch(E){}t()}},"keydown");if(A){q=A}};window.passcardOBJ=p})();(function(){App.getMsg=function(msgCode,replace){if(msgCode===undefined){return""}if(typeof(msgCode)=="object"){msgCode=msgCode.code}var msg=$SYSMSG[msgCode]||$CLTMSG[msgCode]||("Error["+msgCode+"]");if(replace){var tmp=new Utils.Template(msg);return tmp.evaluate(replace)}else{return msg}};function setMask(z,hidden){var _mask1=document.getElementsByTagName("BODY")[0].appendChild($C($IE?"iframe":"div"));var $w=window,$d=$w.document,$e=$d.documentElement||{};with(_mask1.style){position="absolute";backgroundColor="#000";width="100%";zIndex=parseInt(z)-1;top="0px";left="0px"}Core.Dom.opacity(_mask1,15);_mask1.style.height=Math.max($e.clientHeight,$e.scrollHeight,$e.offsetHeight,$d.body.scrollHeight,$d.body.offsetHeight)+"px";return _mask1}function setMiddle(_node){var ow=_node.offsetWidth;var oh=_node.offsetHeight;var win_s=Core.System.winSize();var scroll_pos=Core.System.getScrollPos();var tx=(win_s.width-ow)/2;var ty=scroll_pos[0]+(win_s.height-oh)/2;_node.style.left=tx+"px";_node.style.top=(ty<20?20:ty)+"px"}function iniRegForm(rnd){var _box=$E("mod_reg_information_box"+rnd);var _submit=$E("mod_reg_submit"+rnd);var _username=$E("mod_reg_username"+rnd);var _password=$E("mod_reg_password"+rnd);var _password2=$E("mod_reg_password2"+rnd);var _door=$E("mod_reg_door"+rnd);var _after=$E("mod_reg_after"+rnd);var _red_username=$E("mod_red_reg_username"+rnd);var _red_password=$E("mod_red_reg_password"+rnd);var _red_password2=$E("mod_red_reg_password2"+rnd);var _red_door=$E("mod_red_reg_door"+rnd);var _red_after=$E("mod_red_reg_after"+rnd);var _addEvent=Core.Events.addEvent;var _trim=Core.String.trim;var _html2json=App.htmlToJson;var _compjson=App.compareJson;var _checkMail=App.checkEml;var _alert=App.alert;var _removeEvent=Core.Events.removeEvent;var _oData=_html2json(_box);var popWin=null;var success=function(json){};var error=function(json){if(json){if(!App.modCheckInfo.showError([json.code])){_alert($SYSMSG[json.code])}}else{_alert($SYSMSG[json.code])}};var errorInput=function(input,red,code){red.innerHTML=$SYSMSG[code];red.style.display=""};var rightInput=function(input,red){red.style.display="none"};var checkFunction={MR0001:function(el){el.value=_trim(el.value);if(el.value){return true}else{return false}},MR0002:function(el){if(App.modCheckInfo.check(["MR0001"])){if(_checkMail(el.value)){return true}else{return false}}else{return true}},MR0007:function(el){if(!_trim(el.value).length){return true}if(App.modCheckInfo.check(["MR0001","MR0002"])){if(/^.+@(sina\.com|vip\.sina\.com|sina\.cn|2008\.sina\.com|my3ia\.sina\.com)$/i.test(el.value)){return false}else{return true}}else{return true}},MR0005:function(el){el.ajaxCheck="1";if(App.modCheckInfo.check(["MR0001","MR0002","MR0004"])){var _parm={username:el.value};Utils.Io.Ajax.request("/reg/ami_check.php",{POST:_parm,onComplete:function(json){if(json.code=="A00006"){el.ajaxCheck="1"}else{el.ajaxCheck="0"}checkFunction.MR0006(el);return true},onException:function(json){return false},returnType:"json"});return true}else{return true}},MR0006:function(el){if(el.ajaxCheck=="1"){App.modCheckInfo.hideError(["MR0006"]);return true}else{if(el.ajaxCheck===undefined){App.modCheckInfo.hideError(["MR0006"]);return true}else{App.modCheckInfo.showError(["MR0006"]);return false}}},MR0014:function(el){el.value=_trim(el.value);if(App.modCheckInfo.check(["MR0011"])&&App.modCheckInfo.check(["MR0013"])){if(/^[0-9a-zA-z\._\-\?]{6,16}$/.test(el.value)){return true}else{return false}}else{return true}},MR0011:function(el){el.value=_trim(el.value);if(el.value.length<6){return false}else{return true}},MR0013:function(el){el.value=_trim(el.value);if(el.value.length>16){return false}else{return true}},MR0020:function(el){el.value=_trim(el.value);if(el.value==_trim(_password.value)){return true}else{return false}},MR0050:function(el){el.value=_trim(el.value);if(el.value.length>0){return true}else{return false}},MR0071:function(el){if(el.checked){return true}return false}};App.modCheckInfo=App.checkForm(App.checkFormUI4);App.modCheckInfo.add("MR0001",_username,_red_username,checkFunction.MR0001);App.modCheckInfo.add("MR0002",_username,_red_username,checkFunction.MR0002);App.modCheckInfo.add("MR0007",_username,_red_username,checkFunction.MR0007);App.modCheckInfo.add("MR0005",_username,_red_username,checkFunction.MR0005);App.modCheckInfo.add("MR0006",_username,_red_username,checkFunction.MR0006);App.modCheckInfo.add("MR0014",_password,_red_password,checkFunction.MR0014);App.modCheckInfo.add("MR0011",_password,_red_password,checkFunction.MR0011);App.modCheckInfo.add("MR0013",_password,_red_password,checkFunction.MR0013);($E("reg_password2")||scope.$pageid!=="register")&&App.modCheckInfo.add("MR0020",_password2,_red_password2,checkFunction.MR0020);($E("door")||scope.$pageid!=="register")&&App.modCheckInfo.add("MR0050",_door,_red_door,checkFunction.MR0050);App.modCheckInfo.add("MR0071",_after,_red_after,checkFunction.MR0071);App.bindFormTips4([{el:_username,key:"MR0003",errorPos:_red_username},{el:_password,key:"MR0012",errorPos:_red_password},{el:_password2,key:"MR0021",errorPos:_red_password2}]);App.modRegisterMethod={};App.modRegisterMethod.submit=function(){if(App.modCheckInfo.check()&&(_username.ajaxCheck=="1")){setTimeout(function(){App.modRegisterMethod.rumor(success,error)},500)}return false};var _isNewCheckcode=false;App.modRegisterMethod.rumor=function(success,error){if(typeof success!="function"){throw ("The publishRumor need a function as thrid parameter")}if(typeof error!="function"){throw ("The publishRumor need a function as fourth parameter")}var parameters=_html2json(_box);parameters.token=scope.$token;parameters.retcode=scope.doorretcode||"";parameters.r=window.location.href;parameters.regsrc=4;scope.doorretcode="";if(_compjson(parameters,_oData)){success()}else{Utils.Io.Ajax.request("/reg/reg.php",{POST:parameters,onComplete:function(json){if(json.code=="A00006"){success(json.data);oData=parameters;if(json.data){window.location.replace(json.data)}}else{if(json.code=="M00004"){_alert({code:"R01438"})}else{if(json.code=="MR0050"){App.forbidrefresh(function(){Core.Events.fireEvent(_submit,"click")},"/reg/reg.php");return}else{if(json.code=="R01409"){_red_door.innerHTML='<span class="iswhat iserro"><img class="tipicon tip2" src="'+scope.$BASEIMG+'style/images/common/transparent.gif" alt="" title="" /><em>'+$SYSMSG[json.code]+"</em></span>";App.TextareaUtils.setCursor(_door);App.modRefreshCheckCode()}else{error(json)}}}}_submit.className="btnlogin1"},onException:function(json){_addEvent(_submit,App.modRegisterMethod.submit,"click");error(json);_submit.className="btnlogin1"},returnType:"json"});_submit.className="btnlogin1 btnlogin1_load"}};_addEvent(_submit,App.modRegisterMethod.submit,"click");App.enterSubmit({parent:_box,action:function(){Core.Events.fireEvent(_submit,"click")}});passcardOBJ.init(_username,{overfcolor:"#999",overbgcolor:"#e8f4fc",outfcolor:"#000000",outbgcolor:""},_password,window)}function iniLoginForm(rnd,cb){var login_submit=$E("mod_login_submit"+rnd);var login_tip=$E("mod_login_tip"+rnd);var loginname=$E("mod_loginname"+rnd);var password=$E("mod_password"+rnd);var isremember=$E("mod_isremember"+rnd);if(Utils.Cookie.getCookie("un")){var dom=$C("A");var pNode=loginname.parentNode;var deleted=false;dom.onclick=function(){loginname.value="";Utils.Cookie.setCookie("un","",0,"/","t.sina.com.cn");Utils.Cookie.deleteCookie("un");App.__no_login_name__=true;pNode.removeChild(dom);deleted=true;return false};dom.innerHTML='<img  class="lgicon_del" title="#{title}" src="http://img.t.sinajs.cn/t3/style/images/common/transparent.gif">'.replace(/#\{title\}/,$CLTMSG.CD0185);dom.onmouseover=function(){this.style.cursor="pointer"};pNode.appendChild(dom);Core.Events.addEvent(loginname,function(){!deleted&&pNode.removeChild(dom);deleted=true},"focus")}var disableClass="btn_notclick";var enableClass="btn_normal";var options={zIndex:1010,ref:loginname,wrap:login_tip,offsetX:0,offsetY:1};if(!$IE){options.offsetY=10}App.initLoginInput(loginname);if(cb&&cb.initErrorTip){App.fixElement.setHTML(cb.initErrorTip,"",options)}function checkForm(el,errStr){if(!Core.String.trim(el.value)||(el.value==el.title&&el.title)){var oPassword=$E("mod_password_text"+rnd);if(oPassword&&oPassword.style&&oPassword.style.display!=="none"){oPassword.focus()}App.fixElement.setHTML(errStr,"",options);return false}else{App.fixElement.hidden()}return true}login_submit.onclick=function(){if(login_submit.className==disableClass){return false}login_submit.className=enableClass;if(!checkForm(loginname,App.getMsg({code:"M00901"}))){return false}if(!checkForm(password,App.getMsg({code:"M00902"}))){return false}App.LoginAction({name:loginname.value,pwd:password.value,remb:isremember.checked,error:function(reason,errno){var msg="";if(errno=="4010"){reason=App.getMsg({code:"R01011"});msg=App.getMsg("R01010",{mail:loginname.value})}else{if(errno=="101"||errno=="5"){msg=App.getMsg({code:"R11111"})}}App.fixElement.setHTML(reason,"",options)},succ:function(){App.modRegisterOrLoginClose();if(cb){scope.$uid="123456";cb.func(cb.param)}else{location.reload()}}})};App.enterSubmit({parent:password.parentNode,action:function(){login_submit.onclick()}});passcardOBJ.init(loginname,{overfcolor:"#999",overbgcolor:"#e8f4fc",outfcolor:"#000000",outbgcolor:""},$E("mod_password_text"+rnd),window)}App.modRegisterAndLogin=function(showType,titleKey,callBackFunction,loginInfoKey){var regurl=/open\.t\.sina/.test(location.href)?"http://t.sina.com.cn/reg.php":"/reg.php";regurl+="?lang="+scope.$lang;var recoverurl="http://login.sina.com.cn/cgi/getpwd/getpwd0.php?entry=sso";var regTitle=$CLTMSG.CY0124;var loginTitle=titleKey?$CLTMSG[titleKey]:false;if(titleKey=="CY0130"){loginTitle=loginTitle.replace("{name}",Core.String.byteLength(scope.realname)>10?(Core.String.leftB(scope.realname,10)+"..."):scope.realname).replace("{titlename}",scope.realname)}var loginInfo=$CLTMSG[loginInfoKey]||$CLTMSG.CY0121;var rnd=(new Date()).getTime();var regPwd2Html=($E("reg_password2")||scope.$pageid!=="register")?"<tr>							<th><span>"+$CLTMSG.CY0118+'：</span></th>							<td class="td1">								<input type="password" class="inp" id="mod_reg_password2'+rnd+'" name="password2" />							</td>							<td id="mod_red_reg_password2'+rnd+'"></td>						</tr>':"";var regDoorHtml=($E("door")||scope.$pageid!=="register")?"<tr>							<th><span>"+$CLTMSG.CY0119+'：</span></th>							<td class="td1">								<input type="text" class="inp w1" id="mod_reg_door'+rnd+'" name="basedoor" style="width:40px" />								<img width="90" height="31" align="absmiddle" src="/pincode/pin1.php?r=1275025963678&amp;lang=zh" style="margin:5px 0;" id="mod_reg_check_img" />								<a href="javascript:void(0);" onclick="App.modRefreshCheckCode()">'+$CLTMSG.CY0120+'</a>							</td>							<td id="mod_red_reg_door'+rnd+'"></td>						</tr>':"";var html='<table class="mBlogLayer">					<tr>						<td class="top_l"></td>						<td class="top_c"></td>						<td class="top_r"></td>					</tr>					<tr>						<td class="mid_l"></td>						<td class="mid_c">					<div class="layerBox">					<div class="layerBoxCon" style=" width:530px;">					<div class="layerSmartlogin">						<div class="layerMedia_close"><a href="javascript:void(0);" onclick="App.modRegisterOrLoginClose()" class="close"></a></div>						<div class="yellowBg" id="mod_reg_login_yellow'+rnd+'"></div>						<div class="infoForm" id="mod_reg_information_box'+rnd+'">							<div class="infoReg">								<table class="tab2">                                <tr>                                	<th><span>'+$CLTMSG.CY0116+'：</span></th>                                	<td class="td1"><input type="text" class="inp" id="mod_reg_username'+rnd+'" name="username" /></td>                                	<td id="mod_red_reg_username'+rnd+'"><a href="http://mail.sina.com.cn/cnmail/index.html" target="_blank">我没有邮箱</a></td>                                </tr>					            <tr><th></th>									<td class="td2"><p><a href="/reg/mobilereg.php">'+$CLTMSG.CY0152+"</a></p></td>								<td></td></tr>                                <tr>                                	<th><span>"+$CLTMSG.CY0117+'：</span></th>                                	<td class="td1">										<input type="password" class="inp" id="mod_reg_password'+rnd+'" name="password" />									</td>                                	<td id="mod_red_reg_password'+rnd+'"></td>                                </tr>'+regPwd2Html+regDoorHtml+'								<tr>                                	<th>&nbsp;</th>                                    <td class="td1"><div class="lf"><input type="checkbox" id="mod_reg_after'+rnd+'" class="labelbox" checked="checked" name="after" value="1" /><label for="chbb">'+$CLTMSG.CY0129+'</label></div></td>                                	<td id="mod_red_reg_after'+rnd+'"></td>								</tr>                                <tr>                                	<th>&nbsp;</th>                                	<td class="td1"><a href="javascript:void(0);" class="btnlogin1" id="mod_reg_submit'+rnd+'"></a></td>                                	<td>&nbsp;</td>                                </tr>								</table>							</div>							<div class="clearit"></div>						</div>						<div class="infoForm" id="mod_reg_login_box'+rnd+'">							<div class="infoLeft">								<table class="tab1">								<caption>'+loginInfo+'</caption>								<tr>									<th id="mod_login_tip'+rnd+'" scope="row"></th>					            </tr>								<tr>									<td><div class="lgsz_wrap"><input type="text" class="inp" id="mod_loginname'+rnd+'" /></div></td>								</tr>								<tr>									<td><input type="text" style="color:#999;display:none;" class="inp" id="mod_password_text'+rnd+'" /><input type="password" class="inp" id="mod_password'+rnd+'" /></td>								</tr>								<tr>									<th>										<a href="javascript:void(0);" class="btn_normal" id="mod_login_submit'+rnd+'"><em>'+$CLTMSG.CD0134+'</em></a>										<input type="checkbox" id="mod_isremember'+rnd+'" class="chkb" checked="checked" /><label for="mod_isremember'+rnd+'">'+$CLTMSG.CY0123+'</label>									</th>								</tr>								</table>                                <div class="msnbind">                                    <div class="MIB_linedot1"></div>                                    <a class="msnlink" href="javascript:void(0);" onclick="App.connectMSN();">                                        <img class="small_icon msnicon" title="msn" src="'+scope.$BASEIMG+'style/images/common/transparent.gif">                                        <span class="txt">'+$CLTMSG.ZB0025+'</span>                                    </a>                                </div>							</div>							<div class="infoRight">								<p class="p1">'+$CLTMSG.CY0122+'</p>								<p class="p2"><a href="javascript:void(0);" class="btnlogin1" onclick="App.modRunToRegisterOrLogin(\'register\');"></a></p>							</div>							<div class="clearit"></div>						</div>					</div>					</div>					</div>					</td>					<td class="mid_r"></td>					</tr>					<tr>					<td class="bottom_l"></td>					<td class="bottom_c"></td>					<td class="bottom_r"></td>					</tr>					</table>';var box=$C("DIV");box.innerHTML=html;box.style.position="absolute";box.style.zIndex=1600;box.style.width="540px";document.body.appendChild(box);iniRegForm(rnd,callBackFunction);iniLoginForm(rnd,callBackFunction);var cachePassCardStatus=passcardOBJ.menuStatus;App.modRunToRegisterOrLogin=function(type){if(type==="login"){$E("mod_reg_login_box"+rnd).style.display="";$E("mod_reg_information_box"+rnd).style.display="none";if(loginTitle){$E("mod_reg_login_yellow"+rnd).innerHTML=loginTitle;$E("mod_reg_login_yellow"+rnd).style.display=""}else{$E("mod_reg_login_yellow"+rnd).style.display="none"}passcardOBJ.menuStatus={"sina.com":true,"163.com":true,"qq.com":true,"126.com":true,"vip.sina.com":true,"sina.cn":true,"hotmail.com":true,"gmail.com":true,"sohu.com":true,"yahoo.cn":true,"139.com":true,"wo.com.cn":true,"189.cn":true}}else{if(type==="register"){$E("mod_reg_login_box"+rnd).style.display="none";$E("mod_reg_information_box"+rnd).style.display="";$E("mod_reg_login_yellow"+rnd).innerHTML=regTitle;$E("mod_reg_login_yellow"+rnd).style.display="";passcardOBJ.menuStatus={"163.com":true,"qq.com":true,"126.com":true,"hotmail.com":true,"gmail.com":true,"sohu.com":true,"yahoo.cn":true,"139.com":true,"wo.com.cn":true,"189.cn":true};try{GB_SUDA._S_uaTrack("tblog_reg","layer_reg")}catch(ex){}}}};App.setPassword("mod_password"+rnd,"mod_password_text"+rnd);App.modRegisterOrLoginClose=function(){document.body.removeChild(box);document.body.removeChild(mask);passcardOBJ.menuStatus=cachePassCardStatus;App.modRunToRegisterOrLogin=false};App.modRunToRegisterOrLogin(showType);setMiddle(box);var mask=setMask(600);try{GB_SUDA._S_uaTrack("tblog_reg","layer_login")}catch(exp){}return box};App.modRefreshCheckCode=function(){setTimeout(function(){$E("mod_reg_check_img").src="/pincode/pin1.php?r="+((new Date()).getTime())+"&lang="+scope.$lang;$E("mod_reg_check_img").style.display=""},10)}})();$registJob("start_suda",function(){try{setTimeout(GB_SUDA._S_pSt,2000)}catch(a){}});var _WBUP_="WBUP";var _WBUP_REQ_="http://sgup.beacon.sina.com.cn/cgi-bin/gwbup";var wbup="";var SSL={Config:{},Space:function(g){var b=g,f=null;b=b.split(".");f=SSL;for(i=0,len=b.length;i<len;i++){f[b[i]]=f[b[i]]||{};f=f[b[i]]}return f}};SSL.Space("Global");SSL.Space("Core.Dom");SSL.Space("Core.Event");SSL.Space("App");SSL.Global={win:window||{},doc:document,nav:navigator,loc:location};SSL.Core.Dom={get:function(a){return document.getElementById(a)}};SSL.Core.Event={on:function(){}};SSL.App={_S_gConType:function(){var a="";try{SSL.Global.doc.body.addBehavior("#default#clientCaps");a=SSL.Global.doc.body.connectionType}catch(b){a="unkown"}return a},_S_gKeyV:function(j,b,g,f){if(j==""){return""}if(f==""){f="="}b=b+f;var h=j.indexOf(b);if(h<0){return""}h=h+b.length;var a=j.indexOf(g,h);if(a<h){a=j.length}return j.substring(h,a)},_S_gUCk:function(a){if((undefined==a)||(""==a)){return""}return SSL.App._S_gKeyV(SSL.Global.doc.cookie,a,";","")},_S_sUCk:function(h,a,b,g){if(a!=null){if((undefined==g)||(null==g)){g="sina.com.cn"}if((undefined==b)||(null==b)||(""==b)){SSL.Global.doc.cookie=h+"="+a+";domain="+g+";path=/"}else{var f=new Date();var j=f.getTime();j=j+86400000*b;f.setTime(j);j=f.getTime();SSL.Global.doc.cookie=h+"="+a+";domain="+g+";expires="+f.toUTCString()+";path=/"}}},_S_gJVer:function(j,b){var h,a,k,f=1,g=0;if("MSIE"==b){a="MSIE";h=j.indexOf(a);if(h>=0){k=parseInt(j.substring(h+5));if(3<=k){f=1.1;if(4<=k){f=1.3}}}}else{if(("Netscape"==b)||("Opera"==b)||("Mozilla"==b)){f=1.3;a="Netscape6";h=j.indexOf(a);if(h>=0){f=1.5}}}return f},_S_gFVer:function(nav){var ua=SSL.Global.nav.userAgent.toLowerCase();var flash_version=0;if(SSL.Global.nav.plugins&&SSL.Global.nav.plugins.length){var p=SSL.Global.nav.plugins["Shockwave Flash"];if(typeof p=="object"){for(var i=10;i>=3;i--){if(p.description&&p.description.indexOf(" "+i+".")!=-1){flash_version=i;break}}}}else{if(ua.indexOf("msie")!=-1&&ua.indexOf("win")!=-1&&parseInt(SSL.Global.nav.appVersion)>=4&&ua.indexOf("16bit")==-1){for(var i=10;i>=2;i--){try{var object=eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash."+i+"');");if(object){flash_version=i;break}}catch(e){}}}else{if(ua.indexOf("webtv/2.5")!=-1){flash_version=3}else{if(ua.indexOf("webtv")!=-1){flash_version=2}}}}return flash_version},_S_gMeta:function(b,f){var g=SSL.Global.doc.getElementsByName(b);var a=0;if(f>0){a=f}return(g.length>a)?g[a].content:""},_S_gHost:function(b){var a=new RegExp("^http(?:s)?://([^/]+)","im");if(b.match(a)){return b.match(a)[1].toString()}else{return""}},_S_gDomain:function(a){var b=a.indexOf(".sina.");if(b>0){return a.substr(0,b)}else{return a}},_S_gTJMTMeta:function(){return SSL.App._S_gMeta("mediaid")},_S_gTJZTMeta:function(){var a=SSL.App._S_gMeta("subjectid");a.replace(",",".");a.replace(";",",");return a},_S_isFreshMeta:function(){var b=SSL.Global.doc.documentElement.innerHTML.substring(0,1024);var a=new RegExp("<meta\\s*http-equiv\\s*=((\\s*refresh\\s*)|('refresh')|(\"refresh\"))s*contents*=","ig");return a.test(b)},_S_isIFrameSelf:function(b,a){if(SSL.Global.win.top==SSL.Global.win){return false}else{try{if(SSL.Global.doc.body.clientHeight==0){return false}if((SSL.Global.doc.body.clientHeight>=b)&&(SSL.Global.doc.body.clientWidth>=a)){return false}else{return true}}catch(f){return true}}},_S_isHome:function(b){var a="";try{SSL.Global.doc.body.addBehavior("#default#homePage");a=SSL.Global.doc.body.isHomePage(b)?"Y":"N"}catch(f){a="unkown"}return a}};function SUDA(N,l,k){var j=SSL.Global,C=SSL.Core.Dom,z=SSL.Core.Event,m=SSL.App;var K="webbug_meta_ref_mod_noiframe_async_fc_:9.10c",n="-9999-0-0-1";var b=j.nav.appName.indexOf("Microsoft Internet Explorer")>-1?"MSIE":j.nav.appName;var y=j.nav.appVersion;var t=j.loc.href.toLowerCase();var D=j.doc.referrer.toLowerCase();var s="";var q="",O="SUP",A="",x="Apache",B="SINAGLOBAL",v="ULV",L="UOR",w="_s_upa",a=320,o=240,M=0,r="",p="",S=0,P=10000,J=0,g="_s_acc";var H=t.indexOf("https")>-1?"https://":"http://",G="beacon.sina.com.cn",I=H+G+"/a.gif",R=H+G+"/d.gif",Q=H+G+"/e.gif",F=H+G+"/fc.html";var h=100,f=500;var T="_s_tentry";var E={_S_sSID:function(){E._S_p2Bcn("",R)},_S_gsSID:function(){var U=m._S_gUCk(x);if(""==U){E._S_sSID()}return U},_S_sGID:function(U){if(""!=U){m._S_sUCk(B,U,3650)}},_S_gGID:function(){return m._S_gUCk(B)},_S_gsGID:function(){if(""!=B){var U=m._S_gUCk(B);if(""==U){if(m._S_gFVer(j.nav)<=6){return""}else{E._S_IFC2GID()}}return U}else{return""}},_S_IFC2GID:function(){var V=F+"?a=g&n="+B+"&r="+Math.random();var U=C.get("SUDA_CS_DIV").parentNode.childNodes[0];U.innerHTML='<iframe id="SUDA_FC" src="'+V+'" width="1" height="1" SCROLLING="NO" FRAMEBORDER="0"></iframe>'},_S_gCid:function(){try{var U=m._S_gMeta("publishid");if(""!=U){var W=U.split(",");if(W.length>0){if(W.length>=3){n="-9999-0-"+W[1]+"-"+W[2]}return W[0]}}else{return"0"}}catch(V){return"0"}},_S_gAEC:function(){return m._S_gUCk(g)},_S_sAEC:function(U){if(""==U){return}var V=E._S_gAEC();if(V.indexOf(U+",")<0){V=V+U+","}m._S_sUCk(g,V,7)},_S_p2Bcn:function(X,W){var U=C.get("SUDA_CS_DIV");if(null!=U){var V=new Date();U.innerHTML="<img width=0 height=0 src='"+W+"?"+X+"&gUid_"+V.getTime()+"' border='0' alt='' />"}},_S_gSUP:function(){if(A!=""){return A}var W=unescape(m._S_gUCk(O));if(W!=""){var V=m._S_gKeyV(W,"ag","&","");var U=m._S_gKeyV(W,"user","&","");var X=m._S_gKeyV(W,"uid","&","");var Z=m._S_gKeyV(W,"sex","&","");var Y=m._S_gKeyV(W,"dob","&","");A=V+":"+U+":"+X+":"+Z+":"+Y;return A}else{return""}},_S_gsLVisit:function(W){var Y=m._S_gUCk(v);var X=Y.split(":");var Z="";if(X.length>=6){if(W!=X[4]){var V=new Date();var U=new Date(parseInt(X[0]));X[1]=parseInt(X[1])+1;if(V.getMonth()!=U.getMonth()){X[2]=1}else{X[2]=parseInt(X[2])+1}if(((V.getTime()-U.getTime())/86400000)>=7){X[3]=1}else{if(V.getDay()<U.getDay()){X[3]=1}else{X[3]=parseInt(X[3])+1}}Z=X[0]+":"+X[1]+":"+X[2]+":"+X[3];X[5]=X[0];X[0]=V.getTime();m._S_sUCk(v,X[0]+":"+X[1]+":"+X[2]+":"+X[3]+":"+W+":"+X[5],360)}else{Z=X[5]+":"+X[1]+":"+X[2]+":"+X[3]}}else{var V=new Date();Z=":1:1:1";m._S_sUCk(v,V.getTime()+Z+":"+W+":",360)}return Z},_S_gUOR:function(){var U=m._S_gUCk(L);var V=U.split(":");if(V.length>=2){return V[0]}else{return""}},_S_sUOR:function(){var Y=m._S_gUCk(L),ad="",V="",ac="",X="";var ae=/[&|?]c=spr(_[A-Za-z0-9]{1,}){3,}/;var Z=new Date();if(t.match(ae)){ac=t.match(ae)[0]}else{if(D.match(ae)){ac=D.match(ae)[0]}}if(ac!=""){ac=ac.substr(3)+":"+Z.getTime()}if(Y==""){if(m._S_gUCk(v)==""&&m._S_gUCk(v)==""){ad=m._S_gDomain(m._S_gHost(D));V=m._S_gDomain(m._S_gHost(t))}m._S_sUCk(L,ad+","+V+","+ac,365)}else{var aa=0,ab=Y.split(",");if(ab.length>=1){ad=ab[0]}if(ab.length>=2){V=ab[1]}if(ab.length>=3){X=ab[2]}if(ac!=""){aa=1}else{var W=X.split(":");if(W.length>=2){var U=new Date(parseInt(W[1]));if(U.getTime()<(Z.getTime()-86400000*30)){aa=1}}}if(aa){m._S_sUCk(L,ad+","+V+","+ac,365)}}},_S_gRef:function(){var U=/^[^\?&#]*.swf([\?#])?/;if((D=="")||(D.match(U))){var V=m._S_gKeyV(t,"ref","&","");if(V!=""){return V}}return D},_S_MEvent:function(){if(S==0){S++;var V=m._S_gUCk(w);if(V==""){V=0}V++;if(V<P){var U=/[&|?]c=spr(_[A-Za-z0-9]{2,}){3,}/;if(t.match(U)||D.match(U)){V=V+P}}m._S_sUCk(w,V)}},_S_gMET:function(){var U=m._S_gUCk(w);if(U==""){U=0}return U},_S_gCInfo_v2:function(){var U=new Date();return"sz:"+screen.width+"x"+screen.height+"|dp:"+screen.colorDepth+"|ac:"+j.nav.appCodeName+"|an:"+b+"|cpu:"+j.nav.cpuClass+"|pf:"+j.nav.platform+"|jv:"+m._S_gJVer(y,b)+"|ct:"+m._S_gConType()+"|lg:"+j.nav.systemLanguage+"|tz:"+U.getTimezoneOffset()/60+"|fv:"+m._S_gFVer(j.nav)},_S_gPInfo_v2:function(U,V){if((undefined==U)||(""==U)){U=E._S_gCid()+n}return"pid:"+U+"|st:"+E._S_gMET()+"|et:"+J+"|ref:"+escape(V)+"|hp:"+m._S_isHome(t)+"|PGLS:"+m._S_gMeta("stencil")+"|ZT:"+escape(m._S_gTJZTMeta())+"|MT:"+escape(m._S_gTJMTMeta())+"|keys:"},_S_gUInfo_v2:function(U){return"vid:"+U+"|sid:"+E._S_gsSID()+"|lv:"+E._S_gsLVisit(E._S_gsSID())+"|un:"+E._S_gSUP()+"|uo:"+E._S_gUOR()+"|ae:"+E._S_gAEC()},_S_gEXTInfo_v2:function(V,U){r=(undefined==V)?r:V;p=(undefined==U)?p:U;return"ex1:"+r+"|ex2:"+p},_S_pBeacon:function(Y,X,V){try{var aa=E._S_gsGID();if(""==aa){if(M<1){setTimeout(function(){E._S_pBeacon(Y,X,V)},f);M++;return}else{aa=E._S_gsSID();E._S_sGID(aa)}}var af=m._S_gUCk(_WBUP_);var ad=unescape(m._S_gUCk("SUR"));if(af==""&&ad!=""){E.__loadScript(_WBUP_REQ_,function(){if(wbup!=""){m._S_sUCk(_WBUP_,wbup,7)}else{m._S_sUCk(_WBUP_,"0",3)}})}var ac="V=2";var Z=E._S_gCInfo_v2();var ag=E._S_gPInfo_v2(Y,E._S_gRef());var W=E._S_gUInfo_v2(aa);var U=E._S_gEXTInfo_v2(X,V);var ae=ac+"&CI="+Z+"&PI="+ag+"&UI="+W+"&EX="+U;E._S_p2Bcn(ae,I)}catch(ab){}},__loadScript:function(V,X,W){var U=document.createElement("script");U.type="text/javascript";if(W){U.charset=W}if(X){U.onload=U.onreadystatechange=function(){if(U.readyState&&U.readyState!="loaded"&&U.readyState!="complete"){return}U.onreadystatechange=U.onload=null;X()}}U.src=V;document.getElementsByTagName("head")[0].appendChild(U)},_S_acTrack_i:function(U,W){if((""==U)||(undefined==U)){return}E._S_sAEC(U);if(0==W){return}var V="AcTrack||"+E._S_gGID()+"||"+E._S_gsSID()+"||"+E._S_gSUP()+"||"+U+"||";E._S_p2Bcn(V,Q)},_S_uaTrack_i:function(W,U){var V="UATrack||"+E._S_gGID()+"||"+E._S_gsSID()+"||"+E._S_gSUP()+"||"+W+"||"+U+"||";E._S_p2Bcn(V,Q)},_S_sTEntry:function(){var X="-";if(""==m._S_gUCk(T)){if(""!=D){X=m._S_gHost(D)}m._S_sUCk(T,X,"","t.sina.com.cn")}var V=/t.sina.com.cn\/reg.php/;if(t.match(V)){var W=m._S_gKeyV(unescape(t),"sharehost","&","");var U=m._S_gKeyV(unescape(t),"appkey","&","");if(""!=W){m._S_sUCk(T,W,"","t.sina.com.cn")}m._S_sUCk("appkey",U,"","t.sina.com.cn")}},_S_gSPR:function(){var U=E._S_gUOR();var V=U.split(",");if(V.length>=3){return V[2]}else{return""}},_S_upExt1:function(){var Y=new Array(/t.sina.com.cn\/reg.php/,/t.sina.com.cn\/reg\/reg_succ.php/,/t.sina.com.cn\/reg\/reg_active.php/,/t.sina.com.cn\/person\/full_info.php\?.*type=3.*/,/t.sina.com.cn\/person\/guide_interest.php\?.*type=3.*/,/t.sina.com.cn\/person\/guide_invite.php\?.*type=3.*/,/t.sina.com.cn\/person\/full_info.php\?.*type=2.*/,/t.sina.com.cn\/person\/guide_interest.php\?.*type=2.*/,/t.sina.com.cn\/person\/guide_invite.php\?.*type=2.*/,/t.sina.com.cn\/reg_sinamail.php/,/t.sina.com.cn\/person\/full_info.php\?.*type=1.*/,/t.sina.com.cn\/person\/guide_interest.php\?.*type=1.*/,/t.sina.com.cn\/person\/guide_invite.php\?.*type=1.*/,/v.t.sina.com.cn\/widget\/full_info.php\?.*type=4.*/,/v.t.sina.com.cn\/share\/share.php\?.*type=4.*/);var Z=new Array("reg_input","reg_succ","reg_active","reg_full_info","reg_interest","reg_invite","act_fullinfo","act_interest","act_invite","mail_act","mail_full_info","mail_interest","mail_invite","wgt_full_info","wgt_succ");var ab="";var W=Y.length;var U=Z.length;var V=E._S_gSPR();try{for(var X=0;X<W&&X<U;X++){if(t.match(Y[X])){ab=V+",flw,"+Z[X];break}}}catch(aa){}return ab}};if(S==0){if("MSIE"==b){SSL.Global.doc.attachEvent("onclick",E._S_MEvent);SSL.Global.doc.attachEvent("onmousemove",E._S_MEvent);SSL.Global.doc.attachEvent("onscroll",E._S_MEvent)}else{SSL.Global.doc.addEventListener("click",E._S_MEvent,false);SSL.Global.doc.addEventListener("mousemove",E._S_MEvent,false);SSL.Global.doc.addEventListener("scroll",E._S_MEvent,false)}}E._S_sUOR();E._S_sTEntry();return{_S_pSt:function(U,W,V){try{if((m._S_isFreshMeta())||(m._S_isIFrameSelf(o,a))){return}if(J>0){return}++J;setTimeout(function(){E._S_gsSID()},h);setTimeout(function(){E._S_pBeacon(U,((undefined==W)?E._S_upExt1():W),V,0)},f)}catch(X){}},_S_pStM:function(U,W,V){++J;E._S_pBeacon(U,((undefined==W)?E._S_upExt1():W),V)},_S_acTrack:function(U,W){try{if((undefined!=U)&&(""!=U)){setTimeout(function(){E._S_acTrack_i(U,W)},h)}}catch(V){}},_S_uaTrack:function(V,U){try{if(undefined==V){V=""}if(undefined==U){U=""}if((""!=V)||(""!=U)){setTimeout(function(){E._S_uaTrack_i(V,U)},h)}}catch(W){}}}}var GB_SUDA;if(GB_SUDA==null){GB_SUDA=new SUDA({})}var _S_PID_="";function _S_pSt(a,f,b){GB_SUDA._S_pSt(a,f,b)}function _S_pStM(a,f,b){GB_SUDA._S_pStM(a,f,b)}function _S_acTrack(a){GB_SUDA._S_acTrack(a,1)}function _S_uaTrack(b,a){GB_SUDA._S_uaTrack(b,a)}(function(){var a=null;App.CONNECTMSNCONFIG={url:"https://consent.live.com/connect.aspx",wrap_client_id:"000000004403FA2C",wrap_callback:"http://t.sina.com.cn/msn/msnLoginCallBack.php",wrap_scope:"WL_Activities.Update,WL_Contacts.View,WL_Profiles.View,Messenger.SignIn,IMControl.IMAllowAll,WL_Activities.View,WL_Photos.View",name:"neww",params:"height=400,width=500"};App.connectMSN=function(b){GB_SUDA._S_uaTrack("bind_msn","login");var h=App.CONNECTMSNCONFIG;var g=window.scope&&window.scope.$lang?(window.scope.$lang==="zh-tw"?"zh-tw":"zh-cn"):"zh-cn";var f="?wrap_client_id="+h.wrap_client_id+"&wrap_callback="+encodeURIComponent(h.wrap_callback)+"&wrap_scope="+h.wrap_scope+"&mkt="+g+"&wrap_client_state="+encodeURIComponent(b?b+"?lang=":"http://t.sina.com.cn/msn/bind.php?lang=")+g;f=h.url+f;a=window.open(f,h.name,h.params)};App.showBindMsnMsg=function(b){App.alert(b,{zIndex:2000})};App.sendRedirect=function(b){if(b&&a){a=null;if(b){top.location.href=b}}}})();App.ModLogin=function(l,w){var o=w||$CLTMSG.CD0038;var t=/open\.t\.sina/.test(location.href)?"http://t.sina.com.cn/reg.php":"/reg.php";t+="?lang="+scope.$lang;var a="http://login.sina.com.cn/cgi/getpwd/getpwd0.php?entry=sso";var m=(new Date()).getTime();var p='<div class="loginLayer" id="login_wrap'+m+'">            	<table>                  <tbody>				  <tr>			      	   <th scope="row"/>	                        <td id="login_tip'+m+'"></td>	                    </tr>				  <tr>                    <th scope="row">'+$CLTMSG.CD0039+'&nbsp;&nbsp;</th>                    <td><span class="cInputBorder"><span class="cInputborderR"><input tabIndex="1" type="text" name="loginname" id="loginname'+m+'" class="inputType" style="width: 210px;"/></span></span></td>                    <td><a href="'+t+'" target="_blank">'+$CLTMSG.CD0040+'</a></td>                  </tr>                  <tr>                    <th scope="row">'+$CLTMSG.CD0041+'&nbsp;&nbsp;</th>                    <td><span class="cInputBorder"><span class="cInputborderR"><input tabIndex="2" type="password" name="password" id="password'+m+'" class="inputType" style="width: 210px;"/></span></span></td>                    <td><a href="'+a+'" target="_blank">'+$CLTMSG.CD0042+'</a></td>                  </tr>                  <tr>                    <th scope="row"/>                    <td><input type="checkbox" id="isremember'+m+'"  checked="checked"/>'+$CLTMSG.CD0043+'</td>                    <td/>                  </tr>                  <tr>                    <th scope="row"/>                    <td><a href="javascript:void(0);" id="login_submit'+m+'" class="btn_normal"><em>'+$CLTMSG.CD0044+"</em></a></td>                    <td/>                  </tr>                </tbody></table>            </div>";var k={width:390,zIndex:1000};var s=new App.Dialog.BasicDialog(o,p,k);var r="btn_notclick";var g="btn_normal";var j=$E("login_submit"+m);var q=$E("login_tip"+m);var v=$E("loginname"+m);var b=$E("password"+m);var h=$E("isremember"+m);var f={zIndex:1010,ref:v,wrap:q,offsetX:0,offsetY:1};if(!$IE){f.offsetY=10}App.initLoginInput(v);if(l&&l.initErrorTip){App.fixElement.setHTML(l.initErrorTip,"",f)}function n(x,y){if(!Core.String.trim(x.value)||(x.value==x.title&&x.title)){if(x&&x.style&&x.style.display!=="none"){x.focus()}App.fixElement.setHTML(y,"",f);return false}else{App.fixElement.hidden()}return true}j.onclick=function(){if(j.className==r){return false}j.className=g;if(!n(v,App.getMsg({code:"M00901"}))){return false}if(!n(b,App.getMsg({code:"M00902"}))){return false}App.LoginAction({name:v.value,pwd:b.value,remb:h.checked,error:function(y,x){var z="";if(x=="4010"){y=App.getMsg({code:"R01011"});z=App.getMsg("R01010",{mail:v.value})}else{if(x=="101"||x=="5"){z=App.getMsg({code:"R11111"})}}App.fixElement.setHTML(y,z,f)},succ:function(){s.close();if(l){scope.$uid="123456";l.func(l.param)}else{location.reload()}}})};App.enterSubmit({parent:b.parentNode,action:function(){j.onclick()}});passcardOBJ.init(v,{overfcolor:"#999",overbgcolor:"#e8f4fc",outfcolor:"#000000",outbgcolor:""},b,window);return s};App.ModLogin=function(a,b){if(App.modRunToRegisterOrLogin){App.modRunToRegisterOrLogin("login")}else{App.modRegisterAndLogin("login",false,a)}};Core.String.j2o=function(str){if(!str||str==""){return null}try{var o=window.eval("("+str+")");return o}catch(e){$Debug("j2o : 数据分析出错");traceError(e);return null}};App.doRequest=function(a,b,h,k,m,j,l){var g=function(){};var f={onComplete:function(n){try{if(typeof n=="string"){n=n.replace(/;$/,"")}n=(typeof n=="string"&&(/\s*{/.test(n)))?Core.String.j2o(n):n;if(n&&(n.code=="A00006"||n.code=="S00001")){(h||g)(n.data,n)}else{(k||g)(n)}}catch(o){}},onException:function(n){(k||g)(n)}};m=(m||"post").toUpperCase();l=l||{};f[m]=a;f.returnType="json";f.onTimeout=l.func||function(){};f.delayTime=l.delay||0;j=j||"ajax";return Utils.Io.Ajax.request(b,f)};Sina.pkg("Utils.Sinput");Core.Function.bind3=function(g,f,b){b=b==null?[]:b;var a=g;return function(){return a.apply(f,b)}};Utils.Sinput.limitMaxLen=function(a,b){var f;var g=function(){f=a.value;var h=Core.String.byteLength(f);if(h>b){a.value=Core.String.leftB(f,b)}};Core.Events.addEvent(a,Core.Function.bind3(g,a),"keyup");Core.Events.addEvent(a,Core.Function.bind3(g,a),"blur");Core.Events.addEvent(a,Core.Function.bind3(g,a),"focus")};(function(b){var a=false;b.doFlyOut=function(q,f,g){if(a){return false}a=true;var j=function(t){var v=Core.Dom.getXY(t);var s={x:v[0],y:v[1]};return s};var n={w:q.offsetWidth,h:q.offsetHeight,l:(j(q))["x"],t:(j(q))["y"]};var h=f.style.visibility;var m=f.style.display;if(f.style.display=="none"){f.style.visibility="hidden";f.style.display="block"}var p={w:f.offsetWidth,h:f.offsetHeight,l:(j(f))["x"],t:(j(f))["y"]};var l=document.createElement("DIV");l.style.cssText=g.style;l.style.width=n.w+"px";l.style.height=n.h+"px";l.style.top=n.t+"px";l.style.left=n.l+"px";l.style.position="absolute";document.body.appendChild(l);var k={w:b.animation.taccelerate(b.timer.delay,p.w-n.w,g.time),h:b.animation.taccelerate(b.timer.delay,p.h-n.h,g.time),l:b.animation.taccelerate(b.timer.delay,p.l-n.l,g.time),t:b.animation.taccelerate(b.timer.delay,p.t-n.t,g.time)};var o=0;var r=b.timer.add(function(){if(o>=k.w.length){b.timer.remove(r);l.style.display="none";g.resFun();a=false;return false}l.style.width=n.w+k.w[o]+"px";l.style.height=n.h+k.h[o]+"px";l.style.top=n.t+k.t[o]+"px";l.style.left=n.l+k.l[o]+"px";o++});f.style.visibility=h;f.style.display=m}})(App);Core.Dom.insertHTML=function(g,f,b){g=$E(g)||document.body;b=b.toLowerCase()||"beforeend";if(g.insertAdjacentHTML){switch(b){case"beforebegin":g.insertAdjacentHTML("BeforeBegin",f);return g.previousSibling;case"afterbegin":g.insertAdjacentHTML("AfterBegin",f);return g.firstChild;case"beforeend":g.insertAdjacentHTML("BeforeEnd",f);return g.lastChild;case"afterend":g.insertAdjacentHTML("AfterEnd",f);return g.nextSibling}throw'Illegal insertion point -> "'+b+'"'}var a=g.ownerDocument.createRange();var h;switch(b){case"beforebegin":a.setStartBefore(g);h=a.createContextualFragment(f);g.parentNode.insertBefore(h,g);return g.previousSibling;case"afterbegin":if(g.firstChild){a.setStartBefore(g.firstChild);h=a.createContextualFragment(f);g.insertBefore(h,g.firstChild);return g.firstChild}else{g.innerHTML=f;return g.firstChild}break;case"beforeend":if(g.lastChild){a.setStartAfter(g.lastChild);h=a.createContextualFragment(f);g.appendChild(h);return g.lastChild}else{g.innerHTML=f;return g.lastChild}break;case"afterend":a.setStartAfter(g);h=a.createContextualFragment(f);g.parentNode.insertBefore(h,g.nextSibling);return g.nextSibling}throw'Illegal insertion point -> "'+b+'"'};App.autoHeightTextArea=function(g,b,f){g=$E(g);b=b||function(){};var a=function(k){if(b){b()}var h;var j;var l=App.getTextAreaHeight(this);k=k||l;if(l>k){h=k;if(this.style.overflowY==="hidden"){this.style.overflowY="auto"}}else{h=l;if(this.style.overflowY==="auto"){this.style.overflowY="hidden"}}this.style.height=Math.min(k,l)+"px"};if(g.binded==null){Core.Events.addEvent(g,Core.Function.bind3(a,g,[f]),"keyup");Core.Events.addEvent(g,Core.Function.bind3(a,g,[f]),"focus");Core.Events.addEvent(g,Core.Function.bind3(a,g,[f]),"blur");g.binded=true;g.style.overflowY="hidden";g.style.overflowX="hidden"}};App.getTextAreaHeight=function(b){b=$E(b);if(b.defaultHeight==null){b.defaultHeight=window.parseInt(Core.Dom.getStyle(b,"height"))}var f;if($IE){f=Math.max(b.scrollHeight,b.defaultHeight)}else{var a=$E("_____textarea_____");if(a==null){a=document.createElement("textarea");a.id="_____textarea_____";document.getElementsByTagName("body")[0].appendChild(a)}if(a.currentTarget!=b){a.style.top="-1000px";a.style.height="0px";a.style.position="absolute";a.style.overflow="hidden";a.style.width=Core.Dom.getStyle(b,"width");a.style.fontSize=Core.Dom.getStyle(b,"fontSize");a.style.fontFamily=Core.Dom.getStyle(b,"fontFamily");a.style.lineHeight=Core.Dom.getStyle(b,"lineHeight");a.style.paddingLeft=Core.Dom.getStyle(b,"paddingLeft");a.style.paddingRight=Core.Dom.getStyle(b,"paddingRight");a.style.paddingTop=Core.Dom.getStyle(b,"paddingTop");a.style.paddingBottom=Core.Dom.getStyle(b,"paddingBottom")}a.value=b.value;f=Math.max(a.scrollHeight,b.defaultHeight);a.currentTarget=b}return f};Core.Dom.setStyle=function(a,b,f){switch(b){case"opacity":a.style.filter="alpha(opacity="+(f*100)+")";if(!a.currentStyle||!a.currentStyle.hasLayout){a.style.zoom=1}break;case"float":b="styleFloat";default:a.style[b]=f}};if(!Core.Base.detect.$IE){Core.Dom.setStyle=function(a,b,f){if(b=="float"){b="cssFloat"}a.style[b]=f}}App.EncodeUtils=(function(){var f={"<":"&lt;",">":"&gt;",'"':"&quot;","\\":"&#92;","&":"&amp;","'":"&#039;","\r":"","\n":"<br>"},a=/<|>|\'|\"|&|\\|\r\n|\n| /gi;var b={};b.regexp=function(g){return g.replace(/\}|\]|\)|\.|\$|\^|\{|\[|\(|\|\|\*|\+|\?|\\/gi,function(h){h=h.charCodeAt(0).toString(16);return"\\u"+(new Array(5-h.length)).join("0")+h})};b.html=function(g,h){h=h||f;return g.replace(a,function(j){return h[j]})};return b})();App.PopUpCombo=(function(){var it={},ce=Core.Events,addEvent=ce.addEvent,removeEvent=ce.removeEvent,stopEvent=ce.stopEvent,filter=App.EncodeUtils.regexp,toIndex,value,content,current,key,reg,tip,panel,head,lis=[],onSelect,onClose,len,selected=0;it.validate=false;it.index=function(num){toIndex=!num?0:selected+num;toIndex=toIndex<0?len:(toIndex>len)?0:toIndex;lis[selected].className="";lis[toIndex].className="cur";selected=toIndex;value=content[selected]};it.click=function(){onSelect&&onSelect(value)};it.hidden=function(){it.initTip();tip.style.display="none";it.validate&&!(it.validate=false)&&onClose&&onClose()};it.initTip=function(){if(!tip){tip=$C("div");tip.appendChild(panel=$C("ul"));with(tip.style){zIndex=2000;position="absolute";display="none"}tip.className="Atwho";document.body.appendChild(tip)}};it.position=function(x,y,offsetX,offsetY){it.initTip();it.validate=true;tip.style.display="block";with(tip.style){left=(x+offsetX)+"px";top=(y+offsetY)+"px"}};it.selection=function(event){var keyCode=event.keyCode,toIndex,value;if(!it.validate){return}if(keyCode==40||keyCode==38){it.index(keyCode==40?1:-1);stopEvent()}else{if(keyCode==13||keyCode==9){it.click();stopEvent()}else{if(keyCode==27){it.hidden();stopEvent()}}}};it.addItem=function(itemValue){var li=document.createElement("li"),index;li.innerHTML=itemValue.replace(reg,"<b>$1</b>");lis.push(li);len=index=lis.length-1;content.push(itemValue);panel.appendChild(li);addEvent(li,function(){lis[selected].className="";lis[index].className="cur";value=itemValue;selected=index;stopEvent()},"mouseover");addEvent(li,function(){it.click();it.hidden();stopEvent()},"mousedown")};it.bind=function(oElement,aContent,sKey,fOnSelect,fOnClose,sHead){var i=0,l=aContent.length;reg=new RegExp("("+filter(sKey)+")","gi");selected=0;content=[];onSelect=fOnSelect;len=0;lis=[];onClose=fOnClose;it.initTip();panel.innerHTML="";if(sHead){panel.appendChild(head=$C("div"));head.innerHTML=sHead}for(i;i<l;i++){it.addItem(aContent[i])}if(!lis.length){it.addItem(sKey)}it.index(0);if(current==oElement){return}current&&removeEvent(current,it.selection,"keydown");removeEvent(document.body,it.hidden,"mouseup");addEvent((current=oElement),it.selection,"keydown");addEvent(document.body,it.hidden,"mouseup")};return it})();App.BindAtToTextarea=(function(){var d=document,format=App.EncodeUtils.html,select=App.PopUpCombo,cd=Core.Dom,getStyle=cd.getStyle,selectionStart,setStyle=cd.setStyle,getXY=cd.getXY,ce=Core.Events,addEvent=ce.addEvent,removeEvent=ce.removeEvent,stopEvent=ce.stopEvent,ajax=Utils.Io.Ajax,clock;var cssg=["overflowY","height","width","paddingTop","paddingLeft","paddingRight","paddingBottom","marginTop","marginLeft","marginRight","marginBottom"];var font="Tahoma,宋体",cssc={fontFamily:font,borderStyle:"solid",borderWidth:"0px",wordWrap:"break-word",fontSize:"14px",lineHeight:"18px",overflowX:"hidden"};var selectHead='<div style="height:20px;color:#999999;padding-left:8px;padding-top:2px;line-height:18px;font-size:12px;Tahoma,宋体;">'+$CLTMSG.CL0827+"</div>";var isCss1=false,ua=navigator.userAgent,r=/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(ua);if(r&&(r=parseFloat(RegExp.$1))&&r<8){isCss1=true}var hash={"<":"&lt;",">":"&gt;",'"':"&quot;","\\":"&#92;","&":"&amp;","'":"&#039;","\r":"","\n":"<br>"," ":!isCss1?"<span style='white-space:pre-wrap;font-size:14px;font-family:"+font+";'> </span>":"<pre style='overflow:hidden;display:inline;font-size:'+fontSize+';font-family:"+font+";word-wrap:break-word;'> </pre>"},fReg=/<|>|\'|\"|&|\\|\r\n|\n| /gi;var AjaxHasAbort=function(url,success,error){var req,res,error;req=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();if(!req){return}req.onreadystatechange=function(){try{if(req.readyState==4){res=eval("("+req.responseText+")");success(res)}}catch(e){return false}};try{req.open("GET",url,true);req.send(null)}catch(e){return false}return req};var doRequest=(function(){var req;return function(url,success,error){if(req){req.abort();req}req=AjaxHasAbort(url,success,error)}})();var at=(function(){var it={},current,panel,cache,lastCache,flag,content,nbody,reg,tu=App.TextareaUtils,clock,reqed={},validate=false,currentKey,keyChange=0,items;reg=/@[^@\s]{1,20}$/g;it.onClose=function(){cache=null;lastCache=null;currentKey=null;setTimeout(function(){try{current.focus()}catch(e){}},0)};it.onSelect=function(value){var st=current.scrollTop;current.focus();tu.insertText(current,value.substring(0,value.indexOf("(")>0?value.indexOf("("):value.length)+" ",selectionStart,currentKey.length);current.scrollTop=st};it.setContent=function(value,last){panel.style.height=current.clientHeight+"px";if(cache!=value){cache=value;content.innerHTML=format(value,hash)}if(lastCache!=last){lastCache=last;nbody.innerHTML=format(last,hash)}if(scope.$SAFARI){panel.style.overflowY=getStyle(current,"overflowY")=="hidden"?"hidden":"scroll"}else{panel.style.overflowY=(current.scrollHeight>current.clientHeight)?"auto":"hidden"}};it.initTip=function(json){var data,len,i=0,list=[],name,tmp="background-color:#ebebeb;",point;if(json.code=="A00006"&&(data=json.data||[])){point=getXY(flag);select.position(point[0],point[1],0,-(current.scrollTop-20));select.bind(current,data,currentKey,it.onSelect,it.onClose,selectHead);reqed[currentKey]=json;return}select.hidden()};it.check=function(){var snap,snap=value=current.value.replace(/\r/g,""),key,len,html,param,last;selectionStart=tu.selectionStart(current);value=value.slice(0,selectionStart);if((key=value.match(reg))&&(key=key[0])&&/^@[a-zA-Z0-9\u4e00-\u9fa5_]+$/.test(key)){key=key.slice(1);if(currentKey==key){return}currentKey=key;last=snap.slice(selectionStart-currentKey.length,snap.length);value=value.slice(0,-currentKey.length-1);it.setContent(value,last);if(reqed[key]){it.initTip(reqed[key]);return}doRequest("/mblog/aj_searchat.php?atkey="+encodeURIComponent(key),function(json){it.initTip(json,key)},select.hidden);return}select.hidden()};it.sleep=function(event){var keyCode=event.keyCode;if(keyCode=="27"){return}clearTimeout(clock);clock=setTimeout(it.check,100)};it.bindEvent=function(oElement,b){var act=b?addEvent:removeEvent;act(oElement,it.sleep,"keypress");act(oElement,it.sleep,"keyup");act(oElement,it.sleep,"mouseup")};it.rePosition=(function(){var clock,stop=function(){clearInterval(clock)};var flush=function(){try{if(!current){return}point=getXY(current);with(panel.style){left=point[0]+"px";top=point[1]+"px"}}catch(e){stop()}};return function(){stop();clock=setInterval(flush,100)}})();it.mirror=function(oStyleFix){var i=0,p,len=cssg.length,point,fix=0,size="14px",w;if($MOZ){fix=-2}if(scope.$SAFARI){fix=-6}for(i;i<len;i++){panel.style[cssg[i]]=getStyle(current,cssg[i])}for(p in cssc){panel.style[p]=current.style[p]=cssc[p]}for(p in oStyleFix){panel.style[p]=current.style[p]=oStyleFix[p]}if(oStyleFix&&oStyleFix.fontSize){size=oStyleFix.fontSize}hash[" "]=!isCss1?"<span style='white-space:pre-wrap;font-size:"+size+";font-family:"+font+";'> </span>":"<pre style='overflow:hidden;display:inline;font-size:"+size+";font-family:"+font+";word-wrap:break-word;'> </pre>";panel.style.width=((parseInt(current.style.width)||current.offsetWidth)+fix)+"px";it.bindEvent(current,true);it.rePosition();return false};it.to=function(oElement,oStyleFix){if(current==oElement){return}if(!it.panel){d.body.appendChild(it.panel=panel=$C("div"));panel.appendChild(it.content=content=$C("span"));panel.appendChild(it.flag=flag=$C("span"));panel.appendChild(it.nbody=nbody=$C("span"));with(panel.style){zIndex=-1000;position="absolute"}flag.innerHTML="@";setStyle(panel,"opacity",0)}current&&it.bindEvent(current,false);(current=oElement)&&it.mirror(oStyleFix)};return it})();return function(oElement,oStyleFix){oElement.style.fontFamily=font;addEvent(oElement,function(){at.to(oElement,oStyleFix)},"focus")}})();scope.loginKit=function(){var b=document.cookie+";";var j=["SUP","=([^;]*)?;"].join("");var a=["(\\?|&)","uid","=([^&]*)(&|$)"].join("");var h=b.match(new RegExp(j,"i"));h=(h)?h[1]||"":"";h=unescape(h);var f=h.match(new RegExp(a));f=(f)?f[2]||"":"";var g=scope["$oid"];return{uid:f,isLogin:!!f,isAdmin:f&&g&&(f==g)}};scope.$isLogin=function(){return scope.loginKit().isLogin};scope.$isAdmin=function(){return scope.loginKit().isAdmin};Core.Dom.previous=function(g,b){var f=$E(g);if(f==f.parentNode.firstChild){return null}var a=f.previousSibling;if(a.nodeType!=1){return Core.Dom.previous(a,b)}if(a.className.indexOf(b)!=-1){return a}else{return Core.Dom.previous(a,b)}};App.ModForward=function(P,m,g,R,n,t,q,p,K){Core.Events.stopEvent();if(R&&R.getAttribute("allowforward")){App.alert($SYSMSG.M02020);return false}if(scope.$cuser_status==="nofull"&&scope.$uid!==""){App.finishInformation();return false}if(g===scope.$uid){App.alert($CLTMSG.CD0024);return false}var A=function(U,T){if((new RegExp("(@|＠)"+T+"([^a-zA-Z0-9\u4e00-\u9fa5_]|$)")).test(U)){return true}else{return false}};var x=$CLTMSG.CD0025;var E="";var a=decodeURIComponent(t);var O=decodeURIComponent(q);var y=decodeURIComponent(p);try{var o=scope.$pageid==="mblog"?location.href.replace(/t.sina.com.cn/,"weibo.com"):Core.Dom.previous(R.parentNode,"lf").getElementsByTagName("a")[0].href.replace(/t.sina.com.cn/,"weibo.com")}catch(S){var o="http://weibo.com"}if(q===""||q===undefined){E=x}else{E=" //@"+a+":"+O}var F=$CLTMSG.CD0026;var G='<div class="shareLogin">                    	<div id="loginerror_'+P+'"></div>						<em>'+$CLTMSG.CD0027+'</em>                        <span class="cInputBorder"><span class="cInputborderR"><input type="text" id="logintitle_'+P+'" class="inputType"  style="width: 100px;"/></span></span>                        <em>&nbsp&nbsp&nbsp&nbsp'+$CLTMSG.CD0028+' </em>                        <span class="cInputBorder"><span class="cInputborderR"><input type="password" id="loginpwd_'+P+'" class="inputType" style="width: 100px;"/></span></span>                    	<div class="clearit"></div>                    </div>';G="";if(R){var l=R.getAttribute("lastforwardername");var I=R.getAttribute("initblogername")}var f=[];f.push('<div class="selSend">');if(l){f.push('<p><label for="lastForwarder_'+P+'"><input type="checkbox" class="labelbox" id="lastForwarder_'+P+'" />'+$CLTMSG.CD0029.replace(/#\{forwarder\}/g,l)+"</label></p>")}if(I&&I!=l){f.push('<p><label for="initBloger_'+P+'"><input type="checkbox" class="labelbox" id="initBloger_'+P+'" />'+$CLTMSG.CD0030.replace(/#\{bloger\}/g,I)+"</label></p>")}f.push(" </div>");var D='			<div class="shareLayer" id="forwardcontent_'+P+'">				<div class="zok" id="modforwardsucess_'+P+'" style="display:none"></div>				<div id="mdforwardinputarea_'+P+'">				<div class="turnToTxt" id="sharecontent_'+P+'">'+$CLTMSG.CD0031+decodeURIComponent(m)+'</div>				<div class="clearit"></div>				<div style="margin-top:5px;">					<div class="lf">						<a onclick="App.showFaces(this,$E(\'mdforwardtextarea_'+P+'\'),-29,5);return false;" title="'+$CLTMSG.CD0032+'" href="####" class="faceicon1"></a>					</div>				</div>				<div id="tipInfoBox'+P+'" style="float:right;margin-right:13px;color:#008800"></div>				<textarea class="PY_textarea" id="mdforwardtextarea_'+P+'">'+E+"</textarea>"+G+f.join(" ")+'<div class="MIB_btn popreport_info">'+$CLTMSG.WB0001.replace(/#\{url}/,o)+'</div><div class="MIB_btn"><a href="javascript:void(0);" id="mdforwardbtn_'+P+'" class="btn_normal"><em>'+$CLTMSG.CD0023+'</em></a><a href="javascript:void(0)" id="mdforwardcancel_'+P+'" class="btn_notclick"><em>'+$CLTMSG.CD0005+"</em></a></div>				</div>			</div>		";var j={width:390,zIndex:1000};var Q=new App.Dialog.BasicDialog(F,D,j);Q.onClose=function(){setTimeout(function(){var T=$E("num_"+P);if(T){T.parentNode.focus()}},200)};Q._success=function(T){Q.close();var U=new App.alert($CLTMSG.CD0035,{icon:3,hasBtn:false});setTimeout(function(){U.close();T()},1000)};var k=$E("mdforwardtextarea_"+P);var J=$CLTMSG.CD0033;var s=$CLTMSG.CD0034;var M=function(){var T=Math.ceil(Core.String.byteLength(Core.String.trim(k.value))/2);if($E("tipInfoBox"+P)){if(T>140){$E("tipInfoBox"+P).innerHTML=s.replace(/\$\{num\}/,(v/2-T)*(-1));$E("tipInfoBox"+P).style.color="#880000";return false}else{if(Core.String.trim(k.value)===x){$E("tipInfoBox"+P).innerHTML=J.replace(/\$\{num\}/,140);$E("tipInfoBox"+P).style.color="#008800";return true}$E("tipInfoBox"+P).innerHTML=J.replace(/\$\{num\}/,(v/2-T));$E("tipInfoBox"+P).style.color="#008800";return true}}};if(R){try{setTimeout(function(){$E("mdforwardtextarea_"+P).focus();if(!$IE){$E("mdforwardtextarea_"+P).setSelectionRange(0,0)}M()},100)}catch(S){}}else{Q.show();$E("mdforwardtextarea_"+P).focus();if(!$IE){$E("mdforwardtextarea_"+P).setSelectionRange(0,0)}setTimeout(M,1)}var b="/mblog/forward.php";if(scope.$eid){b="/event/aj_forward.php"}var H=$E("mdforwardbtn_"+P);var v=280;App.BindAtToTextarea(k,{borderWidth:"1px",fontSize:"12px"});App.autoHeightTextArea(k,function(){setTimeout(M,1)},145);var w=$E("loginerror_"+P);var C="btn_notclick";var z="btn_normal";var r=$E("logintitle_"+P);var h=$E("loginpwd_"+P);var B={zIndex:1010,ref:r,wrap:w,offsetY:-1,offsetX:30};k.onfocus=function(){if(k.value===x){k.value=""}};k.onblur=function(){if(k.value===""){k.value=x}};k.onkeydown=function(T){T=T||window.event;if(T.keyCode===13&&T.ctrlKey){H.onclick()}};if($E("lastForwarder_"+P)){$E("lastForwarder_"+P).onkeydown=function(T){T=T||window.event;if(T.keyCode===13&&T.ctrlKey){H.onclick()}}}if($E("initBloger_"+P)){$E("initBloger_"+P).onkeydown=function(T){T=T||window.event;if(T.keyCode===13&&T.ctrlKey){H.onclick()}}}$E("mdforwardcancel_"+P).onclick=function(){Q.close();return false};function N(){var X=k.value=Core.String.leftB(k.value,v);if(X===x){X=""}var aa={reason:X.replace(/\uff20/ig,"@"),mid:P,styleid:scope.styleid,retcode:scope.doorretcode||""};if(scope.$eid){aa.eid=scope.$eid}scope.doorretcode="";if(scope.$pageid==="search"){aa.from="search"}if((scope.$pageid==="myprofile"||scope.$pageid==="search")&&scope.$feedtype!=="isori"){aa.isindex=1}var V=function(ag,ad){if(aa.isLast){var ah=$E("_comment_count_miniblog2_"+P);if(!ah){return}var ae=ah.getElementsByTagName("strong");if(ae&&(ae=ae[1])){var af=ae.innerHTML;af=parseInt(af.match(/(\d+)/));af=((af+"")=="NaN"?0:af);af=Math.max((af+1),0);ae.innerHTML="";af&&(ae.innerHTML=["(",af,")"].join(""))}}var ai=function(){if(!scope.loginKit().isLogin){location.reload()}if(typeof K==="function"){K(R)}if(App.refurbishUpdate){App.refurbishUpdate.add(1)}if(!ag){return}var ao=$E("myTempFeedUl");var am=ao||$E("feed_list");am.style.display="";if(am){var aj=document.createElement("UL");aj.innerHTML=ag.html;var al=window.document,ak=al.documentElement||{};var an=function(){if(arguments.length>0){ak.scrollTop=arguments[0];al.body.scrollTop=arguments[0];return}return(window.pageYOffset||Math.max(ak.scrollTop,al.body.scrollTop))};setTimeout(function(){var ap=aj.getElementsByTagName("LI")[0];if(!ap){return}am.parentNode.insertBefore(aj,am);var ar=am.getElementsByTagName("LI")[0];if(ar){am.insertBefore(ap,ar)}else{am.appendChild(ap)}aj.parentNode.removeChild(aj);try{App.bindMedia(ap);if(typeof App.regPopCard==="function"){var aq={container:ap,tag:"namecard"};App.regPopCard(aq)}}catch(au){}var at=am.getElementsByTagName("LI")[0].offsetHeight;an(an()+at);setTimeout(function(){var av=$E("num_"+P);if(av){av.parentNode.focus()}},2000)},1000)}};Q._success(ai);var ac=$E(n);if(ac){var af=ac.innerHTML.match(/\d+/)||0;ac.innerHTML="("+(parseInt(af)+1)+")";ac.style.display=""}};var U=function(ac){H.className=z;if(ac&&typeof ac==="string"&&ac.indexOf("error")>0){App.alert($CLTMSG.CD0036);return false}if(ac.code==="MR0050"){H.className=z;App.forbidrefresh(function(){Core.Events.fireEvent(H,"click")},b);return false}if(ac===$CLTMSG.CD0037){return}App.alert(ac,{ok:function(){if(!scope.loginKit().isLogin){location.reload()}if(ac.code==="M01155"){Q.close()}}})};var ab=0;if($E("lastForwarder_"+P)&&$E("lastForwarder_"+P).checked){aa.isLast="1";ab++}if($E("initBloger_"+P)&&$E("initBloger_"+P).checked){aa.isRoot="1";ab++}if(ab>0){b+="?f="+ab}var Z=aa.reason;var Y=Z.split("//@");Z=Z.replace(new RegExp("//@","gm"),"");var W=Z.split("@");if((W.length-Y.length)>5){var T=App.confirm({html:$CLTMSG.ZB0032},{icon:1,ok:function(){App.doRequest(aa,b,V,U)},cancel:function(){H.className=z;H.focus();return false},ok_focus:true});T.onClose=function(){try{H.className=z;H.focus()}catch(ac){}return false};return}App.doRequest(aa,b,V,U)}function L(U,T){T.focus();App.fixElement.setHTML(U,"",B);H.className=z;return false}H.onclick=function(){if(!M()){var U=["#fff","#fee","#fdd","#fcc","#fdd","#fee","#fff","#fee","#fdd","#fcc","#fdd","#fee","#fff"];var T=0;var V=App.timer.add(function(){if(T/2>=U.length){App.timer.remove(V);return false}k.style.backgroundColor=U[T/2];T+=1});return false}if(H.className===C){return false}H.className=C;if(scope.loginKit().isLogin){N()}else{App.ModLogin({func:function(){N()}});H.className=z}return false};App.enterSubmit({parent:"forwardcontent",action:function(){H.onclick()}})};Core.Dom.replaceNode=function(a,b){if(a==null||b==null){return false}a=$E(a);b=$E(b);b.parentNode.replaceChild(a,b)};App.flyDialog=function(b,a,h,g){var f=App[a||"alert"](b,g);return f};Core.Events.getEventTarget=function(a){a=a||Core.Events.getEvent();Core.Events.fixEvent(a);return a.target};Core.String.encodeHTML=function(a){var b=document.createElement("div");b.appendChild(document.createTextNode(a));return b.innerHTML.replace(/\s/g,"&nbsp;")};Core.String.decodeHTML=function(a){var b=document.createElement("div");b.innerHTML=a;return b.innerText==undefined?b.textContent:b.innerText};(function(){var j={AREA:"MAP",CAPTION:"TABLE",COL:"TABLE|COLGROUP",COLGROUP:"TABLE",LEGEND:"FIELDSET",OPTGROUP:"SELECT",OPTION:"SELECT",PARAM:"OBJECT",TBODY:"TABLE",TD:"TR",TFOOT:"TABLE",TH:"TABLE|TR",THEAD:"TABLE",TR:"TBODY|THEAD|TH|TFOOT"};var h=Core.String.trim;var k=function(q,p,r){var s=null;if(q.toUpperCase()=="TEXT"){s=document.createTextNode(q)}else{s=$C(q)}if(typeof p==="object"){for(var o in p){switch(o){case"class":s.className=p[o];break;case"id":r.domList[p[o]]=s;break;case"action":if(r.actList[p[o]]){r.actList[p[o]]=r.actList[p[o]].concat([s])}else{r.actList[p[o]]=[s]}break;case"style":s.style.cssText=p[o];break;case"innerHTML":if(s.nodeType===3){s.nodeValue=Core.String.decodeHTML(p[o])}else{s.innerHTML=p[o]}break;case"nodeValue":if(s.nodeType===3){s.nodeValue=p[o]}else{s.innerHTML=Core.String.encodeHTML(p[o])}break;default:s.setAttribute(o,p[o])}}}return s};var b=function(s,t){var q=j[t.tag];if(q){var r=q.split("|");for(var p=0,o=r.length;p<o;p++){if(s.tagName==r[p]){return true}}return false}return true};var g=function(p,r,q){r.tag=r.tag.toLocaleUpperCase();if(!b(p,r)){return false}var o=k(r.tag,r.attr,q);p.appendChild(o);return o};var l=function(r,p,s){for(var q=0,o=p.length;q<o;q++){var t=g(r,p[q],s);if(!t){alert("tree wrong!!!");return false}if(p[q].list&&p[q].list.length){l(t,p[q].list,s)}}};var f=function(o){var p={};var r=[];if(o){var q=new RegExp("(?:([^\\s=]+)\\s*=\\s*[\\\"\\']([^=\\\"\\']*)[\\\"\\'])","ig");while(r=q.exec(o)){p[r[1]]=r[2]}}return p};var m=function(w){var v=n(w);var s=[];var q=s;var p=[];for(var t=0,o=v.length;t<o;t+=1){if(v[t][1]===undefined){var r=a(["","","text",'innerHTML="'+v[t][0]+'"',""]);q.push(r)}if(v[t][1]===""){if(h(v[t][0])==""){continue}else{if(/^\<[^\>]+\>$/.test(v[t][0])){var r=a(v[t]);q.push(r);if(!/\/\s*>$/.test(v[t][0])){r.list=[];q=r.list;p.push(q)}}else{var r=a(["","","text",'innerHTML="'+v[t][0]+'"',""]);if(h(v[t][0]).replace(/\r|\n/ig,"")){q.push(r)}}}}if(v[t][1]==="/"){p.pop();if(p.length===0){q=s}else{q=p[p.length-1]}}}return s};var a=function(p){var o={};o.tag=p[2];o.attr=f(p[3]);return o};var n=function(s){var q=/[^<>]+|<(\/?)([A-Za-z]+)([^<>]*)>/g;var o,r;var p=[];while((o=q.exec(s))){var t=[];for(r=0;r<o.length;r+=1){t.push(o[r])}p.push(t)}return p};App.builder2=function(o){var p={};p.box=null;p.domList={};p.actList={};if(o.box){p.box=o.box}else{p.box=$C("DIV")}if(o.template){if(typeof o.template==="string"){o.template=m(o.template)}l(p.box,o.template,p)}return p}})();Core.Dom.getLeft=function(a){var f=0;var b=$E(a);if(b.offsetParent){while(b.offsetParent){f+=b.offsetLeft;b=b.offsetParent}}else{if(b.x){f+=b.x}}return f};App.square_pop=function(){if(!$E("square_pop")){return false}var o=Core.Events.addEvent;var l=Core.Events.getEventTarget;var p=Core.Events.stopEvent;var q=Core.Dom.getElementsByClass;var g=Core.Dom.getLeft;var m=Core.Dom.getXY;var k=null;var f={oSquare:$E("gotosquare"),oPop:$E("square_pop")};var r=q(f.oPop,"div","arrows")[0];var n=0;var b=0;var t=0;var a=function(z,y){n=r.offsetLeft;b=r.offsetHeight;var v=Core.Dom.getElementsByClass(document,"div","MIB_trayMain_txt")[0];t=m(v)[1]+v.offsetHeight+b;var x=(g(z)+(z.offsetWidth/2)-n)+"px";var w=t+"px";y.style.left=x;y.style.top=w};var j=function(){clearInterval(k)};var s=function(v){v.style.display="";a(f.oSquare,f.oPop);o(document.body,h,"mouseover")};var h=function(){var v=Core.Events.fixEvent(Core.Events.getEvent());var x=l(Core.Events.getEvent());var w=v.clientY;var y=v.clientX;var z=m(f.oSquare);while(x){if((x==f.oPop||x==f.oSquare)||(y>=z[0]&&y<=z[0]+f.oSquare.offsetWidth&&w<t)){return true}if(x!=document.body){x=x.parentNode}else{break}}j();f.oPop.style.display="none";Core.Events.removeEvent(document.body,h,"mouseover")};o(f.oSquare,(function(){return function(){s(f.oPop)}})(),"mouseover")};App.Clip=function(b,f){var k={};var l=f||{};var a,h,j,m;var g=function(q,n,r){var o={};o.left=(n.left&&n.left+"px")||"auto";o.right=n.right||"auto";o.top=n.top||"auto";o.bottom=n.bottom||"auto";o.endPixel=n.endPixel||0;q.style.clip="rect("+o.top+","+o.right+","+o.bottom+","+o.left+")";var p=0;if(!a){a=window.setInterval(function(){r(o)},1)}};k.stopClip=function(){clearInterval(a);m(l);a=null};k.startClip=function(){b.style.visibility="visible";g(b,f,h)};switch(l.clipType){case"1":m=function(n){j=parseInt(n.right||"0")};h=function(n){j+=l.clipspeed||2;b.style.clip="rect("+n.top+","+j+"px,"+n.bottom+","+n.right+")";if(j>=parseInt(n.endPixel)){clearInterval(a)}};m(l);break;case"2":m=function(n){j=parseInt(n.bottom||"0")};h=function(n){j+=l.clipspeed||2;b.style.clip="rect("+n.top+","+n.right+","+j+"px,"+n.left+")";if(j>=parseInt(n.endPixel)){clearInterval(a)}};m(l);break}return k};App.unit=function(){var b={},a;b.u=u=function(h,g){var f={it:b,sup:b[g]};return function(){h.apply(f,arguments);return b}};return b};(function(a){a.DomBuilder=function(n,s,f){f=typeof f=="object"?f:{};var g=$C("div");g.innerHTML=n;var l={},m=0,r={},v={},b=g.getElementsByTagName("*"),p=b.length,k=f.clear||1,j=f.mm||"mm",o=f.dd||"dd",q,h,t;for(m;m<p;m++){q=b[m];t=q.getAttribute(o);h=q.getAttribute(j);t&&(r[t]=q)&&(k&&q.removeAttribute(o));h&&((!v[h]&&(v[h]=[q]))||(v[h]=v[h].concat([q])))&&(k&&q.removeAttribute(j))}l.parent=s;l.domList=r;l.actList=v;l.add=function(){while(g.firstChild){s.appendChild(g.firstChild)}return l};return l};a.builder3=function(b,f,g){f.innerHTML="";return a.DomBuilder(b,f,g).add()}})(App);App.removeChildren=function(a){var b;while(b=a.firstChild){a.removeChild(b)}};(function(proxy){var d=document,zIndex=1000;function b2(t,b){return App.builder3(t,b,{dd:"id",mm:"action"})}proxy.PopUp=function(){var it=App.unit(),u=it.u,wrap,body,mask,cp="position:absolute;clear:both;",ch="visibility:hidden;display:none",cs="width:100%;height:100%",rall=App.removeChildren;with(it.wrap=wrap=$C("div")){appendChild(it.body=body=$C("div"));style.cssText=[cp,ch,"z-index:"+zIndex++].join(";")}it.mask=u(function(){if(!mask){wrap.insertBefore(mask=$C("iframe"),body);with(mask){frameborder=0;src="about:blank";style.cssText=[cp,cs,"filter:alpha(opacity=0);opacity:0;z-index:-1"].join(";")}}});it.content=u(function(html){rall(body);it.dom=b2(html,body)["domList"]});it.position=u(function(x,y){with(wrap.style){left=x+"px";top=y+"px"}});it.visible=u(function(b){with(wrap.style){visibility=b?"visible":"hidden";display=b?"":"none"}});it.zIndex=u(function(nIndex){wrap.style.zIndex=nIndex});it.destroy=u(function(){wrap.parentNode.removeChild(wrap);wrap=body=mask=dom=null});d.body.appendChild(wrap);return it}})(App);(function(a){a.ELSize=function(h,g,b){var m=Core.Dom.getStyle,j=h[(g=="width")?"offsetWidth":"offsetHeight"],f=0,k=["padding","margin","border"],l=(g=="width")?["Left","Right"]:["Top","Bottom"];for(f;f<l.length;f++){j-=parseFloat(m(h,"padding"+l[f]))||0;b&&(j+=parseFloat(m(h,"margin"+l[f]))||0);j-=parseFloat(m(h,"border"+l[f]+"Width"))||0}return j}})(App);(function(b){var f=document,a;App.Wipe=function(y,v,h){var m=App.unit(),w=App.ELSize,k=0,p=m.u,o,s=h||8,j=y,g,z=v,t=z.style,n,r,x,l,q;if(!j){j=$C("div");j.style.cssText="position:relative;clear:both";n=z.parentNode;n.insertBefore(j,z);j.appendChild(z)}g=j.style;m.isPlaying=function(){return k};m.isVisible=function(){return isVisible};m.reset=p(function(){k=0;clearInterval(o);g.visibility="hidden";r=x=l=q=null});m.wipe=p(function(B,E,F,I){if(k){return}var J,K,N,D,A,C,G=1,L=E==a?true:E,H,M;k=1;g.visibility=g.overflow="hidden";g.display="block";t[$IE?"styleFloat":"cssFloat"]="left";t.marginTop=t.marginLeft="0px";t.width=(r||(r=w(z,"width")))+"px";t.height=(x||(x=w(z,"height")))+"px";g.width=(l||(l=z.offsetWidth))+"px";g.height=(q||(q=z.offsetHeight))+"px";t.marginTop=t.marginLeft="0px";J={up:0,down:1,left:2,right:3}[B];K=["marginTop","height","marginLeft","width"][J];N=[t,g,t,g][J];D=[q,q,l,l][J];A=[0,1,0,1][J];H=[D];H[s]=0;for(G;G<s;G++){H[G]=(D=D/2)}I&&H.reverse();M=H.concat().reverse();C=(L?A:!A)?M:H;N[K]=[C[0],"px"].join("");g.visibility="visible";clearInterval(o);o=setInterval(function(){if(C.length){N[K]=Math.floor(C.shift())+"px";return}clearInterval(o);k=0;L&&(g.overflow="");try{t.cssText="";F&&p(F)()}catch(O){}},30)});return m}})(App);(function(b){var j,h,a,f=8,g;b.scrollTo=function(m,k,l){f=l||f;g=m-k;h=[g];h[f]=0;a=1;for(a;a<f;a++){h[a]=(g=g/2)}clearInterval(j);j=setInterval(function(){if(h.length){window.scrollTo(0,k+h.shift());return}clearInterval(j)},30)}})(App);(function(f){var g=document,h=(g.documentElement||{}),b,a=function(k,j){return App.builder3(k,j,{dd:"id",mm:"action"})};f.PopUpWipe=function(){var l=f.PopUp(),o=l.u,m=l.e,q=[],n,r,k,j,p;l.ani=App.Wipe(l.wrap,l.body);l.wipe=o(function(v,s,t){n=v;l.ani.wipe(v,s,t)});l.wipeHide=o(function(){l.ani.reset();l.wipe(n,false,function(){l.visible(false)})});l.position=o(function(s,t){if(k!=s||j!=t){k=s;j=t;l.ani.reset()}n=null;p=window.pageYOffset||Math.max(h.scrollTop,g.body.scrollTop);if(t<p){App.scrollTo(p,t)}this.sup(s,t)},"position");l.close=o(function(){if(!n){l.visible(false);return false}l.wipeHide()});return l}})(App);(function(l){var k=document,b=Core.Events,f=b.addEvent,j=b.removeEvent,h=b.stopEvent,a=App.removeChildren,m,g=function(o,n){return App.builder3(o,n,{dd:"id",mm:"action"})};l.BasePopUpDialog=function(){var q='<div id="panel" class="miniPopLayer" style="width:200px;"><div id="typePanel" class="txt1 gray6"><img class="tipicon tip1" id="icon" src="'+scope.$BASECSS+'style/images/common/PY_ib.gif"/><div id="content"></div></div><div id="buttonPanel" style="display:none" class="btn"></div></div>';var p=l.PopUpWipe().content(q),o=Core.System.winSize(),n=p.u,r=p.dom;p.show=n(function(){p.visible(true)});p.hide=n(function(){p.visible(false)});p.width=n(function(s){r.panel.style.width=(s||200)+"px"});p.addButton=n(function(w,s){if(w===m&&s===m){a(r.buttonPanel);return}var v;r.buttonPanel.appendChild(v=$C("span"));var t=g(['<a id="button" style="width:39px;" class="newabtn_ok" href="javascript:void(0)" onclick="return false;"><em>',w,"</em></a>"].join(""),v)["domList"]["button"];t.onclick=n(s);r.buttonPanel.style.display=""});p.content=n(function(s){r.content.innerHTML=s});p.icon=n(function(s){r.icon.className=["tipicon tip",s].join("")});p.wipe=n(function(v,s,t){this.sup(v,s,t)},"wipe");f(window,function(){var s=Core.System.winSize();if(o.width!=s.width||o.height!=s.height){p.visible(false);o=s}},"resize");return p};l.PopUpAlert=(function(){var q,o,n,r,p;return function(){if(q){return q}q=l.BasePopUpDialog();o=q.u;q.yes=o(function(s){q.onYes=s});q.close=o(function(s){clearTimeout(p);typeof q.onYes=="function"&&q.onYes();this.sup()},"close");q.lateClose=o(function(s){clearTimeout(p);p=setTimeout(function(){q.close()},s||3000)});q.position=o(function(s,t){if(s!=n||t!=r){n=s;r=t;clearTimeout(p)}this.sup(s,t)},"position");return q}})();l.PopUpConfirm=(function(){var p,o,n,q;return function(){if(p){return p}p=l.BasePopUpDialog();o=p.u;p.yes=o(function(r){p.onYes=r});p.no=o(function(r){p.onNo=r});p.close=o(function(r){typeof p.onNo=="function"&&p.onNo();this.sup()},"close");p.addButton($CLTMSG.CX0125,function(){typeof p.onYes=="function"&&p.onYes();p.wipeHide()});p.addButton($CLTMSG.CX0126,function(){p.close()});return p}})()})(App);App.Dom=(function(){var b=document.documentElement,a=(!b.hasAttribute)?"className":"class";var f={trim:function(g){try{return g.replace(/^\s+|\s+$/g,"")}catch(h){return g}},hasClass:function(j,h){var g=false,k;if(j&&h){k=j.getAttribute(a)||"";if(h.exec){g=h.test(k)}else{g=h&&(" "+k+" ").indexOf(" "+h+" ")>-1}}else{}return g},addClass:function(j,h){var g=false,k;if(j&&h){k=j.className||"";if(!this.hasClass(j,h)){k+=" "+h;j.setAttribute(a,k.replace(/^\s+|\s+$/g,""));g=true}}else{}return g},removeClass:function(k,j){var h=false,m,l,g;if(k&&j){m=k.getAttribute(a)||"";k.setAttribute(a,f.trim((m+" ").replace(j+" ","")));l=k.getAttribute(a);if(m!==l){k.setAttribute(a,f.trim(l));h=true;if(k.getAttribute(a)===""){k.removeAttribute(a)}}}else{}return h},replaceClass:function(h,j,g){f.removeClass(h,g);f.addClass(h,j)},getByClass:function(m,h,j){m=f.trim(m);h=h||"*";if(!j){return[]}var k=[],n=j.getElementsByTagName(h);for(var l=0,g=n.length;l<g;++l){if(f.hasClass(n[l],m)){k[k.length]=n[l]}}return k},getBy:function(n,h,j){h=h||"*";if(!j){return[]}var k=[],m=j.getElementsByTagName(h);for(var l=0,g=m.length;l<g;++l){if(n(m[l])){k[k.length]=m[l]}}return k},getXY:function(k,h){h=h||{};h.abs=h.abs||false;var l={};var j=function(p){var m=0,q=0;if(p.getBoundingClientRect){var n=p.getBoundingClientRect();var o=b;m=n.left+Math.max(o.scrollLeft,document.body.scrollLeft)-o.clientLeft;q=n.top+Math.max(o.scrollTop,document.body.scrollTop)-o.clientTop}else{for(;p!=document.body;m+=p.offsetLeft,q+=p.offsetTop,p=p.offsetParent){}}return{x:m,y:q}};l=j(k);if(h.abs){while(k=k.offsetParent){if(App.Dom.getStyle(k,"position")=="absolute"){var g=j(k);l.x-=g.x;l.y-=g.y}}}return l},getScreen:function(){var g={};if($IE){g.w=b.clientWidth;g.h=b.clientHeight}else{g.w=window.innerWidth;g.h=window.innerHeight}return g},getStyle:function(g,k){if($IE){var j=g.currentStyle?g.currentStyle[k]:null;switch(k){case"opacity":var m=100;try{m=g.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(l){try{m=g.filters("alpha").opacity}catch(l){}}return m/100;case"float":k="styleFloat";case"height":return(j=="auto")?"0px":g.style[k];case"width":return(j=="auto")?"0px":g.style[k];default:var j=g.currentStyle?g.currentStyle[k]:null;return(g.style[k]||j)}}else{if(k=="float"){k="cssFloat"}try{var h=document.defaultView.getComputedStyle(g,"")}catch(l){traceError(l)}return g.style[k]||h?h[k]:null}},setStyle:function(g,h,j){if($IE){switch(h){case"opacity":g.style.filter="alpha(opacity="+(j*100)+")";if(!g.currentStyle||!g.currentStyle.hasLayout){g.style.zoom=1}break;case"float":h="styleFloat"}}else{if(h=="float"){h="cssFloat"}}g.style[h]=j},insertAfter:function(j,h){var g=h.parentNode;if(g.lastChild==h){g.appendChild(j)}else{g.insertBefore(j,h.nextSibling)}},getScroll:function(){var o=document.documentElement,k=document.body;var m,j,g,n;if(o&&o.scrollTop){m=o.scrollTop;j=o.scrollLeft;g=o.scrollWidth;n=o.scrollHeight}else{if(k){m=k.scrollTop;j=k.scrollLeft;g=k.scrollWidth;n=k.scrollHeight}}return{t:m,l:j,w:g,h:n}},domClick:function(h){if($IE){h.click()}else{var g=document.createEvent("MouseEvents");g.initEvent("click",true,true);h.dispatchEvent(g)}},contains:function(g,h){if(g===h){return false}else{if(g.compareDocumentPosition){return((g.compareDocumentPosition(h)&16)===16)}else{if(g.contains&&h.nodeType===1){return g.contains(h)}else{while(h=h.parentNode){if(g===h){return true}}}}}return false}};return f})();if(App.cartoon===undefined){App.cartoon={}}(function(a){a.noticeInput=function(j,h){if(!j){throw"noticeInput need an element"}if(!h){h={}}var g=h.orbit||["#fee","#fdd","#fcc","#fdd","#fee","#fff"];var l=h.times||2;var f=h.delay||2;var b=0;var k=App.timer.add(function(){if(b/f>=g.length){l-=1;if(l>0){b=0}else{App.timer.remove(k);return false}}j.style.backgroundColor=g[b/f];b+=1});return false}})(App.cartoon);Core.Dom.getTop=function(a){var f=0;var b=$E(a);if(b.offsetParent){while(b.offsetParent){f+=b.offsetTop;b=b.offsetParent}}else{if(b.y){f+=b.y}}return f};App.skin_pop=function(){if(!$E("skin_tip")){return false}var l=Core.Events.addEvent;var j=Core.Events.getEventTarget;var m=Core.Events.stopEvent;var n=Core.Dom.getElementsByClass;var b=Core.Dom.getLeft;var o=Core.Dom.getTop;var k=Core.Dom.getXY;var h=null;var g='<div id="skin_showtip" style="display:none;z-Index:999" class="pertemplate"><p><a href="/person/myskin.php">'+$CLTMSG.CC5701+'</a></p><img title="" class="icon_pertemplate" src="'+scope.$BASEIMG+'style/images/common/transparent.gif"></div>';Core.Dom.insertHTML(document.body,g,"beforeend");var a={oSkin:$E("skin_tip"),oPop:$E("skin_showtip")};var p=function(v){var r=b(a.oSkin);var q=o(a.oSkin);var t=(r-38)+"px";var s=(q-36)+"px";v.style.left=t;v.style.top=s;v.style.display="";l(document.body,f,"mouseover")};var f=function(){var q=Core.Events.fixEvent(Core.Events.getEvent());var r=j(Core.Events.getEvent());while(r){if((r==a.oPop||r==a.oSkin.parentNode)){return true}if(r!=document.body){r=r.parentNode}else{break}}a.oPop.style.display="none";Core.Events.removeEvent(document.body,f,"mouseover")};l(a.oSkin,(function(){return function(){p(a.oPop)}})(),"mouseover")};$registJob("initSearch",function(){Core.Events.addEvent($E("m_keyword"),App.focusblur,"blur");App.square_pop();App.skin_pop();App.search("m_keyword","m_submit","m_search",30,(scope.$FW==0)?$CLTMSG.WL0001:$CLTMSG.WL0002);$E("m_keyword").value=(scope.$FW==0)?$CLTMSG.WL0001:$CLTMSG.WL0002});App.search=function(k,j,a,f,g,m){var f=f||30;var n=$E(k);var j=$E(j);var a=$E(a);Utils.Sinput.limitMaxLen(n,f);var l=new App.autoSelect({input:n,id:n.id+"_tip",subbtn:j,panel:a,maxlen:12});var h={0:"/k/",1:"/search/user.php?search="};if(scope.$FW==0&&m!==undefined){l.curIndex=m}function b(q){var r=Core.String.trim(n.value);r=Core.String.leftB(r,f);if(r===((scope.$FW==0)?$CLTMSG.WL0001:$CLTMSG.WL0002)||r===""){n.focus();return App.cartoon.noticeInput(n)}if(r&&r!=g){var o;switch($CONFIG.$pageid){case"myprofile":if(window.location.href.indexOf("atme")!==-1){o="Aboutme_header"}else{o="Index_header"}break;case"miniblog_invite_search":o="User_header";break;case"commentHandler":o="Comments_header";break;case"favorite":o="favs_header";break;case"follow":if((window.location.href.indexOf("attention")!==-1)||(window.location.href.indexOf("follow")!==-1)){o="Friends_header"}else{o="fans_header"}break;case"mobile":o="Mobile_header";break;case"contactlist"||"talklist":o="messages_header";break;case"mymblog":o="Profile_header";break;case"skin":o="Skin_header";break;case"profile":o="people_header";break}var p=h[scope.$FW==0?l.curIndex:1]+encodeURIComponent(encodeURIComponent(r));location.href=p.indexOf("?")===-1?p+"?Refer="+o:p+"&Refer="+o}else{n.focus()}Core.Events.stopEvent(q)}Core.Events.addEvent(j,b,"click");App.enterSubmit({parent:a,action:function(o){Core.Events.fireEvent(j,"click")}})};App.autoSelect=function(a){this.panel=a.panel;this.input=$E(a.input);this.maxLen=a.maxlen||4*2;this.subbtn=a.subbtn;this.initHTML(a.id);this.clip=App.Clip($E(a.id),{clipType:"2",bottom:"0px",endPixel:"200px",clipspeed:4});Core.Events.addEvent(this.input,this.fileElement.bind2(this),"focus");scope.$FW==0&&Core.Events.addEvent(this.input,this.keydown.bind2(this),"keydown");scope.$FW==0&&Core.Events.addEvent(this.input,this.fileElement.bind2(this),"keyup");scope.$FW==0&&Core.Events.addEvent(document.body,this.removeElement.bind2(this),"click")};App.autoSelect.prototype={initHTML:function(a){var b=$E(a);var l="<span>"+$CLTMSG.CD0002+'</span><ul id="#{id}_content">'+$CLTMSG.CD0003+"</ul>";l=l.replace(/#\{id\}/g,a);b.innerHTML=l;var m=$E("m_keyword").value.replace(/^\s+|\s+$/g,"");var h=m==""||m==((scope.$FW==0)?$CLTMSG.WL0001:$CLTMSG.WL0002);App.Dom.getBy(function(n){if(n.getAttribute("act")=="def"){n.style.display=h?"":"none"}if(n.getAttribute("act")=="isinput"){n.style.display=!h?"":"none"}},"span",$E("m_keyword_tip"));b.style.zIndex=300;b.style.left=(Core.Dom.getXY(this.input)[0]-Core.Dom.getXY(b.parentNode)[0])+"px";b.style.top=(Core.Dom.getElementsByClass(b.parentNode,"div","head_menu")[0].offsetTop+this.panel.offsetTop+this.panel.offsetHeight)+"px";b.style.width=this.input.offsetWidth+"px";this.wrap=b;this.searchBlog=$E(a+"_blog");this.searchAuthor=$E(a+"_author");this.curIndex=0;this.elements=$E(a+"_content").getElementsByTagName("li");var g=this;for(var k=0,j=this.elements,f;k<j.length;k++){var f=j[k];f.onclick=Core.Function.bind3(g.setCurElement,g,[k,f,"click"]);f.onmouseover=Core.Function.bind3(g.setCurElement,g,[k,f,"mouseover"]);f.onmouseout=Core.Function.bind3(g.setCurElement,g,[k,f,"mouseout"])}},setCurElement:function(b,g,f){var h=Core.Events.getEvent();this.curIndex=b;this.curElement=g;this.complete();this.curElement=this.elements[this.curIndex];if(f=="mouseout"){var a=h.relatedTarget||h.toElement;if(a&&a.nodeType==1){if(a.tagName.toLowerCase()=="li"){this.elements[this.curIndex].className=""}}}if(f=="mouseover"){this.setBackGroud(g)}if(f=="click"){Core.Events.fireEvent(this.subbtn,"click");Core.Events.stopEvent(h);return false}},setBackGroud:function(g){for(var f=0,a=this.elements.length,b=this.elements;f<a;f++){var h=b[f];if(h!=g){h.className=""}else{h.className="cur"}}},fileElement:function(b){if(App.focusblur){App.focusblur()}if(scope.$FW==1){return}var b=Core.Events.getEvent();var g=this.input.value;g=Core.String.trim(g);var a=$E("m_keyword").value.replace(/^\s+|\s+$/g,"");var f=a==""||a==((scope.$FW==0)?$CLTMSG.WL0001:$CLTMSG.WL0002);if(f){this.wrap.style.display="none"}else{this.wrap.style.display="";this.clipStart()}if(Core.String.byteLength(g)>this.maxLen){g=Core.String.leftB(g,this.maxLen-1)+"..."}this.searchBlog.innerHTML=Core.String.encodeHTML(g);this.searchAuthor.innerHTML=Core.String.encodeHTML(g);Core.Events.addEvent(this.input,function(){var h=$E("m_keyword").value.replace(/^\s+|\s+$/g,"");var j=h==""||h==((scope.$FW==0)?$CLTMSG.WL0001:$CLTMSG.WL0002);App.Dom.getBy(function(k){if(k.getAttribute("act")=="def"){k.style.display=j?"":"none"}if(k.getAttribute("act")=="isinput"){k.style.display=!j?"":"none"}if(k.getAttribute("act")=="txt"){k.innerHTML=h}},"span",$E("m_keyword_tip"))},"keyup");return this},keydown:function(a){a=a||window.event;if(a.keyCode=="38"||a.keyCode=="37"){this.curIndex--}if(a.keyCode=="40"||a.keyCode=="39"){this.curIndex++}this.curIndex=this.complete();if(this.curElement==this.elements[this.curIndex]){return true}if(this.curElement){this.curElement.className="";this.curElement=null}this.curElement=this.elements[this.curIndex];this.curElement.className="cur";this.url=this.curElement.getAttribute("url")},clipStart:function(){if(this.wrap.style.visibility!="visible"){this.clip.startClip()}},complete:function(){if(this.curIndex<0){this.curIndex=this.elements.length-1}if(this.curIndex>=this.elements.length){this.curIndex=0}return this.curIndex},removeElement:function(){this.wrap.style.visibility="hidden";this.clip.stopClip();this.wrap.style.display="none"}};(function(){var g=function(m){if(m){for(var l in m){scope[l]=m[l]}}};var a=App.builder2({template:'<div class="inter_tip" id="outer" style="position:absolute"><div class="tipcontent" id="inner"></div><div class="tipbt"></div></div>'});var h=function(){document.body.appendChild(a.domList.outer);a.domList.outer.style.zIndex=200;var l=Core.Dom.getXY($E("cancelfollow"));a.domList.outer.style.left=(l[0]-45)+"px";a.domList.outer.style.top=(l[1]-70)+"px";a.domList.inner.innerHTML=$CLTMSG.CY0107};var b=function(){if($E("cancelfollow")){h();$E("cancelfollow").onmouseover=function(){a.domList.outer.style.display=""};$E("cancelfollow").onmouseout=function(){a.domList.outer.style.display="none"};a.domList.outer.style.display="none"}else{a.domList.outer.style.display="none";setTimeout(b,2000)}};b();var k=function(n){var m=[];if(typeof n=="string"||n==null){return n}if(typeof n=="object"){if(!n.sort){m[0]="{";for(var l in n){m[m.length]=l;m[m.length]=":";m[m.length]="'"+k(n[l])+"'";m[m.length]=","}m[m.length-1]="}"}}return m.join("")};var j;var f=function(){for(var l=0;l<j.length;l++){if(!j[l].element){continue}j[l].element.innerHTML=j[l].html;if(j[l].classname){j[l].element.className=j[l].classname}}};App.followOper=function(o,s,m,r,F,t){scope._uid_=s;if(!scope.$uid){location.replace("/login.php?url="+encodeURIComponent(location.href));return false}if(scope.$cuser_status==="nofull"){App.finishInformation();return false}var E=1;var q="";var z=$C("div");z.id="atnRelation";var l=t?(","+k(t)):"";var n=$E("pop_3")||$E("atnRelation")||m.parentNode;try{if(o=="add"){b();q="/attention/aj_addfollow.php";if(t){q+=("?"+App.jsonToQuery(t))}j=[{element:z,html:n.innerHTML,classname:n.className},{element:$E("more_handle")||null,html:($E("more_handle")&&$E("more_handle").innerHTML)||null,classname:""}];if(scope.isfans){z.className="MIB_btn_inter lf";z.innerHTML=$CLTMSG.CY0105+'<span class="MIB_line_sp">|</span><a id="cancelfollow" onclick="App.removeFollow(\''+s+"',this,'"+F+"'"+l+')" href="javascript:void(0);"><em>'+$CLTMSG.CD0005+"</em></a>"}else{z.className="MIB_btn2 lf";z.innerHTML=$CLTMSG.CD0004+'<span class="MIB_line_sp">|</span><a id="cancelfollow" onclick="App.removeFollow(\''+s+"',this,'"+F+"'"+l+')" href="javascript:void(0);"><em>'+$CLTMSG.CD0005+"</em></a>"}if(scope.$pageid=="profile"&&Core.Dom.getElementsByClass(document,"DIV","roommate").length>0){Core.Dom.getElementsByClass(document,"DIV","roommate")[0].style.display="";var x=Core.Dom.getElementsByClass(document,"DIV","roommate")[0];var D=Core.Dom.getElementsByAttr(x,"action","groupselector")[0];var C=App.group_selector.person(D);(function(p){D.onclick=function(G){App.group_selector.dropBox.moveTo(p).show();Core.Events.stopEvent(G)}})(C)}b();Core.Dom.replaceNode(z,n);$E("more_handle")&&(function(){$E("more_handle").innerHTML=""})()}else{if(o==="remove"){q="/attention/aj_delfollow.php";if(scope.$pageid=="profile"&&Core.Dom.getElementsByClass(document,"DIV","roommate").length>0){var x=Core.Dom.getElementsByClass(document,"DIV","roommate")[0];x.style.display="none";Core.Dom.getElementsByAttr(x,"action","groupselector")[0].setAttribute("groupids","");Core.Dom.getElementsByClass(document,"DIV","downmenu downmenuAttr")[0].style.display="none"}j=[{element:z,html:n.innerHTML,classname:n.className},{element:$E("more_handle")||null,html:($E("more_handle")&&$E("more_handle").innerHTML)||null,classname:""}];z.className="MIB_btn lf";var A=scope.$BASEIMG+"style/images/common/transparent.gif";var v=scope.isfans?'<img class="ico_addGrn" title="'+scope.sex+$CLTMSG.CC6108+'" alt="" src="'+A+'" />					<em>						<img class="SG_icon add_icoz" alt="" src="'+A+'">									'+$CLTMSG.CD0006+"						</em>":'<img class="SG_icon" src="'+A+'" title="'+$CLTMSG.CD0006+'" />					<em>'+$CLTMSG.CD0006+"</em>";z.innerHTML="<a href=\"javascript:void(0);\" onclick=\"if(typeof _S_uaTrack =='function'){_S_uaTrack('tblog_attention_click','"+s+"')};App.followOne('"+s+"',this,'"+F+"'"+l+')" class="btn_add">'+v+"</a>";b();Core.Dom.replaceNode(z,n);$E("more_handle")&&(function(){$E("more_handle").innerHTML=""})()}else{if(o==="delfans"){q="/attention/aj_delfollow.php"}}}}catch(B){}function y(G,p){if(m){m.ask_following=true}setTimeout(function(){try{if(scope.$pageid=="profile"){if(G){g(G.global);if(G.html&&$E("more_handle")){$E("more_handle").innerHTML=G.html}if(o==="add"){App.grpDialog(scope.setGroup,false,t,true);Core.Events.addEvent($E("moreact"),function(){App.profile_moreact($E("moreact"),"",t)},"mouseover");if($E("remark_name")){$E("remark_name").innerHTML="&nbsp;("+$CLTMSG.ZB0007+")";$E("remark_name").style.display="";if(App._remarks_[s]){App._remarks_[s]=""}}}else{if(o==="delfans"){if(G.global.isfollow){z.className="MIB_btn2 lf";z.innerHTML=$CLTMSG.CD0004+'<span class="MIB_line_sp">|</span><a id="cancelfollow" onclick="App.removeFollow(\''+s+"',this,'"+F+"'"+l+')" href="javascript:void(0);"><em>'+$CLTMSG.CD0005+"</em></a>";Core.Dom.replaceNode(z,n)}Core.Events.addEvent($E("moreact"),function(){App.profile_moreact($E("moreact"),"",t)},"mouseover");b()}else{if(o==="remove"){if(scope.setGroup){scope.setGroup.show=false;scope.setGroup.gids=""}if(scope.nickname){scope.nickname.show=false;scope.nickname.remarkName="";if($E("remark_name")){$E("remark_name").innerHTML="";$E("remark_name").style.display="none"}}}}}}}}catch(H){}},E)}function w(p){if(m){m.ask_following=false}if(scope.$pageid=="profile"){f()}if(p&&p.code=="MR0050"){App.forbidrefresh(function(){r.retcode=scope.doorretcode;App.doRequest(r,q,y,w)},"/attention/aj_addfollow.php")}else{App.flyDialog(p,null,null,{ok:function(){if(scope.$uid=="123456"){location.reload()}}})}}App.doRequest(r,q,y,w)}})();App.followOne=function(g,h,f,b){if(h.ask_following){return false}var j={uid:g,fromuid:scope.$uid};if(typeof b==="object"){for(var a in b){j[a]=b[a]}}App.followOper("add",g,h,j,f,b)};App.removeFollow=function(j,b,a,l){var m=Core.Dom.getXY(b);var o=m[0]-((200-b.offsetWidth)/2);var n=m[1]-(b.offsetHeight)-70;var f=[$CLTMSG.CD0007,a,"?"].join("");var g={touid:j,fromuid:scope.$uid};for(var h in l){g[h]=l[h]}App.PopUpConfirm().position(o,n).content(f).icon(4).yes(function(){setTimeout(function(){App.followOper("remove",j,b,g,a,l)},300)}).no(function(){b.isOpened=null}).wipe("up",true)};App.removeFans=function(j,b,a,l){var m=Core.Dom.getXY(b);var o=m[0]-((200-b.offsetWidth)/2);var n=m[1]-(b.offsetHeight)-70;var f=[$CLTMSG.CD0007,a,"?"].join("");var g={touid:j,fromuid:scope.$uid,action:1};for(var h in l){g[h]=l[h]}App.PopUpConfirm().position(o,n).content(f).icon(4).yes(function(){setTimeout(function(){App.followOper("delfans",j,b,g,a,l)},300)}).no(function(){b.isOpened=null}).wipe("up",true)};App.focusblur=function(){var b=Core.Events.getEventTarget();var f=Core.Events.getEvent();var a=(scope.$FW==0)?$CLTMSG.WL0001:$CLTMSG.WL0002;a=a||$CLTMSG.CD0008;if(f.type=="focus"){if(b.value==a||b.value==$CLTMSG.CD0008){b.value=""}}if(f.type=="blur"){if(b.value==""){b.value=a;if($E("m_keyword_tip")){$E("m_keyword_tip").style.display="none"}}}};Core.Dom.insertAfter=function(f,a){var b=a.parentNode;if(b.lastChild==a){b.appendChild(f)}else{b.insertBefore(f,a.nextSibling)}return f};Core.Dom.removeNode=function(a){a=$E(a)||a;try{a.parentNode.removeChild(a)}catch(b){}};App.copyText=function(j){var l=function(){var s=(navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"])?navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin:0;if(s){var v=navigator.plugins["Shockwave Flash"].description.split(" ");for(var r=0;r<v.length;++r){if(isNaN(parseInt(v[r],10))){continue}var q=v[r]}return q>=10}else{if($IE){try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash.10");return true}catch(t){return false}}}};if(window.clipboardData&&$IE6){window.clipboardData.clearData();return window.clipboardData.setData("Text",j)}else{if(l()){if($IE){try{window.clipboardData.clearData();return window.clipboardData.setData("Text",j)}catch(n){return false}}try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");var g=Components.classes["@mozilla.org/widget/clipboard;1"].createInstance(Components.interfaces.nsIClipboard);if(!g){return}var p=Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable);if(!p){return}p.addDataFlavor("text/unicode");var o={};var m={};o=Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);var b=j;o.data=b;p.setTransferData("text/unicode",o,b.length*2);var a=Components.interfaces.nsIClipboard;if(!g){return false}g.setData(p,null,a.kGlobalClipboard);return true}catch(n){return false}}else{var k="flashcopier";if(!$E(k)){var f=$C("div");f.id=k;document.body.appendChild(f)}j=j.replace(/%/g,escape("%")).replace(/&/g,escape("&"));var h='<embed src="/view/js/clipboard.swf" FlashVars="clipboard='+j+'" width="0" height="0" type="application/x-shockwave-flash"></embed>';$E(k).innerHTML=h;return true}}};App.copyTextDialog=function(h,b){var g=b||{};var a=g.succText||$CLTMSG.CC4101;var f={icon:3};if(App.copyText(h||"")==false){a=g.errorText||$CLTMSG.CD0016;f={icon:1}}App.alert(a,f);Core.Events.stopEvent()};Core.Dom.contains=function(a,b){return a.contains(b)};if(!$IE){Core.Dom.contains=function(a,b){do{if(a==b){return true}}while(b=b.parentNode);return false}}App.changeBackColor=function(j,f){j=j||window.event;var l=f.id;var h=$E("cancel_"+l);var g=$E("message_"+l);var k=$E("remark_"+l);var b=$E("fire_"+l);if(j.type=="mouseover"){var a=j.relatedTarget||j.fromElement;if(f!=a&&a&&!Core.Dom.contains(f,a)){if(h){h.style.display=""}if(g){g.style.display=""}if(k){k.style.display=""}if(b){b.style.display=""}}}if(j.type=="mouseout"){var a=j.relatedTarget||j.toElement;if(f!=a&&a&&!Core.Dom.contains(f,a)){if(h){h.style.display="none"}if(g){g.style.display="none"}if(k){k.style.display="none"}if(b){b.style.display="none"}}}};App.admin_uid_list=["1257113795","1642909335","1658688240","1661523401"];App.CustomEvent=(function(){var j={},a={},h=0,b=Object.prototype.toString,g={},k=function(l){var m;for(m in l){break}return !m},f=function(l){l=l===window?g:l;if(!/^\[object (Number|String)\]$/.test(b.call(l))){l=l.rid||(l.rid=++h)}return l};j.has=function(l,n){var m;if(!(m=a[f(l)])){return false}if(!(m=m[n])){return false}return !k(m)};j.remove=function(l,n,m){l=f(l);if(!(d=a[l])){return}if(m){d=d[n];if(m.rid==null||!d){return}delete d[m.rid];k(d)&&j.remove(l,n);return}if(n){delete d[n];k(d)&&j.remove(l);return}delete a[l]};j.add=function(l,o,n){if(typeof n!=="function"){return}l=f(l);var m=f(n);c=a[l]=a[l]||{};c=c[o]=c[o]||{};c[m]=c[m]||n};j.fire=function(m,p){var o=f(m);if(j.has(o,p)){var q=a[o][p],n=[];Array.prototype.push.apply(n,arguments);n.splice(0,2);n.length===0&&(n=[m,p]);for(var l in q){q[l].apply(null,n)}}};return j})();Core.Dom.setXY=function(a,j,h){var b=Core.Dom.getStyle(a,"position");if(b=="static"){Core.Dom.setStyle(a,"position","relative");b="relative"}var g=Core.Dom.getXY(a);if(g==false){return false}var f=[parseInt(Core.Dom.getStyle(a,"left"),10),parseInt(Core.Dom.getStyle(a,"top"),10)];if(isNaN(f[0])){f[0]=(b=="relative")?0:a.offsetLeft}if(isNaN(f[1])){f[1]=(b=="relative")?0:a.offsetTop}if(j[0]!=null){a.style.left=j[0]-g[0]+f[0]+"px"}if(j[1]!=null){a.style.top=j[1]-g[1]+f[1]+"px"}return true};App.group_interface={};(function(a){a.create=function(b){Utils.Io.Ajax.request("/attention/aj_group_create.php",{POST:{name:b.name,mod:b.mod},onComplete:function(f){if(f.code=="A00006"){b.onSuccess(f.data);return true}b.onError(f);return false},onException:function(){},returnType:"json"})};a.del=function(b){Utils.Io.Ajax.request("/attention/aj_group_delete.php",{POST:{gid:b.id},onComplete:function(f){if(f.code=="A00006"){b.onSuccess(f.data);return true}b.onError(f);return false},onException:function(){},returnType:"json"})};a.rename=function(b){Utils.Io.Ajax.request("/attention/aj_group_rename.php",{POST:{name:b.name,gid:b.id},onComplete:function(f){if(f.code=="A00006"){b.onSuccess(f.data);return true}b.onError(f);return false},onException:function(){},returnType:"json"})};a.list=function(){return scope.groupList};a.add=function(b){if(b.group_id instanceof Array){b.group_id=b.group_id.join(",")}var f={action:"add",gids:b.group_id};if(b.person_id){f.fuid=b.person_id}if(b.person_name){f.pname=b.person_name}Utils.Io.Ajax.request("/attention/aj_group_update.php",{POST:f,onComplete:function(g){if(g.code=="A00006"){b.onSuccess(g.data);return true}b.onError(g);return false},onException:function(){b.onError()},returnType:"json"})};a.addAll=function(b){if(b.group_id instanceof Array){b.group_id=b.group_id.join(",")}var f={remarkname:b.remark,gids:b.group_id,atnId:b.atnId||"",newgroup:b.newgroup};if(b.person_id){f.fuid=b.person_id}if(b.person_name){f.pname=b.person_name}Utils.Io.Ajax.request("/attention/aj_group_update.php",{POST:f,onComplete:function(g){if(g.code=="A00006"){b.onSuccess(g.data);return true}b.onError(g);return false},onException:function(){b.onError()},returnType:"json"})};a.remove=function(b){if(b.group_id instanceof Array){b.group_id=b.group_id.join(",")}Utils.Io.Ajax.request("/attention/aj_group_update.php",{POST:{fuid:b.person_id,gids:b.group_id,action:"delete"},onComplete:function(f){if(f.code=="A00006"){b.onSuccess(f.data);return true}b.onError(f);return false},onException:function(){b.onError()},returnType:"json"})}})(App.group_interface);(function(b){var g={};b.group_manage={};var f=function(j,l,k){g[j].push({onSuccess:l,params:k})};var h=function(n,o,l){for(var m=0,j=g[n].length;m<j;m+=1){try{var k=g[n][m];k.onSuccess(o,l,k.params)}catch(p){}}};for(var a in App.group_interface){g[a]=[];b.group_manage[a]=(function(j){return function(k){k=k||{};k.onSuccess=function(l){try{h(j,l,k)}catch(m){}k.success(l)};k.onError=k.onError||function(l){if(l&&l.code){App.alert($SYSMSG[l.code])}};return App.group_interface[j](k)}})(a)}b.group_manage.register=f})(App);App.group_manage.register("create",function(a,b){scope.groupList.push({gid:a,name:Core.String.encodeHTML(b.name),count:0})},{});App.group_manage.register("del",function(f,g){for(var b=0,a=scope.groupList.length;b<a;b+=1){if(scope.groupList[b]["gid"]==g.id){scope.groupList.splice(b,1);return false}}},{});App.group_manage.register("rename",function(f,g){for(var b=0,a=scope.groupList.length;b<a;b+=1){if(scope.groupList[b]["gid"]==g.id){scope.groupList[b]["name"]=Core.String.encodeHTML(g.name)}}},{});App.group_manage.register("add",function(f,g){for(var b=0,a=scope.groupList.length;b<a;b+=1){if(scope.groupList[b]["gid"]==g.group_id){scope.groupList[b]["count"]=parseInt(scope.groupList[b]["count"])+1}}},{});App.group_manage.register("remove",function(f,g){for(var b=0,a=scope.groupList.length;b<a;b+=1){if(scope.groupList[b]["gid"]==g.group_id){scope.groupList[b]["count"]=parseInt(scope.groupList[b]["count"])-1}}},{});App.group_manage.register("addAll",function(f,g){for(var b=0,a=scope.groupList.length;b<a;b+=1){if(scope.groupList[b]["gid"]==g.group_id){scope.groupList[b]["count"]=parseInt(scope.groupList[b]["count"])+1}}},{});Core.Array.isArray=function(a){return Object.prototype.toString.call(a)==="[object Array]"};App.profile_moreact=function(p,b,n){var l=scope.letter||{show:false};var a=scope.intro_friend||{show:false};var f={show:false};var q=scope.nickname||{show:false};var j=scope.recFriend||{show:false};var k=scope.black||{show:false};var r={show:(scope.isfans?true:false)};var m=[{tagName:"IFRAME",attributes:{frameborder:"0",src:"about:blank","class":"",id:"ifm",style:"position: absolute; z-index: 120; left: 100px; top: 100px;"}},{tagName:"UL",attributes:{"class":"handle_menu",id:"handle_menu",style:"position: absolute; z-index: 600; left: 100px; top: 100px;"},childList:[{tagName:"LI",attributes:{id:"message"},childList:[{tagName:"A",attributes:{"class":"letter",id:"btn_message",href:"javascript:void(0);",innerHTML:$CLTMSG.CD0054}}]},{tagName:"LI",attributes:{id:"group"},childList:[{tagName:"A",attributes:{"class":"set_group",id:"btn_group",href:"javascript:void(0);",innerHTML:$CLTMSG.CD0059}}]},{tagName:"LI",attributes:{id:"delfans"},childList:[{tagName:"A",attributes:{"class":"del_fans",id:"btn_delfans",href:"javascript:void(0);",innerHTML:$CLTMSG.CY0104}}]},{tagName:"LI",attributes:{id:"nickname"},childList:[{tagName:"A",attributes:{"class":"nickname",id:"btn_nickname",href:"javascript:void(0);",innerHTML:$CLTMSG.CD0060}}]},{tagName:"LI",attributes:{id:"friend"},childList:[{tagName:"A",attributes:{"class":"rec_friend",id:"btn_friend",href:"javascript:void(0);",innerHTML:$CLTMSG.CX0028}}]},{tagName:"LI",attributes:{id:"intro_friend"},childList:[{tagName:"A",attributes:{"class":"intro_friend",id:"btn_intro_friend",href:"http://t.sina.com.cn/recommend/addrecommend.php?name="+(encodeURIComponent(scope.realname)||""),innerHTML:$CLTMSG.CC6107.replace(/#sex#/,scope.sex)}}]},{tagName:"LI",attributes:{id:"black_list"},childList:[{tagName:"A",attributes:{"class":"black_list",id:"btn_black_list",href:"javascript:void(0);",innerHTML:$CLTMSG.CD0061}}]}]}];var o=function(w,v){var x=Core.Dom.getXY(w);Core.Dom.setXY(v.box,[x[0],x[1]+w.offsetHeight-4]);Core.Dom.setXY(v.ifm,[x[0],x[1]+w.offsetHeight-4])};var g=function(v){Core.Events.addEvent(v.domList.btn_message,function(){App.msgDialog(decodeURIComponent(l.name),false);v.box.style.display="none";v.ifm.style.display="none"},"click");Core.Events.addEvent(v.domList.btn_group,function(){App.grpDialog(scope.setGroup);v.box.style.display="none";v.ifm.style.display="none"},"click");Core.Events.addEvent(v.domList.btn_nickname,function(){App.followRemarkAdd("",q.oid||"",Core.String.decodeHTML(decodeURIComponent(q.remarkName))||"");v.box.style.display="none";v.ifm.style.display="none"},"click");Core.Events.addEvent(v.domList.btn_friend,function(){App.modrecommended(decodeURIComponent(j.name));v.box.style.display="none";v.ifm.style.display="none"},"click");Core.Events.addEvent(v.domList.btn_black_list,function(){App.move_to_blacklist(k.oid,v.domList.black_list,decodeURIComponent(k.name),decodeURIComponent(k.ta));v.box.style.display="none";v.ifm.style.display="none"},"click");Core.Events.addEvent(v.domList.btn_delfans,function(){if(n){n.action=1}App.removeFans(scope.$oid,v.domList.btn_delfans,decodeURIComponent(j.name),n);v.box.style.display="none";v.ifm.style.display="none"},"click")};var s=function(v){if(!l.show){v.domList.message.style.display="none"}else{v.domList.message.style.display=""}if(!f.show){v.domList.group.style.display="none"}else{v.domList.group.style.display=""}if(!q.show){v.domList.nickname.style.display="none"}else{v.domList.nickname.style.display=""}if(!j.show){v.domList.friend.style.display="none"}else{v.domList.friend.style.display=""}if(!k.show){v.domList.black_list.style.display="none"}else{v.domList.black_list.style.display=""}if(!r.show){v.domList.delfans.style.display="none"}else{v.domList.delfans.style.display=""}if(!a.show){v.domList.intro_friend.style.display="none"}else{v.domList.intro_friend.style.display=""}v.box.style.display=""};scope.moreactshowing=true;if(!scope.moreact){scope.moreact=new App.Builder(m);scope.moreact.box=scope.moreact.domList.handle_menu;scope.moreact.ifm=scope.moreact.domList.ifm;document.body.appendChild(scope.moreact.ifm);document.body.appendChild(scope.moreact.box);s(scope.moreact);g(scope.moreact);scope.moreact.ifm.style.position="absolute";scope.moreact.box.style.position="absolute";scope.moreact.ifm.style.zIndex=600;scope.moreact.box.style.zIndex=600;scope.moreact.ifm.style.height=scope.moreact.box.offsetHeight+"px";scope.moreact.ifm.style.width=scope.moreact.box.offsetWidth+"px";var t;if(p){o(p,scope.moreact);t=setInterval(function(){o(p,scope.moreact)},100)}Core.Events.addEvent(p,function(){scope.moreactshowing=false;setTimeout(function(){if(!scope.moreactshowing){h()}},100)},"mouseout");Core.Events.addEvent(scope.moreact.box,function(){scope.moreactshowing=true},"mouseover");Core.Events.addEvent(scope.moreact.box,function(){scope.moreactshowing=false;setTimeout(function(){if(!scope.moreactshowing){h()}},100)},"mouseout")}else{s(scope.moreact)}var h=function(x){var w=Core.Events.getEvent();var v=w?(w.srcElement||w.target):null;while(v&&v!=document.body){if(v==scope.moreact.box||v==$E("moreact")){return true}v=v.parentNode}if(scope.moreact){scope.moreact.box.style.display="none";scope.moreact.ifm.style.display="none"}Core.Events.removeEvent(document.body,h,"click")};Core.Events.addEvent(document.body,h,"click")};App.grpDialog=function(k,v,m,n){try{var C=decodeURIComponent(k.name);var D=k.gids?k.gids.split(","):"";var t=App.group_manage.list();var r=k.oid;for(var x=0,z=t.length;x<z;x+=1){t[x]["checked"]=false;for(var w=0,l=D.length;w<l;w+=1){if(D[w]==t[x][("gid")]){t[x]["checked"]=true}}}var o=function(){var F=[];for(var G=0;G<t.length;G++){F.push('<li><input type="checkbox" value="'+t[G]["gid"]+'" class="labelbox" name="group_dialog_'+t[G]["gid"]+'" id="group_dialog_'+t[G]["gid"]+'"'+(t[G]["checked"]?"  checked":"")+'/><label style="cursor:pointer;" for="group_dialog_'+t[G]["gid"]+'" title="'+Core.String.decodeHTML(Core.String.encodeHTML(t[G]["name"]))+'">'+Core.String.decodeHTML(Core.String.encodeHTML(t[G]["name"]))+"</label></li>")}return F.join("")};var p='<div class="shareLayer groupNewBox">	                        <div class="shareTxt clearFix" id="shareTxt"><span class="lf">'+$CLTMSG.CD0062+'</span><span class="rt gray6" id="whygroup"><img title="" alt="" src="'+scope.$BASEIMG+'style/images/common/PY_ib.gif" class="tipicon tip4">为什么要设置分组？</span></div>							<div class="group_nb_bg" >							    '+(scope.groupList.length<=0?'<div id="group_intro" class="group_note">你可以新建一个分组，把你关注的同事、同学或名人明星等放入不同的分组中。</div>':"")+'								<ul id="group_list_D" class="group_list">'+o()+'</ul>								<div class="addNew"><a id="creategrp" href="javascript:void(0);"><em>+</em>'+$CLTMSG.CD0063+'</a></div>                                <div id="newgrp" class="newBox" style="display:none">                	                <div class="newBox_input">                                	   <input id="group_input" type="text" value="'+$CLTMSG.CD0064+'" class="newBox_txt"/> 									   <a href="javascript:void(0);" id="create_group" class="btn_normal"><em>'+$CLTMSG.CD0065+'</em></a>									   <a href="javascript:void(0);" id="cancel_group">'+$CLTMSG.CD0005+'</a>                                    </div>                                <p id="group_error" class="newBox_err error_color" style="display:none">'+$CLTMSG.CD0066+"</p>                                </div>							</div>"+(n?('<div class="addNew"> '+$CLTMSG.ZB0006+'<input type="text" id="set_group_remark" style="color:#999" value=""/><span id="set_group_remark_err" style="display:none" class="errorTs2 error_color"></span></div>'):"")+'<div class="MIB_btn">						    <a href="javascript:void(0)" id="g_submit" class="btn_normal"><em>'+$CLTMSG.CX0036+'</em></a>							<a href="javascript:void(0)" id="g_nogroup" class="btn_normal"><em>'+$CLTMSG.CX0126+"</em></a>						    </div>                        </div>";p=p.replace(/#\{nick\}/,C);var B={width:390,zIndex:1200,hidden:true};var b=new App.Dialog.BasicDialog(n?('<img title="" alt="" src="'+scope.$BASEIMG+'style/images/common/PY_ib.gif" class="tipicon tip3">'+$CLTMSG.CD0154):$CLTMSG.CD0059,p,B);var a=App.PopUp().content('	               <div id="whygroup" class="PopLayer" style="visibility:hidden;position:absolute;z-Index:1300">					    <table class="Poptips">					        <tbody><tr>					            <td class="top_l"></td>					            <td class="top_c"></td>					            <td class="top_r"></td>					        </tr>					        <tr>					            <td class="mid_l"></td>					            <td class="mid_c"><div class="layerBox">					                    <div style="width: auto;" class="layerBoxCon1">					                        <div class="PopInfo clearFix">					                            <div class="Poparrow4"></div>					                            <div style="width: auto" class="iconntent clearFix">					                                <!--内容开始 -->					                                <div style="width: 205px; height: 50px;">													   •&nbsp;'+$CLTMSG.CC6701+"<br />                                                       •&nbsp;"+$CLTMSG.CC6702+"<br />                                                       •&nbsp;"+$CLTMSG.CC6703+'					                                </div>					                                <!--内容结束 -->					                            </div>					                        </div>					                    </div>					                </div></td>					            <td class="mid_r"></td>					        </tr>					        <tr>					            <td class="bottom_l"></td>					            <td class="bottom_c"></td>					            <td class="bottom_r"></td>					        </tr>					    </tbody></table>                    </div>').zIndex(1300);a.wrap.style.display="";a.wrap.style.position="";var s={submit:$E("g_submit"),shareTxt:$E("shareTxt"),notgroup:$E("g_nogroup"),creategroup:$E("create_group"),creategrp:$E("creategrp"),newgrp:$E("newgrp"),group_error:$E("group_error"),group_input:$E("group_input"),group_list:$E("group_list_D"),cancel_group:$E("cancel_group"),whygroup:$E("whygroup"),group_intro:$E("group_intro"),remark:$E("set_group_remark"),remark_err:$E("set_group_remark_err")};if(n){var f=k.remarkName||(scope.nickname&&Core.String.decodeHTML(decodeURIComponent(scope.nickname.remarkName)))||"";f=(f==="")?$CLTMSG.ZB0007:f;s.remark.value=f;s.remark.onfocus=function(){if(this.value===$CLTMSG.ZB0007){this.value=""}this.style.color="#333";s.remark_err.style.display="none";s.remark_err.innerHTML=""};Utils.Sinput.limitMaxLen(s.remark,16);Utils.Sinput.limitMaxLen(s.group_input,16);s.remark.onblur=function(){if(this.value===""){this.value=$CLTMSG.ZB0007}this.style.color="#999"}}if(scope.groupList.length>=20){s.creategrp.style.display="none"}else{s.creategrp.style.display=""}if(scope.groupList.length<=0){s.creategrp.style.display="none";s.newgrp.style.display="";s.newgrp.className="newBox newBox_noBg";s.submit.style.display="";s.notgroup.style.display=""}else{if(scope.groupList.length<20){s.creategrp.style.display=""}s.newgrp.style.display="none";s.newgrp.className="newBox";s.submit.style.display="";s.notgroup.style.display=""}b.show();var h=function(G,F){if(G.length!=F.length){return true}else{for(var I=0;I<G.length;I++){for(var H=0;H<F.length;H++){if(G[I]==F[H]){break}else{if(H==F.length-1){return true}}}}return false}};var q=function(H,G){var F=Core.Events.getEventTarget(H);var j=F.tagName;if(!j){return}j=j.toLowerCase();if(j==="label"||j==="input"){F.parentNode.className=G?"hover":"";Core.Events.stopEvent(H)}else{if(j==="li"){F.className=G?"hover":""}}};var y=function(G){var F=Core.Events.getEventTarget(G);var j=F.tagName;if(!j){return}j=j.toLowerCase();if(j==="li"){F.getElementsByTagName("INPUT")[0].checked=!F.getElementsByTagName("INPUT")[0].checked;Core.Events.stopEvent(G)}return false};s.whygroup.onmouseover=function(j){var F=Core.Dom.getXY(s.whygroup);Core.Dom.setXY(a.dom.whygroup,[F[0]+s.whygroup.offsetWidth+5,F[1]-3+s.whygroup.offsetHeight-a.dom.whygroup.offsetHeight/2]);a.dom.whygroup.style.visibility="visible"};s.whygroup.onmouseout=function(j){a.dom.whygroup.style.visibility="hidden"};s.group_list.onmouseover=function(j){q(j,true)};s.group_list.onmouseout=function(j){q(j)};s.group_list.onclick=function(j){y(j)};s.notgroup.onclick=function(){b.close();if(v){window.location.reload(true)}};var g=$CLTMSG.CD0064;s.cancel_group.onclick=function(){if(scope.groupList.length<=0){b.close();return false}s.creategrp.style.display="";s.newgrp.style.display="none";s.group_input.value=g;s.group_error.style.display="none"};s.group_input.onfocus=function(){if(s.group_input.value==g){s.group_input.value=""}};s.group_input.onblur=function(){if(Core.String.trim(s.group_input.value)==""){s.group_input.value=g}};s.submit.onclick=function(){var H=App.htmlToJson(s.group_list,["input"]);var j=new Array();for(var G in H){j.push(H[G])}if((s.group_input.value!==g&&s.group_input.value!=="")||h(j,D)||(n&&(F!==f))){if(s.group_input.value!==g&&s.group_input.value!==""){if(!E()){return false}}var F="";var I={group_id:j.join(","),person_id:r,remark:F,newgroup:s.group_input.value===g?"":s.group_input.value,atnId:(m&&m.atnId)?m.atnId:"",success:function(K){App.CustomEvent.fire("window","cardCache");b.close();var J=App.alert($CLTMSG.CD0067,{hasBtn:false,icon:3});setTimeout(function(){J.close()},1800);if(K&&K.global){for(var M in K.global){scope[M]=K.global[M]}}try{if(scope.nickname&&scope.nickname.remarkName){$E("remark_name").innerHTML="("+scope.nickname.remarkName+")";$E("remark_name").style.display=""}else{$E("remark_name").style.display="none"}}catch(L){}},onError:function(J){if(J.code=="M05008"){s.remark_err.style.display="";s.remark_err.innerHTML=$CLTMSG.CC1205}else{s.remark_err.style.display="none";s.remark_err.innerHTML=""}return false}};if(n){F=s.remark.value===$CLTMSG.ZB0007?"":s.remark.value;I.remark=F}App.group_manage.addAll(I)}else{if(v){window.location.reload(true)}b.close()}};s.creategroup.onclick=function(){if(s.creategroup.locked){return false}if(!E()){return false}s.group_input.value=Core.String.trim(s.group_input.value);if(!s.group_input.value){return false}s.creategroup.locked=true;App.group_manage.create({name:Core.String.trim(s.group_input.value),success:function(j){Core.Dom.removeNode(s.group_intro);s.group_input.blur();s.creategrp.style.display="";s.newgrp.style.display="none";s.group_error.style.display="none";Core.Dom.insertHTML(s.group_list,'<li><input type="checkbox" value="'+j+'" class="labelbox" name="group_dialog_'+j+'" id="group_dialog_'+j+'" checked/><label for="group_dialog_'+j+'" style="cursor:pointer" title="'+Core.String.encodeHTML(Core.String.trim(s.group_input.value))+'">'+Core.String.encodeHTML(Core.String.trim(s.group_input.value))+" </label></li>","beforeend");s.creategroup.locked=false;s.group_input.value=g;if(scope.groupList.length>=20){setTimeout(function(){s.creategrp.style.display="none"},20)}s.newgrp.className="newBox";s.submit.style.display="";s.notgroup.style.display="";s.shareTxt.innerHTML=$CLTMSG.CD0062.replace(/#\{nick\}/,C);s.submit.focus();App.CustomEvent.fire("window","cardCache")},onError:function(j){s.creategroup.locked=false;if(j&&j.code){s.group_error.innerHTML=$SYSMSG[j.code];s.group_error.style.display=""}return false}})};s.creategrp.onclick=function(){s.creategrp.style.display="none";s.newgrp.style.display=""};s.group_input.onkeypress=function(F){var j=F||window.event;if(j.keyCode==13){Core.Events.fireEvent(s.creategroup,"click")}};var E=function(){var G=Core.String.trim(s.group_input.value);if(Core.String.byteLength(G)>16){s.group_error.innerHTML=$SYSMSG.M14010;s.group_error.style.display="";return false}if(G==""||G==g){s.group_error.innerHTML=$SYSMSG.M14014;s.group_error.style.display="";return false}for(var F=0,j=t.length;F<j;F+=1){if(Core.String.decodeHTML(t[F]["name"])==G){s.group_error.innerHTML=$SYSMSG.M14008;s.group_error.style.display="";return false}}s.group_input.value=G;s.group_error.style.display="none";return true};return b}catch(A){}};$registJob("profile_moreact",function(){var a=$E("moreact");_conf=scope.atnSts||{};Core.Events.addEvent(a,function(){App.profile_moreact(a,null,_conf)},"mouseover")});App.followadd=function(j,l,h,g,f){h="/attention/aj_addfollow.php";while(l.nodeName.toLowerCase(0)!="p"){l=l.parentNode}function a(n){if(scope.$pageid=="follow"&&scope.$oid==scope.$uid){var k=scope.$BASECSS+"style/images/common/transparent.gif";l.innerHTML='<img class="small_icon sicon_atteo" title="'+$CLTMSG.CC3001+'" src="'+k+'">'}else{l.innerHTML='<a class="concernBtn_Yet" href="javascript:void(0);"><span class="add_yet"></span>'+$CLTMSG.CC2510+"</a>"}App.grpDialog({oid:j,name:g},false,f,true)}if(l.ask_following){return false}var m={uid:j,fromuid:scope.$uid};if(typeof f==="object"){for(var b in f){m[b]=f[b]}}App.followOperation(m,h,a,l)};App.followcancel=(function(){var a;return function(m,g,o,b,p,n){p=p||"TA";var l=o==1?-40:0;var t=Core.Dom.getXY(g);var v=t[0]-(((o==1?250:200)-g.offsetWidth)/2);var s=t[1]-(g.offsetHeight)-70+l;var q=$CLTMSG.CC3101;var j=new Utils.Template(q);var k=j.evaluate({sex:p});if(Core.Array.findit(App.admin_uid_list,m)===-1){k+='<div class="block"><input type="checkbox" id="del_block_user"><label for="del_block_user">'+$CLTMSG.CC2701+"</label></div>"}var h=o==1?[k,$CLTMSG.CC3102+b+"?"].join(""):[$CLTMSG.CD0007,b,"?"].join("");var r=function(){var x="/attention/aj_delfollow.php";var z={touid:m,fromuid:scope.$uid};if(o&&o==1){z.action=1}if($E("del_block_user")&&$E("del_block_user").checked){z.isblack="OK"}if(n){for(var y in n){z[y]=n[y]}}function w(B){var C=function(){setTimeout(function(){window.location.reload(true)},500)};var A=$E(m);if(!A){C();return}A.onmouseover=null;A.onmouseout=null;App.Wipe(null,A).wipe("down",false,function(){A.parentNode.parentNode.removeChild(A.parentNode);if($E("att_wrap")){if(!$E("att_wrap").getElementsByTagName("LI").length){C();return false}}if(scope.$pageid=="profile"){C();return false}})}App.followOperation(z,x,w,null,"del")};var f=App.PopUpConfirm().position(v,s).content(h).width(o==1?250:200).icon(4).yes(function(){if(!scope.loginKit().isLogin){App.ModLogin({func:function(){setTimeout(function(){Core.Events.fireEvent(g,"click")},200)}});return false}r();return false}).no(function(){return false});setTimeout(function(){f.wipe("up",true)},100)}})();App.followOperation=function(h,a,g,b,k,j){if(!scope.$uid){App.ModLogin({func:arguments.callee,param:[h,a,g]});return false}if(scope.$cuser_status==="nofull"){App.finishInformation();return false}if(scope.$uid=="123456"){var l=arguments[0];h=l[0];a=l[1];g=l[2]}function f(n){if(b){b.ask_following=false}if(n.code=="M00003"){App.ModLogin()}else{if(n&&n.code=="MR0050"){App.forbidrefresh(function(){h.retcode=scope.doorretcode;App.doRequest(h,a,m,f)},"/attention/aj_addfollow.php")}else{App.alert(n,{ok:function(){if(scope.$uid=="123456"){location.reload()}}});if(typeof j==="function"){j.call(null,n)}}}}var m=function(n){g(n);if(scope.$uid=="123456"){location.reload(true)}};if(k==="del"){App.doRequest(h,a,m,f)}else{App.doRequest(h,a,function(n){if(b){b.ask_following=true}m(n)},f)}};App.copyLink=function(f){var g=$E("copytext");var a=$CLTMSG.CC2508;var b={icon:3};if(App.copyText(g.value)==false){a=$CLTMSG.CC2509;b={icon:1}}App.flyDialog(a,null,$E("copylink"),b);Core.Events.stopEvent(f)};$registJob("initPage",function(){var a=$E("copytext");if(a){a.onfocus=a.onclick=function(){a.select()};Core.Events.addEvent($E("copylink"),App.copyLink,"click")}});App.followAll=function(btn){try{if(scope.$uid!=scope.$oid){return}var els=$E("att_wrap").getElementsByTagName("li");var uids=[];for(var i=0,len=els.length;i<len;i++){var el=els[i];if(el.className.search(/cur/i)!=-1){continue}uids.push(el.id)}if(!uids.length){return false}var pos=Core.Dom.getXY(btn);var x=pos[0]-((200-btn.offsetWidth)/2);var y=pos[1]-(btn.offsetHeight)-50;var msg=[$CLTMSG.CD0007,name,"?"].join("");var _alert=App.PopUpAlert().position(x,y);function changeBGcolor(uids){for(var i=0,ilen=uids.length;i<ilen;i++){var uid=uids[i];var add=$E("add_"+uid);if(add){if(scope.$uid==scope.$oid&&scope.$pageid=="follow"){var imgURI=scope.$BASECSS+"style/images/common/transparent.gif";var _p=$C("p");_p.className="mutual";_p.innerHTML='<img class="small_icon sicon_atteo" title="'+$CLTMSG.CC3001+'" src="'+imgURI+'">';Core.Dom.replaceNode(_p,add)}else{add.innerHTML='<a class="concernBtn_Yet" href="javascript:void(0);"><span class="add_yet"/>'+$CLTMSG.CC2510+"</a>"}}}}function cb(){changeBGcolor(uids);setTimeout(function(){_alert.content($CLTMSG.CC2601).position(x,y+20).icon(3).wipe("up",true).lateClose(1500)},500);btn.style.visibility="hidden"}function ecb(json){if(json&&json.code=="MR0050"){App.forbidrefresh(function(){var data={uid:uids.join(","),fromuid:scope.$uid};data.retcode=scope.doorretcode;App.doRequest(data,"/attention/aj_addfollow.php",cb,ecb)},"/attention/aj_addfollow.php")}else{if(json.code=="R01440"){App.alert({code:json.code});return false}App.promptTip(json,null,"system_information","error");if(json.code=="M05003"){changeBGcolor(json.data.uids)}if($IE){location.hash="top"}else{document.body.scrollIntoView()}}}App.PopUpConfirm().position(x,y).width(200).content($CLTMSG.CL0803).icon(4).yes(function(){var data={uid:uids.join(","),fromuid:scope.$uid};var statistics=btn.getAttribute("atnsts");try{statistics=eval("("+statistics+")")}catch(e){}if(typeof statistics==="object"){for(var k in statistics){data[k]=statistics[k]}}App.doRequest(data,"/attention/aj_addfollow.php",cb,ecb)}).wipe("up",true)}catch(e){throw e}};App.followRemarkAdd=function(f,h,k){var j=$CLTMSG.CC3104;var l='<div style="width: 390px;" class="layerBoxCon">	    <div class="inviteLayer">	        <p class="flName">	            '+$CLTMSG.CC3105+'	        </p>	        <div class="inviteLayerInput">	            <input type="text" class="PY_input" id="remark" value="">	            <a id="submit" href="javascript:void(0);" class="btn_normal"><em>'+$CLTMSG.CC1102+'</em></a>	        </div>	        <p class="errorTs yellow2" id="errorTip" style="display:none;">'+j+"</p>	    </div>	</div>";var n={width:390,zIndex:1000,hidden:true};var p=new App.Dialog.BasicDialog($CLTMSG.CC3106,l,n);p.show();var m=$E("remark"),b=$E("errorTip"),o=$E("submit");var a=(navigator.userAgent.toLowerCase().indexOf("chrome")!=-1);if(a){o.style.top="-3px"}m.focus();m.value=(App._remarks_&&App._remarks_[h])||k||m.value;if(App._remarks_&&App._remarks_[h]==""){m.value=""}var q=true;Core.Events.addEvent(m,function(){if(q&&!k&&!(App._remarks_&&App._remarks_[h])){m.value="";q=false}},"focus");Core.Events.addEvent(m,function(){var r=Core.String.byteLength(m.value);if(r>16){b.innerHTML=j;b.style.display="block";setTimeout(function(){m.focus()},100)}else{if(b.innerHTML==j){b.style.display="none"}}},"blur");Core.Events.addEvent(m,function(){var r=Core.String.byteLength(m.value);if(r>16){m.value=Core.String.leftB(m.value,16)}else{if(b.innerHTML==j){b.style.display="none"}}},"keyup");function g(){if(Core.String.byteLength(m.value)>16){b.innerHTML=j;b.style.display="block";setTimeout(function(){m.focus()},200);return}var r=m.value;App.doRequest({fuid:h,remarkname:r},"/attention/aj_remarkname.php",function(){App.CustomEvent.fire("window","cardCache");App._remarks_=App._remarks_||{};App._remarks_[h]=r;p.close();var t=scope.$pageid==="profile";if(f){if(Core.String.trim(r).length>0){var s=Core.String.encodeHTML(Core.String.trim(r));f.innerHTML=t?"&nbsp;("+s+")":s;if(!t){f.parentNode.style.display="";f.parentNode.id=""}}else{if(t){f.innerHTML="&nbsp;("+$CLTMSG.ZB0007+")"}else{f.parentNode.style.display="none";f.parentNode.id="remark_"+h;f.innerHTML=$CLTMSG.ZB0007}}}},function(){if(arguments[0]&&arguments[0].code){b.innerHTML=$SYSMSG[arguments[0].code];b.style.display="block"}else{App.alert($CLTMSG.CC3107,{icon:2,width:370,height:120})}})}Core.Events.addEvent(o,g,"click");App.enterSubmit({parent:o.parentNode,action:function(){Core.Events.fireEvent(o,"click")}})};App.rightSideFollow=function(h,j,m,g){var f="/attention/aj_addfollow.php";function a(){var k=document.createElement("SPAN");k.innerHTML=$CLTMSG.CC2510;Core.Dom.insertAfter(k,j);Core.Dom.removeNode(j);if(typeof(m)=="function"){m()}}var l={uid:h,fromuid:scope.$uid};if(g){for(var b in g){l[b]=g[b]}}App.followOperation(l,f,a)};(function(){var a=function(f,g){var b=g;if(b.tagName!=="DL"){b=g.parentNode.parentNode.parentNode}App.replaceByAnewUser(b,f)};App.rightSuggestFollow=function(j,h,g){if(App.mbufLock){return false}var f=h.parentNode.parentNode.parentNode;var b=function(){try{App.mbufLock=false;App.grpDialog({oid:j.uid,name:j.name},false,g,true);setTimeout(function(){a(j&&j.uid,f)},1000)}catch(k){}};App.rightSideFollow(j&&j.uid,h,b,g)};App.card_follow=function(g){var b=$E("interest_person");var j=b.getElementsByTagName("dl");for(var f=0;f<j.length;f++){if(j[f].getAttribute("uid")==g){var h=j[f];break}}if(h){a(g,h)}}})();App.delDialog=function(b,l,j,f,k,h,a){var g=App.flyDialog(b,"confirm",h||null,{ok:function(){if($E("block_user")&&$E("block_user").checked){j.isblack="OK"}Utils.Io.Ajax.request(l,{POST:j,onComplete:function(m){if(m&&m.code=="A00006"){f(m)}else{k(m)}},onException:k,returnType:"json"})},icon:4,title:a});return g};App.msgPublisher=function(a,f,h,b){a=a||{};f=f||{limit:600,postUrl:"/message/addmsg.php",normClass:"btn_normal",disabledClass:"btn_notclick"};var g={};g.limit=(function(j,k){return function(){var l=j.editor.value;var m=Core.String.byteLength(l);if(m>k.limit){j.editor.value=Core.String.leftB(l,k.limit)}}})(a,f);App.autoHeightTextArea(a.editor,g.limit,f.maxHeight||null);g.submit=(function(j,k){return function(){try{if(!j.submit.lock){j.submit.className=k.disabledClass||j.submit.className;j.submit.lock=true;var l=Core.String.trim(j.nick.value);if(!l||l==$CLTMSG.CD0049){j.submit.className=k.normClass||j.submit.className;j.submit.lock=false;j.info.innerHTML=$SYSMSG.M01100;j.info.style.display="";return}var n=Core.String.trim(j.editor.value);if(!n){j.submit.className=k.normClass||j.submit.className;j.submit.lock=false;j.info.innerHTML=$SYSMSG.M07001;j.info.style.display="";return}var o={content:encodeURIComponent(n),name:encodeURIComponent(l),retcode:scope.doorretcode||""};Utils.Io.Ajax.request(k.postUrl,{POST:o,onComplete:function(p){j.submit.className=k.normClass||j.submit.className;j.submit.lock=false;if(p.code=="A00006"){if(b){b()}if(h){window.location.reload(true)}else{var q=App.alert($SYSMSG.M09003,{icon:3,hasBtn:false});setTimeout(function(){q.close()},1000)}}else{if(p.code=="M00003"){App.ModLogin(function(){window.location.reload(true)})}else{if(p.code=="M09006"){if(b){b()}var q=App.confirm($SYSMSG.M09006,{ok:function(){location.href="/mobile/msg.php"},cancel:function(){q.close()}})}else{if(p.code=="MR0050"){App.forbidrefresh(function(){g.submit()},"/mblog/publish.php");return false}else{j.info.innerHTML=$SYSMSG[p.code];j.info.style.display=""}}}}},onException:function(){j.submit.className=k.normClass||j.submit.className;j.submit.lock=false},returnType:"json"})}}catch(m){}}})(a,f);if(a.editor){Core.Events.addEvent(a.editor,function(j){if((j.ctrlKey==true&&j.keyCode=="13")||(j.altKey==true&&j.keyCode=="83")){a.editor.blur();g.submit()}},"keyup")}if(a.nick){Core.Events.addEvent(a.nick,(function(j){return function(){if(j.value===$CLTMSG.CD0049){j.value=""}j.style.color="#333333"}})(a.nick),"focus");Core.Events.addEvent(a.nick,(function(j){return function(){if(Core.String.trim(j.value)==""){j.value=$CLTMSG.CD0049}j.style.color="#999999"}})(a.nick),"blur");a.nick.value=a.nick.value||$CLTMSG.CD0049;a.nick.style.color="#999999"}if(a.submit){Core.Events.addEvent(a.submit,g.submit,"click")}return g};App.simpleAjax=function(url,success,error,fail){var req,res,error;req=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();if(!req){return}req.onreadystatechange=function(){try{if(req.readyState==4){res=eval("("+req.responseText+")");if(res&&res.code=="A00006"){success&&success(res);return}error&&error(res)}}catch(e){fail&&fail(e.message);return false}};try{req.open("GET",url,true);req.send(null)}catch(e){fail&&fail(e.message);return false}return{abort:function(){req.abort();return false}}};var swfobject=function(){var aq="undefined",aD="object",ab="Shockwave Flash",X="ShockwaveFlash.ShockwaveFlash",aE="application/x-shockwave-flash",ac="SWFObjectExprInst",ax="onreadystatechange",af=window,aL=document,aB=navigator,aa=false,Z=[aN],aG=[],ag=[],al=[],aJ,ad,ap,at,ak=false,aU=false,aH,an,aI=true,ah=function(){var a=typeof aL.getElementById!=aq&&typeof aL.getElementsByTagName!=aq&&typeof aL.createElement!=aq,h=aB.userAgent.toLowerCase(),f=aB.platform.toLowerCase(),l=f?/win/.test(f):/win/.test(h),n=f?/mac/.test(f):/mac/.test(h),k=/webkit/.test(h)?parseFloat(h.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,g=!+"\v1",j=[0,0,0],o=null;if(typeof aB.plugins!=aq&&typeof aB.plugins[ab]==aD){o=aB.plugins[ab].description;if(o&&!(typeof aB.mimeTypes!=aq&&aB.mimeTypes[aE]&&!aB.mimeTypes[aE].enabledPlugin)){aa=true;g=false;o=o.replace(/^.*\s+(\S+\s+\S+$)/,"$1");j[0]=parseInt(o.replace(/^(.*)\..*$/,"$1"),10);j[1]=parseInt(o.replace(/^.*\.(.*)\s.*$/,"$1"),10);j[2]=/[a-zA-Z]/.test(o)?parseInt(o.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof af.ActiveXObject!=aq){try{var m=new ActiveXObject(X);if(m){o=m.GetVariable("$version");if(o){g=true;o=o.split(" ")[1].split(",");j=[parseInt(o[0],10),parseInt(o[1],10),parseInt(o[2],10)]}}}catch(b){}}}return{w3:a,pv:j,wk:k,ie:g,win:l,mac:n}}(),aK=function(){if(!ah.w3){return}if((typeof aL.readyState!=aq&&aL.readyState=="complete")||(typeof aL.readyState==aq&&(aL.getElementsByTagName("body")[0]||aL.body))){aP()}if(!ak){if(typeof aL.addEventListener!=aq){aL.addEventListener("DOMContentLoaded",aP,false)}if(ah.ie&&ah.win){aL.attachEvent(ax,function(){if(aL.readyState=="complete"){aL.detachEvent(ax,arguments.callee);aP()}});if(af==top){(function(){if(ak){return}try{aL.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}aP()})()}}if(ah.wk){(function(){if(ak){return}if(!/loaded|complete/.test(aL.readyState)){setTimeout(arguments.callee,0);return}aP()})()}aC(aP)}}();function aP(){if(ak){return}try{var b=aL.getElementsByTagName("body")[0].appendChild(ar("span"));b.parentNode.removeChild(b)}catch(a){return}ak=true;var g=Z.length;for(var f=0;f<g;f++){Z[f]()}}function aj(a){if(ak){a()}else{Z[Z.length]=a}}function aC(a){if(typeof af.addEventListener!=aq){af.addEventListener("load",a,false)}else{if(typeof aL.addEventListener!=aq){aL.addEventListener("load",a,false)}else{if(typeof af.attachEvent!=aq){aM(af,"onload",a)}else{if(typeof af.onload=="function"){var b=af.onload;af.onload=function(){b();a()}}else{af.onload=a}}}}}function aN(){if(aa){Y()}else{am()}}function Y(){var g=aL.getElementsByTagName("body")[0];var b=ar(aD);b.setAttribute("type",aE);var a=g.appendChild(b);if(a){var f=0;(function(){if(typeof a.GetVariable!=aq){var h=a.GetVariable("$version");if(h){h=h.split(" ")[1].split(",");ah.pv=[parseInt(h[0],10),parseInt(h[1],10),parseInt(h[2],10)]}}else{if(f<10){f++;setTimeout(arguments.callee,10);return}}g.removeChild(b);a=null;am()})()}else{am()}}function am(){var k=aG.length;if(k>0){for(var l=0;l<k;l++){var f=aG[l].id;var p=aG[l].callbackFn;var a={success:false,id:f};if(ah.pv[0]>0){var m=aS(f);if(m){if(ao(aG[l].swfVersion)&&!(ah.wk&&ah.wk<312)){ay(f,true);if(p){a.success=true;a.ref=av(f);p(a)}}else{if(aG[l].expressInstall&&au()){var h={};h.data=aG[l].expressInstall;h.width=m.getAttribute("width")||"0";h.height=m.getAttribute("height")||"0";if(m.getAttribute("class")){h.styleclass=m.getAttribute("class")}if(m.getAttribute("align")){h.align=m.getAttribute("align")}var j={};var g=m.getElementsByTagName("param");var o=g.length;for(var n=0;n<o;n++){if(g[n].getAttribute("name").toLowerCase()!="movie"){j[g[n].getAttribute("name")]=g[n].getAttribute("value")}}ae(h,j,f,p)}else{aF(m);if(p){p(a)}}}}}else{ay(f,true);if(p){var b=av(f);if(b&&typeof b.SetVariable!=aq){a.success=true;a.ref=b}p(a)}}}}}function av(b){var g=null;var f=aS(b);if(f&&f.nodeName=="OBJECT"){if(typeof f.SetVariable!=aq){g=f}else{var a=f.getElementsByTagName(aD)[0];if(a){g=a}}}return g}function au(){return !aU&&ao("6.0.65")&&(ah.win||ah.mac)&&!(ah.wk&&ah.wk<312)}function ae(j,g,l,h){aU=true;ap=h||null;at={success:false,id:l};var a=aS(l);if(a){if(a.nodeName=="OBJECT"){aJ=aO(a);ad=null}else{aJ=a;ad=l}j.id=ac;if(typeof j.width==aq||(!/%$/.test(j.width)&&parseInt(j.width,10)<310)){j.width="310"}if(typeof j.height==aq||(!/%$/.test(j.height)&&parseInt(j.height,10)<137)){j.height="137"}aL.title=aL.title.slice(0,47)+" - Flash Player Installation";var b=ah.ie&&ah.win?"ActiveX":"PlugIn",f="MMredirectURL="+af.location.toString().replace(/&/g,"%26")+"&MMplayerType="+b+"&MMdoctitle="+aL.title;if(typeof g.flashvars!=aq){g.flashvars+="&"+f}else{g.flashvars=f}if(ah.ie&&ah.win&&a.readyState!=4){var k=ar("div");l+="SWFObjectNew";k.setAttribute("id",l);a.parentNode.insertBefore(k,a);a.style.display="none";(function(){if(a.readyState==4){a.parentNode.removeChild(a)}else{setTimeout(arguments.callee,10)}})()}aA(j,g,l)}}function aF(a){if(ah.ie&&ah.win&&a.readyState!=4){var b=ar("div");a.parentNode.insertBefore(b,a);b.parentNode.replaceChild(aO(a),b);a.style.display="none";(function(){if(a.readyState==4){a.parentNode.removeChild(a)}else{setTimeout(arguments.callee,10)}})()}else{a.parentNode.replaceChild(aO(a),a)}}function aO(b){var g=ar("div");if(ah.win&&ah.ie){g.innerHTML=b.innerHTML}else{var h=b.getElementsByTagName(aD)[0];if(h){var a=h.childNodes;if(a){var j=a.length;for(var f=0;f<j;f++){if(!(a[f].nodeType==1&&a[f].nodeName=="PARAM")&&!(a[f].nodeType==8)){g.appendChild(a[f].cloneNode(true))}}}}}return g}function aA(h,k,f){var g,a=aS(f);if(ah.wk&&ah.wk<312){return g}if(a){if(typeof h.id==aq){h.id=f}if(ah.ie&&ah.win){var j="";for(var m in h){if(h[m]!=Object.prototype[m]){if(m.toLowerCase()=="data"){k.movie=h[m]}else{if(m.toLowerCase()=="styleclass"){j+=' class="'+h[m]+'"'}else{if(m.toLowerCase()!="classid"){j+=" "+m+'="'+h[m]+'"'}}}}}var l="";for(var n in k){if(k[n]!=Object.prototype[n]){l+='<param name="'+n+'" value="'+k[n]+'" />'}}a.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+j+">"+l+"</object>";ag[ag.length]=h.id;g=aS(h.id)}else{var b=ar(aD);b.setAttribute("type",aE);for(var o in h){if(h[o]!=Object.prototype[o]){if(o.toLowerCase()=="styleclass"){b.setAttribute("class",h[o])}else{if(o.toLowerCase()!="classid"){b.setAttribute(o,h[o])}}}}for(var p in k){if(k[p]!=Object.prototype[p]&&p.toLowerCase()!="movie"){aQ(b,p,k[p])}}a.parentNode.replaceChild(b,a);g=b}}return g}function aQ(b,g,f){var a=ar("param");a.setAttribute("name",g);a.setAttribute("value",f);b.appendChild(a)}function aw(a){var b=aS(a);if(b&&b.nodeName=="OBJECT"){if(ah.ie&&ah.win){b.style.display="none";(function(){if(b.readyState==4){aT(a)}else{setTimeout(arguments.callee,10)}})()}else{b.parentNode.removeChild(b)}}}function aT(a){var b=aS(a);if(b){for(var f in b){if(typeof b[f]=="function"){b[f]=null}}b.parentNode.removeChild(b)}}function aS(a){var f=null;try{f=aL.getElementById(a)}catch(b){}return f}function ar(a){return aL.createElement(a)}function aM(a,f,b){a.attachEvent(f,b);al[al.length]=[a,f,b]}function ao(a){var b=ah.pv,f=a.split(".");f[0]=parseInt(f[0],10);f[1]=parseInt(f[1],10)||0;f[2]=parseInt(f[2],10)||0;return(b[0]>f[0]||(b[0]==f[0]&&b[1]>f[1])||(b[0]==f[0]&&b[1]==f[1]&&b[2]>=f[2]))?true:false}function az(b,j,a,f){if(ah.ie&&ah.mac){return}var h=aL.getElementsByTagName("head")[0];if(!h){return}var k=(a&&typeof a=="string")?a:"screen";if(f){aH=null;an=null}if(!aH||an!=k){var g=ar("style");g.setAttribute("type","text/css");g.setAttribute("media",k);aH=h.appendChild(g);if(ah.ie&&ah.win&&typeof aL.styleSheets!=aq&&aL.styleSheets.length>0){aH=aL.styleSheets[aL.styleSheets.length-1]}an=k}if(ah.ie&&ah.win){if(aH&&typeof aH.addRule==aD){aH.addRule(b,j)}}else{if(aH&&typeof aL.createTextNode!=aq){aH.appendChild(aL.createTextNode(b+" {"+j+"}"))}}}function ay(a,f){if(!aI){return}var b=f?"visible":"hidden";if(ak&&aS(a)){aS(a).style.visibility=b}else{az("#"+a,"visibility:"+b)}}function ai(b){var a=/[\\\"<>\.;]/;var f=a.exec(b)!=null;return f&&typeof encodeURIComponent!=aq?encodeURIComponent(b):b}var aR=function(){if(ah.ie&&ah.win){window.attachEvent("onunload",function(){var a=al.length;for(var b=0;b<a;b++){al[b][0].detachEvent(al[b][1],al[b][2])}var g=ag.length;for(var f=0;f<g;f++){aw(ag[f])}for(var h in ah){ah[h]=null}ah=null;for(var j in swfobject){swfobject[j]=null}swfobject=null})}}();return{registerObject:function(a,h,f,b){if(ah.w3&&a&&h){var g={};g.id=a;g.swfVersion=h;g.expressInstall=f;g.callbackFn=b;aG[aG.length]=g;ay(a,false)}else{if(b){b({success:false,id:a})}}},getObjectById:function(a){if(ah.w3){return av(a)}},embedSWF:function(o,h,l,j,f,a,b,m,k,n){var g={success:false,id:h};if(ah.w3&&!(ah.wk&&ah.wk<312)&&o&&h&&l&&j&&f){ay(h,false);aj(function(){l+="";j+="";var v={};if(k&&typeof k===aD){for(var s in k){v[s]=k[s]}}v.data=o;v.width=l;v.height=j;var r={};if(m&&typeof m===aD){for(var t in m){r[t]=m[t]}}if(b&&typeof b===aD){for(var p in b){if(typeof r.flashvars!=aq){r.flashvars+="&"+p+"="+b[p]}else{r.flashvars=p+"="+b[p]}}}if(ao(f)){var q=aA(v,r,h);if(v.id==h){ay(h,true)}g.success=true;g.ref=q}else{if(a&&au()){v.data=a;ae(v,r,h,n);return}else{ay(h,true)}}if(n){n(g)}})}else{if(n){n(g)}}},switchOffAutoHideShow:function(){aI=false},ua:ah,getFlashPlayerVersion:function(){return{major:ah.pv[0],minor:ah.pv[1],release:ah.pv[2]}},hasFlashPlayerVersion:ao,createSWF:function(a,b,f){if(ah.w3){return aA(a,b,f)}else{return undefined}},showExpressInstall:function(b,a,g,f){if(ah.w3&&au()){ae(b,a,g,f)}},removeSWF:function(a){if(ah.w3){aw(a)}},createCSS:function(b,a,f,g){if(ah.w3){az(b,a,f,g)}},addDomLoadEvent:aj,addLoadEvent:aC,getQueryParamValue:function(b){var a=aL.location.search||aL.location.hash;if(a){if(/\?/.test(a)){a=a.split("?")[1]}if(b==null){return ai(a)}var f=a.split("&");for(var g=0;g<f.length;g++){if(f[g].substring(0,f[g].indexOf("="))==b){return ai(f[g].substring((f[g].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(aU){var a=aS(ac);if(a&&aJ){a.parentNode.replaceChild(aJ,a);if(ad){ay(ad,true);if(ah.ie&&ah.win){aJ.style.display="block"}}if(ap){ap(at)}}aU=false}}}}();App.iframeMask=function(l,g){var a={};var j=a.oParent=document.getElementsByTagName("body")[0];var f=a.oMask=j.appendChild($C("div"));var k=a.oProtective=j.appendChild($C("iframe"));k.frameborder=0;var h=f.style;var b=k.style;var b=k.style;h.top=b.top="0px";h.left=b.left="0px";h.overflow=b.overflow="hidden";h.border=b.border="0px";h.position=b.position="absolute";h.display=b.display="none";h.backgroundColor=b.backgroundColor="#000000";h.zIndex=l||799;b.zIndex=(l-1)||798;Core.Dom.setStyle(f,"opacity","0.15");Core.Dom.setStyle(k,"opacity","0");a.oMaskResize=(function(m){return function(){var n=Core.System.pageSize();m.oMask.style.width=m.oProtective.style.width=Math.max(document.body.scrollWidth,(document.documentElement)?document.documentElement.scrollWidth:0)+"px";m.oMask.style.height=m.oProtective.style.height=n[1]+"px";if(g){g(n)}}})(a);a.hidden=(function(m){return function(){m.oMask.style.display=m.oProtective.style.display="none"}})(a);a.show=(function(m){return function(){m.oMask.style.display=m.oProtective.style.display="block"}})(a);a.oMaskResize();Core.Events.addEvent(window,a.oMaskResize,"resize");return a};App.PopUpSwfPlayer=(function(){var f,b,a,g,k=Core.Events,j=k.addEvent,h=k.removeEvent;return function(l){var m="view_ani",s=window,q=document,t=q.documentElement||{},r=q.body;if(scope.statistics){scope.statistics({type:"ani",source:encodeURIComponent(l)})}if(!swfobject.hasFlashPlayerVersion("9.0.0")){App.alert({code:"CD0084"});return}if(!b){document.body.appendChild(b=$C("div"));b.style.position="absolute";b.style.zIndex="2012"}b.style.display="";if(!a){b.innerHTML="";b.appendChild(a=$C("div"));a.id=m;a.innerHTML=['<div style="padding-left:202px;padding-top:172px;"><center><img src="',[scope.$BASECSS,"style/images/common/loading.gif"].join(""),'"/></center></div>'].join("")}var n=function(w){var x=s.pageYOffset||Math.max(t.scrollTop,r.scrollTop);b.style.left=(w[2]-440)/2+"px";b.style.top=((w[3]-360)/2+x)+"px"};if(!f){f=App.iframeMask(2000,n)}else{n(Core.System.pageSize())}var v={id:"view_ani",quality:"high",allowScriptAccess:"never",wmode:"transparent",allowFullscreen:true,allownetworking:"internal"};var p={playMovie:"true"};var o=function(w){if(w&&w.keyCode!==27&&w.type!=="mouseup"){return}clearInterval(g);swfobject.removeSWF(m);b.style.display="none";a=null;f.hidden();h(r,o,"keyup");h(r,o,"mouseup");if(!w){return}Core.Events.stopEvent()};swfobject.embedSWF(l,m,"440","360","10.0.0",null,p,v);f.show();s.clearInterval(g);g=setInterval(function(){var x=swfobject.getObjectById(m),w=0;if(x&&x.PercentLoaded()==100){s.clearInterval(g);g=setInterval(function(){var A=x.CurrentFrame(),y;try{y=x.TotalFrames()}catch(z){y=x.TotalFrames}if(A<0){return}if(A<y&&w<=A){w=A}else{o()}},80)}},100);j(r,o,"keyup");j(f.oMask,o,"mouseup");f.oMask.title=$CLTMSG.CF0105}})();App.group=function(h,a,j){var b={},f=0,g=h.length,k,l,m=Core.Events.addEvent;b.current=-1;b.items=h;b.selected;k=j&&j.selected||null;l=j&&j.unselected||null;for(f;f<g;f++){(function(o,n){m(o,function(p){if(b.current==n&&j){return}l&&(b.current!=-1)&&(h[b.current].className=l);k&&(o.className=k);b.current=n;a(o,n,b);return false},"mouseup")})(h[f],f)}};(function(){var n=document,k="/face/aj_face.php",b=Core.Events,l=Core.String,t=b.stopEvent,s=b.addEvent,a=b.removeEvent,f=b.fireEvent,q=App.simpleAjax,j=Core.Dom.getXY,r=App.group,m=App.removeChildren,g=App.PopUp,p;function o(w,v){return App.builder3(w,v,{dd:"id",mm:"action"})}function h(v){return v.replace(/[^\w\u4e00-\u9fa5\uff10-\uff19\uff21-\uff3a\uff41-\uff5a\u2014\uff3f]/g,"")}App.showFaces=(function(){var y={},B,w,v=false,A=false,z,x={selected:"cur",unselected:" "};splitHTML='<li class="magiclicur" style="visibility:hidden">|</li>',panelHTML='<table class="mBlogLayer"><tbody><tr><td class="top_l"></td><td class="top_c"></td><td class="top_r"></td></tr><tr><td class="mid_l"></td><td class="mid_c"><div class="layerBox phiz_layerN"><div class="layerBoxTop"><div class="layerArrow" style="left:6px;"></div><div class="topCon"><ul class="phiz_menu"><li id="face" class="cur"><a href="#" onclick="this.blur();return false;">'+$CLTMSG.CL0901+'</a></li><li id="ani" act="topTab" class="magic"><a href="#" onclick="this.blur();return false;"><strong></strong>'+$CLTMSG.CL0902+'</a></li></ul><a id="close" href="#" onclick="return false;" title="'+$CLTMSG.CL0701+'" class="close"></a><div class="clearit"></div></div></div><div class="magicT"><div class="magicTL"><ul id="tab"></ul></div><div class="magicTR"><a href="#" onclick="return false;" id="prevBtn" class="magicbtnL02" title="'+$CLTMSG.CX0076+'"></a><a href="#" onclick="return false;" id="nextBtn" title="'+$CLTMSG.CX0077+'" class="magicbtnR02"></a></div><div class="clear"></div></div><div class="layerBoxCon" style="width:450px;"><div id="hotPanel" class="faceItemPicbgT"><ul id="hot"></ul><div class="clearit"></div></div><div id="normPanel" class="faceItemPicbg"><ul id="norm"></ul><div class="clearit"></div></div><div id="pagePanel" class="magicB"><div id="magicNotes" class="magic_tit" style="display:none">'+$CLTMSG.CL0904+'</div><div class="pages" id="pageing"></div></div></div></div></td><td class="mid_r"></td></tr><tr><td class="bottom_l"></td><td class="bottom_c"></td><td class="bottom_r"></td></tr></tbody></table>';return function(Z,E,Y,W,O,P,J){if(Z.tagName=="A"){Z.href="####"}z=J||function(){return false};if(!v){w=g().zIndex(1500).content(panelHTML);var V=w.dom,N=V.close,X=V.hot,U=V.hotPanel,G=V.magicNotes,H=V.norm,C=V.normPanel,M=V.pageing,I=V.prevBtn,T=V.nextBtn,D=V.tab;face=V.face,ani=V.ani,cType=1,tabIndex=0;function K(ac,aj){m(aj);var ad=0,ae=ac.length,ab=[],ah,ak,al,aa,ag="",ai="",af;for(ad;ad<ae;ad++){ah=ac[ad];af=h(ah.title);cType==1&&(ag='class="face_box"');cType==1&&(ai=('<a action="play" title="'+$CLTMSG.CL0912+'" class="play_btn" href="#" onclick="return false;"></a><span class="face_box_tex">'+(l.byteLength(af)>8?l.leftB(af,6)+"...":af)+"</span>"));ab.push(['<li action="icon" title="',af,'"><a href="#" onclick="return false;" ',ag,">",'<img src="',ah.icon,'"/>',"</a>",ai,"</li>"].join(""))}ak=o(ab.join(""),aj)["actList"];al=ak.icon;aa=ak.play;if(aa){r(aa,function(an,am,ao){an.onclick=function(){return false};t();App.PopUpSwfPlayer(ac[am].src);return false})}r(al,function(an,am,ao){an.onclick=function(){return false};setTimeout(function(){tArea.focus()},0);setTimeout(function(){var av=tArea.getAttribute("range");var ax=ac[am].value+" ";if(z(ax)){}else{if(document.selection){var aq=document.selection.createRange();document.selection.empty();aq.text=ax}else{if(tArea.setSelectionRange){var ap=tArea.selectionStart;var ar=tArea.selectionEnd;var au=tArea.value.substring(0,ap);var at=tArea.value.substring(ar);var ay=au+ax,aw=ay.length;tArea.value=ay+at;tArea.setSelectionRange(aw,aw)}else{tArea.value+=ax}}}if(reflush){reflush()}w.visible(false)},200);return false})}function F(ae){m(M);var ad=0,ab=ae.length,ac=[],aa;if(!ab){return}for(ad;ad<ab;ad++){ac.push('<a action="pageBtn" href="#" onclick="return false;">'+(ad+1)+"</a>")}aa=o(ac.join(""),M)["actList"]["pageBtn"];r(aa,function(ag,af){ag.onclick=function(){return false};U.style.display=(!cType&&!tabIndex&&!af)?"":"none";setTimeout(function(){K(ae[af],H)},50);ag.blur()},x);M.style.display=aa.length<2?"none":"";f(aa[0],"mouseup")}function R(ao){m(D);var ah=[{type:$CLTMSG.CL0914,icon:ao.data.norm}].concat(ao.data.more);var ai=0,al=ah.length,am,ab=[],an;for(ai;ai<al;ai++){am=ah[ai];if(!am||!am.type){continue}ab.push('<li style="visibility:hidden"><a action="tabs" onclick="return false;" href="#">'+am.type+"</a></li>")}if(!ab.length){return}an=o(ab.join(splitHTML),D)["actList"]["tabs"];r(an,function(aq,ap){aq.onclick=function(){return false};tabIndex=ap;F(ah[ap].icon);aq.blur()},{selected:"magicTcur",unselected:" "});f(an[0],"mouseup");var aj=1,ak=0,ad=D.getElementsByTagName("li"),ag=ad.length,ae=[],ac=0,aa=[],af;setTimeout(function(){for(ak;ak<ag;ak++){ad[ak].style.visibility="visible";ad[ak].style.display="";var ar=ad[ak].innerHTML=="|"?8:ad[ak].offsetWidth;if(ac+ar>400){ac=0;ae.push(aa);aa=[]}ad[ak].style.display="none";aa.push(ad[ak]);ac+=ar}aa.length&&ae.push(aa);af=ae.length-1;function aq(){I.className=aj==0?"magicbtnL01":"magicbtnL02";T.className=aj==af?"magicbtnR01":"magicbtnR02"}function ap(aw,au){var av=0;al=aw.length,end=Math.max(al-1,0);for(av;av<al;av++){aw[av].style.visibility=au?"visible":"hidden";aw[av].style.display=!au?"none":((av==0||av==end)&&aw[av].innerHTML=="|")?"none":""}}function at(av,aw){var au=Math[av](aj+aw,aw>0?af:0);if(aj==au){aq();return}ae[aj]&&ap(ae[aj],false);ae[au]&&ap(ae[au],true);aj=au;aq()}I.onclick=function(){at("max",-1);I.blur();return false};T.onclick=function(){at("min",1);T.blur();return false};at("max",-1)},100)}function S(ab,aa,ac){t();ab.onclick=function(){return false};m(H);m(D);m(M);face.className=aa?"":"cur";ani.className=aa?"magic cur":"magic";C.className=aa?"magic_list":"faceItemPicbg";U.style.display=aa?"none":"";G.style.display=aa?"":"none";M.style.display="none";I.className="magicbtnL01";T.className="magicbtnR01";I.onclick=function(){return false};T.onclick=function(){return false};cType=aa;p&&p.abort();if(y[aa]){R(y[aa]);return false}H.innerHTML='<center><img style="margin-top:10px;margin-bottom:10px" src="'+scope.$BASEIMG+'style/images/common/loading.gif"/></center>';p=q([k,"?type=",aa?"ani":"face"].join(""),function(ad){var ae;if(ad.code=="A00006"&&(ae=ad.data)){R(ad);if(!A&&ae.hot){A=true;K(ae.hot,X)}y[aa]=ad}});ab.blur();return false}r([face,ani],S);v=true;s(N,function(){N.onclick=function(){return false};w.visible(false);t()},"mouseup");s(w.wrap,function(){t()},"mouseup");s(n.body,function(){w.visible(false)},"mouseup");var L=Core.System.winSize();s(window,function(ab){var aa=Core.System.winSize();if(L.width!=aa.width||L.height!=aa.height){w.visible(false);L=aa}},"resize")}tArea=E;reflush=P;var Q=j(Z);w.position(Q[0]+19+(Y||0),Q[1]+Z.offsetHeight+(W||5));f(face,"mouseup");setTimeout(function(){w.visible(true)},0);return false}})()})();(function(l){$C=function(n){return document.createElement(n)};var b=Core.Events.addEvent;var m=Core.Events.stopEvent;var a=Core.Events.removeEvent;var h=Core.Dom.getXY;var k=function(n){if(n===undefined){throw"the dropDown item need parameters"}n.text=n.text||n.value;n.ele=n.ele||$C("LI");n.focus=n.focus||function(){};n.blur=n.blur||function(){};n.ok=n.ok||function(){};n.tnode=document.createTextNode("");n.ele.appendChild(n.tnode);n.ele.setAttribute("unselectable","on");if(n.itemStyle){n.ele.style.cssText=n.itemStyle}b(n.ele,function(){n.focus(o)},"mouseover");b(n.ele,function(){n.blur(o)},"mouseout");b(n.ele,function(){m();n.ok(o)},"click");b(n.ele,m,"mousedown");var o={};o.set=function(p,q){if((p=="focus"||p=="ok")&&typeof q!="function"){throw"dropDown item need function as parameters"}n[p]=q;if(p=="text"){n.ele.innerHTML=q}if(p=="HTML"){n.ele.innerHTML=q}return o};o.get=function(p){return n[p]};return o};var g=function(o){var q={};if(o===undefined){o={}}o.items=[];o.count=0;o.current=-1;o.key={ENTER:13,ESC:27,UP:38,DOWN:40,LEFT:37,RIGHT:39,BACK:8,TABLE:9};o.box=$C("DIV");o.shell=$C("UL");o.showing=false;o.box.appendChild(o.shell);document.body.appendChild(o.box);var n=function(r){r=r||o.items[o.current];o.light(r.get("ele"))};var p=function(r){r=r||o.items[o.current];if(r){o.dark(r.get("ele"))}};o.newItem=function(){var r=k({ok:o.select,focus:function(s){if(o.items[o.current]){p()}o.current=s.index;n()},itemStyle:o.itemStyle});o.shell.appendChild(r.get("ele"));return r};o.getItem=function(r){if(!o.items[r]){o.items[r]=o.newItem();o.items[r].index=r}return o.items[r]};o.up=function(){if(o.current>=o.count||o.current<=0){p(o.items[0]);o.current=o.count-1}else{p();o.current-=1}n()};o.down=function(){if(o.current>=o.count-1||o.current<0){p(o.items[o.count-1]);o.current=0}else{p();o.current+=1}n()};o.open=function(){o.box.style.display="";b(document.documentElement,o.hotKey,"keydown");o.showing=true};o.close=function(){o.box.style.display="none";if($E("_iframe4select_")){$E("_iframe4select_").style.display="none"}a(document.documentElement,o.hotKey,"keydown");o.showing=false};o.hotKey=function(t){var s=window.event||t;var r=s.keyCode;if(r==o.key.UP){o.up();m();return false}else{if(r==o.key.DOWN){o.down();m();return false}else{if(r==o.key.ESC){o.close();m();return false}}}};q.show=function(r){o.open();return q};q.hidd=function(r){o.close();if(o.current!==-1){p()}o.current=-1;return q};q.light=function(r){n(o.items[r]);return q};q.dark=function(r){p(o.items[r]);return q};q.data=function(t){for(var s=0,r=t.length;s<r;s+=1){o.getItem(s).set("text",t[s]["text"]).set("value",t[s]["value"]).get("ele").style.display=""}for(var s=t.length,r=o.items.length;s<r;s+=1){o.getItem(s).get("ele").style.display="none"}o.count=t.length;p();o.current=-1;return q};q.pushData=function(t){for(var s=0,r=t.length;s<r;s+=1){o.getItem(o.count+s).set("text",t[s]["text"]).set("value",t[s]["value"])}o.count+=t.length;return q};q.set=function(r,s){if(r==="position"){o.box.style.left=s[0]+"px";o.box.style.top=s[1]+"px"}return q};q.get=function(r){if(r==="current"){return o.items[o.current]}if(r==="index"){return o.current}return o[r]};return q};var j=function(n){var o={};n.box=document.createElement("DIV");n.box.innerHTML=n.info;if(n.style){n.box.style.cssText=n.style}if(n.className){n.box.className=n.className}n.box.style.position="absolute";n.box.style.display="none";document.body.appendChild(n.box);o.show=function(){n.box.style.display=""};o.hidd=function(){n.box.style.display="none"};o.set=function(p,q){if(p==="position"){n.box.style.left=q[0]+"px";n.box.style.top=q[1]+"px"}return o};o.get=function(p){return n[p]};return o};var f=function(o){var p={};var n=function(v,r){if(o.data.length===0||!v){setTimeout(function(){r([])},0)}else{var t=[];for(var s=0,q=o.data.length;s<q;s+=1){if(o.data[s].value.indexOf(v)!=-1){t[t.length]=o.data[s]}}setTimeout(function(){r(t)},0)}};ajax=function(r,q,t){var s=t?{key:r,schooltype:t}:{key:r};Utils.Io.Ajax.request(o.data,{GET:s,onComplete:function(v){if(v.code==="A00006"){if(typeof o.search==="function"){v.data=o.search(v.data)}q(v.data)}},returnType:"json"})};jsonp=function(){};if(o.type==="ajax"){n=ajax}else{if(o.type==="jsonp"){n=jsonp}else{if(typeof o.search==="function"){n=o.search}}}p.result=function(r,q,s){n(r,q,s)};p.set=function(q,r){o[q]=r;return p};return p};l.autoComplate=function(A){if(!A.input){throw"the autoComplate need an input as an parameter"}A.searchCb=A.searchCb||function(){};var o=null;var B=f({type:A.type,data:A.data,search:A.search});var w=g({select:function(C){A.ok(C.get("value"),C.get("text"));A.input.blur()},itemStyle:A.itemStyle,light:A.light,dark:A.dark});if(A.emptyInfo){var r=j({info:A.emptyInfo,style:A.emptyStyle,className:A.emptyClass})}var y=w.get("box");y.className=A["class"];y.style.cssText=A.style;w.hidd();b(window,function(){if(y.style.display!=="none"){A.input.blur();w.hidd()}},"resize");if("v"=="\v"){var q=$C("IFRAME");q.id="_iframe4select_";q.style.zIndex=A.zIndex||50;q.style.display="none";q.style.position="absolute";document.body.appendChild(q)}var n={};A.formatKey=A.formatKey||function(C){return C};var t=function(D,C){D=A.formatKey(D);if(!n[D]){B.result(D,function(E){if(E.length===0){if(D.indexOf(A.emptkey)!==-1){A.emptykey=D}}C(E);n[D]=E},A.schooltype)}else{setTimeout(function(){C(n[D])},0)}};b(A.input,function(D){var C=window.event||D;if(C.keyCode===13){if(w.get("current")){A.ok(w.get("current").get("value"),w.get("current").get("text"));m(C)}if(!A.noBlur){A.input.blur()}}},"keypress");var p=function(){o=setInterval(v,100*A.timer);A.searching="";A.emptykey="";var C=h(A.input);C[1]+=A.input.offsetHeight;if(r){r.set("position",C).show()}};var s=function(){clearInterval(o);w.hidd();A.searching="";A.emptykey="";if("v"=="\v"){q.style.display="none"}if(r){r.hidd()}};var z=function(D){A.searchCb(D);w.data(D);if(D.length){if(!w.get("showing")){w.show()}if("v"=="\v"){q.style.width=y.offsetWidth+"px";q.style.height=y.offsetHeight+"px";var C=h(y);q.style.top=C[1]+"px";q.style.left=C[0]+"px";q.style.display=""}}else{w.hidd();if("v"=="\v"){q.style.display="none"}}};var v=function(){if(A.input.value===A.searching){return false}if(A.input.value.indexOf(A.emptykey)!==-1&&A.emptykey!==""){return false}A.searching=A.input.value;var C=h(A.input);C[1]+=A.input.offsetHeight;w.set("position",C);if(A.input.value===""){setTimeout(function(){z([])},0);if(r){r.set("position",C).show()}}else{t(A.input.value,z);if(r){r.hidd()}}};b(A.input,p,"focus");b(A.input,s,"blur");A.searching="";A.emptykey="";var x={};x.get=function(C){if(C==="index"){return w.get("index")}return A[C]};x.set=function(C,D){if(C==="data"){B.set("data",D);n={}}};x.end=function(){s();return x};return x}})(App);App.fansfind=function(a){a.ok=function(g,h){h=h.replace(/\(.*\)/g,"");if(a.input.value&&/,|;|\uFF0C|\uFF1B|\u3001|\s/.test(a.input.value)){var b=a.input.value.split(/,|;|\uFF0C|\uFF1B|\u3001|\s/);var f=a.input.value.substring(0,a.input.value.length-b[b.length-1].length);a.input.value=f+h+" "}else{a.input.value=h}if(a.select&&typeof a.select=="function"){a.select(g,h)}};a.timer=a.timer||5;a.style=a.style||"width:"+a.input.clientWidth+"px;position:absolute;z-Index:1200;";a.light=a.light||function(b){b.className="cur"};a.dark=a.dark||function(b){b.className=""};a["class"]=a["class"]||"layerMedia_menu";a.type=a.type||"ajax";a.data=a.data||"/attention/aj_chooser.php?key="+a.input.value+"&type="+a.searchtype;a.itemStyle="overflow:hidden;height:20px";return App.autoComplate(a)};App.msgDialog=function(a,k){var h=function(){var n=Core.Events.getEvent();var m=n.srcElement||n.target;while(m.nodeType!=1){m=m.parentNode}return m};var b=h();var g='<table class="noteTab2"><tbody>	<tr>	<th>'+$CLTMSG.CD0050+'&nbsp;</th><td><input  id="popUpNick" type="text"  class="PY_input" value="'+(a||"")+'"/>&nbsp;&nbsp;</td></tr>	<tr class="tPadding" ><th>'+$CLTMSG.CD0051+'&nbsp;</th><td><textarea id="popUpEditor" class="PY_input"></textarea></td>	</tr>	 <tr class="tPadding1"><th></th><td><a class="faceicon1" id="insert_face_icon" href="javascript:void(0);" title="表情"></a></td></tr>	<tr><th/><td><a id="popUpSubmit" href="javascript:void(0);" class="btn_normal" ><em>'+$CLTMSG.CD0052+'</em></a>	<span id="popUpError" style="display:none" class="errorTs2 error_color">'+$SYSMSG.M01112+'</span></td></tr>	<tr><td></td><td><p class="inviteLayer_tip gray9">'+$CLTMSG.CD0053+"</p></td></tr> 	</tbody></table>";var l={width:430,zIndex:1000,hidden:true};var j=new App.Dialog.BasicDialog($CLTMSG.CD0054,g,l);Core.Events.addEvent($E("insert_face_icon"),function(n){var m=n.srcElement||n.target;App.showFaces(m,$E("popUpEditor"),-30,0,"360px")},"click");App.fansfind({input:$E("popUpNick"),searchtype:1});if(b){App.doFlyOut(b,j._node,{resFun:function(){try{j.show()}catch(m){}},style:"border:#000 2px solid;background:#bad;opacity:0.2;filter:alpha(opacity=20);zoom:1",time:0.75})}else{j.show()}var f={submit:$E("popUpSubmit"),editor:$E("popUpEditor"),info:$E("popUpError"),nick:$E("popUpNick")};App.msgPublisher(f,null,k,function(){j.close()});App.CustomEvent.fire("window","cardCache");return j};$registJob("login",function(){var j=$E("login_submit_btn");var f=$E("loginname");var m=$E("password");var k=$E("remusrname");var h=$E("login_form");if(!k){k={checked:true}}App.initLoginInput(f);if(Utils.Cookie.getCookie("un")){var b=$C("A");var l=f.parentNode;var a=false;b.onclick=function(){f.value="";Utils.Cookie.setCookie("un","",0,"/","t.sina.com.cn");Utils.Cookie.deleteCookie("un");App.__no_login_name__=true;l.removeChild(b);a=true;return false};b.innerHTML='<img class="lgicon_del" title="#{title}" src="http://img.t.sinajs.cn/t3/style/images/common/transparent.gif">'.replace(/#\{title\}/,$CLTMSG.CD0185);b.onmouseover=function(){this.style.cursor="pointer"};l.appendChild(b);Core.Events.addEvent(f,function(){!a&&l.removeChild(b);a=true},"focus")}var n={zIndex:1010,ref:f,offsetY:1,offsetX:1};function g(o,p){if(!Core.String.trim(o.value)||(o.value==o.title&&o.title)){o.style.display!=="none"&&o.focus();App.fixElement.setHTML(p,"",n);return false}else{App.fixElement.hidden()}return true}Core.Events.addEvent(j,function(o){if(!g(f,App.getMsg({code:"M00901"}))){return false}if(!g(m,App.getMsg({code:"M00902"}))){return false}else{App.LoginAction({name:f.value,pwd:m.value,remb:k.checked,error:function(q,p){var r="";if(p=="4010"){q=App.getMsg({code:"R01011"});r=App.getMsg("R01010",{mail:f.value})}else{if(p=="101"||p=="5"){r=App.getMsg({code:"R11111"})}}App.fixElement.setHTML(q,r,n)},succ:function(){var p=scope.redirect?decodeURIComponent(Core.String.trim(scope.redirect)):"http://t.sina.com.cn/";location.replace(p)}})}Core.Events.stopEvent(o)},"click");if(h){App.enterSubmit({parent:$E("password").parentNode,action:function(){Core.Events.fireEvent("login_submit_btn","click")}})}passcardOBJ.init(f,{overfcolor:"#999",overbgcolor:"#e8f4fc",outfcolor:"#000000",outbgcolor:""},m,parent);if(Core.String.trim(f.value)!=""&&Core.String.trim(m.value)!=""){setTimeout(function(){Core.Events.fireEvent(j,"click")},100)}if(scope.isActiveBack===true){App.fixElement.setHTML($CLTMSG.CY0115,"",n);$E("mod_login_title").className="";$E("mod_login_title").style.color="#f00";$E("mod_login_title").style.fontWeight="bold"}});$registJob("login1",function(){var j=$E("login_submit_btn1");var k=$E("loginname1");var g=$E("password1");var h=$E("remusrname1");var b=$E("login_form1");if(!h){h={checked:true}}App.initLoginInput(k,"CR0001");var f={zIndex:1010,ref:k,offsetY:1,offsetX:1};function a(l,m){if(!Core.String.trim(l.value)||(l.value==l.title&&l.title)){l.style.display!=="none"&&l.focus();App.fixElement.setHTML(m,"",f);return false}else{App.fixElement.hidden()}return true}Core.Events.addEvent(j,function(l){if(!a(k,App.getMsg({code:"M00901"}))){return false}if(!a(g,App.getMsg({code:"M00902"}))){return false}else{App.LoginAction({name:k.value,pwd:g.value,remb:h.checked,error:function(n,m){var o="";if(m=="4010"){n=App.getMsg({code:"R01011"});o=App.getMsg("R01010",{mail:k.value})}else{if(m=="101"||m=="5"){o=App.getMsg({code:"R11111"})}}App.fixElement.setHTML(n,o,f)},succ:function(){var m=scope.redirect?Core.String.trim(scope.redirect):"http://t.sina.com.cn/";location.replace(m)}})}Core.Events.stopEvent(l)},"click");if(b){App.enterSubmit({parent:g.parentNode,action:function(){Core.Events.fireEvent("login_submit_btn1","click")}})}passcardOBJ.init(k,{overfcolor:"#999",overbgcolor:"#e8f4fc",outfcolor:"#000000",outbgcolor:""},g,parent)});$registJob("init_input",function(){App.Dom.getBy(function(f){if(f.getAttribute("dycolor")||f.getAttribute("dycolor")==false){return}var g=f.getAttribute("type");var b=f.getAttribute("name");if(/text|password/.test(g)&&b!="nickname"){var a=f.getAttribute("clew");f.style.color="#999";Core.Events.addEvent(f,function(){if(a){if(a===f.value){f.value=""}}f.style.color="#333"},"focus");Core.Events.addEvent(f,function(){if(a){if(f.value===""){f.value=a}}f.style.color="#999"},"blur")}},"input",document)});(function(a){a.setOpacity=function(b,f){b.style.filter="alpha(opacity="+f+")";b.style.opacity=f/100};a.opacity=function(f,k,n){var m=k.first;var l=k.last||0;if(l==m){a.setOpacity(f,m);if(typeof n==="function"){n(m,l)}return false}var o=Math.floor((k.time||5)*100/a.timer.delay);var j=[];for(var g=0;g<o;g++){j.push(m+(l-m)*g/o)}var h=0;var b=a.timer.add(function(){if(h>=j.length){a.timer.remove(b);a.setOpacity(f,l);if(typeof n==="function"){n(m,l)}return false}a.setOpacity(f,j[h]);h++})}})(App);Core.Dom.domInsert=function(g,h,k,j){k=/^(afterBegin|afterEnd|beforeBegin|beforeEnd)$/.test(k)?k:"beforeEnd";j=(typeof j=="function"?j:function(){});var a=arguments;if($IE){var f="HTML";if(typeof h=="object"){if(h.nodeType==1){f="Element"}else{if(h.nodeType==3){f="Text";h=h.data}else{f="HTML"}}}(function(){try{g.doScroll("left");g["insertAdjacent"+f](k,h);j.call(a.caller);j=h=null}catch(l){window.setTimeout(arguments.callee,0)}})()}else{if(typeof h=="object"&&/^(1|3)$/.test(h.nodeType)){switch(k){case"afterBegin":g.insertBefore(h,g.firstChild);break;case"afterEnd":if(g.parentNode.nodeType==1){g.parentNode.insertBefore(h,g.nextSibling)}break;case"beforeBegin":if(g.parentNode.nodeType==1){g.parentNode.insertBefore(h,g)}break;case"beforeEnd":g.appendChild(h);break}}else{var b=document.createElement("div");b.innerHTML=h;switch(k){case"afterBegin":while(b.lastChild){g.insertBefore(b.lastChild,g.firstChild)}break;case"afterEnd":if(g.parentNode.nodeType==1){while(b.lastChild){g.parentNode.insertBefore(b.lastChild,g.nextSibling)}}break;case"beforeBegin":if(g.parentNode.nodeType==1){while(b.firstChild){g.parentNode.insertBefore(b.firstChild,g)}}break;case"beforeEnd":while(b.firstChild){g.appendChild(b.firstChild)}break}b=null}j.call(a.caller)}};(function(){var a=function(g){var b=g.split("-");var h=b[0];for(var f=1;f<b.length;f++){h+=b[f].charAt(0).toUpperCase()+b[f].substring(1)}return h};Core.Dom.setStyle2=function(g,f){if(typeof g=="string"){g=$E(g)}for(var b in f){styleAttr=a(b);Core.Dom.setStyle(g,styleAttr,f[b])}}})();(function(a){a.insmarquee=function(o,w,g){var h={hooker:null,list:w,sttimeout:g.sttimeout};var k=[];var y=null;var r=0;var j=0;var b=0;var l=h.list[0].parentNode;var s;var n;if(g===undefined){g={}}var v=g.speed||5;var m=g.forward||"left";var x=2;var p=function(A){return a.animation.speed(a.timer.delay*x,A,v)};var t=function(){};var z=function(){};var q=function(){};o.style.overflow="hidden";var f=false;if(m==="up"){b=o.scrollTop;k=p(h.list[0].offsetHeight);t=function(A){l.removeChild(h.list[A]);l.appendChild(h.list[A])};z=function(A){k=p(h.list[A].offsetHeight)};q=function(A){o.scrollTop=b+k[A]}}else{if(m==="down"){b=o.scrollTop;k=p(h.list[h.list.length-1].offsetHeight);t=function(A){h.pause("opacity");f=false;h.list[h.list.length-1-A].style.backgroundColor="#fff";a.opacity(h.list[h.list.length-1-A],{first:0,last:100,time:Math.ceil(h.list[h.list.length-1-A].offsetHeight/v/4)},function(){clearTimeout(s);s=setTimeout(function(){if(!h.hooker||h.hooker=="parse"){return false}h.restart()},h.sttimeout||3000)})};z=function(A){k=p(h.list[h.list.length-1-A].offsetHeight)};q=function(A,B){if(!f){l.removeChild(h.list[h.list.length-1-B]);a.setOpacity(h.list[h.list.length-1-B],"0");h.list[h.list.length-1-B].style.height="0px";h.list[h.list.length-1-B].style.overflow="hidden";Core.Dom.domInsert(l,h.list[h.list.length-1-B],"afterBegin")}f=true;h.list[h.list.length-1-B].style.height=k[A]+"px"}}else{if(m==="right"){}else{if(m==="left"){b=o.scrollLeft;k=p(h.list[0].offsetWidth);t=function(A){l.removeChild(h.list[A]);l.appendChild(h.list[A])};z=function(A){k=p(h.list[A].offsetWidth-parseInt(Core.Dom.getStyle(h.list[h.list.length-1],"paddingTop")))};q=function(A){}}else{if(m=="insertDown"){o.style.overflow="visible";n=h.list.shift();k=p(n.offsetHeight);t=function(A){h.pause("opacity");f=false;if(n&&n.style){n.style.height="auto";n.style.backgroundColor="#fff";a.opacity(n,{first:0,last:100,time:1},function(){clearTimeout(s);s=setTimeout(function(){if(typeof h.afterRoll==="function"){h.afterRoll()}h.rollDone=true;if(h.list.length==0||!h.hooker||h.liveStop==true||h.hooker=="pause"){return false}h.restart();n=h.list.shift()},h.sttimeout||2500)})}};z=function(A){if(typeof g.afterIns==="function"){g.afterIns(n)}};q=function(A,B){if(!f){if(!n){return false}k=p(n.offsetHeight);a.setOpacity(n,"0");n.style.height="0px";n.style.overflow="hidden";Core.Dom.domInsert(o,n,"afterBegin",function(){h.rollDone=false})}f=true;n.style.height=k[A]+"px"}}}}}}h.start=function(){y=a.timer.add(function(){q(r,j);r+=1;if(r>=k.length){t(j);j+=1;j%=h.list.length;z(j);r=0}});h.hooker=y};h.stop=function(){a.timer.remove(y);h.hooker=null};h.pause=function(A){a.timer.pause(y);h.hooker=A||"parse"};h.restart=function(){a.timer.play(y);h.hooker=y};h.setList=function(A,B){if(B==="reset"||h.list.length==0){h.list=[];for(var C=0;C<A.length;C++){h.list.push(A[C])}clearTimeout(s);n=h.list.shift();h.setLivePlay()}else{h.list=h.list.concat(A)}};h.getList=function(){return h.list};h.setLiveStop=function(A){h.liveStop=true;if(typeof A=="function"){A()}};h.getLiveStop=function(){return h.liveStop};h.setLivePlay=function(){a.timer.play(y);h.hooker=y;h.liveStop=false};return h}})(App);(function(a){a.marquee=function(f,q,n){var m={};var j=[];var r=null;var p=0;var l=0;var s=0;var t=q[0].parentNode;var h=n.margin||8;if(n===undefined){n={}}var g=n.speed||5;var k=n.forward||"left";var v=function(x){return a.animation.speed(a.timer.delay,x,g)};var o=function(){};var b=function(){};var w=function(){};f.style.overflow="hidden";if(k==="up"){s=f.scrollTop;j=v(q[0].offsetHeight);o=function(x){t.removeChild(q[x]);t.appendChild(q[x])};b=function(x){j=v(q[x].offsetHeight)};w=function(x){f.scrollTop=s+j[x]}}else{if(k==="down"){}else{if(k==="right"){}else{s=f.scrollLeft;j=v(q[0].offsetWidth+h);o=function(x){t.removeChild(q[x]);t.appendChild(q[x])};b=function(x){j=v(q[x].offsetWidth+h)};w=function(x){f.scrollLeft=s+j[x]}}}}m.start=function(){r=a.timer.add(function(){if(p>=j.length){o(l);l+=1;l%=q.length;b(l);p=0}w(p);p+=1})};m.stop=function(){a.timer.remove(r)};m.pause=function(){a.timer.pause(r)};m.restart=function(){a.timer.play(r)};return m}})(App);$registJob("marquee",function(){var j=$E("txtBoxCon").parentNode;var h=j.getElementsByTagName("div");var b=[];for(var g=0,a=h.length;g<a;g+=1){if(h[g].className==="itemt"){b.push(h[g])}}App.bindMedia($E("txtBoxCon"));var f=setTimeout(function(){var k=new App.insmarquee(j,b,{forward:"down",speed:5});Core.Events.addEvent(j,function(){k.pause()},"mouseover");Core.Events.addEvent(j,function(){k.restart()},"mouseout");k.start();clearTimeout(f)},500)});$registJob("set_password",function(){App.setPassword("password","password_text")});$registJob("topicmarquee",function(){var k=$E("topicBoxCon");var h=$E("acticle_list").getElementsByTagName("li");var a=[];for(var g=0,b=h.length;g<b;g+=1){a.push(h[g])}var f=new App.marquee(k,a,{forward:"left",speed:2});Core.Events.addEvent(k,function(){f.pause()},"mouseover");Core.Events.addEvent(k,function(){f.restart()},"mouseout");f.start()});$registJob("highLightLi",function(){if(!$E("imgList")){return false}var h=$E("imgList").getElementsByTagName("img");var g=[];while(g.length<12){var b=Math.floor(Math.random()*h.length);if(Core.Array.findit(g,h[b])===-1){g.push(h[b])}}var a=g.length;for(var f=0;f<a;f++){g[f].parentNode.parentNode.style.display="list-item"}});$registJob("login3",function(){var k=$E("login_submit_btn");var g=$E("loginname");if(Utils.Cookie.getCookie("un")){var b=$C("A");var m=g.parentNode;var a=false;b.onclick=function(){g.value="";Utils.Cookie.setCookie("un","",0,"/","t.sina.com.cn");Utils.Cookie.deleteCookie("un");App.__no_login_name__=true;m.removeChild(b);a=true;return false};b.innerHTML='<img class="lgicon_del" title="#{title}" src="http://img.t.sinajs.cn/t3/style/images/common/transparent.gif">'.replace(/#\{title\}/,$CLTMSG.CD0185);b.onmouseover=function(){this.style.cursor="pointer"};m.appendChild(b);Core.Events.addEvent(g,function(){!a&&m.removeChild(b);a=true},"focus")}var f=$E("password_text");var l=$E("remusrname");var j=$E("login_form");if(!l){l={checked:true}}App.initLoginInput(g);var n={zIndex:1010,ref:g,offsetY:1,offsetX:1};function h(o,p){if(!Core.String.trim(o.value)||(o.value==o.title&&o.title)){f.style.display!=="none"&&f.focus();App.fixElement.setHTML(p,"",n);return false}else{App.fixElement.hidden()}return true}Core.Events.addEvent(k,function(o){if(!h(g,App.getMsg({code:"M00901"}))){return false}if(!h($E("password"),App.getMsg({code:"M00902"}))){return false}else{App.LoginAction({name:g.value,pwd:$E("password").value,remb:l.checked,error:function(q,p){var r="";if(p=="4010"){q=App.getMsg({code:"R01011"});r=App.getMsg("R01010",{mail:g.value})}else{if(p=="101"||p=="5"){r=App.getMsg({code:"R11111"})}}App.fixElement.setHTML(q,r,n)},succ:function(){var p=scope.redirect?Core.String.trim(scope.redirect):"http://t.sina.com.cn/";location.replace(p)}})}Core.Events.stopEvent(o)},"click");if(j){App.enterSubmit({parent:$E("password").parentNode,action:function(){Core.Events.fireEvent("login_submit_btn","click")}})}passcardOBJ.init(g,{overfcolor:"#999",overbgcolor:"#e8f4fc",outfcolor:"#000000",outbgcolor:""},f,parent);if(Core.String.trim(g.value)!=""&&Core.String.trim($E("password").value)!=""){setTimeout(function(){Core.Events.fireEvent(k,"click")},100)}});App.sizzle=(function(){var s=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,m=0,g=Object.prototype.toString,r=false,l=true;[0,0].sort(function(){l=false;return 0});var b=function(A,v,D,E){D=D||[];v=v||document;var G=v;if(v.nodeType!==1&&v.nodeType!==9){return[]}if(!A||typeof A!=="string"){return D}var B=[],x,I,L,w,z=true,y=b.isXML(v),F=A,H,K,J,C;do{s.exec("");x=s.exec(F);if(x){F=x[3];B.push(x[1]);if(x[2]){w=x[3];break}}}while(x);if(B.length>1&&n.exec(A)){if(B.length===2&&h.relative[B[0]]){I=k(B[0]+B[1],v)}else{I=h.relative[B[0]]?[v]:b(B.shift(),v);while(B.length){A=B.shift();if(h.relative[A]){A+=B.shift()}I=k(A,I)}}}else{if(!E&&B.length>1&&v.nodeType===9&&!y&&h.match.ID.test(B[0])&&!h.match.ID.test(B[B.length-1])){H=b.find(B.shift(),v,y);v=H.expr?b.filter(H.expr,H.set)[0]:H.set[0]}if(v){H=E?{expr:B.pop(),set:a(E)}:b.find(B.pop(),B.length===1&&(B[0]==="~"||B[0]==="+")&&v.parentNode?v.parentNode:v,y);I=H.expr?b.filter(H.expr,H.set):H.set;if(B.length>0){L=a(I)}else{z=false}while(B.length){K=B.pop();J=K;if(!h.relative[K]){K=""}else{J=B.pop()}if(J==null){J=v}h.relative[K](L,J,y)}}else{L=B=[]}}if(!L){L=I}if(!L){b.error(K||A)}if(g.call(L)==="[object Array]"){if(!z){D.push.apply(D,L)}else{if(v&&v.nodeType===1){for(C=0;L[C]!=null;C++){if(L[C]&&(L[C]===true||L[C].nodeType===1&&b.contains(v,L[C]))){D.push(I[C])}}}else{for(C=0;L[C]!=null;C++){if(L[C]&&L[C].nodeType===1){D.push(I[C])}}}}}else{a(L,D)}if(w){b(w,G,D,E);b.uniqueSort(D)}return D};b.uniqueSort=function(w){if(f){r=l;w.sort(f);if(r){for(var v=1;v<w.length;v++){if(w[v]===w[v-1]){w.splice(v--,1)}}}}return w};b.matches=function(v,w){return b(v,null,null,w)};b.find=function(C,v,D){var B;if(!C){return[]}for(var y=0,x=h.order.length;y<x;y++){var A=h.order[y],z;if((z=h.leftMatch[A].exec(C))){var w=z[1];z.splice(1,1);if(w.substr(w.length-1)!=="\\"){z[1]=(z[1]||"").replace(/\\/g,"");B=h.find[A](z,v,D);if(B!=null){C=C.replace(h.match[A],"");break}}}}if(!B){B=v.getElementsByTagName("*")}return{set:B,expr:C}};b.filter=function(G,F,J,z){var x=G,L=[],D=F,B,v,C=F&&F[0]&&b.isXML(F[0]);while(G&&F.length){for(var E in h.filter){if((B=h.leftMatch[E].exec(G))!=null&&B[2]){var w=h.filter[E],K,I,y=B[1];v=false;B.splice(1,1);if(y.substr(y.length-1)==="\\"){continue}if(D===L){L=[]}if(h.preFilter[E]){B=h.preFilter[E](B,D,J,L,z,C);if(!B){v=K=true}else{if(B===true){continue}}}if(B){for(var A=0;(I=D[A])!=null;A++){if(I){K=w(I,B,A,D);var H=z^!!K;if(J&&K!=null){if(H){v=true}else{D[A]=false}}else{if(H){L.push(I);v=true}}}}}if(K!==undefined){if(!J){D=L}G=G.replace(h.match[E],"");if(!v){return[]}break}}}if(G===x){if(v==null){b.error(G)}else{break}}x=G}return D};b.error=function(v){throw"Syntax error, unrecognized expression: "+v};var h={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+\-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(v){return v.getAttribute("href")}},relative:{"+":function(B,w){var y=typeof w==="string",A=y&&!/\W/.test(w),C=y&&!A;if(A){w=w.toLowerCase()}for(var x=0,v=B.length,z;x<v;x++){if((z=B[x])){while((z=z.previousSibling)&&z.nodeType!==1){}B[x]=C||z&&z.nodeName.toLowerCase()===w?z||false:z===w}}if(C){b.filter(w,B,true)}},">":function(B,w){var z=typeof w==="string",A,x=0,v=B.length;if(z&&!/\W/.test(w)){w=w.toLowerCase();for(;x<v;x++){A=B[x];if(A){var y=A.parentNode;B[x]=y.nodeName.toLowerCase()===w?y:false}}}else{for(;x<v;x++){A=B[x];if(A){B[x]=z?A.parentNode:A.parentNode===w}}if(z){b.filter(w,B,true)}}},"":function(y,w,A){var x=m++,v=t,z;if(typeof w==="string"&&!/\W/.test(w)){w=w.toLowerCase();z=w;v=q}v("parentNode",w,x,y,z,A)},"~":function(y,w,A){var x=m++,v=t,z;if(typeof w==="string"&&!/\W/.test(w)){w=w.toLowerCase();z=w;v=q}v("previousSibling",w,x,y,z,A)}},find:{ID:function(w,x,y){if(typeof x.getElementById!=="undefined"&&!y){var v=x.getElementById(w[1]);return v?[v]:[]}},NAME:function(x,A){if(typeof A.getElementsByName!=="undefined"){var w=[],z=A.getElementsByName(x[1]);for(var y=0,v=z.length;y<v;y++){if(z[y].getAttribute("name")===x[1]){w.push(z[y])}}return w.length===0?null:w}},TAG:function(v,w){return w.getElementsByTagName(v[1])}},preFilter:{CLASS:function(y,w,x,v,B,C){y=" "+y[1].replace(/\\/g,"")+" ";if(C){return y}for(var z=0,A;(A=w[z])!=null;z++){if(A){if(B^(A.className&&(" "+A.className+" ").replace(/[\t\n]/g," ").indexOf(y)>=0)){if(!x){v.push(A)}}else{if(x){w[z]=false}}}}return false},ID:function(v){return v[1].replace(/\\/g,"")},TAG:function(w,v){return w[1].toLowerCase()},CHILD:function(v){if(v[1]==="nth"){var w=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(v[2]==="even"&&"2n"||v[2]==="odd"&&"2n+1"||!/\D/.test(v[2])&&"0n+"+v[2]||v[2]);v[2]=(w[1]+(w[2]||1))-0;v[3]=w[3]-0}v[0]=m++;return v},ATTR:function(z,w,x,v,A,B){var y=z[1].replace(/\\/g,"");if(!B&&h.attrMap[y]){z[1]=h.attrMap[y]}if(z[2]==="~="){z[4]=" "+z[4]+" "}return z},PSEUDO:function(z,w,x,v,A){if(z[1]==="not"){if((s.exec(z[3])||"").length>1||/^\w/.test(z[3])){z[3]=b(z[3],null,null,w)}else{var y=b.filter(z[3],w,x,true^A);if(!x){v.push.apply(v,y)}return false}}else{if(h.match.POS.test(z[0])||h.match.CHILD.test(z[0])){return true}}return z},POS:function(v){v.unshift(true);return v}},filters:{enabled:function(v){return v.disabled===false&&v.type!=="hidden"},disabled:function(v){return v.disabled===true},checked:function(v){return v.checked===true},selected:function(v){v.parentNode.selectedIndex;return v.selected===true},parent:function(v){return !!v.firstChild},empty:function(v){return !v.firstChild},has:function(x,w,v){return !!b(v[3],x).length},header:function(v){return(/h\d/i).test(v.nodeName)},text:function(v){return"text"===v.type},radio:function(v){return"radio"===v.type},checkbox:function(v){return"checkbox"===v.type},file:function(v){return"file"===v.type},password:function(v){return"password"===v.type},submit:function(v){return"submit"===v.type},image:function(v){return"image"===v.type},reset:function(v){return"reset"===v.type},button:function(v){return"button"===v.type||v.nodeName.toLowerCase()==="button"},input:function(v){return(/input|select|textarea|button/i).test(v.nodeName)}},setFilters:{first:function(w,v){return v===0},last:function(x,w,v,y){return w===y.length-1},even:function(w,v){return v%2===0},odd:function(w,v){return v%2===1},lt:function(x,w,v){return w<v[3]-0},gt:function(x,w,v){return w>v[3]-0},nth:function(x,w,v){return v[3]-0===w},eq:function(x,w,v){return v[3]-0===w}},filter:{PSEUDO:function(x,C,B,D){var v=C[1],w=h.filters[v];if(w){return w(x,B,C,D)}else{if(v==="contains"){return(x.textContent||x.innerText||b.getText([x])||"").indexOf(C[3])>=0}else{if(v==="not"){var y=C[3];for(var A=0,z=y.length;A<z;A++){if(y[A]===x){return false}}return true}else{b.error("Syntax error, unrecognized expression: "+v)}}}},CHILD:function(v,y){var B=y[1],w=v;switch(B){case"only":case"first":while((w=w.previousSibling)){if(w.nodeType===1){return false}}if(B==="first"){return true}w=v;case"last":while((w=w.nextSibling)){if(w.nodeType===1){return false}}return true;case"nth":var x=y[2],E=y[3];if(x===1&&E===0){return true}var A=y[0],D=v.parentNode;if(D&&(D.sizcache!==A||!v.nodeIndex)){var z=0;for(w=D.firstChild;w;w=w.nextSibling){if(w.nodeType===1){w.nodeIndex=++z}}D.sizcache=A}var C=v.nodeIndex-E;if(x===0){return C===0}else{return(C%x===0&&C/x>=0)}}},ID:function(w,v){return w.nodeType===1&&w.getAttribute("id")===v},TAG:function(w,v){return(v==="*"&&w.nodeType===1)||w.nodeName.toLowerCase()===v},CLASS:function(w,v){return(" "+(w.className||w.getAttribute("class"))+" ").indexOf(v)>-1},ATTR:function(A,y){var x=y[1],v=h.attrHandle[x]?h.attrHandle[x](A):A[x]!=null?A[x]:A.getAttribute(x),B=v+"",z=y[2],w=y[4];return v==null?z==="!=":z==="="?B===w:z==="*="?B.indexOf(w)>=0:z==="~="?(" "+B+" ").indexOf(w)>=0:!w?B&&v!==false:z==="!="?B!==w:z==="^="?B.indexOf(w)===0:z==="$="?B.substr(B.length-w.length)===w:z==="|="?B===w||B.substr(0,w.length+1)===w+"-":false},POS:function(z,w,x,A){var v=w[2],y=h.setFilters[v];if(y){return y(z,x,w,A)}}}};b.selectors=h;var n=h.match.POS,j=function(w,v){return"\\"+(v-0+1)};for(var p in h.match){h.match[p]=new RegExp(h.match[p].source+(/(?![^\[]*\])(?![^\(]*\))/.source));h.leftMatch[p]=new RegExp(/(^(?:.|\r|\n)*?)/.source+h.match[p].source.replace(/\\(\d+)/g,j))}var a=function(w,v){w=Array.prototype.slice.call(w,0);if(v){v.push.apply(v,w);return v}return w};try{Array.prototype.slice.call(document.documentElement.childNodes,0)[0].nodeType}catch(o){a=function(z,y){var w=y||[],x=0;if(g.call(z)==="[object Array]"){Array.prototype.push.apply(w,z)}else{if(typeof z.length==="number"){for(var v=z.length;x<v;x++){w.push(z[x])}}else{for(;z[x];x++){w.push(z[x])}}}return w}}var f;if(document.documentElement.compareDocumentPosition){f=function(w,v){if(!w.compareDocumentPosition||!v.compareDocumentPosition){if(w==v){r=true}return w.compareDocumentPosition?-1:1}var x=w.compareDocumentPosition(v)&4?-1:w===v?0:1;if(x===0){r=true}return x}}else{if("sourceIndex" in document.documentElement){f=function(w,v){if(!w.sourceIndex||!v.sourceIndex){if(w==v){r=true}return w.sourceIndex?-1:1}var x=w.sourceIndex-v.sourceIndex;if(x===0){r=true}return x}}else{if(document.createRange){f=function(y,w){if(!y.ownerDocument||!w.ownerDocument){if(y==w){r=true}return y.ownerDocument?-1:1}var x=y.ownerDocument.createRange(),v=w.ownerDocument.createRange();x.setStart(y,0);x.setEnd(y,0);v.setStart(w,0);v.setEnd(w,0);var z=x.compareBoundaryPoints(Range.START_TO_END,v);if(z===0){r=true}return z}}}}b.getText=function(v){var w="",y;for(var x=0;v[x];x++){y=v[x];if(y.nodeType===3||y.nodeType===4){w+=y.nodeValue}else{if(y.nodeType!==8){w+=b.getText(y.childNodes)}}}return w};(function(){var w=document.createElement("div"),x="script"+(new Date()).getTime();w.innerHTML="<a name='"+x+"'/>";var v=document.documentElement;v.insertBefore(w,v.firstChild);if(document.getElementById(x)){h.find.ID=function(z,A,B){if(typeof A.getElementById!=="undefined"&&!B){var y=A.getElementById(z[1]);return y?y.id===z[1]||typeof y.getAttributeNode!=="undefined"&&y.getAttributeNode("id").nodeValue===z[1]?[y]:undefined:[]}};h.filter.ID=function(A,y){var z=typeof A.getAttributeNode!=="undefined"&&A.getAttributeNode("id");return A.nodeType===1&&z&&z.nodeValue===y}}v.removeChild(w);v=w=null})();(function(){var v=document.createElement("div");v.appendChild(document.createComment(""));if(v.getElementsByTagName("*").length>0){h.find.TAG=function(w,A){var z=A.getElementsByTagName(w[1]);if(w[1]==="*"){var y=[];for(var x=0;z[x];x++){if(z[x].nodeType===1){y.push(z[x])}}z=y}return z}}v.innerHTML="<a href='#'></a>";if(v.firstChild&&typeof v.firstChild.getAttribute!=="undefined"&&v.firstChild.getAttribute("href")!=="#"){h.attrHandle.href=function(w){return w.getAttribute("href",2)}}v=null})();if(document.querySelectorAll){(function(){var v=b,x=document.createElement("div");x.innerHTML="<p class='TEST'></p>";if(x.querySelectorAll&&x.querySelectorAll(".TEST").length===0){return}b=function(B,A,y,z){A=A||document;if(!z&&A.nodeType===9&&!b.isXML(A)){try{return a(A.querySelectorAll(B),y)}catch(C){}}return v(B,A,y,z)};for(var w in v){b[w]=v[w]}x=null})()}(function(){var v=document.createElement("div");v.innerHTML="<div class='test e'></div><div class='test'></div>";if(!v.getElementsByClassName||v.getElementsByClassName("e").length===0){return}v.lastChild.className="e";if(v.getElementsByClassName("e").length===1){return}h.order.splice(1,0,"CLASS");h.find.CLASS=function(w,x,y){if(typeof x.getElementsByClassName!=="undefined"&&!y){return x.getElementsByClassName(w[1])}};v=null})();function q(w,B,A,E,C,D){for(var y=0,x=E.length;y<x;y++){var v=E[y];if(v){v=v[w];var z=false;while(v){if(v.sizcache===A){z=E[v.sizset];break}if(v.nodeType===1&&!D){v.sizcache=A;v.sizset=y}if(v.nodeName.toLowerCase()===B){z=v;break}v=v[w]}E[y]=z}}}function t(w,B,A,E,C,D){for(var y=0,x=E.length;y<x;y++){var v=E[y];if(v){v=v[w];var z=false;while(v){if(v.sizcache===A){z=E[v.sizset];break}if(v.nodeType===1){if(!D){v.sizcache=A;v.sizset=y}if(typeof B!=="string"){if(v===B){z=true;break}}else{if(b.filter(B,[v]).length>0){z=v;break}}}v=v[w]}E[y]=z}}}b.contains=document.compareDocumentPosition?function(w,v){return !!(w.compareDocumentPosition(v)&16)}:function(w,v){return w!==v&&(w.contains?w.contains(v):true)};b.isXML=function(v){var w=(v?v.ownerDocument||v:0).documentElement;return w?w.nodeName!=="HTML":false};var k=function(v,C){var y=[],z="",A,x=C.nodeType?[C]:C;while((A=h.match.PSEUDO.exec(v))){z+=A[0];v=v.replace(h.match.PSEUDO,"")}v=h.relative[v]?v+"*":v;for(var B=0,w=x.length;B<w;B++){b(v,x[B],y)}return b.filter(z,y)};return b})();(function(){var s,n={},p={},m={},j=window,b=j.document,a=(b.documentElement||{}),f=Core.Events,h=f.addEvent,o=f.removeEvent,q=2,k=200;var l=function(){return(j.pageYOffset||Math.max(a.scrollTop,b.body.scrollTop))};var r=function(){return j.innerHeight||(a&&a.clientHeight)?a.clientHeight:b.body["clientHeight"]};var g=function(v){var w,t;if("getBoundingClientRect" in v){w=v.getBoundingClientRect().top;return w+l()}if(!(t=v.offsetParent)){return 0}w=t.offsetTop;while(t&&t!=b.body){w+=t.offsetTop;t=t.offsetParent}return w||0};n.interval=function(){var F,G=l(),z=r()*q,v=G+z;for(F in m){var E=p[F],C=m[F],x=0,A=C.length,B=[];if(!A){continue}for(x;x<A;x++){var w=C[x],D=g(w);if(D===0||(D>=G&&D<=v)){if(!!(w.parentNode&&w.parentNode.nodeType!=11)){E.extract&&E.extract(w);B.push(w)}C.splice(x,1);x--;A--}}if(B.length&&E.flush){E.flush(B)}}};n.loop=(function(){var v,w,x,t;t=function(){clearTimeout(v)};x=function(){clearTimeout(v);v=setTimeout(function(){n.interval();v=setTimeout(arguments.callee,k)},k)};return{start:x,stop:t}})();n.invalidate=(function(){var t;return function(v){if(v===s){return t}if(v===t){return}t=v;n.loop.stop();(v?h:o)(j,n.loop.start,"scroll");v&&n.loop.start()}})();n.plugin=function(t,v){if(!p[t]&&v.init){p[t]=v;m[t]=[];return n}$Debug("invalid plugin",t)};n.add=function(w){var v,x,t;for(v in p){x=p[v].init;if(x){t=x(w);t.length&&(m[v]=m[v].concat(t))}}n.invalidate(true)};App.getElementsByAttribute=function(w,v,t,x){return App.sizzle([v,"[",t,(x!==s?"="+x:""),"]"].join(""),w)};App.splitLoader=n})();(function(h){var f=new Date().getTime(),b=scope.$severtime*1000+2000,g=$CLTMSG.CX0122,a=$CLTMSG.CL0304,j=$CLTMSG.CL0302;h.FormatViewTime=function(q){var v=new Date().getTime(),k=new Date((q=q*1000)),w,l,r,z,n,o,p=[(p=k.getHours())<10?"0":"",p].join(""),s=[(s=k.getMinutes())<10?"0":"",s].join(""),t,x;b=b+(((x=(v-f))<0)?0:x);f=v;v=new Date(b);w=v.getFullYear();l=v.getMonth();t=v.getDate();r=k.getFullYear();z=k.getMonth()+1;o=k.getDate();if((q-new Date(w,0,1).getTime())>-1){if((q-new Date(w,l,t).getTime())>0){x=b-q;return x>3600000?[$CLTMSG.CL1002," ",p,":",s].join(""):x>50000?[Math.max(Math.ceil(x/60000),1),$CLTMSG.CL1001].join(""):[Math.max(Math.ceil(x/10000),1)*10,"秒前"].join("")}return[z,a,o,j," ",p,":",s].join("")}return[r,g,z,a,o,j," ",p,":",s].join("")}})(App);(function(j){var k=document,g=k.getElementsByTagName("head")[0],f=0,a=new Date().getTime().toString(32).toUpperCase();var b=function(){var h=k.createElement("script");h.type="text/javascript";h.charset="UTF-8";return h};j.SimpleJSLoader=function(l,o){var h=b(),m=false;h.onload=h.onreadystatechange=function(){if(!m&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){m=true;h.onload=h.onreadystatechange=null;typeof o=="function"&&o()}};h.src=l;try{g.appendChild(h)}catch(n){}};j.Jsonp=function(l,o){var h=b(),m=["JSONP",a,f++].join("_");l=l.replace(/#\{jsonp\}/,m);window[m]=function(){typeof o=="function"&&o.apply(null,arguments)};h.src=l;try{g.appendChild(h)}catch(n){}}})(App);(function(a){a.crc32=function(j,g){function m(p){p=p.replace(/\r\n/g,"\n");var o="";for(var r=0;r<p.length;r++){var q=p.charCodeAt(r);if(q<128){o+=String.fromCharCode(q)}else{if((q>127)&&(q<2048)){o+=String.fromCharCode((q>>6)|192);o+=String.fromCharCode((q&63)|128)}else{o+=String.fromCharCode((q>>12)|224);o+=String.fromCharCode(((q>>6)&63)|128);o+=String.fromCharCode((q&63)|128)}}}return o}j=m(j);var n="00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D";var g;if(typeof(g)=="undefined"){g=0}var l=0;var k=0;g=g^(-1);for(var f=0,b=j.length;f<b;f++){k=(g^j.charCodeAt(f))&255;l="0x"+n.substr(k*9,8);g=(g>>>8)^l}var h=g^(-1);if(h<0){h=4294967296+h}return h}})(App);(function(a){a.imgURL=function(m,h){h=h||"middle";function b(n){n=(n+"").replace(/[^a-f0-9]/gi,"");return parseInt(n,16)}var g={ss:{middle:"&690",bmiddle:"&690",small:"&690",thumbnail:"&690",square:"&690",orignal:"&690"},ww:{middle:"bmiddle",large:"large",bmiddle:"bmiddle",small:"small",thumbnail:"thumbnail",square:"square",orignal:"large"}};var l=m.charAt(9)=="w";var j=m.charAt(21)=="g"?".gif":".jpg";var k=l?(App.crc32(m)%4+1):(b(m.substr(19,2))%16+1);var f="http://"+(l?"ww":"ss")+k+".sinaimg.cn/"+(l?g.ww[h]:h)+"/"+m+(l?j:"")+(l?"":g.ss[h]);return f}})(App);Core.Dom.next=function(g,b){var f=$E(g);var a=f.nextSibling;if(!a){return null}else{if(a.nodeType!=1){return Core.Dom.next(a,b)}else{if(a.nodeType==8){a.parentNode.removeChild(a);return Core.Dom.next(f,b)}}}if(a.className.indexOf(b)!=-1){return a}else{return Core.Dom.next(a,b)}};Core.Dom.getChildrenByClass=function(k,j){var b=[];var h=k.childNodes||k.children;var j=" "+j+" ";var a=h.length;for(var g=0;g<a;++g){var l=h[g];var f=" "+l.className+" ";if(f.indexOf(j)!=-1){b[b.length]=l}}return b};Core.Dom.getElementsByAttr=function(h,b,j){var f=[];for(var g=0,a=h.childNodes.length;g<a;g++){if(h.childNodes[g].nodeType==1){if(h.childNodes[g].getAttribute(b)==j){f.push(h.childNodes[g])}if(h.childNodes[g].childNodes.length>0){f=f.concat(arguments.callee.call(null,h.childNodes[g],b,j))}}}return f};function intval(a){a=parseInt(a);return isNaN(a)?0:a}function getPos(k){var b=0;var f=0;var a=intval(k.style.width);var g=intval(k.style.height);var j=k.offsetWidth;var m=k.offsetHeight;while(k.offsetParent){b+=k.offsetLeft+(k.currentStyle?intval(k.currentStyle.borderLeftWidth):0);f+=k.offsetTop+(k.currentStyle?intval(k.currentStyle.borderTopWidth):0);k=k.offsetParent}b+=k.offsetLeft+(k.currentStyle?intval(k.currentStyle.borderLeftWidth):0);f+=k.offsetTop+(k.currentStyle?intval(k.currentStyle.borderTopWidth):0);return{x:b,y:f,w:a,h:g,wb:j,hb:m}}function getScroll(){var f,b,a,g;if(document.documentElement&&document.documentElement.scrollTop){f=document.documentElement.scrollTop;b=document.documentElement.scrollLeft;a=document.documentElement.scrollWidth;g=document.documentElement.scrollHeight}else{if(document.body){f=document.body.scrollTop;b=document.body.scrollLeft;a=document.body.scrollWidth;g=document.body.scrollHeight}}return{t:f,l:b,w:a,h:g}}function scroller(g,h,k,a,b,f){if(typeof g!="object"){g=document.getElementById(g)}if(!g){return}var j=this;j.el=g;j.p=getPos(g);j.s=getScroll();j.clear=function(){window.clearInterval(j.timer);j.timer=null};j.clear();j.offsetX=a||0;j.offsetY=k||0;j.p.x+=j.offsetX;j.p.y+=j.offsetY;j.t=(new Date).getTime();j.step=function(){var l=(new Date).getTime();var m=(l-j.t)/h;if(l>=h+j.t){j.clear();window.setTimeout(function(){j.scroll(j.p.y,j.p.x)},13)}else{st=((-Math.cos(m*Math.PI)/2)+0.5)*(j.p.y-j.s.t)+j.s.t;sl=((-Math.cos(m*Math.PI)/2)+0.5)*(j.p.x-j.s.l)+j.s.l;j.scroll(st,sl)}};j.scroll=function(n,m){window.scrollTo(m,n)};j.timer=window.setInterval(function(){if(b){if((j.p.y-j.s.t==0)){j.clear();return false}}if(f){if((j.p.x-j.s.l==0)){j.clear();return false}}j.step()},13)}App.bindVideo=function(m,a,q){var o=Core.Events.addEvent;var k=App.seevideo;var p={};var j=function(r,v){try{var t=Core.String.decodeHTML(Core.String.decodeHTML(q.title));if(Core.String.byteLength(t)>24){t=Core.String.leftB(t,24-1)+"..."}q.title=Core.String.encodeHTML(t)}catch(s){}return'<img width="120px" height="80px" alt="" src="'+q.screen+'">          <div type="'+v+'" mid="'+r+'" class="video_play">            <a shorturl_id="'+a+'"  href="javascript:void(0);"><img title="'+q.title+'" src="'+scope.$BASEIMG+'style/images/common/feedvideoplay.gif"></a>          </div>'};var f=function(x,y,r){if(r&&r.getAttribute("mbind")!="1"){r.setAttribute("mbind","1");var v={};if(Core.Dom.getElementsByClass(r,"div","feed_img").length>0){v.dom=Core.Dom.getElementsByClass(r,"div","feed_img")[0];v.pos="afterEnd"}else{v.dom=r;v.pos="afterBegin"}var t=$C("div");t.className="feed_img";t.innerHTML=j(x.mid,x.mtype);Core.Dom.domInsert(v.dom,t,v.pos);var w=t.childNodes||t.children;w[0].src=y.screen;var s=t.getElementsByTagName("A")[0];o(s,function(){x.node=s;k(x,y)},"click")}};m.href="javascript:void(0);";m.target="";p.mid=m.parentNode.getAttribute("mid");var h=$E("prev_"+p.mid);var n=$E("disp_"+p.mid);q.shorturl=a;p.mtype=m.parentNode.getAttribute("type");o(m,function(){p.node=m;k(p,q)},"click");if(!(scope.$pageid=="mblog"&&p.mtype=="1")){f(p,q,h)}else{if(!q){return false}if((!q)||p.mtype!="1"||n.getAttribute("mbind")=="1"){return false}q.title=Core.String.decodeHTML(q.title);var b={mid:decodeURIComponent(p.mid),url:q.flash,title:q.title,shorturl:q.shorturl,ourl:decodeURIComponent(q.url),mtype:p.mtype};var g=function(t,s){var r={quality:"high",allowScriptAccess:"always",wmode:"transparent",allowFullscreen:true};var v={playMovie:"true",auto:1};swfobject.embedSWF(t,s,"440","356","10.0.0",null,v,r)};var l='<div class="MIB_linedot_l1"></div>		          <p><a href="http://sinaurl.cn/'+b.shorturl+'" target = "_blank" class="lose" title="'+b.ourl+'"><img alt="" title="" class="small_icon original" src="'+scope.$BASEIMG+'style/images/common/transparent.gif"/>'+b.title+'</a></p><div class="note_noflash" id="'+b.mid+'">'+$CLTMSG.CD0180.replace(/#\{shorturl\}/g,b.shorturl)+"</div>";n.innerHTML=l;g(b.url,b.mid);n.setAttribute("mbind","1");n&&(n.style.cssText="min-height:100px;background:url("+scope.$BASEIMG+"style/images/common/loading.gif) no-repeat center center ;")}};App.seevideo=function(h,j){if(scope.$pageid=="yunying_index"){return true}var a=j;if(!a){return false}var g=h.node.tagName=="A"?h.node:h.node.parentNode;var b={mid:h.mid,url:a.flash,title:a.title,shorturl:a.shorturl,ourl:decodeURIComponent(a.url),mtype:h.mtype};var m=$E("disp_"+b.mid);m&&(m.style.cssText="display:none;min-height:100px;background:url("+scope.$BASEIMG+"style/images/common/loading.gif) no-repeat center center;");var o=$E("prev_"+b.mid);var n=function(q,p){if(Core.Dom.getElementsByClass(q,"A","lose").length>0){if("http://sinaurl.cn/"+p==Core.Dom.getElementsByClass(q,"A","lose")[0].href){return true}else{return false}}else{return false}};var f=function(r,q){var p={quality:"high",allowScriptAccess:"always",wmode:"transparent",allowFullscreen:true};var s={playMovie:"true",auto:1};swfobject.embedSWF(r,q,"440","356","10.0.0",null,s,p)};var k=function(p){if(p){if(scope.$pageid=="mblog"&&p.mtype=="1"){return'<div class="MIB_linedot_l1"></div>			    <p><a href="http://sinaurl.cn/'+p.shorturl+'" target = "_blank" class="lose" title="'+p.ourl+'"><img alt="" title="" class="small_icon original" src="'+scope.$BASEIMG+'style/images/common/transparent.gif"/>'+p.title+'</a></p><div class="note_noflash" id="'+p.mid+'">'+$CLTMSG.CD0180.replace(/#\{shorturl\}/g,p.shorturl)+"</div>"}else{if(p.mtype=="1"){return'<div class="MIB_assign_t"></div>					<div class="MIB_assign_c MIB_txtbl">					<div class="blogPicOri">		                <p>						<a href="javascript:;" onclick="App.closevideo(\''+p.mid+'\');"><img alt="" title="" class="small_icon cls" src="'+scope.$BASEIMG+'style/images/common/transparent.gif"/>'+$CLTMSG.CD0079+'</a>							<cite class="MIB_line_l">|</cite>							<a href="http://sinaurl.cn/'+p.shorturl+'" target = "_blank" class="lose" title="'+p.ourl+'"><img alt="" title="" class="small_icon original" src="'+scope.$BASEIMG+'style/images/common/transparent.gif"/>'+p.title+'</a> <a style="margin-left:12px;" href="javascript:;" onclick="App.openVideoWindow(this);"><img alt="" title="" class="small_icon turn_r" src="'+scope.$BASEIMG+'style/images/common/transparent.gif"/>'+$CLTMSG.CX0221+'</a>											</p>											 <div class="note_noflash" id="'+p.mid+'">									  	'+$CLTMSG.CD0180.replace(/#\{shorturl\}/g,p.shorturl)+'									  </div>											 </div>										</div>										<div class="MIB_assign_b"></div>'}else{return'<div class="MIB_linedot_l1" style="display: block;"></div>		                <p>						<a href="javascript:;" onclick="App.closevideo(\''+p.mid+'\');"><img alt="" title="" class="small_icon cls" src="'+scope.$BASEIMG+'style/images/common/transparent.gif"/>'+$CLTMSG.CD0079+'</a>							<cite class="MIB_line_l">|</cite>							<a href="http://sinaurl.cn/'+p.shorturl+'" target = "_blank" class="lose" title="'+p.ourl+'"><img alt="" title="" class="small_icon original" src="'+scope.$BASEIMG+'style/images/common/transparent.gif"/>'+p.title+'</a> <a style="margin-left:12px;" href="javascript:;" onclick="App.openVideoWindow(this);"><img alt="" title="" class="small_icon turn_r" src="'+scope.$BASEIMG+'style/images/common/transparent.gif"/>'+$CLTMSG.CX0221+'</a>											</p>											 <div class="note_noflash" id="'+p.mid+'">									  	'+$CLTMSG.CD0180.replace(/#\{shorturl\}/g,p.shorturl)+"									  </div>"}}}};if(m&&m.style.display!="none"){if(!n(m,b.shorturl)){m.innerHTML=k(b);f(b.url,b.mid);scroller(m,1000,-60,0,true,true)}}else{o.style.display="none";m.innerHTML=k(b);f(b.url,b.mid);m.style.display="";scroller(m,1000,-60,0,true,true)}try{scope.statistics({video_url:encodeURIComponent("http://sinaurl.cn/"+b.shorturl),title:encodeURIComponent(b.title),video_src_url:encodeURIComponent(b.ourl)})}catch(l){}return false};App.openVideoWindow=(function(){var a=function(h){var g=$E(h);var f=g.nextSibling;if(!f){return null}if(f.nodeType!==1){return a(f)}return f};var b=false;return function(n){if(!b){b=$C("div");var m='			<table class="mBlogLayer">				<tr>					<td class="top_l"></td>					<td class="top_c"></td>					<td class="top_r"></td>				</tr>				<tr>					<td class="mid_l"></td>					<td class="mid_c">						<div class="layerBox">							<div style="padding:3px 0 3px 5px"><a href="javascript:void(0);" id="pop_video_window_close"><img src="'+scope.$BASEIMG+'style/images/common/transparent.gif" class="small_icon cls" />'+$CLTMSG.CX0222+'</a></div>							<div class="layerBoxCon" style="width:440px;" id="pop_video_window"></div>						</div>					</td>					<td class="mid_r"></td>				</tr>				<tr>					<td class="bottom_l"></td>					<td class="bottom_c"></td>					<td class="bottom_r"></td>				</tr>			</table>			';b.innerHTML=m;document.body.appendChild(b);Core.Events.addEvent($E("pop_video_window_close"),function(){if(l.childNodes.length>0){b.style.display="none";l.removeChild(l.childNodes[0])}},"click")}var f=a(n.parentNode);var h=f.cloneNode(true);var l=$E("pop_video_window");var j=Core.Dom.getLeft(n);var g="position:fixed;bottom:0px;right:0px;z-index:1000;_position:absolute";b.style.cssText=g;if(l.childNodes.length>0){l.removeChild(l.childNodes[0])}l.appendChild(h);var k=n.parentNode.getElementsByTagName("a")[0];b.style.display="";Core.Events.fireEvent(k,"click");(function(){if($IE6&&b.style.display==""){b.style.cssText=g;setTimeout(arguments.callee,200)}})()}})();App.closevideo=function(f){var h=$E("disp_"+f);var g=$E("prev_"+f);var b;if(Core.Dom.getElementsByAttr(g,"class","imgSmall").length>0){b=Core.Dom.getElementsByAttr(g,"class","imgSmall")}else{b=Core.Dom.getElementsByAttr(g,"className","imgSmall")}if(b.length>0){var a=b[0];App.shrinkImg(a)}g.style.display="";h.style.display="none";h.innerHTML="";return false};App.listenmusic=function(f){var b=f.node.tagName=="A"?f.node:f.node.parentNode;b.target="";b.href="javascript:void(0);";var a=f.mid;var g=f.shorturl;var h={mid:decodeURIComponent(a),url:decodeURIComponent(g)};App.popUpMiniPlayer(h.mid,h.url);return false};App.popUpMiniPlayer=function(b,a){var g="http://music.sina.com.cn/yueku/t/player.html";var f="";b&&a&&(function(){f=["?mid=",b,"&url=",encodeURIComponent(a)].join("")})();scope.musicshow=window.open([g,f].join(""),"w_yuekuplayer","width=629,height=595,top="+(window.screen.height-600)/2+", left="+(window.screen.width-730)/2+", toolbar=no, menubar=no, scrollbars=no,resizable=no,location=no, status=no");if(scope.musicshow){scope.musicshow.focus()}};App.bindVote=function(k,a,r){var n=Core.Events.addEvent;var m=App.seeVote;var q={};q.mid=k.parentNode.getAttribute("mid");var g=$E("prev_"+q.mid);var l=$E("disp_"+q.mid);q.shorturl=a;q.mtype=k.parentNode.getAttribute("type");if(q.mtype==="3"){return false}var f=function(s,y){try{var x=decodeURIComponent(r.title);if(Core.String.byteLength(x)>24){x=Core.String.leftB(x,24-1)+"..."}r.title=typeof x==="undefined"?"":x}catch(v){}var w=r.screen;var t='<a type="'+y+'" mid="'+s+'" shorturl_id="'+a+'" href="javascript:void(0);"><span class="'+(w?"vote_imginfo":"")+'"><img class="info" src="'+(w?w:($CONFIG.$BASEIMG+"style/images/common/vote_pic_01.gif"))+'"></span>';t+=!w?"":('<span class="vote_play"><img src="'+$CONFIG.$BASEIMG+'style/images/common/vote_picicon_01.gif"></span>');t+="</a>";return t};var b=function(x,s){if(s&&s.getAttribute("mbind")!="1"){var w={};if(Core.Dom.getElementsByClass(s,"div","feed_img").length>0){w.dom=Core.Dom.getElementsByClass(s,"div","feed_img")[0];w.pos="afterEnd"}else{w.dom=s;w.pos="afterBegin"}var v=$C("div");v.className="vote_img";v.innerHTML=f(x.mid,x.mtype);Core.Dom.domInsert(w.dom,v,w.pos);s.setAttribute("mbind","1");var t=v.getElementsByTagName("A")[0];n(t,function(){x.node=t;j(x)},"click")}};var o=function(v,t){var s=v.match(new RegExp("(\\?|&|/)"+t+"=([^&]*)(&|$)"));if(s!=null){return unescape(s[2])}return null};var j=function(v,w){var t="/public/app_proxy.php";v.defaultOpen=typeof w==="undefined"?false:w;var s=w?1:0;var x={appcode:"10001",sh:s,type:"detail",poll_id:v.pollId,ouid:(scope?scope.$oid:"")};Utils.Io.Ajax.request(t,{POST:x,onComplete:function(y){if(y&&y.code){if(y.code=="A00006"){m(v,y.data)}else{if(y.code=="B00004"){m(v,y.error)}else{if(y.code=="M00004"){m(v,$SYSMSG.M00004)}else{m(v,y.error)}}}}else{}},onException:function(){},returnType:"json"})};var h=o(r.url,"poll_id");if(!h){h=o(r.url,"vid")}var p=function(t,s){if(Core.Dom.getElementsByClass(t,"DIV","lose").length>0){return(s==Core.Dom.getElementsByClass(t,"DIV","lose")[0].getAttribute("short_url"))}else{return false}};q.node=k;q.pollId=h;if(!(scope.$pageid=="mblog"&&q.mtype=="1")){b(q,g)}else{if(!r){return false}if((!r)||q.mtype!="1"||l.getAttribute("mbind")=="1"){return false}j(q,true)}};App.seeVote=function(r,k){var s=k;var q=Core.Events.addEvent;var j={mid:r.mid};var w=function(x){if(x){return s}return'<div class="MIB_assign lose" short_url="'+r.shorturl+'">                    <div class="MIB_asarrow_l"></div>                    <div class="MIB_assign_t"></div>                     <div class="MIB_assign_c MIB_txtbl">'+s+'</div>                   <div class="MIB_assign_b"></div>                </div>'};var t=function(C){if(!C){return null}var A=Core.Dom.getElementsByClass(C,"div","lf")[0]||false;var D=Core.Dom.getElementsByClass(C,"div","rt")[0]||false;var y=A.getElementsByTagName("a")||false;var B=y&&y[0];var x=y&&y[1];var z=D&&D.getElementsByTagName("a")[0];if(!r.defaultOpen&&B){B.href="javascript:void(0);";q(B,function(){App.closeVote(r.mid)},"click")}};var o=function(A){if(!A){return null}var y=A.getElementsByTagName("table")[0]||false;if(y){var z=Core.Dom.getElementsByClass(A,"div","onvote_btn")[0];var x=z.getElementsByTagName("a")[0];x.target="_blank";x.onclick=function(){window.open(this.href);return false}}};var p=$E("disp_"+j.mid);var b=$E("prev_"+j.mid);var m=r.mtype!="1";p.innerHTML=w(m);p.className=p.className.replace("blogPicOri","");if(m){var h=p.getElementsByTagName("div")[0]||false;if(h){var v=h.className;h.setAttribute("short_url",r.shorturl);h.className=v+" lose"}}var f=function(B){if(!B){return[]}var A=B.childNodes;var y=[];for(var z=0,x=A.length;z<x;z++){if(A[z].nodeType===1){y.push(A[z])}}return y};var n=Core.Dom.getElementsByClass(p,"div","onevote")[0];var g=f(n);if(g.length>0){var l=g[0];var a=g[2];t(l);o(a)}if(b){b.style.display="none"}p.style.display="";if(!r.defaltOpen){scroller(p,1000,-60,0,true,true)}else{p.setAttribute("mbind","1")}};App.closeVote=function(f){var h=$E("disp_"+f);var g=$E("prev_"+f);if(g){var b;if(Core.Dom.getElementsByAttr(g,"class","imgSmall").length>0){b=Core.Dom.getElementsByAttr(g,"class","imgSmall")}else{b=Core.Dom.getElementsByAttr(g,"className","imgSmall")}if(b.length>0){var a=b[0];App.shrinkImg(a)}g.style.display=""}h.style.display="none";h.innerHTML="";return false};(function(a){a.bindTitle=function(g,f,b){if(!b.url){return}g.setAttribute("title",b.url)}})(App);(function(a){a.bindFace=function(j,r,p){j.href="####";j.target="";var h=function(s){return s.replace(/[^\w\u4e00-\u9fa5\uff10-\uff19\uff21-\uff3a\uff41-\uff5a\u2014\uff3f]/g,"")};var f,n,l,g,q,b,m,o;Core.Events.addEvent(j,function(){setTimeout((function(s,t){return function(){App.PopUpSwfPlayer(s.flash)}})(p),100);return false},"click");f=j.parentNode.getAttribute("mid");l='<div class="feed_img"><a class="magicpic_link" href="####" title="'+h(p.title)+'" onclick="App.PopUpSwfPlayer(\''+p.flash+'\');return false;"><img src="'+p.screen+'"></a><a href="####" class="playmp" title="'+$CLTMSG.CL0912+'" onclick="App.PopUpSwfPlayer(\''+p.flash+"');return false;\"></a></div>";g=$E("prev_"+f);q=$E("disp_"+f);if(!/1|2/.test(o=j.parentNode.getAttribute("type"))){return}if(scope.$pageid==="mblog"&&o=="1"){g=q;g.style.display=""}if(!g){return}if(g.getAttribute("mbind")!="1"){g.setAttribute("mbind","1");var k=Core.Dom.getElementsByClass(g,"div","feed_img"),o="beforebegin";k.length&&(m=k[0])&&(o="afterEnd");!m&&(m=(m=Core.Dom.getElementsByClass(g,"div","clear"))&&m[0]);if(m){Core.Dom.insertHTML(m,l,o)}else{g.innerHTML=l}}}})(App);App.popCard=function(t){var j=Core.Events.addEvent,o=Core.Events.getEventTarget,n=Core.Events.removeEvent,q=App.CustomEvent,h=Core.Dom.getXY,f=Core.Events.fixEvent,p=Core.Events.getEvent;var b,s,a=false;var r={dialog:{},arrowPos:"",activeElement:t.element||null,cardtype:t.cardtype||"simple",requestUrl:"/person/aj_getcard.php",cardWidth:t.width||287,cardHeight:t.height||205,awayDistanceHeight:t.awayDistanceHeight||24,awayDistanceWidth:t.awayDistanceWidth||24,delay:1000,inHTML:"",direction:t.direction||"auto",html:'<table class="mBlogLayer" id="card">												<tbody>													<tr>														<td class="top_l"></td>														<td class="top_c"></td>														<td class="top_r"></td>													</tr>													<tr>														<td class="mid_l"></td>														<td class="mid_c"><div class="layerBox">																<div class="layerBoxCon1" style="width: 298px;">																	<div class="name_card" id="card_content">																	</div>																</div>															</div></td>														<td class="mid_r"></td>													</tr>													<tr>														<td class="bottom_l"></td>														<td class="bottom_c"></td>														<td class="bottom_r"></td>													</tr>												</tbody>											</table>'};var m={};var k={cssText:function(x,z){if(typeof x==="string"&&x.length){x=x.replace(/\;+/g,"&").replace(/\:+/g,"=").replace(/\s+/g,"");var w=x.substring(0,x.length-1);var y=App.queryToJson(w);for(var v in z){y[v]=Core.String.trim(z[v])}return App.jsonToQuery(y).replace(/\&+/g,";").replace(/\=+/g,":")}}};var l=function(){var v=f(p());var x=h(r.dialog.dom.card_content);if($IE){var w=Core.System.getScrollPos();x[0]=x[0]-w[1];x[1]=x[1]-w[0]}if(v.pageX>x[0]&&v.pageX-x[0]<=s&&v.pageY>x[1]&&v.pageY-x[1]<=b){Core.Events.stopEvent();return false}else{g.hidden();n(document.body,l,"mouseover");a=false}};var g={build:function(){r.dialog=App.PopUp().content(r.html).zIndex(780);if($IE6){r.dialog.mask()}r.dialog.wrap.style.display="";return g},show:function(){g.arrow(r.direction);r.dialog.wrap.style.visibility="visible";b=r.dialog.dom.card_content.offsetHeight;s=r.dialog.dom.card_content.offsetWidth;return g},hidden:function(){if(r.status==="lock"){return false}r.dialog.wrap.style.visibility="hidden";return g},get:function(v){return r[v]},set:function(v,w){r[v]=w;return g},setHTML:function(w,v){g.set("contentDom",App.builder3(v,w).domList);return g},arrow:function(){try{var x=r.direction=="mouse"?[r.mouseX,r.mouseY]:Core.Dom.getXY(r.activeElement);switch(r.direction){case"up":cardLeft=x[0]-5;cardTop=x[1]-r.dialog.dom.card.offsetHeight+r.awayDistanceHeight;r.arrowPos="layerArrow layerArrow_d";break;case"down":cardLeft=x[0]-5;cardTop=x[1]+r.activeElement.offsetHeight+r.awayDistanceHeight;r.arrowPos="layerArrow layerArrow";break;case"left":cardLeft=(x[0]-r.dialog.dom.card.offsetWidth);cardTop=x[1]+r.activeElement.offsetHeight/2-r.awayDistanceHeight;r.arrowPos="layerArrow layerArrow_r";break;case"auto":if((x[1]-Core.System.getScrollPos()[0]-r.cardHeight)>0){cardLeft=x[0]-5;cardTop=x[1]-r.dialog.dom.card.offsetHeight;r.arrowPos="layerArrow layerArrow_d"}else{cardLeft=x[0]-5;cardTop=x[1]+r.activeElement.offsetHeight;r.arrowPos="layerArrow"}break;case"mouse":if((x[1]-Core.System.getScrollPos()[0]-r.cardHeight)>0){cardLeft=x[0]-5;cardTop=x[1]-r.dialog.dom.card.offsetHeight;r.arrowPos="layerArrow layerArrow_d"}else{cardLeft=x[0]-5;cardTop=x[1]+r.awayDistanceHeight;r.arrowPos="layerArrow"}break}r.dialog.position(cardLeft,cardTop);var v=r.dialog.dom.card_content.getElementsByTagName("div")[0];if(r.dialog.dom.card_content.parentNode.innerHTML.indexOf("layerArrow")===-1){Core.Dom.insertHTML(r.dialog.dom.card_content,"<div class='"+r.arrowPos+"'></div>","afterbegin")}else{r.arrowPos&&(v.className=r.arrowPos);v=null}}catch(w){}return g},init:function(){g.build(r.html);j(r.dialog.dom.card_content,function(){if(r.clear){for(var v in r.clear){r.clear[v](r)}}if(!a){j(document.body,l,"mouseover");a=true}Core.Events.stopEvent();return false},"mouseover");return m}};m={init:g.init,show:g.show,set:g.set,hidden:g.hidden,get:g.get};return m};(function(){var g="",B=500,l=false,q,k,n,C=22,p={},m,b,h,a;var x=Core.Events.addEvent,o=Core.Events.getEventTarget,s=Core.Events.removeEvent,j=App.CustomEvent,w=Core.Dom.getXY,A=Core.Events.fixEvent,f=Core.Events.getEvent;var y=function(F,G){var D,E=b;b=F.uid||F.name;h=F.type||"simple";if(F.direction=="auto"||F.direction=="mouse"){if(parseInt(Core.Dom.getStyle(F.element,"lineHeight"))==C&&parseInt(Core.Dom.getStyle(F.element,"lineHeight"))<F.element.offsetHeight){if(F.mouseEvent.pageY<w(F.element)[1]||F.mouseEvent.pageY>w(F.element)[1]+C){F.direction="mouse";F.mouseX=w(F.element.parentNode)[0];F.mouseY=w(F.element)[1]+C}else{F.direction="mouse";F.mouseX=w(F.element)[0];F.mouseY=w(F.element)[1]}}else{F.direction="auto";F.mouseX=0;F.mouseY=0}}if(F.mouseX&&F.mouseX){G.set("mouseX",F.mouseX).set("mouseY",F.mouseY)}if(p[h+"_"+b]){G.set("activeElement",F.element).setHTML(G.get("dialog").dom.card_content,p[h+"_"+b]).set("direction",F.direction||"auto").show();return false}var H={type:h,uid:F.uid||"",name:F.name||"",reason:F.reason||""};if(E!=b){G.set("activeElement",F.element).setHTML(G.get("dialog").dom.card_content,'<div class="layerBox" style="width: 295px;">                <div class="layerBox_loading">                    <div class="ll_info"> <img width="16" height="16" title="" alt="" src="'+scope.$BASEIMG+'style/images/common/loading.gif">                        <p>'+$CLTMSG.CC6501+"</p>                    </div>                </div>            </div>").set("direction",F.direction||"auto").show();if(a){a.abort()}a=App.doRequest(H,"/person/aj_getcard.php",function(I){if(I){G.set("activeElement",F.element).setHTML(G.get("dialog").dom.card_content,I).set("direction",F.direction||"auto").show();p[h+"_"+b]=I}})}else{G.set("activeElement",F.element).set("direction",F.direction||"auto").show()}};var r=function(D){D.hidden();return false};var z=function(){if(b&&h){p[h+"_"+b]="";b="";h="";return false}};App.regPopCard=function(H){if(!scope.$isLogin()){return false}var F={};if(!(H&&H.container&&H.tag)){return false}for(var E in H){F[E]=H[E]}var D=Core.Dom.getElementsByAttr(F.container,F.tag,"true");if(!D||!D.length){return false}if(!App.regPopCard.card){App.regPopCard.card=App.popCard({}).init()}j.add("window","cardCache",z);for(var G=0;G<D.length;G++){x(D[G],(function(I){return function(){F.mouseEvent=A(f());l=true;clearTimeout(k);q=setTimeout(function(){clearTimeout(q);if(!l){return false}F.direction=F.direction||"auto";F.element=I;F.uid=I.getAttribute("uid");F.name=I.innerText||I.textContent||"";F.reason=I.getAttribute("reason")||"";F.type=F.type||"simple";y(F,App.regPopCard.card)},B)}})(D[G]),"mouseover");x(D[G],(function(I){return function(){l=false;clearTimeout(q);k=setTimeout(function(){if(a){a.abort()}r(App.regPopCard.card)},1000)}})(D[G]),"mouseout");App.regPopCard.card.set("clear",{cleartimeout:function(){clearTimeout(k)}})}x(window,function(){l=false;clearTimeout(q);r(App.regPopCard.card)},"resize")};var v=function(D,F){for(var E in F){var G=D.get("contentDom")[E];if(G){switch(F[E].status){case"hidden":G.style.display="none";break;case"visible":G.style.display="";break;case"enable":break;case"disabled":break}if(F[E].html){G.innerHTML=F[E].html}}}};var t=function(D,G,E){var F;if(D==="fade"){F=function(){if(App.opacity&&E){App.opacity(E,{first:100,last:0,time:1.5},function(){r(App.regPopCard.card);if(G&&typeof G==="function"){G.call()}Core.Dom.opacity(E,100)})}}}else{F=function(){r(App.regPopCard.card);if(G&&typeof G==="function"){G.call()}}}setTimeout(F,500)};App.userCardFollow=function(I,F,D,K){D=D||{};var J=App.regPopCard.card.get("status");App.regPopCard.card.set("status","lock");var E="/attention/aj_addfollow.php";var L=$IE?"":"fade";var H={uid:I,fromuid:scope.$uid,atnId:"card"};if(typeof K==="object"){for(var G in K){if(G&&K[G]){H[G]=K[G]}}}App.followOperation(H,E,function(M){App.regPopCard.card.set("status","");var O=$C("div");var N=M.setting||{};v(App.regPopCard.card,N);if(Boolean(N.isfans)){O.className="MIB_btn_inter rt";O.innerHTML=$CLTMSG.CY0105+'<span class="MIB_line_sp">|</span><a id="cancelfollow" onclick="App.userCardRemoveFollow(\''+I+"',this);if(GB_SUDA && (parseInt(Math.random()*10000)%1000 < 10))GB_SUDA._S_uaTrack('tblog_userprofile_layer','userCardRemoveFollow');\" href=\"javascript:void(0);\"><em>"+$CLTMSG.CD0005+"</em></a>"}else{O.className="MIB_btn2 rt";O.innerHTML=$CLTMSG.CD0004+'<span class="MIB_line_sp">|</span><a id="cancelfollow" onclick="App.userCardRemoveFollow(\''+I+"',this);if(GB_SUDA && (parseInt(Math.random()*10000)%1000 < 10))GB_SUDA._S_uaTrack('tblog_userprofile_layer','userCardRemoveFollow');\" href=\"javascript:void(0);\"><em>"+$CLTMSG.CD0005+"</em></a>"}Core.Dom.replaceNode(O,F);if(D.type){t&&t(L,function(){j.fire("card","afterfollow",I)},App.regPopCard.card.get("dialog").wrap)}App.grpDialog({oid:I,name:D.name||""},false,K,true);j.fire("window","cardCache")},F,"",function(){App.regPopCard.card.set("status","");App.regPopCard.card.hidden()})};App.userCardRemoveFollow=function(I,E,D,J){App.regPopCard.card.set("status","lock");var K=w(E);var M=K[0]-((200-E.offsetWidth)/2);var L=K[1]-(E.offsetHeight)-70;var F=[$CLTMSG.CD0007,D,"?"].join("");var G={touid:I,fromuid:scope.$uid};for(var H in J){G[H]=J[H]}App.PopUpConfirm().position(M,L).content(F).icon(4).yes(function(){setTimeout(function(){App.followOperation({touid:I,fromuid:scope.$uid,atnId:"card"},"/attention/aj_delfollow.php",function(N){App.regPopCard.card.set("status","");var Q=N||{};var R=$C("div");R.className="MIB_btn rt";var O=scope.$BASEIMG+"style/images/common/transparent.gif";var P=Boolean(Q.isfans)?'<img class="ico_addGrn" title="'+$CLTMSG.CD0006+'" alt="" src="'+O+'" />					<em>						<img class="SG_icon add_icoz" alt="" src="'+O+'">									'+$CLTMSG.CD0006+"						</em>":'<img class="SG_icon" src="'+O+'" title="'+$CLTMSG.CD0006+'" />					<em>'+$CLTMSG.CD0006+"</em>";R.innerHTML='<a href="javascript:void(0);" onclick="App.userCardFollow(\''+I+"',this);if(GB_SUDA&&(parseInt(Math.random()*10000)%1000 < 10))GB_SUDA._S_uaTrack('tblog_userprofile_layer','userCardFollow');\" class=\"btn_add\">"+P+"</a>";Core.Dom.replaceNode(R.getElementsByTagName("a")[0],E.parentNode);v(App.regPopCard.card,Q);j.fire("window","cardCache")},E,"",function(){App.regPopCard.card.set("status","")})},50)}).no(function(){App.regPopCard.card.set("status","")}).wipe("up",true)}})();$registJob("popUpCard",function(){var b={miniblog_invite:"normal"};var a=Core.Dom.getElementsByAttr(document.body,"popcontainer","true");if($E("feed_list")){a.push($E("feed_list"))}App.bindPopCard(a,b[scope.$pageid]||"")});App.bindPopCard=function(b,h,a){if(!b){return false}try{if(Core.Array.isArray(b)){if(!b.length){return false}}else{b=[b]}a="namecard"||a;for(var g=0;g<b.length;g++){var f={container:b[g],tag:a,type:h||""};App.regPopCard(f)}}catch(j){}};App.bindWidget=function(f,j,l){if(f&&l&&l.code=="A00006"){var h=$C("div"),b,g=0,a,k;h.innerHTML=l.data;b=h.getElementsByTagName("script");if(a=b.length){for(;g<a;g++){k=b[g];k.parentNode.removeChild(k);k=null}}f.innerHTML="";while(h.firstChild){f.appendChild(h.firstChild)}App.bindPopCard(f);App.CustomEvent.fire("widget",j,f,l)}};App.mapTemplete=(function(){var a={};a.popMapPanel='<table class="mBlogLayer"><tbody>			<tr><td class="top_l"></td><td class="top_c"></td><td class="top_r"></td></tr>			<tr>				<td class="mid_l"></td>				<td class="mid_c">					<div id="popUpMiniMapLoadingPanel" style="position:absolute;left:200px;top:125px;z-index:99999"><img src=\''+[scope.$BASECSS,"style/images/common/loading.gif"].join("")+'\'/></div>					<div class="layerBox">						<div class="geo_info_layer" style="width:400px;">							<div class="map_box"><iframe id="mini_map_panel" style="width:400px;height:250px;border:0 none;" frameBorder="0" scrolling="no" src="#{SRC}"></iframe></div>							<div id="popUpMiniMapArrow" class="geo_arrow" style="left:120px"></div>							<a href="javascript:;" class="close" title="#{CX0145}" onClick="App.popUpMiniMap.close();return false;"></a>							<a href="javascript:;" id="zoomIn" class="map_zoomIn" title="#{CL0825}" onMouseDown="App.popUpMiniMap.zoomIn();return false;"></a>							<a href="javascript:;" id="zoomOut" class="map_zoomOut" title="#{CL0826}" onMouseDown="App.popUpMiniMap.zoomOut();return false;"></a>						</div>					</div>				</td>				<td class="mid_r"></td>			</tr>			<tr><td class="bottom_l"></td><td class="bottom_c"></td><td class="bottom_r"></td></tr></tbody>		</table>';a.popUpMapTip='<div class="bubble" style="top:20px;left:50px;"></div>';return a})();(function(){var m=window,h,j=document,l=document.documentElement||{},g,a,k=App.mapTemplete.popMapPanel,f=Core.Events.addEvent,b=Core.Events.stopEvent;h={CL0824:$CLTMSG.CL0824,CL0825:$CLTMSG.CL0825,CL0826:$CLTMSG.CL0826,CX0145:$CLTMSG.CL0701,SRC:""};a=(function(){var o={},n;o.root=null;o.init=function(){if(o.root){return o.root}o.root=$C("div");o.root.style.position="absolute";o.root.style.visibility="hidden";o.root.style.zIndex="2000";document.body.appendChild(o.root);f(document.body,function(){o.hidden()},"mousedown");f(window,function(){o.hidden()},"resize");return o.panel};o.content=function(p){if(!o.root){o.init()}if(p&&p!=n){n=o.root.innerHTML=p}};o.show=function(p){setTimeout(function(){o.root.style.visibility="visible"},10)};o.hidden=function(){o.root.style.visibility="hidden"};o.position=function(p,q){o.root.style.left=p+"px";o.root.style.top=q+"px"};return o})();App.popUpMiniMap=(function(){var t={},n,o,v,x=false,z=false,p,y=null,r=Core.Events.stopEvent,q,w,s;t.info=null;t.close=a.hidden;t.zoomIn=function(){r()};t.zoomOut=function(){r()};t.change=function(){};t.validateZoom=function(A){$E("zoomOut").className=(A<s)?"map_zoomOut_no":"map_zoomOut";$E("zoomIn").className=(A>w)?"map_zoomIn_no":"map_zoomIn"};t.allowZoom=function(B,A){$E("zoomOut").className=B?"map_zoomOut_no":"map_zoomOut";$E("zoomIn").className=A?"map_zoomIn_no":"map_zoomIn"};t.ready=function(B){var A=$E("popUpMiniMapLoadingPanel");A&&(A.style.display="none");t.zoomIn=function(){B.zoomIn();r()};t.zoomOut=function(){B.zoomOut();r()};t.change=B.change;t.change(t.info);x=false;z=true};t.show=function(D,E,F,C,B,A){A=A.replace(/[ ]/g,"&nbsp;");clearTimeout(q);q=setTimeout(function(){(y!==B)&&(function(){y=B;z=false,x=true;a.content((function(){h.SRC=(B=="1"?"/mblog/map1.php":"/mblog/googlemap.php");w=(B=="1"?16:18);s=(B=="1"?4:1);return k.replace(/#\{(.*?)\}/g,function(N,O){return h[O]})})())})();a.show();var J=$E("popUpMiniMapArrow");o=$E("mini_map_panel");t.info={longitude:E,latitude:F,head:C,address:A};var L=Core.Dom.getXY(D);var K=window.pageYOffset||Math.max((document.documentElement||{}).scrollTop,document.body.scrollTop);var G=(L[0]||0)-110;var M=Math.max((L[1]||0)-270,0);if(scope.$pageid=="mblog"){M=L[1]+20;var I=M+262,H=(m.innerHeight||((l&&l.clientHeight)?l.clientHeight:j.body["clientHeight"]))+K;J.style.cssText="left: 120px; background-position: 0px 0px; top:-8px;";a.position(G,M);if(I>H){App.scrollTo(K,K+(I-H)+20)}}else{J.style.backgroundPosition="0px";J.style.bottom="-8px";J.style.cssText="position:absolute;z-index:1000;left: 120px; background-position: right 0px; bottom: -8px;";a.position(G,M);if(M<K){setTimeout(function(){App.scrollTo(K,M-20)},10)}}if(z){t.change(t.info)}},10)};return t})();App.bindPopUpMiniMap=function(r,o,t,q,p,s,n){s=(s||$CLTMSG.CL0910)+" ";r.innerHTML=['<img title="',$CLTMSG.CL0909,'" class="small_icon geo_info" src="'+scope.$BASECSS+'style/images/common/transparent.gif"/>',s,'- <a href="####" onclick="App.popUpMiniMap.show(this,\'',o,"','",t,"','",p,"','",q,"','",(n?n+" - ":""),s,"');return false;\">",$CLTMSG.CL0908,"</a>"].join("")}})();App.imgResize=(function(){return function(f,m,g){var a=f.width,k=f.height;var b=a/k;if(a>m&&k>g){var j=m/a,l=g/k;if(j>l){k=g;a=k*b}else{a=m;k=a/b}}else{if(a>m){a=m;k=a/b}else{if(k>g){k=g;a=k*b}else{return}}}f.width=a;f.height=k}})();App.bindApplication=(function(){var f=Core.Events,a={},l=Core.String,r=f.addEvent,n=l.byteLength,h=l.leftB,q=/\((iPad)/i.test(navigator.userAgent),p=q?"javascript:;":"#",j=$CONFIG.$pageid=="mblog",b=$CONFIG.$lang=="zh"?"zh_cn":$CONFIG.$lang,o={};o.wraph=j?"":'<div class="MIB_assign_t"></div><div class="MIB_assign_c MIB_txtbl"><div class="blogPicOri"><p>';o.wrape=j?"":'</div></div><div class="MIB_assign_b"></div>';o.close=['<cite><a dd="close" onclick="return false;" title="#{CD0079}" href="',p,'"><img src="#{baseimg}style/images//common/transparent.gif" class="small_icon cls" title="#{CD0079}">#{CD0079}</a></cite><cite class="MIB_line_l">|</cite>'].join("");o.loading='<center><img style="padding-top:20px;padding-bottom:20px" src="'+scope.$BASECSS+'style/images/common/loading.gif"/></center>';o.open=['<a dd="openWin" href="',p,'" onclick="return false;" style="margin-left: 12px;"><img src="http://img.t.sinajs.cn/t3/style/images/common/transparent.gif" class="small_icon turn_r" title="" alt="">#{CX0221}</a>'].join("");o.title='<cite><a target="_blank" href="#{url}" title="#{url}"><img src="#{baseimg}style/images//common/transparent.gif" class="small_icon original">#{title,22}</a></cite>';o.orgtitle='<cite><a target="_blank" href="#{url}" title="#{url}"><img src="#{baseimg}style/images//common/transparent.gif" class="small_icon original">#{title}</a></cite>';o.content=['</p><div dd="content">',o.loading,"</div>"].join("");o["1"]=[o.wraph,(j?"":o.close),(j?o.orgtitle:o.title),(j?"":o.open),o.content,o.wrape].join("");o["2"]=['<div class="MIB_linedot_l1"></div><p>',o.close,o.title,o.open,o.content].join("");var k=function(){};var g=(function(){var t=function(y){var x=$E(y);var w=x.nextSibling;if(!w){return null}if(w.nodeType!==1){return t(w)}return w};var v=false;var s;return function(E){var A=Core.Events.getEventTarget();if(s!==A){s=A;if(!v){v=$C("div");document.body.appendChild(v)}var B='            <table class="mBlogLayer">                <tr>                    <td class="top_l"></td>                    <td class="top_c"></td>                    <td class="top_r"></td>                </tr>                <tr>                    <td class="mid_l"></td>                    <td class="mid_c">                        <div class="layerBox">                            <div style="padding:3px 0 3px 5px"><a href="javascript:void(0);" id="pop_video_window_close" onclick="return false;"><img src="'+scope.$BASEIMG+'style/images/common/transparent.gif" class="small_icon cls" />'+$CLTMSG.CX0222+'</a></div>                            <div class="layerBoxCon" style="width:440px;" id="pop_video_window"></div>                        </div>                    </td>                    <td class="mid_r"></td>                </tr>                <tr>                    <td class="bottom_l"></td>                    <td class="bottom_c"></td>                    <td class="bottom_r"></td>                </tr>            </table>            ';v.innerHTML=B;Core.Events.addEvent($E("pop_video_window_close"),function(){if(y.childNodes.length>0){v.style.display="none";y.innerHTML=""}},"click")}var z=t(A.parentNode);var D=a[E];var y=$E("pop_video_window");var C=Core.Dom.getLeft(A);var x="position:fixed;bottom:0px;right:0px;z-index:1000;_position:absolute";v&&(v.style.cssText=x);if(y.childNodes.length>0){y.removeChild(y.childNodes[0])}Core.Dom.insertHTML(y,D,"beforeend");var F="frameborder:0;allowtransparency:true;width:"+(v.offsetWidth-8)+"px;height:"+(v.offsetHeight-8)+"px;position:fixed;bottom:3px;right:3px;z-index:200;_position:absolute;background-color:transparent;";var w=A.parentNode.getElementsByTagName("a")[0];v&&(v.style.display="");Core.Events.fireEvent(w,"click");(function(){if($IE6&&v.style.display==""){v.style.cssText=x;setTimeout(arguments.callee,200)}})()}})();var m=function(z,v,E,D,x,w,B){var x={CD0079:$CLTMSG.CD0079,baseimg:$CONFIG.$BASEIMG,title:x.title||"",url:x.url||"",CX0221:$CLTMSG.CX0221},y=App.DomBuilder(o[z].replace(/#\{(\w*)?,?(\d*)?}/g,function(F,H,I){var G=x[H]||"";if(G&&(I=(I*1))&&I<n(G)){G=[h(G,I),"..."].join("")}return G}),E),s=y.domList.content;r(y.domList.close,function(){if(v){v.style.display=""}E.style.display="none";E.innerHTML=""},"click");y.domList.openWin&&(y.domList.openWin.onclick=function(){return false});r(y.domList.openWin,function(){g(D)},"click");if(v){v.style.display="none"}if(E){E.style.display="";E.style.visibility="visible"}y.add();scroller(s,1000,-60,0,true,true);var t=setTimeout(function(){s.innerHTML=$CLTMSG.CL0915},10000);var C="";if(scope.$IE){C="object"}else{var A=function(){if(navigator.plugins&&navigator.plugins.length>0){var F=navigator.plugins["Shockwave Flash"];if(F){return true}}return false};if(A()){C="embed"}else{C="html5"}}App.Jsonp(["http://api.t.sina.com.cn/widget/show.jsonp?source=3417389906&short_url=",D,"&lang=",b,"&jsonp=#{jsonp}","&mid=",B,"&vers=3&template_name=",C].join(""),function(F){if(!F){return}try{clearTimeout(t);if(F.result){s.innerHTML=F.result;a[D]=F.result;setTimeout(function(){s.style.marginBottom="1px";s.style.hasLayout="0"},0)}else{if(F.error_code){s.innerHTML=$CLTMSG.CL0916}}}catch(G){}})};return function(A,E,t){var x=A.parentNode.getAttribute("mid"),B=A.parentNode.getAttribute("type"),C=$E("disp_"+x),y=$E("prev_"+x)||C,v=y.getAttribute("mbind");if(B=="3"||!C){return}A.onclick=function(){return false};var F=function(G){G!==1&&(C.innerHTML="");m(B,y,C,E,t,j,x);Core.Events.stopEvent();return false};r(A,F,"click");if(v!=1){y.setAttribute("mbind","1");if(j&&B!="2"){F(1);Core.Events.stopEvent();return false}if(!t.screen){return false}var s=$C("div"),D=Core.Dom.getElementsByClass(y,"div","feed_img")[0];s.className="feed_img";s.innerHTML=['<a href="',p,'" onclick="return false;"><img class="imgicon" style="cursor:pointer;" /></a></div>'].join("");var w=s.getElementsByTagName("IMG")[0];w.onload=function(){if(t.type=="video"){App.imgResize(w,120,90)}};w.src=t.screen;if(D){D.parentNode.insertBefore(s,D.nextSibling)}else{y.insertBefore(s,y.firstChild)}r(s,F,"click");if(!t.icon){return false}var z=new Image();z.onload=function(){var G="filter:alpha(opacity=50);-moz-opacity:.5;opacity:.5;",J="filter:alpha(opacity=80);-moz-opacity:.8;opacity:.8;",H=["cursor:pointer;position:absolute;top:50%;left:50%;margin:-",(z.width/2),"px 0 0 -",(z.height/2),"px;"].join("");var I=["position:absolute;top:50%;left:50%;margin:-",(z.width/2),"px 0 0 -",(z.height/2),"px;filter:alpha(opacity=50);-moz-opacity:.5;opacity:.5;"].join("");z.style.cssText=[H,G].join("");z.onmouseover=function(){z.style.cssText=[H,J].join("")};z.onmouseout=function(){z.style.cssText=[H,G].join("")};s.appendChild(z)};z.src=t.icon}}})();App.bindMusic=function(f,b,a){App.bindApplication(f,b,a)};$registJob("splitLoadMedia",function(){var h=App.sizzle,g=function(){var j={},m={},l=[],k=[];j.data=l;j.plugin=function(o,n){m[o]=n;return j};j.add=function(o,n){l.push(o);k.push(n)};j.exec=function(n,o,q){var p;(p=m[q.type])&&p(n,o,q)};j.flush=function(p){var o=0,n=k.length;if(!n){return}for(o;o<n;o++){if(p[l[o]]){try{j.exec(k[o],l[o],p[l[o]])}catch(q){}k.splice(o,1);l.splice(o,1);o--;n--}}};return j},b=function(l,k){if(!l.parentNode){l.src=k;return}var j=new Image;j.onload=function(){j.onload=null;l.src=k};j.src=k},f=function(j){return Core.String.trim(((j=j.match(/\/([^\/]+)\/?(<[^<]*)?$/i))&&j[1])||"")},a=function(){};App.splitLoader.plugin("flushImg",{init:function(j){var k=h("img[dynamic-src]",j);return k},flush:function(m){if(m.length){var n,l=arguments.callee,n=n=m.shift(),k,j;if(n&&(k=n.getAttribute("dynamic-src"))){b(n,k);if(n.getAttribute("vimg")){j=new Image();j.setAttribute("dynamic-src",k.replace(/\/thumbnail\//,"/bmiddle/"));m.push(j)}}setTimeout(function(){l(m)},0)}}}).plugin("flushApp",(function(){var j=g();return{init:function(l){var k=h("a[mt]",l);return k},extract:function(k){j.add(f(k.innerHTML),k)},flush:(function(){j.plugin("video",App.bindApplication).plugin("url",App.bindTitle).plugin("magic",App.bindFace).plugin("music",App.bindMusic).plugin("vote",App.bindVote);return function(n){var l={url:j.data.join(","),lang:$CONFIG["$lang"]};var k="/mblog/sinaurl_info.php";var m=function(o){j.flush(o)};App.doRequest(l,k,m,a,"get")}})()}})()).plugin("flushCommentCount",(function(){var j=g();return{init:function(k){var l=h("strong[rid]",k);return l},extract:function(k){j.add(k.getAttribute("rid"),k)},flush:(function(){j.plugin("count",function(o,n,m){var l,k=o.getAttribute("type");if(k&&(l=parseInt(m[k]))){o.innerHTML=["(",l,")"].join("")}});return function(o){if(!o.length||!(/^(?:mymblog|profile)$/i.test(scope.$pageid))){return}var m={mids:j.data.join(","),oid:scope.$oid};var l="/mblog/aj_comment.php";var k=function(){};var n=function(p){j.flush(p)};App.doRequest(m,l,n,k,"get")}})()}})()).plugin("flushState",{init:function(j){var k=h("strong[oid]",j);return k},extract:function(k){var j=k.getAttribute("oid");j&&(j==scope.$uid)&&(k.style.display="")}}).plugin("flushLanguage",{init:function(k){var j=h("strong[lang]",k);return j},extract:function(k){var j=k.getAttribute("lang");j&&(j=$CLTMSG[j])&&(k.innerHTML=j)}}).plugin("flushWidget",(function(){var k={},j=0,l=[],n,m=0;return{init:function(p){var o=h("div[wbml=widget]",p);return o},extract:function(t){var p,v,q=(j&&j%5==0)?0:-1,o=t.getAttribute("name");if(!o){return}k[o]=t;!q&&(j=0);p=(p=l.length)?p+q:0;l[p]=(v=l[p])!=null?[v,o].join(","):o;j++},flush:function(o){var p=l.shift();if(!p){return}App.Jsonp(["/widget/aj_proxy.php?appid=",p,"&ouid=",$CONFIG.$oid,"&jsonp=#{jsonp}"].join(""),function(r){if(r&&r.code=="A00006"&&r.data){for(var q in r.data){App.bindWidget(k[q],q,r.data[q])}}});if(l.length){clearTimeout(n);n=setTimeout(arguments.callee,2000)}}}})()).plugin("flushMap",(function(){var m=[],l=[],k=[],n={},j=0;App.bindGeo=function(p){var o,r,q;for(o in p){if(r=n[o]){q=r.geo.split(",");App.bindPopUpMiniMap(r.dom,q[0],q[1],p[o].type,r.head,p[o].addr,r.nick)}}};return{init:function(o){var q=h("p[geo]",o);return q},extract:function(r){var q=r.getAttribute("geo"),p=r.getAttribute("head"),o=r.getAttribute("nick")||"";var s=["g",j++].join("");n[s]={dom:r,head:p,geo:q,nick:o};m.push([q,s].join(","))},flush:function(p){if(!m.length){return}var o=["http://api.map.sina.com.cn/i/xyInChina_mul.php?xy=",m.join("|"),"&rnd=",new Date().getTime().toString(32),Math.floor(Math.random()*1000).toString(32)].join("");m=[];App.SimpleJSLoader(o)}}})());App.splitLoader.add(document.body);App.bindMedia=App.splitLoader.add});scope.langList=function(a){scope.switchLanguage(a.value)};scope.langList1=function(a){scope.switchLanguage(a.value)};scope.switchLanguage=function(a){var b=scope.$lang==="zh"?"zh-cn":scope.$lang;if(b===a){return}App.confirm($CLTMSG.CD0150,{icon:4,width:360,ok:function(){Utils.Io.Ajax.request("/person/aj_select_lang.php",{onComplete:function(f){if(f.code==="A00006"){window.location.reload(true)}if(f.code==="M00003"){return App.ModLogin(null,$CLTMSG.CD0058)}},onException:function(f){},returnType:"json",POST:{uid:scope.$uid,lang:a}})},cancel:function(){$E("lang_select").value=b}})};$registJob("unlogin_cache",function(){});(function(){App.storage=(function(){var a=window.localStorage;if(window.ActiveXObject){store=document.documentElement;STORE_NAME="localstorage";try{store.addBehavior("#default#userdata");store.save(STORE_NAME)}catch(b){}return{set:function(f,g){try{store.setAttribute(f,g);store.save(STORE_NAME)}catch(h){}},get:function(f){try{store.load(STORE_NAME);return store.getAttribute(f)}catch(g){return""}},del:function(f){try{store.removeAttribute(f);store.save(STORE_NAME)}catch(g){}}}}else{if(a){return{get:function(f){return a.getItem(f)==null?null:unescape(a.getItem(f))},set:function(f,g,h){a.setItem(f,escape(g))},del:function(f){a.removeItem(f)},clear:function(){a.clear()},getAll:function(){var f=a.length,h=null,j=[];for(var g=0;g<f;g++){h=a.key(g),j.push(h+"="+this.getKey(h))}return j.join("; ")}}}else{return{get:function(k){var h=document.cookie.split("; "),g=h.length,f=[];for(var j=0;j<g;j++){f=h[j].split("=");if(k===f[0]){return unescape(f[1])}}return null},set:function(f,g,h){if(!(h&&typeof h===date)){h=new Date(),h.setDate(h.getDate()+1)}document.cookie=f+"="+escape(g)+"; expires="+h.toGMTString()},del:function(f){document.cookie=f+"=''; expires=Fri, 31 Dec 1999 23:59:59 GMT;"},clear:function(){var h=document.cookie.split("; "),g=h.length,f=[];for(var j=0;j<g;j++){f=h[j].split("=");this.deleteKey(f[0])}},getAll:function(){return unescape(document.cookie.toString())}}}}})()})();App.closeTransforDomain=function(){var a=$E("transforDomainClose");App.curtain.raise(a,function(){App.storage.set("TRD",1)})};(function(){Boot.addDOMLoadEvent(function(){return false;if(App.storage.get("TRD")){return false}var b="";var a='<div class="MIB_topNotice" id="transforDomainClose" style="z-index:300">		    <p><span>'+$CLTMSG.CC6601+'</span></p>		    <a class="close" href="javascript:void(0);" onclick = "App.closeTransforDomain();"></a></div>';Core.Dom.insertHTML(document.body,a,"afterbegin")})})();function main(){var a=new Jobs();a.add("splitLoadMedia");a.add("login3");a.add("set_password");a.add("init_input");a.add("highLightLi");a.add("marquee");a.add("topicmarquee");a.add("start_suda");a.add("unlogin_cache");a.start()};
