if(typeof Prototype==="undefined")$=function(a){return document.getElementById(a)};function getpos(a){if(arguments.length!=1||a==null)return null;for(var b=a,d=b.offsetTop,c=b.offsetLeft,e=b.offsetWidth,g=b.offsetHeight;b=b.offsetParent;){if(b.style.position=="absolute"||b.style.overflow!="visible"&&b.style.overflow!="")break;d+=b.offsetTop;c+=b.offsetLeft}return{top:d,left:c,right:e+c,bottom:g+d}}
function b_strlen(a){for(var b=0,d=0;d<a.length;d++)b=a.charCodeAt(d)<0||a.charCodeAt(d)>255?b+2:b+1;return b}function b_subString(a,b){for(var d=0,c="",e=0;e<a.length;e++){if(a.charCodeAt(e)>128)d+=2;else d++;if(d>b)return c;c+=a.charAt(e)}return c}function IsIE(){return document.all?true:false}function IsiPad(){return navigator.userAgent.toLowerCase().match(/iPad/i)=="ipad"}function IsMac(){return navigator.userAgent.toLowerCase().match(/Macintosh/i)=="macintosh"}
function copy_clip(a){if(window.clipboardData)window.clipboardData.setData("Text",a);else{if(!document.getElementById("flashcopier")){var b=document.createElement("div");b.id="flashcopier";document.body.appendChild(b)}document.getElementById("flashcopier").innerHTML="";a='<embed src="http://img1.kaixin001.com.cn/i/_clipboard.swf" FlashVars="clipboard='+escape(a)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>';document.getElementById("flashcopier").innerHTML=a}return true}
function copyToClipboard(a){if(window.clipboardData){window.clipboardData.clearData();window.clipboardData.setData("Text",a)}else if(navigator.userAgent.indexOf("Opera")!=-1)window.location=a;else if(window.netscape){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")}catch(b){alert("\u60a8\u7684firefox\u5b89\u5168\u9650\u5236\u9650\u5236\u60a8\u8fdb\u884c\u526a\u8d34\u677f\u64cd\u4f5c\uff0c\u8bf7\u6253\u5f00'about:config'\u5c06signed.applets.codebase_principal_support'\u8bbe\u7f6e\u4e3atrue'\u4e4b\u540e\u91cd\u8bd5");
return false}var d=Components.classes["@mozilla.org/widget/clipboard;1"].createInstance(Components.interfaces.nsIClipboard);if(!d)return false;var c=Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable);if(!c)return false;c.addDataFlavor("text/unicode");var e={};e=Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);e.data=a;c.setTransferData("text/unicode",e,a.length*2);if(!d)return false;
d.setData(c,null,Components.interfaces.nsIClipboard.kGlobalClipboard)}return true}function _commentImageResize(a,b){if(a.width>b){a.height=parseInt(b*a.height/a.width);a.width=b}}String.prototype.trim=function(){return this.replace(/(^[\s]*)|([\s]*$)/g,"")};String.prototype.lTrim=function(){return this.replace(/(^[\s]*)/g,"")};String.prototype.rTrim=function(){return this.replace(/([\s]*$)/g,"")};
function getDays(a,b){var d=Array(31,28,31,30,31,30,31,31,30,31,30,31);return b==2?a%4==0&&a%100!=0||a%400==0||a<1900?29:d[b-1]:d[b-1]}function extractNodes(a){if(a.nodeType==3)return null;for(var b,d=[],c=0;b=a.childNodes[c];c++)b.nodeType==1&&d.push(b);return d}function isArray(a){return Object.prototype.toString.call(a)==="[object Array]"}
function filterPng(a){var b=a.width,d=a.height,c=a.className.toLowerCase().indexOf("scale")>=0?"scale":"image";a.runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+a.src.replace("%23","%2523").replace("'","%27")+"', sizingMethod='"+c+"')";a.src="http://img1.kaixin001.com.cn/i3/walls/l2_trans.gif";a.width=b;a.height=d}
function filterPngs(a){var b=navigator.appVersion.split("MSIE");b=parseFloat(b[1]);if(b>=5.5&&b<7&&document.body.filters){a=a.getElementsByTagName("img");for(b=0;b<a.length;b++){var d=a[b];d.src.toUpperCase().indexOf(".PNG")>0&&filterPng(d)}}}function clickDirect(a,b,d){if("function"==typeof updateHash)return d?updateFullUri(a,b):b?updateHash(a):updateUri(a);else{if(d)window.location=a+"#"+b;else if(b)window.location.hash=a;else window.location=a;return false}}
function getPageHash(){var a="",b=window.location.href.split("#");if(b.length==2){a=b[1];if(a.indexOf("url=")==0){b=a.indexOf("hash=");a=a.substr(b+5)}}return a}function setInnerHTML(a,b){if(isIE){b='<div style="display:none">for IE</div>'+b;a.innerHTML=b;execIt(a,"script");a.removeChild(a.firstChild)}else{a.innerHTML=b;execIt(a,"script")}}
function execIt(a,b){var d=navigator.appName=="Netscape",c=navigator.appName=="Opera";if(b=="script")b=b.toUpperCase();if(a){var e="";e=a.getElementsByTagName(b);for(var g,f=0;f<e.length;f++){if(isIE||c){g=e[f].text;e[f].text=""}else if(d){g=e[f].textContent;e[f].textContent=""}else{g=e[f].innerHTML;e[f].innerHTML=""}try{if(b=="SCRIPT"){var h=document.createElement("script");h.type="text/javascript";if(e[f].language&&e[f].language.toLowerCase()=="vbscript"||e[f].type&&e[f].type.toLowerCase()=="text/vbscript")h.type=
"text/vbscript";if(e[f].src){h.charset="UTF-8";h.src=e[f].src}else if(isIE)h.text=g;else h.innerHTML=g;document.getElementsByTagName("head")[0].appendChild(h)}else if(b=="style"){var j=document.createElement("style");j.type="text/css";j.styleSheet.cssText=g;document.getElementsByTagName("head").item(0).appendChild(j)}else if(b=="link")if(e[f].href){var i=document.createElement("link");i.rel="stylesheet";i.type="text/css";i.href=e[f].href;document.getElementsByTagName("head").item(0).appendChild(i)}}catch(k){}}}}
var g_check_sso=true;
function checkSSO(){var a=getCookie("_sso"),b=getCookie("_uid"),d=getCookie("SERVERID");if("undefined"==typeof g_check_sso||true!==g_check_sso)deleteCookie("_sso","/",c);else{var c;c=Kx.Lib.Request.getDomain();if(b.length>0&&b==a){d=d||"";d=encodeURIComponent(d);if(d.length>0)d="?sid="+d;var e="/login/check_cookie.php"+d;setTimeout(function(){jQuery.getScript(e)},10);deleteCookie("_sso","/",c)}if(getCookie("_user").length==0&&a=="logout"){checkSSOLogout();deleteCookie("_sso","/",c)}}}
function checkSSOLogout(){var a=getCookie("_sddm");if(!(a.length<9)){var b;b=Kx.Lib.Request.getDomain();if(Kx.Env.isLite){var d="http://www."+a+"/login/clear_cookie.php";setTimeout(function(){jQuery.getScript(d)},10);deleteCookie("_sddm","/",b)}}}function closeRecommendDomain(){var a=$j("#id_rcmd_lite");if(a.length){a.hide();setCookie("_rcmdlite",100,"Thi, 01 Jan 2020 00:00:00 GMT","/",Kx.Env.domain);$j.get("/interface/close_rcmd_lite.php",{},function(){})}return false}
function statRecommendClick(a){if(0==a||1==a||2==a)$j.get("/interface/stat_rcmd_lite.php",{seq:a},function(){})}function showRecommendDomain(){}
function showRecommendDomain1(){var a=$j("#id_rcmd_lite");if(!Kx.Env.isLite&&a.length&&"none"==a.css("display")){var b="www"+Kx.Env.getLiteDomain(),d=[],c='<a class="sl2" href="http://'+b+'/" onclick="statRecommendClick(_INDEX_);">'+b+"</a>";d[0]='<a class="abs" title="\u5173\u95ed" href="javascript:void(0);" onclick="return closeRecommendDomain();">&nbsp;</a><h3 style="padding-top:10px;"><img src="http://img1.kaixin001.com.cn/i3/lite/lite_til01.gif" /><a class="sl fs" href="http://'+b+'/" onclick="statRecommendClick(_INDEX_);"><img src="http://img1.kaixin001.com.cn/i3/lite/lite_til02.gif" /></a></h3><p>\u8ba9\u4f60\u5728\u4e0a\u73ed\u65f6\u95f4\u4e5f\u80fd\u4e0e\u597d\u53cb<br/>\u4fdd\u6301\u8054\u7edc\uff0c\u8f7b\u8f7b\u677e\u677e\u5730\u5206\u4eab<br/>\u5feb\u4e50\u751f\u6d3b<br/>\u7f51\u5740\uff1a'+
c+"</p>";d[1]='<a class="abs" title="\u5173\u95ed" href="javascript:void(0);" onclick="return closeRecommendDomain();">&nbsp;</a><p>\u4e0a\u73ed\u4e5f\u80fd\u4e0a\u5f00\u5fc3\uff01<br/><a class="sl fs" href="http://'+b+'/" onclick="statRecommendClick(_INDEX_);">\u5f00\u5fc3\u7f51\u7b80\u7248</a>\uff08'+c+"\uff09<br />\u8ba9\u4f60\u8f7b\u677e\u5de5\u4f5c\u3001\u5feb\u4e50\u751f\u6d3b\uff01</p>";d[2]='<a class="abs" title="\u5173\u95ed" href="javascript:void(0);" onclick="return closeRecommendDomain();">&nbsp;</a><h3><img src="http://img1.kaixin001.com.cn/i3/lite/lite_til01.gif" /><a class="sl fs" href="http://'+
b+'/" onclick="statRecommendClick(_INDEX_);"><img src="http://img1.kaixin001.com.cn/i3/lite/lite_til02.gif" /></a></h3><p>\u4e0a\u73ed\u65f6\u95f4\u4e5f\u80fd\u4e0e\u597d\u53cb\u4fdd\u6301<br/>\u8054\u7edc\uff0c\u505a\u5f00\u5fc3\u4e0a\u73ed\u65cf<br/>\u7f51\u5740\uff1a'+c+"</p>";b=Math.random();c=[0.5,-1,1];for(var e=0;e<3;e++)if(b<c[e]){b=e;break}d=d[b];d=d.replace(/_INDEX_/g,b);a.html(d);a.show()}}
function checkRecommendLite(){if(!Kx.Env.isLite){var a=getCookie("_rcmdlite");if(""==a)$j.get("/interface/check_rcmd_lite.php?r"+Math.random(),{},function(b){if((b=$j.parseJSON(b))&&b.rcmd_code){200==b.rcmd_code&&showRecommendDomain1();setCookie("_rcmdlite",b.rcmd_code,false,"/",Kx.Env.domain)}});else 200==a&&showRecommendDomain1()}}"undefined"!=typeof jQuery&&jQuery(function(){"undefined"!=typeof checkSSO&&checkSSO()});
(function(){function a(c,e,g){this.element=c;this.handler=e;this.options=g;this.init()}function b(){var c=this;d(this).each(function(e,g){new a(d(g),c.handler,c.__options)})}var d=$j||window.jQuery;d.extend(a.prototype,{init:function(){this.options.totalStar&&this.setup();this.setGrade();this.bindEvents()},setup:function(){this.options.initStar=this.options.initStar||0;var c=[],e="",g=/d%/i;if(this.options.totalStar){for(var f=0;f<this.options.totalStar;f++){if(this.options.title)e=this.options.title.replace(g,
f+1);c.push("<li",f<this.options.initStar?' class="on"':"",' title="',e,'"></li>')}this.element.is("ul")?this.element.html(c.join("")).addClass("rating"):this.element.html('<ul class="rating">'+c.join("")+"</ul>")}},setGrade:function(c){if(!(c>0)){c=0;this.element.find("li").each(function(e,g){if(d(g).hasClass("on"))c++;else return false})}this.grade=c},bindEvents:function(){this.element.click(d.proxy(this.clickHandler,this));var c=this.element.find("li");c.mouseover(d.proxy(this.mouseoverHandler,
this));c.mouseout(d.proxy(this.mouseoutHandler,this))},clickHandler:function(c){c=d(c.target);if(c.is("li")){c=this._lighten(c);this.setGrade(c);this.handler(c)}},mouseoverHandler:function(c){c=d(c.target);c.is("li")&&this._lighten(c)},mouseoutHandler:function(){var c=this.grade;this.element.find(".on").removeClass("on");this.element.find("li").each(function(e,g){if(e<=c-1)d(g).addClass("on");else return false})},_lighten:function(c){var e=0;for(this.element.find(".on").removeClass("on");c.size()>
0;)if(c.is("li")){c.addClass("on");c=c.prev();e++}else c=c.prev();return e}});d.extend(d.fn,{grade:function(c,e){this.handler=d.isFunction(c)?c:d.noop;this.__options=e||{};b.call(this);return this}})})();


(function(window){if(typeof(window.KxLoad)=="function")return;var j=window.jQuery;var doc=window.document;var Loader={queues:{js:{},css:{}},load:function(data,callback,context){if(!data.css)data.css=[];if(!data.js)data.js=[];if(!context)context=window;this.queueCSS(data.css,this.bind(function(){this.queueJS(data.js,this.bind(callback,context));}));},bind:function(func,context){context=context||this;return function(){func.apply(context,arguments);}},tagExists:function(type,src){var tagName="script";var attName="src";if(type=="css"){var tagName="link";var attName="href";}
var tags=doc.getElementsByTagName(tagName);var len=tags.length;for(var i=0;i<len;i++){if(src===tags[i][attName]){return true;}}
return false;},process:function(type,src){var queue=this.queues[type][src];if(queue["status"]=="init"){queue["status"]="loading";this["get"+type.toUpperCase()].call(this,src);}
else if(queue["status"]=="loaded")
{this.finish(type,src);}},finish:function(type,src){var queue=this.queues[type][src];queue["status"]="loaded";var callbacks=queue["callbacks"];while(callbacks.length>0){(callbacks.shift())();}},queue:function(type,src,callback){var queue=this.queues[type][src]||{};if(!this.queues[type][src]){this.queues[type][src]=queue;queue["callbacks"]=[];if(this.tagExists(type,src))queue["status"]="loaded";else queue["status"]="init";}
queue["callbacks"].push(callback);this.process(type,src);},queueCSS:function(css_list,callback){var len=css_list.length;if(len>1){this.queue("css",css_list.shift(),this.bind(function(){this.queueCSS(css_list,callback);},this));}
else if(len==1){this.queue("css",css_list.shift(),callback);}
else
{callback();}},queueJS:function(js_list,callback){var len=js_list.length;if(len>1){this.queue("js",js_list.shift(),this.bind(function(){this.queueJS(js_list,callback);},this));}
else if(len==1){this.queue("js",js_list.shift(),callback);}
else
{callback();}},getHead:function(){if(!this.head){this.head=doc.getElementsByTagName("head")[0]||doc.documentElement;}
return this.head;},getJS:function(src){this.log("getJS: "+src);j.ajax({type:'GET',cache:true,url:src,dataType:'script',success:this.bind(function(){this.finish("js",src);},this)});},getCSS:function(src){this.log("getCSS: "+src);var link=doc.createElement('link');link.setAttribute("href",src);link.setAttribute("rel","Stylesheet");link.setAttribute("type","text/css");this.getHead().appendChild(link);this.finish("css",src);},log:function(msg){}};window.KxLoad=function(data,callback,context){return Loader.load(data,callback,context);};})(window);(function(window){var mapJsCss=function(name){var map=window.KxVersion||{};if(name in map){return"http://s.kaixin001.com.cn/"+map[name];}else{if(name.charAt(0)==='/')name=name.substring(1);return"http://s.kaixin001.com.cn/"+name;}};window.Kx.Lib.Util.mapJsCss=mapJsCss;})(window);var KxRequire=function(data,callback,scope){if(typeof(data)=="undefined"){data=[];}else if(typeof(data)=="string"){data=[data];}
if(typeof(callback)!=="function"){callback=function(){};}
var js=[],css=[];var mapJsCss=Kx.Lib.Util.mapJsCss;for(var i=0,len=data.length;i<len;i++){var parts=data[i].split(".");var type=parts[parts.length-1];var dst=mapJsCss(data[i]);if(type=="js"){if(js.length==0&&typeof(Prototype)=="undefined"){}
js.push(dst);}
else if(type=="css"){css.push(dst);}}
KxLoad({js:js,css:css},callback,scope);};var KxLazyLoad=function(data,func){if(typeof(func)!="function"){func=function(){};}
jQuery(function(){KxRequire(data,func);});};var KxDeferredCall=function(data,funcname,args,context){var that=this;if(funcname in KxDeferredCall.called)
{return;}
KxRequire(data,function(){KxDeferredCall.called[funcname]=1;return that[funcname].apply(context||this,args);});};KxDeferredCall.called={};var KxDeferredFunc=function(resouces,init_callback){var methods=Array.prototype.slice.call(arguments,2);return function(){this.args=arguments;this.call_queue=[];for(var i=0,j=methods.length;i<j;i++){var method=methods[i];this[method]=(function(mtd){return function(){this.call_queue.push([mtd,arguments]);};})(method);}
this.run=function(){var wrapper;var callback_type=typeof(init_callback);if(callback_type=="string"){wrapper=window[init_callback].apply(window,this.args);}else if(callback_type=="function"){wrapper=init_callback.apply(window,this.args);}else{return;}
$j.extend(this,wrapper);while(this.call_queue.length>0){call_data=this.call_queue.shift();var method=call_data[0];var args=call_data[1];this[method].apply(this,args);}};KxLazyLoad(resouces,$j.proxy(function(){this.run();},this));};};var KxDeferredList=function(resources){var funcnames=Array.prototype.slice.call(arguments,1);$j.each(funcnames,function(i,funcname){if(typeof(window[funcname])==="undefined"){window[funcname]=function(){KxDeferredCall(resources,funcname,arguments);};}});};KxDeferredList("js/dialog.js","openWindow","openAlert","openAlertBlue","alertHtml");KxDeferredList("js/comment.js","getCommentList","app_showComment","app_showComment2","c2_replyComment","c2_delCommentThread","c2_delComment","addCommentSubmit","reply_unfold","c4_replyComment","c6_getCommentList","initZanInfo");KxDeferredList(["js/gift.js","js/giftcommon.js"],"initMagicGift","initMagicGiftShow");KxDeferredList("js/addfriend.js","af_editFriend","af_addform","af_addfriend","starfriends_add");KxDeferredList("js/app_friend.js","a_appfriend_show");KxDeferredList("js/music.js","ordermusic");KxDeferredList("js/friend_supersuggest.js","fs2_superOnclick","fs2_viewAllfriend","fs2_selectFriend");if(typeof(SWFObject)=="undefined"){var SWFObject=KxDeferredFunc("js/swfobject.js",function(){var a=arguments;return new SWFObject(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9]);},"addParam","addVariable","getAttribute","getParams","getSWFHTML","getVariable","getVariablePairs","getVariables","setAttribute","write");}
if(typeof(StarIndexGift)=="undefined"){var StarIndexGift=KxDeferredFunc("js/home.js",function(){var a=arguments;return new StarIndexGift(a[0],a[1],a[2]);},"init");}
(function(){var b=function(a){if(typeof a=="string"){if(a.length&&a.indexOf(".")!=-1)return $j(document.getElementById(a));return $j("#"+a)}else return $j(a)};window.s=function(a){b(a).show()};window.h=function(a){b(a).hide()};window.sh=function(a){a=b(a);a.css("display")=="none"?a.show():a.hide()};window.hs=function(a){a=b(a);a.css("display")=="block"?a.hide():a.show()};window.vv=function(a){b(a).css("visibility","visible")};window.vh=function(a){b(a).css("visibility","hidden")}})();var flag=0;
function mousedown(){}function getExpDate(b,a,d){var c=new Date;if(typeof b=="number"&&typeof a=="number"&&typeof a=="number"){c.setDate(c.getDate()+parseInt(b));c.setHours(c.getHours()+parseInt(a));c.setMinutes(c.getMinutes()+parseInt(d));return c.toGMTString()}}function getCookieVal(b){var a=document.cookie.indexOf(";",b);if(a==-1)a=document.cookie.length;return unescape(document.cookie.substring(b,a))}
function getCookie(b){b=b+"=";for(var a=b.length,d=document.cookie.length,c=0;c<d;){var e=c+a;if(document.cookie.substring(c,e)==b)return getCookieVal(e);c=document.cookie.indexOf(" ",c)+1;if(c==0)break}return""}function setCookie(b,a,d,c,e,f){document.cookie=b+"="+escape(a)+(d?"; expires="+d:"")+(c?"; path="+c:"")+(e?"; domain="+e:"")+(f?"; secure":"")}
function deleteCookie(b,a,d){if(getCookie(b))document.cookie=b+"="+(a?"; path="+a:"")+(d?"; domain="+d:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT"}function dongta(b,a,d,c){openWindow("/!dongta/!dialog.php?type="+b+"&daid="+a+"&duid="+d,400,215,subString(c,44))}function horoscopematch(b,a){openWindow("/!lucky/!w_horoscopematch.php?tt="+a+"&uid="+b,460,330,"\u4eca\u65e5\u8fd0\u52bf\u5bf9\u5bf9\u78b0")};

var Kx=Kx||{};Kx.Widget=Kx.Wdiget||{};Kx.Widget.Header={};document.domain=Kx.Lib.Request.getDomainND();var g_blinkid=0,g_blinkswitch=0,g_blinktitle=document.title,g_onlineuser="",g_sysmsg_sound=null,g_newmsg_sound=null,g_app_num=0,g_appnum=0,g_bappmore=false,g_inputtime=0,g_msg_sum="",g_ie_fixed_notice=false;
function blinkNewMsg(){if((new Date).getTime()-g_inputtime>5E3)document.title=g_blinkswitch%2?"\u3010\u3000\u3000\u3000\u3011 - "+g_blinktitle:"\u3010\u65b0\u6d88\u606f\u3011 - "+g_blinktitle;g_blinkswitch++;try{if(!g_ie_fixed_notice&&parseInt(K.Browser.ie)>=9){g_ie_fixed_notice=true;window.external.msSiteModeSetIconOverlay("http://"+K.Env.IMG_HOST+"/i/favicon/faviconmsg.ico","\u65b0\u6d88\u606f")}}catch(a){}}
function blinkOnline(){document.title=g_blinkswitch%2?"\u25cb"+g_onlineuser+" \u4e0a\u7ebf\u4e86 - "+g_blinktitle:"\u25cf"+g_onlineuser+" \u4e0a\u7ebf\u4e86 - "+g_blinktitle;g_blinkswitch++;g_blinkswitch>10&&stopBlinkNewMsg()}function checkNewMsg(){$j.post("/home/newmsg.php",function(a){checkNewMsgShow(a)},"json")}
function stopBlinkNewMsg(){if(g_blinkid){clearInterval(g_blinkid);g_blinkid=0;$j(document).trigger("clear_notice");document.title=g_blinktitle}try{if(g_ie_fixed_notice){g_ie_fixed_notice=false;window.external.msSiteModeClearIconOverlay()}}catch(a){}}K.Module.createRequire().async("core/storage/Storage",function(a){unSyncStopBlink=stopBlinkNewMsg;stopBlinkNewMsg=a.sync(stopBlinkNewMsg)});Kx.Widget.Header.MsgCount={msg:0,sysmsg:0,bbs:0,bbsreply:0,comment:0,reply:0,rgroupmsg:0,rgroupreply:0};
function checkNewMsgShow(a){if(a.im!="1"){if(a.notice=="1"){var b=[a.msg,a.bbs,a.bbsreply,a.comment,a.reply,a.rgroupmsg].join("-");if(g_msg_sum==b)return;g_msg_sum=b}unSyncStopBlink();setTimeout(checkNewMsg,6E4);b=["msg","sysmsg","bbs","bbsreply","comment","reply","rgroupmsg"];var c=Kx.Widget.Header.MsgCount,g=typeof g_stopmsgblink=="undefined"||!g_stopmsgblink;if(a.notice=="1"){if(!parseInt(a.forbidsound)){for(var d=0,e=b.length;d<e;d++){var f=b[d],h=$j("#body_"+f+"_num");if(h.length)c[f]=parseInt(h.html(),
10)}a.msg=+a.msg;a.bbs=+a.bbs;a.bbsreply=+a.bbsreply;a.comment=+a.comment;a.reply=+a.reply;a.sysmsg=+a.sysmsg;a.rgroupmsg=+a.rgroupmsg;e=a.msg+a.bbs+a.bbsreply+a.comment+a.reply+a.rgroupmsg;h=a.sysmsg;var i=a.msg-c.msg||a.bbs-c.bbs||a.bbsreply-c.bbsreply||a.comment-c.comment||a.reply-c.reply||a.rgroupmsg-c.rgroupmsg,j=a.sysmsg-c.sysmsg;for(d=0;d<b.length;d++){f=b[d];c[f]=a[f]}if(e&&i&&g){if(g_newmsg_sound==null){g_newmsg_sound=new SWFObject("http://img1.kaixin001.com.cn/i2/newmsg_sound.1.0.swf","newmsg_sound_swf",
"1","1","8","#ffffff",true);g_newmsg_sound.addParam("allowscriptaccess","always");g_newmsg_sound.addParam("wmode","opaque");g_newmsg_sound.addParam("menu","false");g_newmsg_sound.addVariable("autoplay","0")}g_newmsg_sound.write("head_msgsound_div")}else if(h&&j&&g){if(g_sysmsg_sound==null){g_sysmsg_sound=new SWFObject("http://img1.kaixin001.com.cn/i2/sysmsg_sound.1.0.swf","sysmsg_sound_swf","1","1","8","#ffffff",true);g_sysmsg_sound.addParam("allowscriptaccess","always");g_sysmsg_sound.addParam("wmode",
"opaque");g_sysmsg_sound.addParam("menu","false");g_sysmsg_sound.addVariable("autoplay","0")}g_sysmsg_sound.write("head_msgsound_div")}}if(g){$j(document).trigger("notice");g_blinkid=setInterval(blinkNewMsg,1E3)}}for(d=0;d<b.length;d++){f=b[d];c=$j("#body_"+f+"_num");if(parseInt(a[f])){$j("#head_"+f+"_num").html("<i>"+a[f]+"</i>");if(c){c.removeClass().addClass("cr");c.html(a[f]+"\u6761\u65b0")}f=="msg"&&"function"==typeof msg_view_checkNewMsg&&msg_view_checkNewMsg()}else{f=="msg"?$j("#head_"+f+"_num").html('<i class="msgWrt" title="\u53d1\u77ed\u6d88\u606f" onclick="window.location.href=\'/msg/write.php\';return false;"></i>'):
$j("#head_"+f+"_num").html("");if(c){c.removeClass().addClass("ql2");c.html("0\u6761\u65b0")}}}}}function bindGlobalNoticeEvents(){$j(document).bind("stopBlinkNewMsg",function(){stopBlinkNewMsg()});$j(document).bind("notice",function(){var a=$j("#head_msgdiv"),b=$j("#backTop");a.show();b.trigger("scrolltip:newscome")}).bind("clear_notice",function(){var a=$j("#head_msgdiv"),b=$j("#backTop");a.hide();b.trigger("scrolltip:newsclear")})}
function bindSearchEvents(a){function b(d){if(!b.done){b.done=true;KxRequire("js/friend_suggest2.js",function(){new Kx.FSuggest({input:$j("#headsearchuser"),btn:$j(".sc_btn:first"),login:a?true:false});d&&d()})}}b.done=false;var c=$j("._kxj_suggestbind").one("focus",function(){b(function(){c.trigger("focus")})});c.placeholder2({labelClass:"placeholder1"});c.val()==c.attr("placeholder")&&c.val("");var g=$j("._kxj_suggestbtn").one("click",function(){b(function(){g.click()})})}
function outputHeadBindEvents(a){bindGlobalNoticeEvents();$j(function(){$j("#index_dropdown li.t_title:first a.t_link:first").click(function(b){if(!$j(b.target).hasClass("more_home"))if(window.g_im_vuid&&window.location.href.indexOf("msg")==-1){window.location="/home/?uid="+window.g_im_vuid;return false}});bindSearchEvents(a)})}
function outputHead2(){document.write('<div style="position:relative;z-index:100000;"> <div class="install_tips" id="install_tips" style="position:absolute; left:110px; top:-103px; z-index:99; display:none;"> <div class="tar" style="padding:7px 15px 0 0;"><img src="http://img1.kaixin001.com.cn/i2/black_del.gif" title="\u5173\u95ed" style="cursor:pointer;" onclick="h(\'install_tips\')" /></div> <p style="padding:0px 20px;">\u70b9\u51fb\u8fd9\u91cc\uff0c\u6dfb\u52a0\u5404\u79cd\u5b9e\u7528\u6216\u6e38\u620f\u7ec4\u4ef6</p></div></div></div>')}
function f2_gotouser(a){if(parseInt(a))window.location="http://www.kaixin001.com/home/?uid="+a}
function outputTail(){document.writeln('<div class="c"></div></div><div id="footer" style="border:none;">\t<div class="left"><a href="/s/about.html" target="_blank" title="\u5173\u4e8e\u6211\u4eec">\u5173\u4e8e\u6211\u4eec</a><a href="/mobile/" title="\u624b\u673a\u7248">\u624b\u673a\u7248</a><a href="/platform/" target="_blank" title="\u5f00\u653e\u5e73\u53f0">\u5f00\u653e\u5e73\u53f0</a><a href="/promotion/" target="_blank" title="\u81ea\u52a9\u5e7f\u544a">\u81ea\u52a9\u5e7f\u544a</a><a href="http://zhaopin.kaixin001.com" target="_blank" title="\u62db\u8058">\u62db\u8058</a><a href="/t/cronline.html" target="_blank" title="\u5ba2\u670d">\u5ba2\u670d</a><a href="/t/help.html" target="_blank" title="\u5e2e\u52a9">\u5e2e\u52a9</a></div><div class="right">&copy;2012 \u5f00\u5fc3\u7f51 &nbsp;<a  class="c6" href=http://www.miibeian.gov.cn target=_blank>\u4eacICP\u8bc1080482\u53f7</a>&nbsp;&nbsp;\u4eac\u516c\u7f51\u5b89\u5907110000000003\u53f7</div></div>')}
function g_poolchatmsg(){pchat.poolchatmsg()}function showAppSetup_2(a){a=Event.element(a);$j(a).next().css("display","block");$j(a).parent().mouseleave(function(){$j(this).unbind("mouseleave").children("a:eq(1)").css("display","none")})}$j(function(){$j("#appMenu li").not(".show_moreapp").hover(function(){$j(this).addClass("over")},function(){$j(this).removeClass("over")})});function outputAppGroupMore(a){$j("#appsinner_"+a).children("ul").length===0?_loadAppMoreData(a):showApps(a)}
function _constructAppMore(a,b){for(var c,g,d,e,f=$j("#appsinner_"+b),h=a.length,i=h;h>0;){g=document.createElement("ul");g.className="apps_column";for(c=0;c<10&&h>0;c++,h--){var j="";e=a[i-h];if(e.num)j='<span class="ntc"><b>'+e.num+"</b></span>";d=document.createElement("li");d.innerHTML='<a class="app_l_sp app_'+e.path+'" title="'+e.title+'" href="'+e.link+'" '+(e.blank?' target="_blank"':"")+">"+j+e.title+"</a>";e.small&&$j(d).find("a.app_l_sp").css("background","url('"+e.small+"') no-repeat 1px 0");
Kx.Env.isLite&&e.aid>1E8&&$j(d).find("a.app_l_sp").addClass("app_thirdparty");e.webgame==1&&$j(d).find("a.app_l_sp").addClass("app_wg_sp");g.appendChild(d)}f.append(g)}appScroll(b);showApps(b)}function _loadAppMoreData(a){$j.getJSON("/app/left.php",{groupid:a,r:Math.random()},function(b){_constructAppMore(b,a)})}
function showApps(a){var b=$j("#appsBox_"+a),c=$j("ul",b).length;if(c<=4){$j("h3",b).hide();if(c==1)b.addClass("appsBox_r1");else if(c==2)b.addClass("appsBox_r2");else c==3&&b.addClass("appsBox_r3")}$j(document).bind("mousedown",function(){b.hide();iniTial(a);$j(document).unbind("mousedown")});b.bind("mousedown",function(g){g.stopPropagation()});b[0].style.display="block";$j("li",b).hover(function(){$j(this).addClass("over")},function(){$j(this).removeClass("over")})}
function hideApps(a){$j("#appsBox_"+a).hide();iniTial(a)}function iniTial(a){var b=$j("#appsBox_"+a);$j("#appsinner_"+a).css("left","0");$j("#PagePrev_"+a).attr("class","page_prev_dis");$j("#PageNext_"+a).attr("class","page_next");$j(".dotpage i",b).first().trigger("click")}
function appScroll(a){function b(){i+j==528?e.attr("class","page_next_dis"):e.attr("class","page_next");i==0?d.attr("class","page_prev_dis"):d.attr("class","page_prev")}function c(k){if(i+k*528+j>=528&&i+k*528<=0){f.stop().animate({left:i+k*528+"px"},800);i+=k*528;$j("i",h).removeClass("cur");$j("i",h).eq(-(i/528)).addClass("cur");b()}}var g=$j("#appsBox_"+a),d=$j("#PagePrev_"+a),e=$j("#PageNext_"+a),f=$j("#appsinner_"+a),h=$j(".dotpage",g),i=0,j=0;a=$j("ul",g).length;if(a%4==0)a/=4;else a=parseInt(a/
4)+1;for(g=1;g<=a;g++)h.append("<i></i>");$j("i:first",h).addClass("cur");$j("i",h).each(function(k){$j(this).click(function(){$j("i",h).removeClass("cur");$j(this).addClass("cur");f.stop().animate({left:-k*528+"px"},800,function(){i=-k*528;b()})})});j=a*528;e.click(function(){c(-1)});d.click(function(){c(1)})}
function outputHeadTemp(a,b){var c=(new Date).getTime();document.write(['<div id="head"><div class="hd"><div style="margin-top:3px;" class="h1 wl1"><div style="padding-left:18px;">','<a title="\u5f00\u5fc3\u7f51" class="cf" href="/home/?uid='+a+'">','<img width="106" height="36" alt="\u5f00\u5fc3\u7f51" src="http://img1.kaixin001.com.cn/i2/kaixinlogo.gif"/></a></div></div><div style="margin-top:12px;" class="h2"><ul id="index_dropdown"><li class="t_title" data-menu="true">','<a class="t_link" href="/home/?uid='+
a+"&t="+c+'" hidefocus="true"><span>\u9996\u9875</span><i class="dd"></i></a>','<ul class="hn_l" id="hn1_l" style="display: none;">','<li class="wb"><a href="/home/?uid='+a+'">\u6211\u7684\u9996\u9875</a></li>','<li><a class="disable" href="javascript:void(0);">\u6211\u7684\u9996\u9875\u9884\u89c8\uff1a</a></li><li><a class="bg" href="/home/?_preview=friend">\u597d\u53cb\u8bbf\u95ee\u65f6</a></li><li><a class="bg" href="/home/?_preview=other">\u964c\u751f\u4eba\u8bbf\u95ee\u65f6</a></li></ul></li><li class="t_bar"></li><li class="t_title" data-menu="true">',
'<a href="/friend/?t='+c+'" class="t_link" hidefocus="true"><span>\u597d\u53cb</span><i class="dd"></i></a>','<ul class="hn_l" id="hn2_l" style="display:none;"><li class="wb"><a href="/friend/friends.php">\u6211\u7684\u597d\u53cb</a></li><li><a href="/friend/ffContacts.php">\u6211\u7684\u4eba\u8109</a></li><li><a href="/friend/invite.php">\u9080\u8bf7\u670b\u53cb</a></li><li><a href="/friend/search.php">\u67e5\u627e\u670b\u53cb</a></li></ul></li><li class="t_bar"></li><li class="t_title t_msg" data-menu="true">',
'<a href="/app/list.html?t='+c+'" class="t_link" hidefocus="true"><span>\u7ec4\u4ef6</span><i class="dd"></i></a>','<ul class="hn_l" id="hn3_l" style="display:none;"><li><a href="/app/list.html">\u7ec4\u4ef6\u5927\u5168</a></li><li class="wb"><a href="/app/list-game.html">\u6700\u65b0\u6e38\u620f</a></li><li class="loading"><img src="http://img1.kaixin001.com.cn/i/home/dt_loading_nobg.gif" alt="" /></li></ul></li><li class="t_bar"></li><li id="nav_msg_list" class="t_title" data-menu="true">','<a href="/msg/?t='+
c+'" class="t_link" hidefocus="true"><span>\u6d88\u606f</span><i class="dd"></i><b id="head_msgdiv"><img border="0" src="http://img1.kaixin001.com.cn/i/ddtx2.gif"></b></a>','<ul class="hn_l" id="hn4_l" style="display:none;"><li><a href="/msg/inbox.php"><span id="head_msg_num" class="hdMsgNum"></span>\u77ed\u6d88\u606f</a></li><li class="wb"><a href="/msg/sys.php?new=1"><span id="head_sysmsg_num" class="hdMsgNum"></span>\u7cfb\u7edf\u6d88\u606f</a></li>','<li><a href="/comment/?t='+c+'"><span id="head_comment_num" class="hdMsgNum"></span>\u8bc4\u8bba</a></li>',
'<li><a href="/comment/send.php"><span id="head_reply_num" class="hdMsgNum"></span>\u8bc4\u8bba\u56de\u590d</a></li><li><a href="/comment/uindex.php"><span id="head_bbs_num" class="hdMsgNum"></span>\u7559\u8a00</a></li><li><a href="/rgroup/msg.php"><span id="head_rgroupmsg_num" class="hdMsgNum"></span>\u5708\u5b50</a></li></ul></li></ul><div class="c"></div></div><div class="hdsearchC"><div class="hdsearch" id="headsearchcon"><input class="sc_txt _kxj_suggestbind" id="headsearchuser" name="headsearchuser" value="\u641c\u7d22" placeholder="\u641c\u7d22" type="text" autocomplete="off" /><span class="sc_btn _kxj_suggestbtn" title="\u641c\u7d22"></span></div></div><div class="h3" style="position:relative; z-index:99999; float:right; margin-right:10px;"><div class="rt_nav"><div id="head2_kxt1" class="rt_menu" subID="find_sub"><a class="ce" href="/friend/search.php">\u627e\u4eba</a><ul style="display:none;" id="find_sub" class="serv_sub"><li><a class="i_find1" href="/friend/search.php">\u67e5\u627e\u670b\u53cb</a></li><li><a class="i_find2" href="/friend/invite.php">\u9080\u8bf7\u670b\u53cb</a></li><li><a class="i_find3" href="/friend/ffContacts.php" style="border-bottom:none">\u9080\u8bf7\u670b\u53cb</a></li></ul></div><div class="l rt_menu_bar"></div>',
b=="2"?'<div id="id_star_account" class="l rt_menu" style="z-index:10005;"><a href="/set/star_account.php" class="ce">\u8bbe\u7f6e</a></div>':'<div class="rt_menu" id="id_common_account" subID="set_sub"><a href="/set/account.php" class="ce2">\u8bbe\u7f6e</a><ul class="serv_sub" id="set_sub" style="display:none;" ><li><a href="/set/account.php" class="i_set1">\u8d26\u6237\u8bbe\u7f6e</a></li><li><a href="/set/privacy.php" class="i_set2">\u9690\u79c1\u8bbe\u7f6e</a></li><li><a href="/set/appman.php" class="i_set3">\u7ec4\u4ef6\u8bbe\u7f6e</a></li><li><a href="/pay/index.php" class="i_set4" style="border-bottom:none">\u5f00\u5fc3\u5e01\u5145\u503c</a></li></ul></div>',
'<div class="l rt_menu_bar"></div><div class="rt_menu _kxj_exit"><a href="/login/logout.php" class="ce">\u9000\u51fa</a></div></div></div><div class="c"></div></div></div><div id="head_msgsound_div" style="left:0;top:0;position:absolute;"></div>'].join(""))};

function appRgroupCreate(a){a>=5?alert("\u6bcf\u4eba\u53ea\u80fd\u521b\u5efa5\u4e2a\u5708\u5b50"):openWindow("/rgroup/window_create.php",460,330,"\u521b\u5efa\u5708\u5b50")}function mutexAppRgroup(a){a=a.find("span.ntc");var b=$j("#app_rgroup_create");if($j("#rgroup_expand").attr("data-expand")=="1"){b.show();a.hide()}else if(a.html()==null||a.html().toLowerCase()=="<b>0</b>"){b.show();a.hide()}else{a.show();b.hide()}}var is_ajax_send=0;
function appRgroupExpand(a){if(a==0)openWindow("/rgroup/window_create.php",460,330,"\u521b\u5efa\u5708\u5b50");else{a=$j("a.app_rgroup");var b=a.find("img"),c=$j("#rgroup_expand"),d=0;if(parseInt(c.attr("data-expand"),10)==1){b.attr("src","http://img1.kaixin001.com.cn/i/ico_hjt12-1.gif");c.attr("data-expand",0);d=0;c.hide()}else{b.attr("src","http://img1.kaixin001.com.cn/i/ico_hjt22-1.gif");c.attr("data-expand",1);d=1;c.show()}mutexAppRgroup(a);clearTimeout(is_ajax_send);is_ajax_send=setTimeout(function(){$j.ajax({url:"/rgroup/aj_left_more.php?t="+
(new Date).getTime(),data:{flag:d},dataType:"json",success:function(){}})},1E3)}}function getAppRgroupMsgNum(a){if(a.html()==null)return 0;else{a=a.html().toLowerCase().replace(/<b>/,"");a=a.replace(/<\/b>/,"");return parseInt(a,10)}}function setAppRgroupMsgNum(a,b){if(a.html()==null)return 0;else{if(b>99)b=99;a.html("<b>"+b+"</b>");b==0?a.hide():a.show()}}function adjustAppRgroupMsgNum(a,b){var c=a.find("span.ntc"),d=getAppRgroupMsgNum(c);b=parseInt(b,10);b!=d&&setAppRgroupMsgNum(c,b)}
function increaseAppRgroupMsgNum(a,b){var c=a.find("span.ntc"),d=getAppRgroupMsgNum(c);setAppRgroupMsgNum(c,d+1);b&&c.show();return d}
function globalMsgDispatcher(a,b){if(b=="start"){if(a!=null){var c=left=talk=snum=0;for(var d in a){talk=a[d].talk!=undefined?parseInt(a[d].talk,10):0;$j("a.app_rgroup_expand").each(function(){f=$j(this).attr("data-rgroup_gid");if(f+"G"==d){adjustAppRgroupMsgNum($j(this),talk);snum+=talk}});c+=talk}var e=$j("a.app_rgroup");adjustAppRgroupMsgNum(e,c);mutexAppRgroup(e);left=c>snum?c-snum:0;adjustAppRgroupMsgNum($j("a.app_rgroup_more"),left)}}else if(b=="poll")if(a.c=="gtalk.msg"){var g=0,f;e=$j("a.app_rgroup");
increaseAppRgroupMsgNum(e,false);mutexAppRgroup(e);$j("a.app_rgroup_expand").each(function(){f=$j(this).attr("data-rgroup_gid");if(f+"G"==a.o.gid){increaseAppRgroupMsgNum($j(this),true);g=1}});g==0&&increaseAppRgroupMsgNum($j("a.app_rgroup_more"),true)}};

var g_gid=0,g_inputchange=0;function webEditor(a,c,b,d,e,f){this.initEnv();this.iframeno=e_iframeno++;this.id=a;this.editorArea=c;this.width=b;this.height=d;this.toolbarpos=e;this.seltype=this.range=this.textArea=this.iframe=this.toolbar=null;this.grppicfile=this.picfile=this.uploadfile=this.openPanel="";this.autoclose_timer=null;this.bordercolor=f||"#808080"}function gEditor_SetInputTime(){g_inputtime=(new Date).getTime()}
webEditor.prototype.$=function(a){return document.getElementById?eval('document.getElementById("'+a+'")'):eval("document.all."+a)};
webEditor.prototype.initEnv=function(a){if(typeof a=="undefined")a=false;if(a||typeof e_isOpera=="undefined")e_isOpera=false;if(a||typeof e_isIE=="undefined")e_isIE=false;if(a||typeof e_isFF=="undefined")e_isFF=false;if(a||typeof e_bold=="undefined")e_bold=true;if(a||typeof e_italic=="undefined")e_italic=true;if(a||typeof e_underline=="undefined")e_underline=true;if(a||typeof e_JustifyLeft=="undefined")e_JustifyLeft=false;if(a||typeof e_JustifyCenter=="undefined")e_JustifyCenter=false;if(a||typeof e_JustifyRight==
"undefined")e_JustifyRight=false;if(a||typeof e_InsertUnorderedList=="undefined")e_InsertUnorderedList=false;if(a||typeof e_InsertOrderedList=="undefined")e_InsertOrderedList=false;if(a||typeof e_font=="undefined")e_font=true;if(a||typeof e_fontsize=="undefined")e_fontsize=true;if(a||typeof e_color=="undefined")e_color=true;if(a||typeof e_backcolor=="undefined")e_backcolor=false;if(a||typeof e_img=="undefined")e_img=true;if(a||typeof e_link=="undefined")e_link=true;if(a||typeof e_media=="undefined")e_media=
true;if(a||typeof e_audio=="undefined")e_audio=false;if(a||typeof e_face=="undefined")e_face=true;if(a||typeof e_internetimg=="undefined")e_internetimg=true;if(a||typeof e_uploadimg=="undefined")e_uploadimg=false;if(a||typeof e_hidetoolbar=="undefined")e_hidetoolbar=false;if(a||typeof e_media_tips=="undefined")e_media_tips=false;if(a||typeof e_piclink=="undefined")e_piclink=false;if(a||typeof e_grppiclink=="undefined")e_grppiclink=false;if(a||typeof e_iframeno=="undefined")e_iframeno=0;if(a||typeof e_toolbarbg==
"undefined")e_toolbarbg="#ffffff";if(a||typeof e_GoogleMap=="undefined")e_GoogleMap=false;if(a||typeof e_onkeypress=="undefined")e_onkeypress=null;if(a||typeof e_onkeydown=="undefined")e_onkeydown=null;if(a||typeof e_init_content=="undefined")e_init_content=null;if(a||typeof e_onwebeditfocus=="undefined")e_onwebeditfocus=null;if(a||typeof e_onwebeditblur=="undefined")e_onwebeditblur=null;if(a||typeof e_onkeyup=="undefined")e_onkeyup=null;if(a||typeof e_onmousedown=="undefined")e_onmousedown=null};
webEditor.prototype.getUA=function(){var a=navigator.userAgent.toLowerCase();e_isOpera=a.indexOf("opera")!=-1;e_isOpera=function(c){if(c.indexOf("opera")!=-1)return true;if(c.indexOf("applewebkit")!=-1)if(c.indexOf("iphone")!=-1||c.indexOf("ipod")!=-1||c.indexOf("ipad")!=-1||c.indexOf("android")!=-1)return true;return false}(a);e_isFF=a.indexOf("firefox")!=-1;e_isIE=document.all?true:false};
webEditor.prototype.drawEditor=function(){var a;if(e_isOpera)a='<textarea style="font-size:14px;width:'+this.width+"px;height:"+this.height+'px;" id="'+this.id+'_aid" name="'+this.id+'_aid"></textarea>';else{a=this.id+"_fid_"+ ++this.iframeno;var c="block";if(e_hidetoolbar==true)c="none";var b;b="http://"+Kx.Lib.Request.getFullHost()+"/interface/blank.php";a=this.toolbarpos=="right"?'<div id="'+this.id+'_eid" style="float:left;border:1px '+this.bordercolor+" solid;width:"+(this.width-50)+"px;height:"+
this.height+"px;display:"+c+';"><div class="it1"><iframe id="'+a+'" name="'+a+'" style="width:'+(this.width-50-2)+"px; height: "+(this.height-2)+'px;" frameborder=0 marginwidth=0 scrolling=auto src="'+b+'" onfocus="javascript:'+this.id+'.iframeOnfocus();" onblur="javascript:'+this.id+'.iframeOnblur();" onload="javascript:'+this.id+'.postInit();"></iframe></div></div><div id="'+this.id+'_tid" style="float:left;background-color:'+e_toolbarbg+';"></div><div style="clear:both;"></div>':this.toolbarpos==
"bottom"?'<div id="'+this.id+'_eid" style="border:1px '+this.bordercolor+" solid;width:"+this.width+"px;height:"+this.height+'px;"><div class="it1"><iframe id="'+a+'" name="'+a+'" style="width:'+(this.width-2)+"px; height: "+(this.height-2)+'px;" frameborder=0 marginwidth=0 scrolling=auto src="'+b+'" onfocus="javascript:'+this.id+'.iframeOnfocus();" onblur="javascript:'+this.id+'.iframeOnblur();" onload="javascript:'+this.id+'.postInit();"></iframe></div></div><div id="'+this.id+'_tid" style="width:'+
(this.width+2)+"px;background-color:"+e_toolbarbg+";display:"+c+';"></div>':'<div id="'+this.id+'_tid" style="width:'+(this.width+2)+"px;background-color:"+e_toolbarbg+";display:"+c+';"></div><div id="'+this.id+'_eid" style="border:1px '+this.bordercolor+" solid;width:"+this.width+"px;height:"+this.height+'px;"><div class="it1"><iframe id="'+a+'" name="'+a+'" style="width:'+(this.width-2)+"px; height: "+(this.height-2)+'px;" frameborder=0 marginwidth=0 scrolling=auto src="'+b+'" onfocus="javascript:'+
this.id+'.iframeOnfocus();" onblur="javascript:'+this.id+'.iframeOnblur();" onload="javascript:'+this.id+'.postInit();"></iframe></div></div>'}this.editorArea.innerHTML=a};webEditor.prototype.iframeOnfocus=function(){this.$(this.id+"_eid").childNodes[0].className="it2";g_inputchange=setInterval(gEditor_SetInputTime,1E3);typeof e_onwebeditfocus=="function"&&e_onwebeditfocus()};
webEditor.prototype.iframeOnblur=function(){if(!this.range)this.$(this.id+"_eid").childNodes[0].className="it1";g_inputchange&&clearInterval(g_inputchange);typeof e_onwebeditblur=="function"&&e_onwebeditblur()};webEditor.prototype.genObj=function(){if(e_isOpera)this.textArea=this.$(this.id+"_aid");else{this.toolbar=this.$(this.id+"_tid");this.iframe=window.frames[this.id+"_fid_"+this.iframeno]}};webEditor.prototype.hideToolbar=function(){this.toolbar&&h(this.toolbar)};
webEditor.prototype.showToolbar=function(){this.toolbar&&s(this.toolbar)};webEditor.prototype.setText=function(a){if(typeof a=="undefined")a="";return"<html><head><style type=\"text/css\">body {background: #ffffff; margin:1px; padding:1px; font-size:14px; overflow:auto;word-wrap: break-word; font-family: Arial, '\u5b8b\u4f53';} p {padding: 0px; margin: 0px; } </style><script type='text/javascript'>document.domain='"+Kx.Lib.Request.getDomainND()+"';<\/script></head><body>"+a+"</body></html>"};
webEditor.prototype.setKeypressHandler=function(a){var c=this.iframe,b=c.document;if(b&&a)if(b.addEventListener)b.addEventListener("keypress",a,false);else if(b.attachEvent)b.attachEvent("onkeypress",function(){a(c.event)});else b.onkeypress=a};webEditor.prototype.setKeydownHandler=function(a){var c=this.iframe,b=c.document;if(b&&a)if(b.addEventListener)b.addEventListener("keydown",a,false);else if(b.attachEvent)b.attachEvent("onkeydown",function(){a(c.event)});else b.onkeydown=a};
webEditor.prototype.setKeyupHandler=function(a){var c=this.iframe,b=c.document;if(b&&a)if(b.addEventListener)b.addEventListener("keyup",a,false);else if(b.attachEvent)b.attachEvent("onkeyup",function(){a(c.event)});else b.onkeyup=a};webEditor.prototype.setMousedownHandler=function(a){var c=this.iframe,b=c.document;if(b&&a)if(b.addEventListener)b.addEventListener("mousedown",a,false);else if(b.attachEvent)b.attachEvent("onmousedown",function(){a(c.event)});else b.onmousedown=a};
webEditor.prototype.init=function(a){this.getUA();e_init_content=a;this.drawEditor();if(e_isOpera){this.genObj();this.textArea.value=e_init_content}};
webEditor.prototype.postInit=function(){if(!e_isOpera){this.genObj();if(e_isIE){this.iframe.document.body.innerHTML=e_init_content;this.iframe.document.body.contentEditable=true}else{this.iframe.document.body.innerHTML=e_init_content;this.iframe.document.designMode="On";this.iframe.document.contentEditable=true}this.createToolBar();this.bindFacePanel("fromgroup");this.setKeypressHandler(e_onkeypress);this.setKeyupHandler(e_onkeyup);this.setKeydownHandler(e_onkeydown);this.setMousedownHandler(e_onmousedown)}};
webEditor.prototype.bindFacePanel=function(a){liteEditor($j("#"+this.id+"_eid"),a).bindFacePanel($j("#"+this.id+"_face_icon"),a)};webEditor.prototype.isOpera=function(){return e_isOpera};webEditor.prototype.getText=function(){return e_isOpera?this.textArea.value:e_isIE?this.iframe.document.body.innerText:this.iframe.document.body.innerHTML};webEditor.prototype.setContent=function(a){if(e_isOpera)this.textArea.value=a;else this.iframe.document.body.innerHTML=a};
webEditor.prototype.getHtml=function(){if(e_isOpera)return this.textArea.value;var a=this.iframe.document.body.innerHTML;if(a.toLowerCase()=="<p>&nbsp;</p>"||a.toLowerCase()=="<br/>"||a.toLowerCase()=="<br />"||a.toLowerCase()=="<br>")return"";a=a.replace(/<IMG style=\"WIDTH: (\d*)px; HEIGHT: (\d*)px\"[^<]*src=(\"[^\"]+\")[^<]*>/gi,"<img width=$1 height=$2 src=$3>");return a=a.replace(/<img style=\"width: (\d*)px; height: (\d*)px;\"[^<]*src=(\"[^\"]+\")[^<]*>/gi,"<img width=$1 height=$2 src=$3>")};
webEditor.prototype.isEmpty=function(){return this.getHtml().gsub("&nbsp;","").gsub("<br>","").gsub("<br />","").gsub("<P>","").gsub("</P>","").gsub("<div>","").gsub("</div>","").strip().length==0};webEditor.prototype.getFocus=function(){e_isOpera?this.textArea.focus():this.iframe.focus()};webEditor.prototype.blur=function(){if(e_isOpera&&this.textArea)this.textArea.blur();else this.iframe&&this.iframe.blur()};webEditor.prototype.getTextType=function(){return e_isOpera?"plain":"html"};
webEditor.prototype.selectBegin=function(){this.iframe.focus();if(e_isIE){this.range=this.iframe.document.selection.createRange();this.seltype=this.iframe.document.selection.type}};
webEditor.prototype.drawPanel=function(a,c){var b=this.id+"_"+c;this.openPanel!=""&&this.removePanel(this.openPanel);this.openPanel=b;tdiv=document.createElement("div");tdiv.id=b;tdiv.innerHTML=a;tdiv.style.display="block";tdiv.style.position="absolute";if(c==="face")tdiv.className="mood_listBox";b=this.id+"_"+c+"_icon";var d=b==""?this.$(this.id+"_eid"):this.$(b);d=b_getAbsolutePos(d);tdiv.style.top=(b==""?d.top:d.top+18)+"px";tdiv.style.left=d.left+1+"px";document.body.appendChild(tdiv);tdiv.focus()};
webEditor.prototype.removePanel=function(a){if(this.$(a)){document.body.removeChild(this.$(a));e_isIE&&this.range&&this.seltype!="Control"&&this.range.select();this.range=null}};webEditor.prototype.autoClose=function(a){this.autoclose_timer=setTimeout(this.id+".removePanel('"+a+"')",2E3)};webEditor.prototype.autoClose2=function(a,c){IsIE()||!a.relatedTarget||a.relatedTarget==a.currentTarget||a.relatedTarget.descendantOf(a.currentTarget)||this.autoClose(c)};
webEditor.prototype.removeAutoClose=function(){this.autoclose_timer&&clearTimeout(this.autoclose_timer)};webEditor.prototype.removeAutoClose2=function(a){IsIE()||!a.relatedTarget||a.relatedTarget==a.currentTarget||a.relatedTarget.descendantOf(a.currentTarget)||this.removeAutoClose()};function e_swapImgRestore(){var a,c,b=document.e_sr;for(a=0;b&&a<b.length&&(c=b[a])&&c.oSrc;a++)c.src=c.oSrc}
function e_findObj(a,c){var b,d;c||(c=document);if((b=a.indexOf("?"))>0&&parent.frames.length){c=parent.frames[a.substring(b+1)].document;a=a.substring(0,b)}if(!(d=c[a])&&c.all)d=c.all[a];for(b=0;!d&&b<c.forms.length;b++)d=c.forms[b][a];for(b=0;!d&&c.layers&&b<c.layers.length;b++)d=e_findObj(a,c.layers[b].document);if(!d&&c.getElementById)d=c.getElementById(a);return d}
function e_swapImage(){var a,c=0,b,d=e_swapImage.arguments;document.e_sr=[];for(a=0;a<d.length-2;a+=3)if((b=e_findObj(d[a]))!=null){document.e_sr[c++]=b;if(!b.oSrc)b.oSrc=b.src;b.src=d[a+2]}}
webEditor.prototype.createToolBar=function(){var a='<div class="editor_toolbar">';a+=e_font?'<div id="'+this.id+'_fontname_icon" onclick="javascript:'+this.id+'.fontPanel();" onMouseOut="e_swapImgRestore()" onMouseOver="e_swapImage(\'font\',\'\',\'http://img1.kaixin001.com.cn/js/webeditor/i/e1_2.gif\',0)"><img src="http://img1.kaixin001.com.cn/js/webeditor/i/e1_2.gif" name="font" border="0" title="\u5b57\u4f53" alt="\u5b57\u4f53"></div>':"";a+=e_fontsize?'<div id="'+this.id+'_fontsize_icon" onclick="javascript:'+
this.id+'.fontsizePanel();" onMouseOut="e_swapImgRestore()" onMouseOver="e_swapImage(\'fontsize\',\'\',\'http://img1.kaixin001.com.cn/js/webeditor/i/e2_1.gif\',0)"><img src="http://img1.kaixin001.com.cn/js/webeditor/i/e2_1.gif" name="fontsize" border="0" title="\u5b57\u4f53\u5927\u5c0f" alt="\u5b57\u4f53\u5927\u5c0f"></div>':"";a+=e_color?'<div id="'+this.id+'_forecolor_icon" onclick="javascript:'+this.id+'.colorPanel();" onMouseOut="e_swapImgRestore()" onMouseOver="e_swapImage(\'color\',\'\',\'http://img1.kaixin001.com.cn/js/webeditor/i/e3_2.gif\',0)"><img src="http://img1.kaixin001.com.cn/js/webeditor/i/e3_2.gif" name="color" border="0" title="\u5b57\u4f53\u989c\u8272" alt="\u5b57\u4f53\u989c\u8272"></div>':
"";a+=e_backcolor?'<div id="'+this.id+'_backcolor_icon" onclick="javascript:'+this.id+'.backcolorPanel();" onMouseOut="e_swapImgRestore()" onMouseOver="e_swapImage(\'backcolor\',\'\',\'http://img1.kaixin001.com.cn/js/webeditor/i/e4_2.gif\',0)"><img src="http://img1.kaixin001.com.cn/js/webeditor/i/e4_2.gif" name="backcolor" border="0" title="\u80cc\u666f\u989c\u8272" alt="\u80cc\u666f\u989c\u8272"></div>':"";a+=e_bold?'<div onclick="javascript:'+this.id+'.setStyle(\'bold\');" onMouseOut="e_swapImgRestore()" onMouseOver="e_swapImage(\'bold\',\'\',\'http://img1.kaixin001.com.cn/js/webeditor/i/e5_1.gif\',0)"><img src="http://img1.kaixin001.com.cn/js/webeditor/i/e5_1.gif" name="bold" border="0" title="\u52a0\u7c97" alt="\u52a0\u7c97"></div>':
"";a+=e_italic?'<div onclick="javascript:'+this.id+'.setStyle(\'italic\');" onMouseOut="e_swapImgRestore()" onMouseOver="e_swapImage(\'italic\',\'\',\'http://img1.kaixin001.com.cn/js/webeditor/i/e6_1.gif\',0)"><img src="http://img1.kaixin001.com.cn/js/webeditor/i/e6_1.gif" name="italic" border="0" title="\u659c\u4f53" alt="\u659c\u4f53"></div>':"";a+=e_underline?'<div onclick="javascript:'+this.id+'.setStyle(\'underline\');" onMouseOut="e_swapImgRestore()" onMouseOver="e_swapImage(\'underline\',\'\',\'http://img1.kaixin001.com.cn/js/webeditor/i/e7_1.gif\',0)"><img src="http://img1.kaixin001.com.cn/js/webeditor/i/e7_1.gif" name="underline" border="0" title="\u4e0b\u5212\u7ebf" alt="\u4e0b\u5212\u7ebf"></div>':
"";a+=e_JustifyLeft?'<div onclick="javascript:'+this.id+'.setStyle(\'JustifyLeft\');" onMouseOut="e_swapImgRestore()" onMouseOver="e_swapImage(\'JustifyLeft\',\'\',\'http://img1.kaixin001.com.cn/js/webeditor/i/ee1_1.gif\',0)"><img src="http://img1.kaixin001.com.cn/js/webeditor/i/ee1_1.gif" name="JustifyLeft" border="0" title="\u5de6\u5bf9\u9f50" alt="\u5de6\u5bf9\u9f50"></div>':"";a+=e_JustifyCenter?'<div onclick="javascript:'+this.id+'.setStyle(\'JustifyCenter\');" onMouseOut="e_swapImgRestore()" onMouseOver="e_swapImage(\'JustifyCenter\',\'\',\'http://img1.kaixin001.com.cn/js/webeditor/i/ee2_1.gif\',0)"><img src="http://img1.kaixin001.com.cn/js/webeditor/i/ee2_1.gif" name="JustifyCenter" border="0" title="\u5c45\u4e2d" alt="\u5c45\u4e2d"></div>':
"";a+=e_JustifyRight?'<div onclick="javascript:'+this.id+'.setStyle(\'JustifyRight\');" onMouseOut="e_swapImgRestore()" onMouseOver="e_swapImage(\'JustifyRight\',\'\',\'http://img1.kaixin001.com.cn/js/webeditor/i/ee3_1.gif\',0)"><img src="http://img1.kaixin001.com.cn/js/webeditor/i/ee3_1.gif" name="JustifyRight" border="0" title="\u53f3\u5bf9\u9f50" alt="\u53f3\u5bf9\u9f50"></div>':"";a+=e_InsertUnorderedList?'<div onclick="javascript:'+this.id+'.setStyle(\'InsertUnorderedList\');" onMouseOut="e_swapImgRestore()" onMouseOver="e_swapImage(\'InsertUnorderedList\',\'\',\'http://img1.kaixin001.com.cn/js/webeditor/i/ee4_1.gif\',0)"><img src="http://img1.kaixin001.com.cn/js/webeditor/i/ee4_1.gif" name="InsertUnorderedList" border="0" title="\u65e0\u5e8f\u5217\u8868" alt="\u65e0\u5e8f\u5217\u8868"></div>':
"";a+=e_InsertOrderedList?'<div onclick="javascript:'+this.id+'.setStyle(\'InsertOrderedList\');" onMouseOut="e_swapImgRestore()" onMouseOver="e_swapImage(\'InsertOrderedList\',\'\',\'http://img1.kaixin001.com.cn/js/webeditor/i/ee5_1.gif\',0)"><img src="http://img1.kaixin001.com.cn/js/webeditor/i/ee5_1.gif" name="InsertOrderedList" border="0" title="\u6709\u5e8f\u5217\u8868" alt="\u6709\u5e8f\u5217\u8868"></div>':"";a+=e_img?'<div id="'+this.id+'_image_icon" onclick="javascript:'+this.id+'.imagePanel();" onMouseOut="e_swapImgRestore()" onMouseOver="e_swapImage(\'image\',\'\',\'http://img1.kaixin001.com.cn/js/webeditor/i/e9_1.gif\',0)"><img src="http://img1.kaixin001.com.cn/js/webeditor/i/e9_1.gif" name="image" border="0" title="\u6dfb\u52a0\u56fe\u7247" alt="\u6dfb\u52a0\u56fe\u7247"></div>':
"";a+=e_media?'<div id="'+this.id+'_media_icon" onclick="javascript:'+this.id+".mediaPanel('"+this.id+'_btn_media\');" onMouseOut="e_swapImgRestore()" onMouseOver="e_swapImage(\'media\',\'\',\'http://img1.kaixin001.com.cn/js/webeditor/i/ea_1.gif\',0)"><img src="http://img1.kaixin001.com.cn/js/webeditor/i/ea_1.gif" name="media" border="0" title="\u6dfb\u52a0\u89c6\u9891" alt="\u6dfb\u52a0\u89c6\u9891"></div>':"";a+=e_audio?'<div id="'+this.id+'_audio_icon" onclick="javascript:'+this.id+".audioPanel('"+
this.id+'_btn_audio\');" onMouseOut="e_swapImgRestore()" onMouseOver="e_swapImage(\'audio\',\'\',\'http://img1.kaixin001.com.cn/js/webeditor/i/ed_1.gif?20100223\',0)"><img src="http://img1.kaixin001.com.cn/js/webeditor/i/ed_1.gif?20100223" name="audio" border="0" title="\u6dfb\u52a0\u97f3\u9891" alt="\u6dfb\u52a0\u97f3\u9891"></div>':"";a+=e_link?'<div id="'+this.id+'_link_icon" onclick="javascript:'+this.id+'.linkPanel();" onMouseOut="e_swapImgRestore()" onMouseOver="e_swapImage(\'link\',\'\',\'http://img1.kaixin001.com.cn/js/webeditor/i/eb_1.gif\',0)"><img src="http://img1.kaixin001.com.cn/js/webeditor/i/eb_1.gif" name="link" border="0" title="\u6dfb\u52a0\u94fe\u63a5" alt="\u6dfb\u52a0\u94fe\u63a5"></div>':
"";a+=e_GoogleMap?'<div id="'+this.id+'_googlemap_icon" onclick="javascript:'+this.id+'.googleMapPanel();" onMouseOut="e_swapImgRestore()" onMouseOver="e_swapImage(\'googlemap\',\'\',\'http://img1.kaixin001.com.cn/js/webeditor/i/map2.gif?20100305\',0)"><img src="http://img1.kaixin001.com.cn/js/webeditor/i/map2.gif?20100305" name="googlemap" border="0" title="\u6dfb\u52a0\u5730\u56fe" alt="\u6dfb\u52a0\u5730\u56fe"></div>':"";a+=e_media_tips?'<div id="'+this.id+'_mediatips_icon" onclick="javascript:'+
this.id+'.mediaTipsPanel();" onMouseOut="e_swapImgRestore()" onMouseOver="e_swapImage(\'mediatips\',\'\',\'http://img1.kaixin001.com.cn/js/webeditor/i/ea_1.gif\',0)"><img src="http://img1.kaixin001.com.cn/js/webeditor/i/ea_1.gif" name="mediatips" border="0" title="\u6dfb\u52a0\u89c6\u9891" alt="\u6dfb\u52a0\u89c6\u9891"></div>':"";a+=e_face?'<img class="l" id="'+this.id+'_face_icon" src="http://img1.kaixin001.com.cn/js/webeditor/i/ec_1.gif" name="face" border="0" title="\u8868\u60c5" alt="\u8868\u60c5">':
"";a+='<br class="c" /></div>';this.toolbar.innerHTML=a};webEditor.prototype.insertHTML=function(a){if(e_isIE){this.range||this.selectBegin();if(this.range&&this.seltype!="Control"){this.range.pasteHTML(a);this.range.select()}this.range=null}else{this.iframe.document.execCommand("insertHTML",false,a);this.iframe.focus()}};
webEditor.prototype.colorPanel=function(){this.selectBegin();if(this.$(this.id+"_forecolor"))this.removePanel(this.id+"_forecolor");else{var a=Array(Array("#333333","#000000","#993300","#333300","#003300","#003366","#000080","#333399"),Array("#808080","#800000","#ff6600","#808000","#008000","#008080","#0000ff","#666699"),Array("#999999","#ff0000","#ff9900","#99cc00","#339966","#33cccc","#3366ff","#800080"),Array("#c0c0c0","#ff00ff","#ffcc00","#ffff00","#00ff00","#00ffff","#00ccff","#993366"),Array("#ffffff",
"#ff99cc","#ffcc99","#ffff99","#ccffcc","#F4F9FD","#99ccff","#cc99ff")),c="";c+='<div class="e_d1" id="e3" onmouseleave="javascript:'+this.id+".autoClose('"+this.id+'_forecolor\')"><div class="e_d2"><div class="e_d3"><div class="e_d4"><div class="sk" >';for(i=0;i<5;i++)for(j=0;j<8;j++)c+='<div class="sk_of" onmouseover="this.className=\'sk_on\';" onmouseout="this.className=\'sk_of\';" onclick="javascript:'+this.id+".setStyle('forecolor' , '"+a[i][j]+'\');"><div class="sk_sk" style="background:'+a[i][j]+
';"></div></div>';c+='<div class="c"></div>  </div></div></div></div></div>';this.drawPanel(c,"forecolor")}};
webEditor.prototype.backcolorPanel=function(){this.selectBegin();if(this.$(this.id+"_backcolor"))this.removePanel(this.id+"_backcolor");else{var a=Array(Array("#000000","#cc0000","#ff0090","#993300","#333300","#003300","#000080","#666699"),Array("#666666","#ff0000","#ff00cc","#ff6600","#808000","#008000","#0000ff","#800080"),Array("#999999","#ff8080","#fc85c8","#ff9900","#99cc00","#339966","#3366ff","#993366"),Array("#cccccc","#fedbdb","#fdbaf0","#ffcc00","#ffff00","#00ff00","#00ccff","#cc99ff"),
Array("#ffffff","#fdeeee","#fbe2f6","#ffe9c7","#ffff99","#ccffcc","#bcdcfd","#ead8fc")),c="";c+='<div class="e_d1" id="e3" onmouseleave="javascript:'+this.id+".autoClose('"+this.id+'_backcolor\')"><div class="e_d2"><div class="e_d3"><div class="e_d4"><div class="sk">';for(i=0;i<5;i++)for(j=0;j<8;j++)c+='<div class="sk_of" onmouseover="this.className=\'sk_on\';" onmouseout="this.className=\'sk_of\';" onclick="javascript:'+this.id+".setStyle('backcolor' , '"+a[i][j]+'\');"><div class="sk_sk" style="background:'+
a[i][j]+';"></div></div>';c+='<div class="c"></div>  </div></div></div></div></div>';this.drawPanel(c,"backcolor")}};
webEditor.prototype.linkPanel=function(){this.selectBegin();if(this.$(this.id+"_link"))this.removePanel(this.id+"_link");else{lContent="";lContent+='<div class="e_d1" id="eb">\n';lContent+='<div class="e_d2">\n';lContent+='<div class="e_d3">\n';lContent+='<div class="e_d4">\n';lContent+="<div>\u8bf7\u8f93\u5165\u9009\u62e9\u6587\u5b57\u7684\u94fe\u63a5\u5730\u5740</div>\n";lContent+='<div><span class="it_s"><input id="'+this.id+'_link_input" type="text" value="http://" style="width:200px;" class="it1" onfocus="this.className=\'it2\';" onblur="this.className=\'it1\';" /></span></div>\n';
lContent+='<div class="e_d5" style="width:100%">\n';lContent+='<span class="e_d51"><input type="button" id="btn_qd" value="\u786e\u5b9a" title="\u786e\u5b9a" class="e_d51_of" onmouseover="this.className=\'e_d51_on\';" onmouseout="this.className=\'e_d51_of\';" onclick="javascript:'+this.id+'.insLink();" /></span>\n';lContent+='&nbsp;<span class="e_d52"><input type="button" id="btn_qx" value="\u53d6\u6d88" title="\u53d6\u6d88" class="e_d52_of" onmouseover="this.className=\'e_d52_on\';" onmouseout="this.className=\'e_d52_of\';" onclick="javascript:'+
this.id+".removePanel('"+this.id+"_link');\" /></span>\n";lContent+="</div>\n";lContent+="</div>\n";lContent+="</div>\n";lContent+="</div>\n";lContent+="</div>\n";this.drawPanel(lContent,"link")}};
webEditor.prototype.googleMapPanel=function(){this.selectBegin();if(this.$(this.id+"_googlemap"))this.removePanel(this.id+"_googlemap");else{lContent="";lContent+='<div class="e_d1" id="eb_gm" style="width:470px;">\n';lContent+='<div class="e_d2">\n';lContent+='<div class="e_d3">\n';lContent+='<div class="e_d4">\n';lContent+='<div>\u8bf7\u5728Google\u5730\u56fe\u53f3\u4e0a\u89d2<span style="background:rgb(229,235,249); padding:2px; margin:0 2px; "><a href="javascript:;" style="color:#3366CC; cursor:default;">\u5206\u4eab\u94fe\u63a5</a></span>\u7684\u5f39\u51fa\u7a97\u53e3\u4e2d\u590d\u5236\u76f8\u5e94\u7684\u4ee3\u7801\u5230\u4ee5\u4e0b\u8f93\u5165\u6846 <a href="/s/help_note.html#q12" class="c9" target="_blank"><img src="http://img1.kaixin001.com.cn/i/help/help_icon.gif" style="margin-top:-3px;*margin-top:0px;" align="absmiddle" title="\u5982\u4f55\u6dfb\u52a0google\u5730\u56fe" /></a></div>\n';
lContent+='<div style="padding-top:2px;"><span class="it_s"><input id="'+this.id+'_googlemap_input" type="text" value="" style="width:416px;" class="it1" onfocus="this.className=\'it2\';" onblur="this.className=\'it1\';" /></span></div>\n';lContent+='<div class="e_d5" style="width:426px;">\n';lContent+='<span class="e_d51"><input type="button" id="btn_qd" value="\u786e\u5b9a" title="\u786e\u5b9a" class="e_d51_of" onmouseover="this.className=\'e_d51_on\';" onmouseout="this.className=\'e_d51_of\';" onclick="javascript:'+
this.id+'.insGoogleIframe();" /></span>\n';lContent+='&nbsp;<span class="e_d52"><input type="button" id="btn_qx" value="\u53d6\u6d88" title="\u53d6\u6d88" class="e_d52_of" onmouseover="this.className=\'e_d52_on\';" onmouseout="this.className=\'e_d52_of\';" onclick="javascript:'+this.id+".removePanel('"+this.id+"_googlemap');\" /></span>\n";lContent+="</div>\n";lContent+="</div>\n";lContent+="</div>\n";lContent+="</div>\n";lContent+="</div>\n";this.drawPanel_2(lContent,"googlemap",{left:-50})}};
webEditor.prototype.mediaTipsPanel=function(){if(this.$(this.id+"_mediatips"))this.removePanel(this.id+"_mediatips");else{lContent="";lContent+='<div class="e_d1" id="eb_gm" style="width:250px;">\n';lContent+='<div class="e_d2">\n';lContent+='<div class="e_d3">\n';lContent+='<div class="e_d4">\n';lContent+='<div style="padding: 4px 2px;line-height:22px">\u5982\u679c\u4f60\u8981\u8f6c\u5e16\u571f\u8c46\u3001\u4f18\u9177\u3001\u91776\u7b49\u89c6\u9891<br />\u8bf7\u76f4\u63a5\u5c06\u8be5\u89c6\u9891\u7684\u7f51\u5740\u7c98\u8d34\u5230\u201c<b class="sl">\u539f\u5e16\u7f51\u5740</b>\u201d\u8f93\u5165\u6846</div>';
lContent+='<div class="e_d5" style="width:100%;">\n';lContent+='<span class="e_d51"><input type="button" id="btn_qd" value="\u786e\u5b9a" title="\u786e\u5b9a" class="e_d51_of" onmouseover="this.className=\'e_d51_on\';" onmouseout="this.className=\'e_d51_of\';" onclick="javascript:'+this.id+".removePanel('"+this.id+"_mediatips');\" /></span>\n";lContent+="</div>\n";lContent+="</div>\n";lContent+="</div>\n";lContent+="</div>\n";lContent+="</div>\n";this.drawPanel_2(lContent,"mediatips",{})}};
webEditor.prototype.drawPanel_2=function(a,c,b){b=b||{};b.left=parseInt(b.left||0);var d=this.id+"_"+c;this.openPanel!=""&&this.removePanel(this.openPanel);this.openPanel=d;tdiv=document.createElement("div");tdiv.id=d;tdiv.innerHTML=a;tdiv.style.display="block";tdiv.style.position="absolute";a=this.id+"_"+c+"_icon";c=a==""?this.$(this.id+"_eid"):this.$(a);c=b_getAbsolutePos(c);tdiv.style.top=(a==""?c.top:c.top+28)+"px";tdiv.style.left=c.left+1+b.left+"px";document.body.appendChild(tdiv);tdiv.focus()};
webEditor.prototype.verifyurl=function(a,c,b){new Ajax.Request("/interface/verifyurl.php",{method:"post",parameters:"url="+c,onComplete:function(d){webEditor.prototype.verifyurlComplete(a,d,c,b)}})};
webEditor.prototype.verifyurlComplete=function(a,c,b,d){if(c.responseText!="true")if(!window.confirm(d=="insAudio"?"\u60a8\u8f93\u5165\u7684\u97f3\u9891\u6587\u4ef6\u5730\u5740\uff1a["+b+"]\u53ef\u80fd\u6709\u8bef\u3002\n\u60a8\u786e\u5b9a\u8981\u8f93\u5165\u6b64\u5730\u5740\u5417\uff1f":"\u60a8\u8f93\u5165\u7684\u94fe\u63a5\u5730\u5740\uff1a["+b+"]\u6709\u53ef\u80fd\u662f\u65e0\u6548\u5730\u5740\u3002\n\u60a8\u786e\u5b9a\u8981\u8f93\u5165\u6b64\u5730\u5740\u5417\uff1f"))return false;if(d=="insLink")this.insLink(a,
"true");else if(d=="insMedia")this.insMedia(a,"true");else if(d=="insAudio")this.insAudio(a,"true");else d=="insImage"&&this.insImage(a,"true")};webEditor.prototype.insSwfFromWeb=function(a,c){new Ajax.Request("/interface/getswffromweb.php",{method:"post",parameters:"url="+c,onComplete:function(b){webEditor.prototype.insSwfFromWebComplete(a,c,b)}})};
webEditor.prototype.insSwfFromWebComplete=function(a,c,b){mediahtml="";if(b.responseText==""||b.responseText.indexOf("Warning")>=0){if(window.confirm("\u60a8\u8f93\u5165\u7684\u94fe\u63a5\u5730\u5740\uff1a["+c+"]\u6709\u53ef\u80fd\u662f\u65e0\u6548\u5730\u5740\u3002\n\u60a8\u786e\u5b9a\u8981\u8f93\u5165\u6b64\u5730\u5740\u5417\uff1f"))mediahtml='<a href="'+c+'" target="_blank">'+c+"</a>"}else mediahtml=b.responseText;mediahtml!=""&&a.insertHTML(mediahtml);a.removePanel(a.id+"_media")};
webEditor.prototype.insLink=function(a,c){if(c!="true"){var b=this.$(this.id+"_link_input");b.value!="http://"&&b.value!=""?this.verifyurl(this,b.value,"insLink"):this.removePanel(this.id+"_link");return false}b=a.$(a.id+"_link_input");var d="";d+='<a href="'+b.value+'" target="_blank">';d+=e_isIE?a.range&&a.range.text!=""?a.range.text+"</a>":b.value+"</a>":a.iframe.getSelection()!=""?a.iframe.getSelection()+"</a>":b.value+"</a>";a.insertHTML(d);a.removePanel(a.id+"_link")};
webEditor.prototype.insGoogleIframe=function(a){a=a||this;var c="";c=a.$(a.id+"_googlemap_input").value;c=c.replace(/<iframe/ig,'<iframe style="border:1px solid gray; display:block;"');a.insertHTML('<div style="display:block">'+c+"</div>");a.removePanel(a.id+"_googlemap")};function showpicdlg(a){openWindow("/interface/getmypic.php?instance="+a,570,480,"\u9009\u62e9\u7167\u7247")}
function showgrppicdlg(a){openWindow("/interface/getgrppic.php?gid="+g_gid+"&instance="+a,570,480,"\u9009\u62e9\u7fa4\u76f8\u518c\u7167\u7247")}
webEditor.prototype.imagePanel=function(){this.selectBegin();if(this.$(this.id+"_image"))this.removePanel(this.id+"_image");else{iContent="";iContent+='<div class="e_d1" id="e9">\n';iContent+='<div class="e_d2">\n';iContent+='<div class="e_d3">\n';iContent+='<div class="e_d4">\n';if(e_internetimg){iContent+='<div>\u65b9\u6cd51\uff1a\u5f15\u7528\u4e92\u8054\u7f51\u4e0a\u7684\u56fe\u7247&nbsp;<a target="_blank" href="/s/help_note.html#q3"><img src="http://img1.kaixin001.com.cn/i/help/help_icon.gif" style="margin-top:-3px;*margin-top:0px;" align="absmiddle" title="\u5982\u4f55\u5f15\u7528\u4e92\u8054\u7f51\u4e0a\u7684\u56fe\u7247" /></a></div>\n';iContent+=
'<div  style="margin-top:3px;"><span class="it_s"><input id="'+this.id+'_i_link" type="text" value="http://" style="width:200px;" class="it1" onfocus="this.className=\'it2\';" onblur="this.className=\'it1\';" /></span></div>\n'}else{iContent+='<div style="display:none;">\u65b9\u6cd51\uff1a\u5f15\u7528\u4e92\u8054\u7f51\u4e0a\u7684\u56fe\u7247&nbsp;<a target="_blank" href="/s/help_note.html#q3"><img src="http://img1.kaixin001.com.cn/i/help/help_icon.gif" style="margin-top:-3px;*margin-top:0px;" align="absmiddle" title="\u5982\u4f55\u5f15\u7528\u4e92\u8054\u7f51\u4e0a\u7684\u56fe\u7247" /></a></div>\n';
iContent+='<div  style="margin-top:3px;display:none;"><span class="it_s"><input id="'+this.id+'_i_link" type="text" value ="http://" style="width:200px;" class="it1" onfocus="this.className=\'it2\';" onblur="this.className=\'it1\';" /></span></div>\n'}if(e_uploadimg){iContent+=e_internetimg?'<div class="e_d43">\u65b9\u6cd52\uff1a\u4e0a\u4f20\u7535\u8111\u91cc\u7684\u56fe\u7247</div>\n':'<div class="e_d43">\u4e0a\u4f20\u7535\u8111\u91cc\u7684\u56fe\u7247</div>\n';iContent+="<div><form name="+this.id+
'_i_file_form action=/interface/getimg.php method=post enctype="multipart/form-data" target="'+this.id+'_i_file_frame"><input id="'+this.id+'_i_file" type="file" name=img class="it5" /><input type=hidden name=instance value="'+this.id+'"></form><iframe id='+this.id+"_i_file_frame name="+this.id+'_i_file_frame style="display:none;"></iframe></div>\n'}if(e_piclink)iContent+='<div class="mt10">\u65b9\u6cd53\uff1a<a class="sl" href="#" onclick="showpicdlg(\''+this.id+"');return false;\">\u63d2\u5165\u4f60\u76f8\u518c\u7684\u7167\u7247</a></div>";
if(e_grppiclink)iContent+='<div class="mt10">\u65b9\u6cd53\uff1a<a class="sl" href="#" onclick="showgrppicdlg(\''+this.id+"');return false;\">\u63d2\u5165\u7fa4\u76f8\u518c\u7167\u7247</a></div>";iContent+='<div class="e_d5" style="width:100%">\n';iContent+='<span class="e_d51"><input type="button" id="btn_qd" value="\u786e\u5b9a" title="\u786e\u5b9a" class="e_d51_of" onmouseover="this.className=\'e_d51_on\';" onmouseout="this.className=\'e_d51_of\';" onclick="javascript:'+this.id+'.insImage();" /></span>\n';
iContent+='&nbsp;<span class="e_d52"><input type="button" id="btn_qx" value="\u53d6\u6d88" title="\u53d6\u6d88" class="e_d52_of" onmouseover="this.className=\'e_d52_on\';" onmouseout="this.className=\'e_d52_of\';" onclick="javascript:'+this.id+".removePanel('"+this.id+"_image');\" /></span>\n";iContent+="</div>\n";iContent+="</div>\n";iContent+="</div>\n";iContent+="</div>\n";iContent+="</div>\n";this.drawPanel(iContent,"image")}};
webEditor.prototype.showerror=function(a,c){alert(c);this.removePanel(this.id+"_image")};webEditor.prototype.uploadComplete=function(a){if(a.indexOf("/upload/")>=0)this.uploadfile+=a+",";this.insertHTML("<img src='"+a+"'>");this.removePanel(this.id+"_image")};webEditor.prototype.selectPicComplete=function(a){this.picfile+=a+",";this.insertHTML("<img src='"+a+"'>");this.removePanel(this.id+"_image")};
webEditor.prototype.selectGrpPicComplete=function(a){this.grppicfile+=a+",";this.insertHTML("<img src='"+a+"'>");this.removePanel(this.id+"_image")};
webEditor.prototype.insImage=function(a,c){if(c!="true"){var b=this.$(this.id+"_i_link");b.value!="http://"&&b.value!=""&&this.seltype!="Control"?this.verifyurl(this,b.value,"insImage"):this.insImage(this,"true");return false}b=a.$(a.id+"_i_link");b.value!="http://"&&b.value!=""&&a.seltype!="Control"&&a.insertHTML("<img src='"+b.value+"'>");if((b=a.$(a.id+"_i_file"))&&b.value.length!=0){b=b.value.split(".");suffix=b[b.length-1].toLowerCase();if(suffix!="gif"&&suffix!="png"&&suffix!="jpg"&&suffix!=
"jpeg"&&suffix!="pjpeg"&&suffix!="bmp")alert("\u8bf7\u9009\u62e9gif/png/jpg/bmp\u7c7b\u578b\u7684\u56fe\u7247");else try{eval("document."+a.id+"_i_file_form.submit()")}catch(d){alert("\u8bf7\u9009\u62e9\u6b63\u786e\u7684\u6587\u4ef6\u3002")}}else a.removePanel(a.id+"_image")};
webEditor.prototype.mediaPanel=function(){this.selectBegin();if(this.$(this.id+"_media"))this.removePanel(this.id+"_media");else{var a="";a+='<div class="e_d1" id="ea">';a+='<div class="e_d2">';a+='<div class="e_d3">';a+='<div class="e_d4">';a+='<div class="mt5">\u65b9\u6cd51\uff1a\u7c98\u8d34\u89c6\u9891\u6e90\u6587\u4ef6\u5730\u5740(Flash\u5730\u5740) <a href="/s/help_note.html#q11" class="c9" target="_blank"><img src="http://img1.kaixin001.com.cn/i/help/help_icon.gif" style="margin-top:-3px;*margin-top:0px;" align="absmiddle" title="\u5982\u4f55\u7c98\u8d34\u89c6\u9891" /></a></div>';
a+='<div><span class="it_s"><input id="'+this.id+'_m_link" type="text" value="http://" style="width:230px;" class="it1" onfocus="this.className=\'it2\';" onblur="this.className=\'it1\';" /></span></div>';a+='<div class="mt15">\u65b9\u6cd52\uff1a\u7c98\u8d34\u89c6\u9891\u7f51\u9875\u5730\u5740(<a href="/s/help_note.html#q10" class="sl" target="_blank">\u67e5\u770b\u652f\u6301\u7f51\u7ad9</a>)</div>';a+='<div><span class="it_s"><input id="'+this.id+'_m_link_web" type="text" value="http://" style="width:230px;" class="it1" onfocus="this.className=\'it2\';" onblur="this.className=\'it1\';" /></span></div>';
a+='<div class="e_d5" style="width:100%">';a+='<span class="e_d51"><input type="button" id="btn_qd" value="\u786e\u5b9a" title="\u786e\u5b9a" class="e_d51_of" onmouseover="this.className=\'e_d51_on\';" onmouseout="this.className=\'e_d51_of\';" onclick="javascript:'+this.id+'.insMedia();" /></span>\n';a+='&nbsp;<span class="e_d52"><input type="button" id="btn_qx" value="\u53d6\u6d88" title="\u53d6\u6d88" class="e_d52_of" onmouseover="this.className=\'e_d52_on\';" onmouseout="this.className=\'e_d52_of\';" onclick="javascript:'+
this.id+".removePanel('"+this.id+"_media');\" /></span>";a+="</div>";a+="</div>";a+="</div>";a+="</div>";a+="</div>";a+='<br clear="all" /><br clear="all" />';this.drawPanel(a,"media")}};
webEditor.prototype.audioPanel=function(){this.selectBegin();if(this.$(this.id+"_audio"))this.removePanel(this.id+"_audio");else{var a="";a+='<div class="e_d1" id="ea">';a+='<div class="e_d2">';a+='<div class="e_d3">';a+='<div class="e_d4">';a+='<div class="mt5">\u8bf7\u7c98\u8d34\u97f3\u9891\u6e90\u6587\u4ef6\u7684\u5730\u5740</div>';a+='<div><span class="it_s"><input id="'+this.id+'_m_link" type="text" value="http://" style="width:230px;" class="it1" onfocus="this.className=\'it2\';" onblur="this.className=\'it1\';" /></span></div>';
a+='<div class="e_d5" style="width:100%">';a+='<span class="e_d51"><input type="button" id="btn_qd" value="\u786e\u5b9a" title="\u786e\u5b9a" class="e_d51_of" onmouseover="this.className=\'e_d51_on\';" onmouseout="this.className=\'e_d51_of\';" onclick="javascript:'+this.id+'.insAudio();" /></span>\n';a+='&nbsp;<span class="e_d52"><input type="button" id="btn_qx" value="\u53d6\u6d88" title="\u53d6\u6d88" class="e_d52_of" onmouseover="this.className=\'e_d52_on\';" onmouseout="this.className=\'e_d52_of\';" onclick="javascript:'+
this.id+".removePanel('"+this.id+"_audio');\" /></span>";a+="</div>";a+="</div>";a+="</div>";a+="</div>";a+="</div>";a+='<br clear="all" /><br clear="all" />';this.drawPanel(a,"audio")}};
webEditor.prototype.insMedia=function(a,c){if(c!="true"){var b=this.$(this.id+"_m_link").value;b!="http://"&&b!=""?this.verifyurl(this,b,"insMedia"):this.insMedia(this,"true");return false}b=a.$(a.id+"_m_link").value;var d=a.$(a.id+"_m_link_web").value;if(b!="http://"&&b!=""){var e=b.split(".");e=e[e.length-1].toLowerCase();var f=384,g=454;if(e=="mp3"||e=="wma"||e=="midi"){f=45;g=Math.ceil(this.width*0.7)}a.insertHTML('<EMBED style="DISPLAY: block; MARGIN: 0px auto 10px; TEXT-ALIGN: center" src='+
b+" width="+g+" height="+f+' autostart="false" loop="false" wmode="transparent" />')}d!="http://"&&d!=""?a.insSwfFromWeb(a,d):a.removePanel(a.id+"_media")};
webEditor.prototype.insAudio=function(a,c){if(c!="true"){var b=this.$(this.id+"_m_link").value,d=b.split(".");d=d[d.length-1].toLowerCase();if(d!="mp3"&&d!="wma"&&d!="wav"&&d!="mid"){alert("\u97f3\u9891\u683c\u5f0f\u9519\u8bef\uff0c\u6216\u4e0d\u652f\u6301\u6b64\u97f3\u9891\u683c\u5f0f["+d+"]");return false}if(b!="http://"&&b!=""){if(b.indexOf("://")<0)b="http://"+b;this.verifyurl(this,b,"insAudio")}else this.removePanel(this.id+"_audio");return false}b=a.$(a.id+"_m_link").value;d=b.split(".");d[d.length-
1].toLowerCase();if(b.indexOf("://")<0)b="http://"+b;a.insertHTML('<img title="'+b+'" src="http://img1.kaixin001.com.cn/js/webeditor/i/fake_m_player.gif" />');a.removePanel(a.id+"_audio")};
webEditor.prototype.fontPanel=function(){this.selectBegin();if(this.$(this.id+"_fontname"))this.removePanel(this.id+"_fontname");else{var a=Array("\u5b8b\u4f53","\u9ed1\u4f53","\u6977\u4f53_GB2312","\u96b6\u4e66","\u5e7c\u5706","Arial","Tahoma","Times New Roman","Courier New","Sans-serif","Verdana");fContent="";fContent+='<div class="e_d1" id="e1" onmouseleave="javascript:'+this.id+".autoClose('"+this.id+"_fontname');\">";fContent+='<div class="e_d2">';fContent+='<div class="e_d3">';for(i=0;i<a.length;i++)fContent+=
'<div class="e_of" onmouseover="this.className=\'e_on\';" onmouseout="this.className=\'e_of\';" style="font-family:\''+a[i]+'\';" onclick="javascript:'+this.id+".setStyle('fontname', '"+a[i]+"');\">"+a[i]+"</div>";fContent+="</div>";fContent+="</div>";fContent+="</div>";this.drawPanel(fContent,"fontname")}};
webEditor.prototype.setStyle=function(a,c){if(e_isIE){this.range||this.selectBegin();if(this.range&&this.seltype!="Control"&&this.range.text!=""){this.range.execCommand(a,false,c);this.range.select()}else this.iframe.document.execCommand(a,false,c);this.range=null}else{var b=a;if(b=="backcolor")b="hilitecolor";this.iframe.document.execCommand(b,false,c);this.iframe.focus()}this.$(this.id+"_"+a)&&this.removePanel(this.id+"_"+a)};
webEditor.prototype.fontsizePanel=function(){this.selectBegin();if(this.$(this.id+"_fontsize"))this.removePanel(this.id+"_fontsize");else{var a=Array("10","14","16","18","24","32","48");fContent="";fContent+='<div class="e_d1" onmouseleave="javascript:'+this.id+".autoClose('"+this.id+"_fontsize')\">\n";fContent+="<table border=0 cellpadding=0 cellspacing=0><tr><td>";fContent+='<div class="e_d2">\n';fContent+='<div class="e_d3">\n';for(i=0;i<a.length;i++)fContent+='<div class="e_of" onmouseover="this.className=\'e_on\';" onmouseout="this.className=\'e_of\';" onclick="javascript:'+
this.id+".setStyle('fontsize','"+(i+1)+"');\">"+a[i]+"px</div>\n";fContent+="</div>\n";fContent+="</div>\n";fContent+="</td></tr></table>\n";fContent+="</div>\n";this.drawPanel(fContent,"fontsize")}};
function b_getAbsolutePos(a){if(arguments.length!=1||a==null)return null;for(var c=a,b=c.offsetTop,d=c.offsetLeft,e=c.offsetWidth,f=c.offsetHeight;c=c.offsetParent;){if(c.style.position=="absolute"||c.style.overflow!="visible"&&c.style.overflow!="")break;b+=c.offsetTop;d+=c.offsetLeft}return{top:b,left:d,right:e+d,bottom:f+b}};

(function(f){var g=function(a){this.element=a},h={editors:{},register:function(a,b){this.editors[a]=b},active:function(a){!a in this.editors||$j.each(this.editors,function(b,c){b!=a&&c()})}};g.prototype={init:function(a){this._uniqid=K.uniqueId("liteeditor_");if(a=="fromgroup"){this._active=false;return this}if(a=="record"){this._textarea=this.element.find("textarea:first");this.bind("focus",$j.proxy(this._onFocusin,this));this.bind("click keydown keyup",$j.proxy(this._selectBegin,this));this._textarea.mousedown(function(b){b.stopPropagation()});
this._active=false;return this}this._textarea=this.element.find("textarea:first");if(!this._textarea.length)this._textarea=$j('<textarea name="'+this._uniqid+'"></textarea>').appendTo(this.element);this._textarea.attr("name")||this._textarea.attr("name",this._uniqid);this.bind("focus",$j.proxy(this._onFocusin,this));this.bind("click keydown keyup",$j.proxy(this._selectBegin,this));this._textarea.mousedown(function(b){b.stopPropagation()});this._active=false;return this},setAutoClose:function(a){h.register(this._uniqid,
a)},_selectBegin:function(){if($j.browser.msie)this._range=document.selection.createRange()},bindClick:function(){$j("body").one("mousedown."+this._unqiqid,$j.proxy(this._onFocusout,this))},unbindClick:function(){},insertFaceUtil:function(a){var b=this.getTextarea(),c=b.scrollTop();if($j.browser.msie){this.focus();if(!b.val().length||!this._range)this._selectBegin();this._range.text+=a;this._range.select();this._selectBegin()}else{var d=b[0].selectionStart,e=b.val().substring(0,d);d=b.val().substring(d);
b.val(e+a+d);b[0].focus();a=(e+a).length;b[0].setSelectionRange(a,a)}b.scrollTop(c)},bindAtButton:function(a){var b=this;a.unbind("click");a.click(function(c){c.stopPropagation();c.preventDefault();b.insertFaceUtil("@");b.hideFacePanel();Kx.SuggestionPanel&&clearTimeout(Kx.SuggestionPanel.hideTimer)})},bindFacePanel:function(a,b){if(this.face){clearTimeout(this.face._autohide_timer);return this}var c;if(c=typeof a=="string"?$j("#"+a):$j(a).first()){var d=this,e;K.App().define(function(j){j.async("apps/common/MFacePanel",
function(k){e=new k(c,"text",b||"");e.init(d,"face_");d.face=e},d)})}if(e)this.face=e;return this},hideFacePanel:function(){this.face&&this.face.hidePanel()},getFace:function(){return this.face},tip:function(a){if(a.length){this._textarea.attr("tip",a);this._textarea.val()==""&&this._textarea.val(a)}},_onFocusin:function(){var a=this._textarea.attr("tip");if(a&&this._textarea.val()==a){this._textarea.trigger("active");this.active()}},isActive:function(){return this._active},active:function(){this._textarea.val("");
this.bindClick();h.active(this._uniqid);this._textarea.focus();this._active=true;return this},deactive:function(){this._textarea.val(this._textarea.attr("tip"));this.hideFacePanel();Kx.SuggestionPanel&&Kx.SuggestionPanel.hide();this.unbindClick();this._active=false;return this},_onFocusout:function(a){if(a&&a.target){a=$j(a.target);if(a.attr("name")=="comment")return;if(a.hasClass("u_avatar")||a.parent().hasClass("u_avatar"))return}this._textarea.attr("tip");if(""==this._textarea.val()&&this._textarea.attr("tip")){this._textarea.val("");
this._textarea.trigger("deactive");this.deactive()}else this.bindClick()},bind:function(a,b){this._textarea.bind(a,b);return this},focus:function(){this._textarea.focus();return this},blur:function(){this._textarea.blur();return this},setContent:function(a){this._textarea.val(a);return this},getContent:function(){return this._textarea?this._textarea.val():""},getHtml:function(){return this.getContent()},getTextType:function(){return"plain"},getTextarea:function(){return this._textarea},getFocus:function(){this.focus()},
isEmpty:function(){return this.getHtml().gsub("&nbsp;","").strip().length==0}};var i=function(a,b){var c;c=typeof a=="string"?$j("#"+a):$j(a).first();if(c.data("__liteeditor__"))return c.data("__liteeditor__");else{this.from=b||"";var d=(new g(c)).init(this.from);if(this.from=="fromgroup")return d;c.data("__liteeditor__",d);return d}};i.reset=function(){h.editors={}};f.Editor=g;f.liteEditor=i;f.liteFace=function(a){this.element=a}})(typeof window==="undefined"?this:window);

var g_commentvuid="0",g_commentouid="0",g_commenttype="0",g_commentid="0",g_recentcomment="",g_commenttypetext="\u8bc4\u8bba",g_commenttitle="",g_is_privacy_pwd="0",g_delrefresh="0",g_threaddata=null,g_comment_show_type="single",g_homedir="home",e_bold=false,e_italic=false,e_underline=false,e_font=false,e_fontsize=false,e_color=false,e_img=false,e_link=false,e_media=false,g_viewmode="",g3_commentvuid=0,g3_commentisadmin=0,g3_commenttype=0,g3_commentid=0,g3_commentgid=0,g3_recentcomment="",c4_g_commentouid=
0,c4_g_commentvuid=0,c4_g_mainthreaddata=null,c4_g_threaddata=null,g_app_showing_uid=0,g_app_showing_id=0,g_app_uinfo={},g_app_news_showing_aid=0,g_app_news_showing_uid=0,g_app_news_showing_id=0,g_app_news_showing_cid=0,g_app_news_showing_rid=0,g_app_news_reply_cid=0,news_comment_editor=null,g_news_commenttypetext="\u8bc4\u8bba",g_news_commenttitle="",g_news_commentvuid=0,g_news_commentouid=0,g_news_commenttype=0,g_news_commentid=0,g_news_recentcomment="";
function initComment(a,b,c,d){g_commentvuid=a;g_commentouid=b;g_commenttype=c;g_commentid=d;if(g_commenttype=="0")g_commenttypetext="\u7559\u8a00"};

window.Kx.Env.vuid=window.g_im_vuid||null;
(function(){var h=window.Kx,g=window.jQuery;h.Utils={writeLog:function(a,b,c,e){e||(e=function(){});a={type:a,touid:b,key:c};b==""&&delete a.touid;g.post("/interface/s.php",a,e)},writeLog2:function(a,b){b||(b=function(){});g.post("/interface/statLog2.php",{key:a},b)},writeLog3:function(a,b,c,e){e||(e=function(){});c||(c="");a&&b&&g.post("/interface/c3.php",{id:a,name:b,url:c},e)},body:function(){var a={},b;g(document.body).bind("click",function(){for(var c in a)if(a.hasOwnProperty(c))if(b=a[c])g.isFunction(b)?
b():g(a[c]).hide()});return{addCloseObject:function(c,e){a[c]=e},removeCloseObject:function(c){a[c]&&delete a[c]}}}(),createId:function(){var a=1;return function(){return a++}}(),getCookie:function(a){var b=document.cookie.split(";");a=g.trim(a);for(var c,e=0,d=b.length;e<d;e++){c=g.trim(b[e]);if(c.indexOf(a)==0)return c.substring(a.length+1)}return""},countString:function(a){var b=0;a=a.replace(/\s+/g," ");for(var c=a.length-1;c>=0;c--)a.charCodeAt(c)>127?b++:b+=0.5;return Math.ceil(b)},getHTMLSubStr:function(a,
b){var c,e,d,f,i=g("<div></div>").html(a).get(0).childNodes,k=i.length,j="";if(k===1&&i[0].nodeType===1)i=i[0].childNodes;k=i.length;for(c=0;c<k;c++){d=i[c];f=d.nodeType;e=f===1?g(d).text():f===3?g("<div></div>").html(d.cloneNode(true)).get(0).innerHTML:"";textLength=f===1&&d.tagName.toLowerCase()==="img"?3:h.Utils.countString(e)*2;if(b>textLength){j+=f===1?g("<div></div>").append(g(d).clone()).html():e;b-=textLength}else{if(f===3)j+=h.Utils.substr(e,b);break}}return j},splitString:function(a,b){for(var c=
0,e=false,d=[],f=0,i=a.length;f<i;f++){a.charCodeAt(f)>127?c+=1:c+=0.5;if(c>b){e=true;break}d.push(a.charAt(f))}return d.join("")+(e?"...":"")},setCursorPosition:function(a,b){a=g(a)[0];a.focus();if(a.createTextRange){var c=a.createTextRange();c.move("character",b);c.select()}else if(typeof a.selectionStart=="number"){a.selectionStart=b;a.selectionEnd=b}},getCursorPosition:function(a){var b=0;if(a.tagName.toLowerCase()==="body"&&window.getSelection){a=a.ownerDocument;var c=a.defaultView.getSelection();
b=a.createRange();b.setStart(a.body.firstChild,0);b.setEnd(c.focusNode,c.focusOffset);b=b.cloneContents();b=b.textContent?b.textContent.length:0}else if(document.selection){try{a.focus()}catch(e){return b}b=document.selection.createRange();a=a.createTextRange();c=a.duplicate();a.moveToBookmark(b.getBookmark());c.setEndPoint("EndToStart",a);b=c.text.length}else if(a.selectionStart||a.selectionStart=="0")b=a.selectionStart;return b},getCursorPosition_SE:function(a){a.focus();var b=0,c=0;if(typeof a.selectionStart==
"number"){b=a.selectionStart;c=a.selectionEnd}else if(document.selection){var e=document.selection.createRange();if(e.parentElement().id==a.id){var d=document.body.createTextRange();d.moveToElementText(a);for(b=0;d.compareEndPoints("StartToStart",e)<0;b++)d.moveStart("character",1);for(d=0;d<=b;d++)a.value.charAt(d)=="\n"&&b++;d=document.body.createTextRange();d.moveToElementText(a);for(c=0;d.compareEndPoints("StartToEnd",e)<0;c++)d.moveStart("character",1);for(d=0;d<=c;d++)a.value.charAt(d)=="\n"&&
c++}}return{start:b,end:c,text:""}},isHidden:function(a){a=g(a);return a.css("display")=="none"||a.css("visibility")=="hidden"},insertContent:function(a,b){a=g(a)[0];if(g.browser.msie){a.focus();document.selection.createRange().text=b}else{var c=a.selectionStart,e=a.value,d=e.substring(0,c);c=e.substring(c);a.focus();a.value=d+b+c;this.setCursorPosition(a,(d+b).length)}a.focus()},focusFirstInput:function(a){a=g(a).find(":input");for(var b=0,c=a.size();b<c;b++){var e=a.eq(b);if(e.css("display")!="none"&&
e.css("visibility")!="hidden")try{e[0].focus();break}catch(d){}}},wait:function(a,b){var c=setInterval(function(){if(a()){b();clearInterval(c)}},200)},timedChunk:function(a,b,c,e,d){if(!(a&&a instanceof Array&&a.length>0))return false;var f=a.concat();setTimeout(function(){var i=+new Date,k;do{k=d&&typeof d==="number"?f.splice(0,d):f.shift();b.call(c,k)}while(f.length>0&&+new Date-i<50);if(f.length>0)setTimeout(arguments.callee,25);else e&&e(a)},25)},substr:function(a,b){for(var c=0,e=[],d=0;d<b;d++){if(a.charCodeAt(c)<
0||a.charCodeAt(c)>255){d++;if(d>=b)break}e[d]=a.charAt(c);c++}return e.join("")},fixedChineseLength:function(){var a=false,b=0,c=function(){if(!a){a=true;var e=g(this),d=e.val(),f=h.Utils.substr(d,b*2);f!=d&&e.val(f);a=false}};return function(e,d){var f=g(e);b=d;g.browser.msie?f.unbind("propertychange.FixedChineseLength").bind("propertychange.FixedChineseLength",c):f.unbind("input.FixedChineseLength").bind("input.FixedChineseLength",c);f.unbind("paste.FixedChineseLength").bind("paste.FixedChineseLength",
c)}}(),bodyClickHideRegist:function(){var a=[],b=false;return function(c,e,d){if(!b){b=true;g(document.body).click(function(i){for(var k=0,j=a.length;k<j;k++)try{a[k](i)}catch(l){h.log("body click handler error ( Kx.js )")}})}var f=true;c=g(c);g(c).mouseover(function(){f=false}).mouseout(function(){f=true});a.push(function(i){if(f)if(i.target!==e){c.hide();d&&d()}})}}()}})();
(function(h,g){var a=[],b=false,c=g.jQuery;h.addOuterClick=function(e,d){if(!b){b=true;c(document.body).click(h.triggerOuterClick)}if(typeof d!=="function")d=function(){return true};a.push({condition:d,func:e})};h.triggerOuterClick=function(e){for(var d,f=a.concat();d=f.shift();)d.condition(e)&&d.func()}})(Kx,window);
(function(h){var g={},a=window.jQuery;h.publish=function(b,c){h.log("Kx.publish "+b);if(b in g){var e=g[b];e=a.map(e,function(d){if(typeof d!="function")return null;d.call(this,c);return d})}};h.subscribe=function(b,c,e){h.log("Kx.subscribe "+b);if(typeof e!="undefined")c=a.proxy(c,e);(g[b]||(g[b]=[])).push(c);return[b,c]};h.subscribeOnce=function(b,c,e){h.log("Kx.subscribeOnce "+b);if(typeof e!="undefined")c=a.proxy(c,e);var d=this.subscribe(b,a.proxy(function(){c.apply(this,arguments);this.unsubscribe(d)},
this))};h.unsubscribe=function(b){var c=b[0],e=b[1];h.log("Kx.unsubscribe: "+c);h.log(b);if(c in g){var d=g[c];a.each(d,function(f){if(e==this)d[f]=null})}};h.callbacks=g})(Kx);(function(h){h.log=function(){};h.debug=function(){}})(Kx,window);
(function(h){function g(b){var c;if(b&&b.constructor==Array&&b.length==3)return b;if(c=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(b))return[parseInt(c[1]),parseInt(c[2]),parseInt(c[3])];if(c=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(b))return[parseFloat(c[1])*2.55,parseFloat(c[2])*2.55,parseFloat(c[3])*2.55];if(c=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(b))return[parseInt(c[1],16),parseInt(c[2],
16),parseInt(c[3],16)];if(c=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(b))return[parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16),parseInt(c[3]+c[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(b))return a.transparent;return a[h.trim(b).toLowerCase()]}h.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(b,c){h.fx.step[c]=function(e){if(e.state==0){var d;d=e.elem;var f=c,i;do{i=h.curCSS(d,f);if(i!=""&&i!="transparent"||h.nodeName(d,
"body"))break;f="backgroundColor"}while(d=d.parentNode);d=g(i);e.start=d;e.end=g(e.end)}e.elem.style[c]="rgb("+[Math.max(Math.min(parseInt(e.pos*(e.end[0]-e.start[0])+e.start[0]),255),0),Math.max(Math.min(parseInt(e.pos*(e.end[1]-e.start[1])+e.start[1]),255),0),Math.max(Math.min(parseInt(e.pos*(e.end[2]-e.start[2])+e.start[2]),255),0)].join(",")+")"}});var a={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],
darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,
0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]}})(jQuery);
jQuery.fn.highlight=function(h,g){function a(b,c,e){var d=0;if(b.nodeType==3){var f=b.data.toUpperCase().indexOf(c);if(f>=0){var i=document.createElement("span");i.className="highlight";d=b.splitText(f);d.splitText(c.length);f=d.cloneNode(true);i.appendChild(f);d.parentNode.replaceChild(i,d);d=1;"function"==typeof e&&e(i,b,c)}}else if(b.nodeType==1&&b.childNodes&&!/(script|style)/i.test(b.tagName))for(i=0;i<b.childNodes.length;++i)i+=a(b.childNodes[i],c,e);return d}return this.each(function(){a(this,
h.toUpperCase(),g)})};jQuery.fn.removeHighlight=function(){return this.find("span.highlight").each(function(){with(this.parentNode){replaceChild(this.firstChild,this);normalize()}}).end()};
(function(){var h={version:"0.1.3"};if(typeof module!=="undefined"&&module.exports)module.exports=h;else this.doT=h;h.templateSettings={evaluate:/\{\{([\s\S]+?)\}\}/g,interpolate:/\{\{=([\s\S]+?)\}\}/g,encode:/\{\{!([\s\S]+?)\}\}/g,defines:/\{\{#([\s\S]+?)\}\}/g,varname:"it",strip:true};h.template=function(g,a){a=a||h.templateSettings;var b=("var out='"+(a.strip?g.replace(/\s*<!\[CDATA\[\s*|\s*\]\]>\s*|[\r\n\t]|(\/\*[\s\S]*?\*\/)/g,""):g).replace(a.defines,function(e,d){return eval(d.replace(/[\r\t\n]/g,
" "))}).replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(a.interpolate,function(e,d){return"';out+="+d.replace(/\\'/g,"'").replace(/\\\\/g,"\\").replace(/[\r\t\n]/g," ")+";out+='"}).replace(a.encode,function(e,d){return"';out+=("+d.replace(/\\'/g,"'").replace(/\\\\/g,"\\").replace(/[\r\t\n]/g," ")+").toString().replace(/&(?!\\w+;)/g, '&#38;').split('<').join('&#60;').split('>').join('&#62;').split('\"').join('&#34;').split(\"'\").join('&#39;').split('/').join('&#x2F;');out+='"}).replace(a.evaluate,
function(e,d){return"';"+d.replace(/\\'/g,"'").replace(/\\\\/g,"\\").replace(/[\r\t\n]/g," ")+"out+='"})+"';return out;").replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r").split("out+='';").join("").split('var out="";out+=').join("var out=");try{return new Function(a.varname,b)}catch(c){typeof console!=="undefined"&&console.log("Could not create a template function: "+b);throw c;}}})();
(function(h){function g(){var f=b(this);b(f.data(c)).css("display","none")}function a(){var f=this;setTimeout(function(){var i=b(f),k=i.position(),j=i.css("marginLeft"),l=i.css("marginTop");b(i.data(c)).css({top:k.top+"px",left:k.left+"px","margin-left":j,"margin-top":l,display:i.val()?"none":"block"})},200)}var b=h.jQuery,c="PLACEHOLDER-LABEL",e=false,d={labelClass:"placeholder"};h=document.createElement("input");if("placeholder"in h){b.fn.placeholder2=b.fn.unplaceholder2=function(){};h=null}else{h=
null;b.fn.placeholder2=function(f){if(!e){b(".PLACEHOLDER-INPUT").live("click",g).live("focusin",g).live("focusout",a);e=true}var i=b.extend(d,f);this.each(function(){var k=Math.random().toString(32).replace(/\./,""),j=b(this),l=b('<label style="position:absolute;display:none;top:0;left:0;cursor:text"></label>');if(!(!j.attr("placeholder")||j.data("PLACEHOLDER-INPUT")==="PLACEHOLDER-INPUT")){j.attr("id")||j.attr("id","input_"+k);l.attr("id",j.attr("id")+"_placeholder").data("PLACEHOLDER-INPUT","#"+
j.attr("id")).attr("for",j.attr("id")).addClass(i.labelClass).addClass(i.labelClass+"-for-"+this.tagName.toLowerCase()).addClass(c).text(j.attr("placeholder"));j.data(c,"#"+l.attr("id")).data("PLACEHOLDER-INPUT","PLACEHOLDER-INPUT").addClass("PLACEHOLDER-INPUT").after(l);g.call(this);a.call(this)}})};b.fn.unplaceholder2=function(){this.each(function(){var f=b(this),i=b(f.data(c));if(f.data("PLACEHOLDER-INPUT")==="PLACEHOLDER-INPUT"){i.remove();f.removeData("PLACEHOLDER-INPUT").removeData(c).removeClass("PLACEHOLDER-INPUT")}})}}})(window);

(function(){if(typeof window.Kx=="undefined")window.Kx={};window.Kx.namespace=function(a){if(!a||!a.length)return null;a=a.split(".");for(var b=Kx,c=a[0]=="Kx"?1:0;c<a.length;++c){b[a[c]]=b[a[c]]||{};b=b[a[c]]}return b};Kx.namespace("Browser");var u=navigator.userAgent.toLowerCase(),d=function(a){return a.test(u)},m=document,n=m.compatMode=="CSS1Compat",o=d(/opera/),p=d(/\bchrome\b/),q=d(/webkit/),j=!p&&d(/safari/),v=j&&d(/applewebkit\/4/),w=j&&d(/version\/3/),x=j&&d(/version\/4/),i=!o&&d(/msie/),
r=i&&d(/msie 7/),s=i&&d(/msie 8/),t=i&&!r&&!s,l=!q&&d(/gecko/),y=l&&d(/rv:1\.8/),z=l&&d(/rv:1\.9/),A=i&&!n,B=d(/windows|win32/),C=d(/macintosh|mac os x/),D=d(/adobeair/);d=d(/linux/);var E=/^https/i.test(window.location.protocol);if(t)try{m.execCommand("BackgroundImageCache",false,true)}catch(G){}Kx.Browser={isStrict:n,isOpera:o,isChrome:p,isWebKit:q,isSafari:j,isSafari2:v,isSafari3:w,isSafari4:x,isIE:i,isIE7:r,isIE8:s,isIE6:t,isGecko:l,isGecko2:y,isGecko3:z,isBorderBox:A,isWindows:B,isMac:C,isAir:D,
isLinux:d,isSecure:E};Kx.namespace("HtmlTpl");Kx.HtmlTpl=function(a){var b=arguments,c=[];if(Object.prototype.toString.apply(a)==="[object Array]")a=a.join("");else if(b.length>1){for(var h=0;h<b.length;h++){var g=b[h];if(typeof g=="object")for(var f in g)this[f]=g[f];else c.push(g)}a=c.join("")}this.html=a;this.compiled&&this.compile()};Kx.HtmlTpl.prototype={re:/\{([\w-]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?\}/g,argsRe:/^\s*['"](.*)["']\s*$/,compileARe:/\\/g,compileBRe:/(\r\n|\n)/g,compileCRe:/'/g,applyTpl:function(a){var b=
this,c=Kx.HtmlTplUtil;if(b.compiled)return b.compiled(a);return b.html.replace(b.re,function(h,g,f,e){if(f)if(f.substr(0,5)=="this.")return b.call(f.substr(5),a[g],a);else{if(e){h=b.argsRe;e=e.split(",");for(var k=0,F=e.length;k<F;k++)e[k]=e[k].replace(h,"$1");e=[a[g]].concat(e)}else e=[a[g]];return c[f].apply(c,e)}else return a[g]!==undefined?a[g]:""})},set:function(a,b){this.html=a;this.compiled=null;return b?this.compile():this},compile:function(){function a(h,g,f,e){if(f){e=e?","+e:"";if(f.substr(0,
5)!="this.")f="tplutil."+f+"(";else{f='this.call("'+f.substr(5)+'", ';e=", values"}}else{e="";f="(values['"+g+"'] == undefined ? '' : "}return"'"+b+f+"values['"+g+"']"+e+")"+b+"'"}var b=Kx.Browser.isGecko?"+":",",c;if(Kx.Browser.isGecko)c="this.compiled = function(values){ return '"+this.html.replace(this.compileARe,"\\\\").replace(this.compileBRe,"\\n").replace(this.compileCRe,"\\'").replace(this.re,a)+"';};";else{c=["this.compiled = function(values){ return ['"];c.push(this.html.replace(this.compileARe,
"\\\\").replace(this.compileBRe,"\\n").replace(this.compileCRe,"\\'").replace(this.re,a));c.push("'].join('');};");c=c.join("")}eval(c);return this},call:function(a,b,c){return this[a](b,c)}};Kx.namespace("HtmlTplUtil")})();

define("apps/common/FaceResource",function(){return{faceTip:["(#\u5927\u7b11)","(#\u5fae\u7b11)","(#\u4eb2\u4eb2)","(#\u62b1\u62b1)","(#\u8272\u8272)","(#\u597d\u5931\u671b\u54df)","(#\u597d\u56f0\u54e6)","(#\u5bb3\u7f9e)","(#\u9177\u5446\u4e86)","(#\u6655\u5012)","(#\u7728\u773c)","(#\u9b3c\u8138)","(#\u5c0f\u58f0\u70b9)","\u5403\u60ca)","(#\u7ffb\u767d\u773c)","(#\u5e72\u676f)","(#\u56f0\u60d1)","(#\u5565\uff1f)","(#\u7761\u89c9)","(#\u518d\u89c1\u4e86)","(#\u773c\u6cea\u54d7\u54d7\u5730)","(#\u4f60\u597d\u8ba8\u538c)",
"(#\u6211\u5410)","(#\u6012\u9a82)","(#\u95ed\u5634)","(#\u6253\u4f60)","\u771f\u7684\u751f\u6c14\u4e86)","(#\u8d85\u7ea7\u68d2)","(#\u4e0d\u548b\u5730)","(#\u9b45\u529b\u56db\u5c04)","(#\u5fc3\u90fd\u788e\u4e86)","(#\u7231)","(#\u543b)","(#\u73ab\u7470\u51cb\u8c22\u4e86)","(#\u73ab\u7470\u76db\u5f00\u4e86)","(#\u751f\u65e5\u86cb\u7cd5)","(#\u793c\u7269)","(#\u82f9\u679c)","(#\u897f\u74dc)","\u5496\u5561)","(#\u8db3\u7403)","(#\u63e1\u624b)","(#\u661f\u661f)","(#\u7cbe\u7075)","(#\u5c0f\u4e11)","(#\u5927\u6012)",
"(#\u751f\u75c5\u4e86)","(#\u5c0f\u53ef\u7231)","(#\u5c0f\u5fc3\u975e\u5178)","(#\u5634\u998b\u4e86)","(#\u8b66\u5bdf)","(#\u6293\u72c2\u4e86)","\u4e0d\u723d)","(#\u6c57)","(#\u601d\u8003\u4e2d)","(#\u89c1\u94b1\u773c\u5f00)","(#\u5472\u7259)","(#\u6655\u5934\u8f6c\u5411)","(#\u597d\u597d\u7231\u4f60\u54e6)","(#\u732a\u5934)","(#\u4fbf\u4fbf)","(#\u6708\u4eae)","(#\u97f3\u4e50)","(#\u996d)","(#\u771f\u8870)","\u5077\u7b11)","(#\u4e0b\u96e8)","(#\u732b\u732b)","(#\u72d7\u72d7)","(#\u9ab7\u9ac5)","(#\u4e66\u5446\u5b50)",
"(#\u592a\u9633)","(#\u90ae\u4ef6)","(#\u5e05\u5e05\u7537\u5b69)","(#\u59a9\u5a9a\u5973\u5b69)","(#\u836f\u4e38)","(#\u9119\u89c6)","(#\u70e7\u9999)","\u5472\u7259\u54a7\u5634)","(#\u62dc\u62dc)","(#\u594b\u6597)","(#\u55ef)","(#\u80dc\u5229)","(#\u4f5c\u63d6)","(#OK)","(#\u5730\u96f7)","(#\u83dc\u5200)","(#\u9f13\u638c)","(#\u54fc\u54fc)","(#\u53ef\u601c)","(#\u59d4\u5c48)","(#\u7cd7\u5927\u4e86)","\u9634\u9669)","(#\u50b2\u6162)","(#\u5feb\u54ed\u4e86)","(#\u6cea\u6d41\u6ee1\u9762)","(#\u793a\u7231)",
"(#\u574f\u7b11)","(#\u62a0\u9f3b\u5c4e)"],baseURL:"http://img1.kaixin001.com.cn/i/state/",faceResource:{"(#\u5927\u7b11)":{path:"laugh.gif",title:"\u5927\u7b11"},"(#\u5f00\u5fc3)":{path:"happy.gif",title:"\u5f00\u5fc3"},"(#\u54ed\u6ce3)":{path:"cry.gif",title:"\u54ed\u6ce3"},"(#\u4f24\u5fc3)":{path:"sorrow.gif",title:"\u4f24\u5fc3"},"(#\u6124\u6012)":{path:"angry.gif",title:"\u6124\u6012"},"(#\u60ca\u8bb6)":{path:"amazed.gif",title:"\u60ca\u8bb6"},"(#\u60f3\u4f60)":{path:"missyou.gif",title:"\u60f3\u4f60"},
"(#\u5e78\u798f)":{path:"happiness.gif",title:"\u5e78\u798f"},"(#\u7ea0\u7ed3)":{path:"tanglement_3.gif",title:"\u7ea0\u7ed3"},"(#\u56e7)":{path:"daze.gif",title:"\u56e7"},"(#\u95ed\u5634)":{path:"shutup.gif",title:"\u95ed\u5634"},"(#yy)":{path:"yy.gif",title:"yy"},"(#\u4eb2\u4eb2)":{path:"kiss.gif",title:"\u4eb2\u4eb2"},"(#\u8272)":{path:"leer.gif",title:"\u8272"},"(#\u7761\u89c9)":{path:"sleeping.gif",title:"\u7761\u89c9"},"(#\u5927\u54ed)":{path:"wail.gif",title:"\u5927\u54ed"},"(#\u82b3\u5fc3)":{path:"heart.gif",
title:"\u82b3\u5fc3"},"(#\u5145\u6ee1\u7231\u5fc3)":{path:"loving.gif",title:"\u5145\u6ee1\u7231\u5fc3"},"(#\u7eff\u8272\u5fc3\u60c5)":{path:"greenMood_3.gif",title:"\u7eff\u8272\u5fc3\u60c5"},"(#\u8721\u70db)":{path:"candle.gif",title:"\u8721\u70db"},"(#\u751f\u65e5\u86cb\u7cd5)":{path:"cake.gif",title:"\u751f\u65e5\u86cb\u7cd5"},"(#\u592a\u9633)":{path:"sun_3.gif",title:"\u592a\u9633"},"(#\u5f69\u8679)":{path:"rainbow.gif",title:"\u5f69\u8679"},"(#\u8d5e\u626c)":{path:"praise_3.gif",title:"\u8d5e\u626c"},
"(#\u7687\u51a0)":{path:"crown.gif",title:"\u7687\u51a0"},"(#\u96ea\u82b1)":{path:"snow_3.gif",title:"\u96ea\u82b1"},"(#\u9700\u8981\u5e2e\u52a9)":{path:"help_3.gif",title:"\u9700\u8981\u5e2e\u52a9"},"(#\u97f3\u4e50)":{path:"music_3.gif",title:"\u97f3\u4e50"},"(#\u5c0f\u6c7d\u8f66)":{path:"car_3.gif",title:"\u5c0f\u6c7d\u8f66"},"(#\u5e72\u676f)":{path:"cheers_3.gif",title:"\u5e72\u676f"},"(#\u753b\u753b)":{path:"paint_3.gif",title:"\u753b\u753b"},"(#\u65c5\u884c)":{path:"travel_3.gif",title:"\u65c5\u884c"},
"(#\u732a\u5934)":{path:"pighead.gif",title:"\u732a\u5934"},"(#\u521b\u53ef\u8d34)":{path:"woundplast.gif",title:"\u521b\u53ef\u8d34"},"(#\u8db3\u7403)":{path:"football.gif",title:"\u8db3\u7403"},"(#\u661f\u661f)":{path:"star.gif",title:"\u661f\u661f"},"(#\u6708\u4eae)":{path:"moon.gif",title:"\u6708\u4eae"},"(#\u95ea\u7535)":{path:"thunder_1.gif",title:"\u95ea\u7535"},"(#\u676f\u5177)":{path:"cup.gif",title:"\u676f\u5177"},"(#\u94bb\u77f3)":{path:"diamond.gif",title:"\u94bb\u77f3"},"(#\u76f8\u673a)":{path:"camera.gif",
title:"\u76f8\u673a"},"(#\u897f\u74dc)":{path:"watermelon.gif",title:"\u897f\u74dc"},"(#\u4e0b\u96e8)":{path:"rain.gif",title:"\u4e0b\u96e8"},"(#\u96ea\u7cd5)":{path:"ices.gif",title:"\u96ea\u7cd5"},"(#\u8611\u83c7)":{path:"mushroom.gif",title:"\u8611\u83c7"},"(#\u7ae0\u9c7c)":{path:"octopus.gif",title:"\u7ae0\u9c7c"},"(#\u51b0\u978b)":{path:"skate_3.gif",title:"\u51b0\u978b"},"(#\u624b\u5957)":{path:"glove.gif",title:"\u624b\u5957"},"(#\u5723\u8bde\u5e3d\u5b50)":{path:"christmas_hat.gif",title:"\u5723\u8bde\u5e3d\u5b50"},
"(#\u5723\u8bde\u889c\u5b50)":{path:"christmas_socks.gif",title:"\u5723\u8bde\u889c\u5b50"},"(#\u5723\u8bde\u8001\u4eba)":{path:"santa.gif",title:"\u5723\u8bde\u8001\u4eba"},"(#\u5723\u8bde\u6811)":{path:"christmas_tree2.gif",title:"\u5723\u8bde\u6811"},"(#\u5723\u8bde\u793c\u7269)":{path:"christmas_gift.gif",title:"\u5723\u8bde\u793c\u7269"},"(#\u6d6e\u4e91)":{path:"clouds.gif",title:"\u6d6e\u4e91"},"(#\u9e2d\u68a8)":{path:"pear.gif",title:"\u9e2d\u68a8"},"(#v5)":{path:"v5.gif",title:"v5"},"(#\u795e\u9a6c)":{path:"shorse.gif",
title:"\u795e\u9a6c"},"(#\u97ad\u70ae)":{path:"firecrackers.gif",title:"\u97ad\u70ae"},"(#\u706f\u7b3c)":{path:"lantern.gif",title:"\u706f\u7b3c"},"(#\u7ea2\u5305)":{path:"hansel.gif",title:"\u7ea2\u5305"},"(#\u5154\u5154)":{path:"rabbit.gif",title:"\u5154\u5154"},"(#\u60c5\u4eba\u8282\u73ab\u7470)":{path:"rose.gif",title:"\u60c5\u4eba\u8282\u73ab\u7470"},"(#\u731c\u706f\u8c1c)":{path:"palace_lantern.gif",title:"\u731c\u706f\u8c1c"},"(#\u5143\u5bb5\u8282\u5c0f\u6c64\u5706)":{path:"tangyuan.gif",title:"\u5143\u5bb5\u8282\u5c0f\u6c64\u5706"},
"(#\u54fc)":{path:"hum.gif",title:"\u54fc"},"(#\u574f\u7b11)":{path:"h_smile.gif",title:"\u574f\u7b11"},"(#\u5077\u7b11)":{path:"titter.gif",title:"\u5077\u7b11"},"(#\u6655)":{path:"dizzy.gif",title:"\u6655"},"(#\u62b1\u62b1)":{path:"hug3.gif",title:"\u62b1\u62b1"},"(#\u9119\u89c6)":{path:"despise.gif",title:"\u9119\u89c6"},"(#\u594b\u6597)":{path:"struggle.gif",title:"\u594b\u6597"},"(#\u52fe\u5f15)":{path:"seduce.gif",title:"\u52fe\u5f15"},"(#\u6c57)":{path:"ashamed.gif",title:"\u6c57"},"(#\u718a\u5b9d\u5b9d)":{path:"toy2.gif",
title:"\u718a\u5b9d\u5b9d"},"(#\u4e94\u9053\u6760)":{path:"good_teenager.gif",title:"\u4e94\u9053\u6760"},"(#\u7aef\u5348\u8282\u7cbd\u5b50[1])":{path:"zongz_1.gif",title:"\u7aef\u5348\u8282\u7cbd\u5b50[1]"},"(#\u7aef\u5348\u8282\u7cbd\u5b50[2])":{path:"zongz_2.gif",title:"\u7aef\u5348\u8282\u7cbd\u5b50[2]"},"(#\u7aef\u5348\u8282\u7cbd\u5b50)":{path:"zongz_1.gif",title:"\u7aef\u5348\u8282\u7cbd\u5b50"},"(#\u7ea2\u67a3\u7cbd\u5b50)":{path:"zongz_2.gif",title:"\u7ea2\u67a3\u7cbd\u5b50"},"(#\u60c5\u4e66)":{path:"loveletter.gif",
title:"\u60c5\u4e66"},"(#\u5455\u5410)":{path:"spit.gif",title:"\u5455\u5410"},"(#\u6263\u9f3b\u5c4e)":{path:"booger.gif",title:"\u6263\u9f3b\u5c4e"},"(#\u62a0\u9f3b\u5c4e)":{path:"booger.gif",title:"\u62a0\u9f3b\u5c4e"},"(#\u9f13\u638c)":{path:"clap.gif",title:"\u9f13\u638c"},"(#\u9ab7\u9ac5)":{path:"skull.gif",title:"\u9ab7\u9ac5"},"(#\u4fbf\u4fbf)":{path:"faeces.gif",title:"\u4fbf\u4fbf"},"(#\u5bb3\u7f9e)":{path:"shy2.gif",title:"\u5bb3\u7f9e"},"(#\u56f0)":{path:"sleepy.gif",title:"\u56f0"},"(#\u53ef\u601c)":{path:"pity.gif",
title:"\u53ef\u601c"},"(#\u998b)":{path:"greedy.gif",title:"\u998b"},"(#\u5496\u5561)":{path:"coffee.gif",title:"\u5496\u5561"},"(#\u996d)":{path:"rice.gif",title:"\u996d"},"(#\u5200)":{path:"knife.gif",title:"\u5200"},"(#\u836f\u4e38)":{path:"pills.gif",title:"\u836f\u4e38"},"(#OK)":{path:"ok.gif",title:"OK"},"(#\u4e66\u5446\u5b50)":{path:"bookworm2.gif",title:"\u4e66\u5446\u5b50"},"(#\u51cb\u8c22)":{path:"languish.gif",title:"\u51cb\u8c22"},"(#\u55ef)":{path:"en.gif",title:"\u55ef"},"(#\u59d4\u5c48)":{path:"wronged.gif",
title:"\u59d4\u5c48"},"(#\u6012\u9a82)":{path:"curse.gif",title:"\u6012\u9a82"},"(#\u7cd7\u5927\u4e86)":{path:"shame.gif",title:"\u7cd7\u5927\u4e86"},"(#\u62dc\u62dc)":{path:"bye.gif",title:"\u62dc\u62dc"},"(#\u72d7\u72d7)":{path:"dog.gif",title:"\u72d7\u72d7"},"(#\u732b\u54aa)":{path:"cat.gif",title:"\u732b\u54aa"},"(#\u73ab\u7470)":{path:"rose2.gif",title:"\u73ab\u7470"},"(#\u793c\u7269)":{path:"gift.gif",title:"\u793c\u7269"},"(#\u80dc\u5229)":{path:"victory.gif",title:"\u80dc\u5229"},"(#\u89c1\u94b1\u773c\u5f00)":{path:"miser.gif",
title:"\u89c1\u94b1\u773c\u5f00"},"(#\u63e1\u624b)":{path:"shakehands.gif",title:"\u63e1\u624b"},"(#\u543b)":{path:"kiss2.gif",title:"\u543b"},"(#\u4e0d\u548b\u5730)":{path:"notye.gif",title:"\u4e0d\u548b\u5730"},"(#\u9b45\u529b\u56db\u5c04)":{path:"glamorous.gif",title:"\u9b45\u529b\u56db\u5c04"},"(#\u82f9\u679c)":{path:"apple.gif",title:"\u82f9\u679c"},"(#\u56f4\u89c2)":{path:"crowd.gif",title:"\u56f4\u89c2"},"(#\u7ffb\u767d\u773c)":{path:"rollingeyes.gif",title:"\u7ffb\u767d\u773c"},"(#\u5472\u7259)":{path:"baredteeth.gif",
title:"\u5472\u7259"},"(#\u8c03\u76ae)":{path:"naughty.gif",title:"\u8c03\u76ae"},"(#\u9177)":{path:"cool.gif",title:"\u9177"},"(#\u70e7\u9999)":{path:"worship.gif",title:"\u70e7\u9999"},"(#\u5c0f\u53ef\u7231)":{path:"cute.gif",title:"\u5c0f\u53ef\u7231"},"(#\u5618)":{path:"whispers.gif",title:"\u5618"},"(#\u7591\u95ee)":{path:"doubt.gif",title:"\u7591\u95ee"},"(#\u9634\u9669)":{path:"evillaugh.gif",title:"\u9634\u9669"},"(#\u7838\u5934)":{path:"drophead.gif",title:"\u7838\u5934"},"(#\u7728\u773c)":{path:"wink.gif",
title:"\u7728\u773c"},"(#\u6293\u72c2)":{path:"crazy.gif",title:"\u6293\u72c2"},"(#\u4f5c\u63d6)":{path:"bow.gif",title:"\u4f5c\u63d6"},"(#\u5fc3\u788e)":{path:"heartbreak.gif",title:"\u5fc3\u788e"},"(#\u5730\u96f7)":{path:"landmine.gif",title:"\u5730\u96f7"},"(#\u997a\u5b50)":{path:"dumpling2.gif",title:"\u997a\u5b50"},"(#\u9f99\u5e74)":{path:"dragon.gif",title:"\u9f99\u5e74"}},faces:[["\u5927\u7b11","-154px -220px"],["\u5f00\u5fc3","0 0"],["\u54ed\u6ce3","-22px 0"],["\u4f24\u5fc3","-44px 0"],["\u6124\u6012",
"-66px 0"],["\u60ca\u8bb6","-88px 0"],["\u60f3\u4f60","-110px 0"],["\u5e78\u798f","-110px -40px"],["\u7ea0\u7ed3","-132px 0"],["\u56e7","-132px -40px"],["\u95ed\u5634","-220px -40px"],["yy","0 -60px"],["\u4eb2\u4eb2","-44px -60px"],["\u8272","-176px -60px"],["\u7761\u89c9","-154px -60px"],["\u5927\u54ed","-66px -80px"],["\u574f\u7b11","-176px -100px"],["\u5077\u7b11","-198px -100px"],["\u6655","-220px -100px"],["\u62b1\u62b1","-66px -140px"],["\u9119\u89c6","-22px -120px"],["\u594b\u6597","-44px -120px"],
["\u6c57","-88px -120px"],["\u54fc","-110px -120px"],["\u5455\u5410","-22px -140px"],["\u62a0\u9f3b\u5c4e","-44px -140px"],["\u9f13\u638c","-88px -140px"],["\u998b","-154px -140px"],["\u5bb3\u7f9e","-176px -140px"],["\u53ef\u601c","-198px -140px"],["\u56f0","-220px -140px"],["\u6012\u9a82","-88px -160px"],["\u62dc\u62dc","-110px -160px"],["\u7cd7\u5927\u4e86","-132px -160px"],["\u89c1\u94b1\u773c\u5f00","-154px -160px"],["\u4e66\u5446\u5b50","-176px -160px"],["\u55ef","-198px -160px"],["\u59d4\u5c48",
"-220px -160px"],["\u6293\u72c2","-66px -200px"],["\u7838\u5934","-88px -200px"],["\u7ffb\u767d\u773c","-110px -200px"],["\u9177","-132px -200px"],["\u70e7\u9999","-154px -200px"],["\u8c03\u76ae","-176px -200px"],["\u5c0f\u53ef\u7231","-198px -200px"],["\u9634\u9669","-220px -200px"],["\u5618","0 -220px"],["\u7591\u95ee","-22px -220px"],["\u5472\u7259","-44px -220px"],["\u7728\u773c","-66px -220px"],["\u9ab7\u9ac5","-110px -140px"],["\u56f4\u89c2","-132px -180px"],["\u63e1\u624b","-154px -180px"],
["\u52fe\u5f15","-66px -120px"],["\u8d5e\u626c","-44px -20px"],["\u4e0d\u548b\u5730","-220px -180px"],["\u80dc\u5229","-66px -180px"],["OK","-88px -180px"],["\u4f5c\u63d6","-110px -220px"],["\u997a\u5b50","-176px -220px"],["\u5143\u5bb5\u8282\u5c0f\u6c64\u5706","-154px -100px"],["\u9f99\u5e74","-198px -220px"],["\u97ad\u70ae","-44px -100px"],["\u706f\u7b3c","-22px -100px"],["\u7ea2\u5305","-66px -100px"],["\u731c\u706f\u8c1c","-132px -100px"],["\u543b","-198px -180px"],["\u897f\u74dc","-176px -180px"],
["\u82f9\u679c","-22px -200px"],["\u9b45\u529b\u56db\u5c04","0 -200px"],["\u72d7\u72d7","0 -180px"],["\u732b\u54aa","-22px -180px"],["\u793c\u7269","-44px -180px"],["\u73ab\u7470","-110px -180px"],["\u51cb\u8c22","-110px -100px"],["\u5496\u5561","0 -160px"],["\u996d","-22px -160px"],["\u836f\u4e38","-44px -160px"],["\u5200","-66px -160px"],["\u5730\u96f7","-88px -220px"],["\u4fbf\u4fbf","-132px -140px"],["\u82b3\u5fc3","-154px 0"],["\u5fc3\u788e","-132px -220px"],["\u5145\u6ee1\u7231\u5fc3","-176px 0"],
["\u7eff\u8272\u5fc3\u60c5","-198px 0"],["\u4e94\u9053\u6760","-176px -120px"],["\u718a\u5b9d\u5b9d","-154px -120px"],["\u751f\u65e5\u86cb\u7cd5","-220px 0"],["\u592a\u9633","0 -20px"],["\u5f69\u8679","-22px -20px"],["\u7687\u51a0","-66px -20px"],["\u96ea\u82b1","-88px -20px"],["\u9700\u8981\u5e2e\u52a9","-110px -20px"],["\u97f3\u4e50","-132px -20px"],["\u5c0f\u6c7d\u8f66","-154px -20px"],["\u5e72\u676f","-176px -20px"],["\u753b\u753b","-198px -20px"],["\u65c5\u884c","0 -40px"],["\u732a\u5934","-22px -40px"],
["\u521b\u53ef\u8d34","-154px -40px"],["\u60c5\u4e66","0 -140px"],["\u8db3\u7403","-176px -40px"],["\u8721\u70db","-132px -120px"],["\u661f\u661f","-198px -40px"],["\u6708\u4eae","-22px -60px"],["\u95ea\u7535","-132px -60px"],["\u676f\u5177","-66px -60px"],["\u94bb\u77f3","-110px -60px"],["\u76f8\u673a","-88px -60px"],["\u51b0\u978b","-220px -20px"],["\u4e0b\u96e8","-220px -60px"],["\u624b\u5957","-66px -40px"],["\u8611\u83c7","-22px -80px"],["\u7ae0\u9c7c","-44px -80px"],["\u9e2d\u68a8","-198px -80px"],
["\u795e\u9a6c","0 -100px"],["\u6d6e\u4e91","-176px -80px"],["v5","-220px -80px"]]}});

$j(function(){function e(){var c=$j("#randimg").attr("data-keytype"),d=new Date;d=Math.random()+"_"+d.getTime();c=="reg"?g(d,c):f(0,d,c);$j("#changeRcode, #randimg").unbind("click").bind("click",function(a){a.preventDefault();e()})}function f(c,d,a){var b="http://www.kaixin001.com/interface/getcaptcha.php?key="+d+"&keytype="+a;a=="reg"?$j("#rcode").val(d+"_"+c):$j("#rcode").val(d);$j("#randimg").attr("src",b);$j("#randimg").css("border","none");$j("#randimg").show()}function g(c,d){var a="kaixin001.com";
if(a.indexOf("vm14")!=-1)a=a.replace(/[^\.]+\./,"");a="http://"+(window.location.host.indexOf("reg")!=-1?"reg."+a:"www."+a)+"/interface/getcaptchacode.php";$j.post(a,{key:c,keytype:d},function(b){b=h.geturl(b);b=b.evalJSON();data1=b.data1;data2=b.data2;data3=b.data3;n1=data1[data3[0]%9];n2=data1[data3[1]%9];n3=data1[data3[2]%9];v1=data2[0]%4;v2=data2[1]%4;r=0;switch(v1){case 0:r=n1+n2;break;case 1:r=n1-n2;break;case 2:r=n1*n2;break;case 3:r=n1/n2;break}switch(v2){case 0:r+=n3;break;case 1:r-=n3;break;
case 2:r*=n3;break;case 3:r/=n3;break}r=parseInt(r+n3);if(r==0)r=n2;else if(r<0)r=-r;f(r,c,d)})}var h={geturl:function(c){return this._utf8_url(unescape(c))},_utf8_url:function(c){for(var d="",a=0,b=c1=c2=0;a<c.length;){b=c.charCodeAt(a);if(b<128){d+=String.fromCharCode(b);a++}else if(b>191&&b<224){c2=c.charCodeAt(a+1);d+=String.fromCharCode((b&31)<<6|c2&63);a+=2}else{c2=c.charCodeAt(a+1);c3=c.charCodeAt(a+2);d+=String.fromCharCode((b&15)<<12|(c2&63)<<6|c3&63);a+=3}}return d}};window.changeRcode=
e});

define("apps/common/UserCard",["jQuery"],function(r){var d=r("jQuery"),k=window.Kx,f=function(a,c,b,e,g){this.uid=c.uid;this.link=a;this.data=c;this._recs=f.isAvailable(b)?b:this._recs;this.ucdiv=null;this._fnWidgets=K.isFunction(e)?e:this._fnWidgets;this._showOptions=f.isAvailable(g)?g:this._showOptions;this.rcodeFocus=false;d("#user_card_"+c.uid).length>0&&d("#user_card_"+c.uid).remove();if(c.gender!==undefined)this.data.heorher=this.data.gender!="\u7537"?"\u5979":"\u4ed6";this._init()};K.mix(f.prototype,
{_recs:null,_fnWidgets:null,_showOptions:null,_ObjectType:{COMMON_USER:0,STAR:1,ORG:2,STAR_UNCHECED:3,ORG_UNCHECED:4},_Relationship:{STRANGER:0,FRIEND:1,FAN:1,ME:1},_RelationState:{UNKNOWN:-1,COMMON_STRANGER:0,ADD_REQUEST_SEND:1,ADD_REQUEST_REFUSED:2,CAN_ONLY_ATTENT:3,ORG_STRANGER:4,STAR_STRANGER:5,FRIEND:6},_OBJECT_STATE:{},_ObjectRole:{COMMON_USER:"not_member",RGROUP_MEMBER:"member",RGROUP_CREATOR:"creator",RGROUP_ADMIN:"admin"},_adjustPosition:function(){var a=16,c=15,b={},e=null;if(this._isTalkAuthor())e=
this.link.parents(".talk:first").find(".pic_head_nrm img");else if(this._isRetalkAuthor())e=this.link.parents(".reply_list:first").find(".pic_head_nrm img");else if(this._isBellow()){e=this.link.find("img");if(!f.isAvailable(e.offset()))e=this.link;a=0;c=-(e&&e.height()+6||0)}else if(this.link.find("img")[0])e=this.link.find("img");else{e=this.link;a=f.isAvailable(this.data.star)&&this.data.star>0?125:110}b=e.offset();b.left-=a;b.top-=c;c=this.container.find(".usercard");a=c.outerWidth();c=c.outerHeight();
var g=k.Env.isLite?d("#lite_wrapper"):d("#main");if(g.length===0)g=d(document.body);var h=g.offset();g=g.width();var j=d(document).scrollTop(),i=j+d(window).height()-d("#kxchat_base").height();if(!f.isAvailable(this._showOptions)||!f.isAvailable(this._showOptions.without_right_alignment)||this._showOptions.without_right_alignment===false)if(b.left+a>g+h.left)b.left=g+h.left-a;if(b.top+c>i&&e.offset().top-c-4>=j)b.top=e.offset().top-c-4;d("#user_card_"+this.uid).css("top",b.top+"px").css("left",b.left+
"px")},_createBasicInfo:function(a){var c=['<p class="c6">'];a.gender=f.isAvailable(a.gender)?a.gender.replace(/(<.*>)/g,""):"";c.push(a.gender);a.astro=f.isAvailable(a.astro)?a.astro.replace(/(<.*>)/g,""):"";if(a.astro!==""){a.gender!==""&&c.push("\uff0c&nbsp;");c.push(a.astro)}a.city=f.isAvailable(a.city)?a.city.replace(/(<.*>)/g,""):"";if(a.city!==""){if(a.gender!==""||a.astro!=="")c.push("\uff0c&nbsp;");c.push(a.city)}if(a.company===undefined||a.company==="")this.data.show_br='style ="display:none;"';
else if(a.company.length>=20){var b=a.company.substr(1,18);a.company=b+"\u2026\u2026"}return d(c.concat(["<br ",a.show_br," />",a.company,"</p>"]).join(""))},_createButton:function(a,c,b){return d("<input/>").attr("id",a).attr("name",c).attr("type","button").attr("value",b)},_createContactLink:function(a,c,b){if(f.isAvailable(this._showOptions)&&f.isAvailable(this._showOptions.without_contact_url)&&this._showOptions.without_user_url===true)return d("");a=f.isAvailable(a)?a:"";c=f.isAvailable(c)?c:
0;var e=c>0?"usercard_offline_goto_message":"usercard_goto_message_notFriend";return c===true&&b===1?d("<a>\u5728\u7ebf\u804a\u5929</a>").addClass("onlinechat sl2").attr("id","uc_im").attr("href","#"):d("<a>\u53d1\u77ed\u6d88\u606f</a>").addClass("wrtMsg sl2").attr("id","uc_write_msg").attr("href","/msg/write.php?uids="+a+"&statfrom="+e)},_createComFriendList:function(a){var c=d("<div/>").addClass("common_friend clearfix"),b=null,e=null;e=5;var g="";if(a.mflist===undefined||parseInt(a.mfnum,10)===
0){g="\u65e0\u5171\u540c\u597d\u53cb";c.append(d('<span class ="c6">'+g+"</span>"));return c}else if(parseInt(a.mfnum,10)<=e){g="\u5171";e=a.mflist.length}else g="\u7b49";b=d("<ul/>").addClass("l");b.appendTo(c);var h;for(h=0;h<e;h++){var j=d("<li/>");j.appendTo(b);var i;try{i=d("<a/>").attr("href","/home/"+a.mflist[h].uid+".html").attr("title",a.mflist[h].name);i.appendTo(j);d("<img/>").addClass("com_friend_logo").attr("src",a.mflist[h].icon20).attr("width","20").attr("height","20").attr("title",
a.mflist[h].name).appendTo(i)}catch(n){i.remove()}}if(e>0){b=d("<p/>").addClass("l");b.append(document.createTextNode(g));e=d("<a>"+a.mfnum+"</a>").addClass("sl2").attr("id","uc_common_friends").attr("data-touid",a.uid).attr("data-ajax-url","/friend/ajax/sysmsg_mutual_dialog.php?touid="+a.uid).attr("data-ajax","dialog").attr("href","#");e.appendTo(b);b.append(document.createTextNode("\u4f4d\u5171\u540c\u597d\u53cb"));b.appendTo(c)}return c},_createFriendAppsList:function(a){a.online=f.isAvailable(a.online)?
a.online:0;a.heorher=f.isAvailable(a.heorher)?a.heorher:"";a.uid=f.isAvailable(a.uid)?a.uid:"";var c="";c=parseInt(a.online,10)===0?"usercard_offline_A_goto_photo":"usercard_online_A_goto_photo";var b=d("<ul/>").addClass("user_apps clearfix"),e=d("<li/>");e.appendTo(b);c=d("<a>"+a.heorher+"\u7684\u7167\u7247<span>("+a.photoNum+")</span></a>").addClass("app_l_sp app_photo").attr("href","/photo/albumlist.php?uid="+a.uid+"&statfrom="+c);c.appendTo(e);c=parseInt(a.online,10)===0?"usercard_offline_A_goto_diary":
"usercard_online_A_goto_diary";e=d("<li/>");e.appendTo(b);c=d("<a>"+a.heorher+"\u7684\u65e5\u8bb0<span>("+a.diaryNum+")</span></a>").addClass("app_l_sp app_diary").attr("href","/diary/?uid="+a.uid+"&statfrom="+c);c.appendTo(e);return b},_createFriendAddDetail:function(a){var c=d("<span/>").attr("id","showcode").css("display","none"),b=d("<span/>").addClass("l mt5");b.appendTo(c);var e=d("<span>\u9a8c\u8bc1\u7801\uff1a</span>").addClass("l mt2");e.appendTo(b);e=d("<span>*</span>").addClass("cr l mt2");
e.appendTo(b);e=d("<input/>").addClass("yzm_txt l").attr("id","code").attr("type","text").attr("name","code").attr("value","");e.appendTo(b);e=d("<input/>").attr("id","rcode").attr("type","hidden").attr("name","rcode").attr("value","");e.appendTo(b);b=d("<img/>").addClass("l").attr("id","randimg").attr("data-keytype","usercard").attr("src","").attr("width",70);b.appendTo(c);b=d("<a>\u6362\u4e00\u5f20</a>").addClass("cp l cg_i").attr("id","changeRcode").css("text-decoration","underline");b.appendTo(c);
b=this._createButton("add_friend_"+a.uid,"","\u52a0\u597d\u53cb");b.addClass("uc_yzmbtn");b.appendTo(c);return c},_createLogo:function(a){var c=d("<div/>").addClass("user_avatar"),b;if(f.isAvailable(this._showOptions)&&f.isAvailable(this._showOptions.without_user_url)&&this._showOptions.without_user_url===true)b=c;else{b=d("<a/>").attr("href",this._getUserUrl(a.uid)).attr("title",a.name);b.appendTo(c)}a.icon120=f.isAvailable(a.icon120)?a.icon120:"";d("<img/>").attr("src",a.icon120).attr("width","80").attr("height",
"80").appendTo(b);return c},_createName:function(a){var c;c=f.isAvailable(this._showOptions)&&f.isAvailable(this._showOptions.without_user_url)&&this._showOptions.without_user_url===true?d("<span/>").addClass("sl"):d("<a/>").addClass("sl").attr("href",this._getUserUrl(a.uid));f.isAvailable(a.name)&&c.append(document.createTextNode(a.name));return c},_createOperation:function(a){var c=d("<div/>").addClass("r c9").attr("id","uc_footer_operation"),b=null;if(f.isAvailable(a.rgroup))if(a.rgroup.myRole===
this._ObjectRole.RGROUP_MEMBER)c.append(document.createTextNode(this._parseRole(a.rgroup.userRole)));else if(a.rgroup.myRole===this._ObjectRole.RGROUP_ADMIN&&a.rgroup.userRole===this._ObjectRole.RGROUP_CREATOR)c.append(document.createTextNode(this._parseRole(a.rgroup.userRole)));else if(a.rgroup.myRole===this._ObjectRole.RGROUP_CREATOR||a.rgroup.myRole===this._ObjectRole.RGROUP_ADMIN){if(a.rgroup.userRole===this._ObjectRole.RGROUP_MEMBER){b=d("<a/>").addClass("sl2 j_addAdmin").attr("id","uc_j_addAdmin").attr("uid",
a.uid).attr("data-name",a.name).attr("href","#");b.append(document.createTextNode("\u5347\u4e3a\u7ba1\u7406\u5458"))}else if(a.rgroup.userRole===this._ObjectRole.RGROUP_ADMIN){b=d("<a/>").addClass("sl2 j_cancelAdmin").attr("id","uc_j_cancelAdmin").attr("uid",a.uid).attr("data-name",a.name).attr("href","#");b.append(document.createTextNode("\u964d\u4e3a\u666e\u901a\u6210\u5458"))}else{a.rgroup.userRole===this._ObjectRole.COMMON_USER&&c.append(document.createTextNode(a.heorher+"\u5df2\u9000\u51fa\u5708\u5b50"));
return c}b.appendTo(c);b=d("<span/>").addClass("dot_v_line");b.appendTo(c);b=d("<a/>").addClass("sl2 j_killOut").attr("id","uc_j_killOut").attr("uid",a.uid).attr("data-name",a.name).attr("href","#");b.append(document.createTextNode("\u8e22\u51fa"));b.appendTo(c)}return c},_createState:function(a,c){var b=/(?:\/\/|\(#)([^\s\(\)\#\/$]+)(?:\s+|\)|$)/ig,e=f.isAvailable(a.state)?a.state:"";c=2*parseInt(c,10);var g=e.replace(b,"\u8868\u60c5");g=K.byteLen(g);if(f.isAvailable(c)&&c>0&&c<g)e=K.subByte(e,c,
"......");e=function(h){r.async("apps/common/MFacePanel",function(j){h=h.replace(b,function(i){var n=j.getFaceIconByText(i);if(n=="")return i;else{i=d("<div/>");d(n).addClass("vm").appendTo(i);return i.html()}})});return h}(e);e=e.replace("(#\u5206\u4eab\u7167\u7247)",'<img src="http://'+K.Env.IMG_HOST+'/i/ico_pic2.gif" class="vm" align="absmiddle">');g=d("<p/>").addClass("c6").attr("title",a.state);if(f.isAvailable(a.mood)&&f.isAvailable(a.mood.img))e='<img title="'+a.mood.title+'" src="'+a.mood.img+
'" class ="vm">&nbsp; '+e;g.html(e);return g},_createWidgets:function(a){return K.isFunction(this._fnWidgets)?this._fnWidgets(a,this.link):null},_getUserUrl:function(a){if(K.isNull(window.location.href.match("news.php")))return"/home/"+a+".html";else if(this.link.parents(".rank_star_list").length>0)return"/interface/statLog2.php?key=page_right_click_popular&url=%2Fhome%2F%3Fuid%3D"+a;else if(this.link.parents(".silder_box_star").length>0)return"/interface/statLog2.php?key=page_right_click_guesslike&url=%2Fhome%2F%3Fuid%3D"+
a},_isTalkAuthor:function(){return this.link&&this.link.hasClass("talkauthor")},_isRetalkAuthor:function(){return this.link&&this.link.hasClass("retalkauthor")},_isBellow:function(){return this.link&&(this.link.hasClass("uc_member_list")||this.link.hasClass("member")||this.link.hasClass("uc_bellow"))},_parseRole:function(a){var c="";if(a===this._ObjectRole.RGROUP_MEMBER)c="\u6210\u5458";else if(a===this._ObjectRole.RGROUP_ADMIN)c="\u7ba1\u7406\u5458";else if(a===this._ObjectRole.RGROUP_CREATOR)c=
"\u521b\u5efa\u8005";return c},_init:function(){if(!this._isInited){this.container=d("#kx_user_card");if(this.container.length===0){var a=d('<div id="kx_user_card"></div>');a.appendTo(document.body);this.container=a}this._isInited=true}},_createDock:function(a){var c=d("<div/>").addClass("usercard").attr("id","user_card_"+a.uid).css("position","absolute").css("z-index",99999);this.container.empty();c.appendTo(this.container);c=c;var b=d("<div/>").addClass("usercard_cnt_wrap");b.appendTo(c);c=b;b=
d("<div/>").addClass("usercard_cnt").attr("id","usercard_cnt_"+a.uid);b.appendTo(c);c=b;b=d("<a/>").addClass("close").attr("id","usrcard_close_"+a.uid).attr("href","#");b.appendTo(c);return c},_createMyInfoPanel:function(a){var c=d("<div/>").addClass("uc_userinfo").attr("id","uc_common_"+a.uid),b=this._createLogo(a);b.appendTo(c);b=d("<div/>").addClass("uc_desc l");b.appendTo(c);var e=d("<h3/>");e.appendTo(b);this._createName(a).appendTo(e);e=this._createBasicInfo(a);e!==null&&e.appendTo(b);return c},
_createFriendInfoPanel:function(a){var c=d("<div/>").addClass("uc_userinfo").attr("id","uc_common_"+a.uid),b=this._createLogo(a);b.appendTo(c);b=d("<div/>").addClass("uc_desc l");b.appendTo(c);var e=d("<h3/>");e.appendTo(b);this._createName(a).appendTo(e);if(a.isShowWidgets===0)this._fnWidgets=null;else if(a.cardMode==="showPhotoDiary"){if(!K.isFunction(this._fnWidgets))this._fnWidgets=this._createFriendAppsList}else if(a.cardMode==="showFriend"){if(!K.isFunction(this._fnWidgets))this._fnWidgets=
this._createComFriendList}else{this._close();return}e=this._createState(a,32);e!==null&&e.appendTo(b);e=this._createWidgets(this.data);e!==null&&e.appendTo(b);return c},_createStrangerInfoPanel:function(a){var c=d("<div/>").addClass("uc_userinfo").attr("id","uc_common_"+a.uid),b=this._createLogo(a);b.appendTo(c);b=d("<div/>").addClass("uc_desc l");b.appendTo(c);var e=d("<h3/>");e.appendTo(b);var g=this._createName(a);g.appendTo(e);g=d('<a id="add_friend_state_'+a.uid+'"></a>').addClass("icowait").attr("title",
"\u5df2\u53d1\u9001\u597d\u53cb\u8bf7\u6c42\uff0c\u7b49\u5f85\u5bf9\u65b9\u540c\u610f").attr("href","/friend/fgroup.php?viewtype="+encodeURIComponent("\u5df2\u53d1\u597d\u53cb\u8bf7\u6c42")).css("display","none");g.appendTo(e);g=d("<span/>").addClass("alyconcern").attr("id","uc_have_atten_"+a.uid).css("display","none");g.appendTo(e);if(a.isShowWidgets===0)this._fnWidgets=null;else if(parseInt(a.isfriend,10)===0){if(!K.isFunction(this._fnWidgets))this._fnWidgets=this._createComFriendList}else{this._fnWidgets=
null;return}e=this._createBasicInfo(a);e!==null&&e.appendTo(b);if(a.cardMode!=="showPhotoDiary"&&this._fnWidgets!==null){e=this._createWidgets(this.data);e!==null&&e.appendTo(b)}return c},_createOrgInfoPanel:function(a){var c=d("<div/>").addClass("uc_userinfo"),b=this._createLogo(a);b.appendTo(c);b=d("<div/>").addClass("uc_desc l");b.appendTo(c);var e=d("<h3/>");e.appendTo(b);var g=d("<img/>").attr("align","absmiddle").attr("title",f.isAvailable(a.authen)?a.authen:"").attr("src",f.isAvailable(a.auimg)?
a.auimg:"");g.appendTo(e);e.append(document.createTextNode(" "));g=this._createName(a);g.appendTo(e);e=d("<p/>").addClass("c6");a.fcount=f.isAvailable(a.fcount)?a.fcount:"";e.append(document.createTextNode("\u7c89\u4e1d\u6570\uff1a"+a.fcount));e.appendTo(b);e=this._createState(a,-1);e.appendTo(b);return c},_createStarInfoPanel:function(a){return this._createOrgInfoPanel(a)},_createFooterMe:function(a){var c=d("<div/>").addClass("uc_ft").attr("id","uc_ft_"+a.uid),b=d("<p/>").addClass("c9 l");b.append(document.createTextNode("\u8fd9\u662f\u4f60\u81ea\u5df1"));
b.appendTo(c);b=d("<div/>").addClass("c9 r");f.isAvailable(a.rgroup)&&b.append(document.createTextNode(this._parseRole(a.rgroup.myRole)));b.appendTo(c);return c},_createFooterFriend:function(a){var c=d("<div/>").addClass("uc_ft").attr("id","uc_ft_"+a.uid),b=d("<p/>").addClass("l");b.appendTo(c);var e=a.online>0?"/interface/statLog2.php?key=usercard_online_goto_introFriend":"/interface/statLog2.php?key=usercard_offline_goto_introFriend";e=d("<a>\u4ecb\u7ecd\u597d\u53cb</a>").addClass("introduce sl2").attr("href",
e).attr("data-ajax","dialog").attr("data-ajax-url","/friend/ajax/introduce_friend_dialog.php?touid="+a.uid);e.appendTo(b);e=d("<span/>").addClass("dot_v_line");e.appendTo(b);e=this._createContactLink(a.uid,true,a.online);e.appendTo(b);b=this._createOperation(a);b.appendTo(c);return c},_createFooterStranger:function(a){var c=d("<div/>"),b=d('<div id="adderror"></div>');b.appendTo(c);b=d("<div/>").addClass("uc_ft").attr("id","uc_ft_"+a.uid);b.appendTo(c);var e=b;b=d("<span/>").addClass("l").attr("id",
"showadd");b.appendTo(e);var g=d("<p/>");g.appendTo(b);b=d("<a>\u52a0\u4e3a\u597d\u53cb</a>").addClass("add_friend sl2").attr("id","show_friend_"+a.uid).attr("href","#");b.appendTo(g);b=d("<span>").addClass("dot_v_line");b.appendTo(g);b=this._createContactLink(a.uid,false,false);b.appendTo(g);b=this._createFriendAddDetail(a);b.appendTo(e);b=this._createOperation(a);b.appendTo(e);b=d("<div/>").addClass("c");b.appendTo(e);return c},_createFooterRequireSend:function(a){var c=d("<div/>").addClass("uc_ft").attr("id",
"uc_ft_"+a.uid),b=d("<p/>").addClass("opt_success");b.append(document.createTextNode("\u597d\u53cb\u8bf7\u6c42\u5df2\u53d1\u9001\uff0c\u4f60\u73b0\u5728\u5373\u53ef\u770b\u5230"+a.heorher+"\u7684\u516c\u5f00\u8bb0\u5f55"));b.appendTo(c);return c},_createFooterWaitAgree:function(a){var c=d("<div/>").addClass("uc_ft").attr("id","uc_ft_"+a.uid).css("zoom",1),b=d("<p>\u7b49\u5f85\u5bf9\u65b9\u540c\u610f</p>").addClass("opt_success l sl");b.appendTo(c);b=d("<p/>").addClass("r");b.appendTo(c);d("<a>\u53d6\u6d88</a>").addClass("sl").attr("id",
"uc_attent_cancel_"+a.uid).attr("title","\u4ec5\u53d6\u6d88\u5173\u6ce8\uff0c\u4e0d\u4f1a\u53d6\u6d88\u597d\u53cb\u8bf7\u6c42").attr("href","#").appendTo(b);b=d("<div/>").addClass("clear");b.appendTo(c);return c},_createFooterFailAdd:function(a){var c=d("<div/>").addClass("uc_ft").attr("id","uc_ft_"+a.uid),b=d("<p>\u672a\u901a\u8fc7\u8bf7\u6c42</p>").addClass("l unthread");b.appendTo(c);b=d("<p/>").addClass("r");b.appendTo(c);var e=d("<a>\u518d\u52a0\u597d\u53cb</a>").addClass("sl").attr("id","add_friend_again_"+
a.uid).attr("href","#");e.appendTo(b);b.append(document.createTextNode("  "));e=d("<a>\u53d6\u6d88</a>").addClass("sl").attr("id","uc_cancel_"+a.uid).attr("href","#");e.appendTo(b);b=d("<div/>").addClass("clear");b.appendTo(c);return c},_createFooterAttent:function(a){var c=d("<div/>").addClass("uc_ft").attr("id","uc_ft_"+a.uid),b=d("<p/>").addClass("l opt_alysuc");b.append(document.createTextNode("\u5df2\u5173\u6ce8"+a.heorher+"\u7684\u516c\u5f00\u8bb0\u5f55"));b.appendTo(c);b=d("<p/>").addClass("r");
b.appendTo(c);d("<a>\u53d6\u6d88</a>").addClass("sl").attr("id","un_attention_"+a.uid).attr("href","#").appendTo(b);b=d("<div/>").addClass("clear");b.appendTo(c);return c},_createFooterAddAsFan:function(a){var c=d("<div/>").addClass("uc_ft").attr("id","uc_ft_"+a.uid),b=d("<p/>");b.appendTo(c);d("<a>\u52a0\u4e3a\u7c89\u4e1d</a>").addClass("add_star sl2").attr("id","uc_add_star_"+a.uid).attr("href","#").appendTo(b);return c},_createFooterFan:function(a){var c=d("<div/>").addClass("uc_ft").attr("id",
"uc_ft_"+a.uid),b=d("<p>\u5df2\u662f\u7c89\u4e1d</p>").addClass("addsuc c9");b.appendTo(c);var e=d("<span/>").addClass("dot_v_line");e.appendTo(b);e=this._createContactLink(a.uid,false,false);e.appendTo(b);return c},_createCancelAddAlertTpl:function(a){var c=d("<div/>").addClass("uc_userinfo").attr("id","uc_op_common_"+a.uid),b=d("<div/>").addClass("canceltip");b.appendTo(c);var e=d("<p/>").addClass("ffc");e.appendTo(b);e.append(document.createTextNode("\u53d6\u6d88\u540e\u4f60\u5c06\u6536\u4e0d\u5230"));
var g=d("<a/>").addClass("sl2").attr("href",this._getUserUrl(a.uid));g.append(document.createTextNode(a.name));e.append(g);e.append(document.createTextNode("\u7684\u516c\u5f00\u8bb0\u5f55\u52a8\u6001\uff0c\u4f60\u786e\u5b9a\u8981\u53d6\u6d88\u5417\uff1f"));e=d("<p/>").addClass("mt15 tar");e.appendTo(b);g=this._createButton("uc_cancel_attend_"+a.uid,"uc_cancel_attend_"+a.uid,"\u786e\u5b9a");g.appendTo(e);g=this._createButton("uc_cancel_"+a.uid,"ucadd_cancel_"+a.uid,"\u53d6\u6d88");g.addClass("uccancel"+
a.uid);g.appendTo(e);return c},_createRequireFriendRelAlertTpl:function(a){var c=d("<div/>").addClass("canceltip"),b=d("<p/>").addClass("ffc");b.appendTo(c);b.append(document.createTextNode("\u6839\u636e"));var e=d("<a/>").addClass("sl2").attr("href",this._getUserUrl(a.uid));e.append(document.createTextNode(a.name));b.append(e);b.append(document.createTextNode("\u7684\u8bbe\u7f6e\uff0c\u53ea\u6709"+a.heorher+"\u597d\u53cb\u7684\u597d\u53cb\u624d\u53ef\u4ee5\u7ed9"+a.heorher+"\u53d1\u9001\u597d\u53cb\u8bf7\u6c42\uff01"));
b.append(document.createTextNode("\u70b9\u51fb\u201c\u786e\u5b9a\u201d\u4f60\u53ef\u4ee5\u5173\u6ce8"));e=d("<a/>").addClass("sl2").attr("href",this._getUserUrl(a.uid));e.append(document.createTextNode(a.name));b.append(e);b.append(document.createTextNode("\u7684\u516c\u5f00\u8bb0\u5f55\u3002"));b=d("<p/>").addClass("mt15 tar");b.appendTo(c);e=this._createButton("uc_attent_"+a.uid,"uc_atten_"+a.uid,"\u786e\u5b9a");e.appendTo(b);e=this._createButton("uc_cancel_"+a.uid,"","\u53d6\u6d88");e.appendTo(b);
return c},_createMyFriendLimitAlertTpl:function(a){var c=d("<div/>").addClass("canceltip"),b=d("<p/>").addClass("ffc");b.appendTo(c);b.append(document.createTextNode("\u4f60\u7684\u597d\u53cb\u5df2\u8d85\u8fc7"+a.ffmax+"\u4eba\uff0c\u4e0d\u53ef\u518d\u52a0\u522b\u4eba\u4e3a\u597d\u53cb\uff01\u70b9\u51fb\u201c\u786e\u5b9a\u201d\u4f60\u53ef\u4ee5\u5173\u6ce8"));var e=d("<a/>").addClass("sl2").attr("href",this._getUserUrl(a.uid));e.append(document.createTextNode(a.name));b.append(e);b.append(document.createTextNode("\u7684\u516c\u5f00\u8bb0\u5f55\u3002"));
b=d("<p/>").addClass("mt15 tar");b.appendTo(c);e=this._createButton("uc_attent_"+a.uid,"uc_atten_"+a.uid,"\u786e\u5b9a");e.appendTo(b);e=this._createButton("uc_cancel_"+a.uid,"","\u53d6\u6d88");e.appendTo(b);return c},_createHisFriendLimitAlertTpl:function(a){var c=d("<div/>").addClass("canceltip"),b=d("<p/>").addClass("ffc");b.appendTo(c);b.append(document.createTextNode(a.name+"\u7684\u597d\u53cb\u5df2\u8fbe\u4e0a\u9650\uff0c\u4e0d\u80fd\u518d\u52a0\u65b0\u7684\u597d\u53cb\u3002\u70b9\u51fb\u201c\u786e\u5b9a\u201d\u4f60\u53ef\u4ee5\u5173\u6ce8"));
var e=d("<a/>").addClass("sl2").attr("href",this._getUserUrl(a.uid));e.append(document.createTextNode(a.name));b.append(e);b.append(document.createTextNode("\u7684\u516c\u5f00\u8bb0\u5f55\u3002"));b=d("<p/>").addClass("mt15 tar");b.appendTo(c);e=this._createButton("uc_attent_"+a.uid,"uc_atten_"+a.uid,"\u786e\u5b9a");e.appendTo(b);e=this._createButton("uc_cancel_"+a.uid,"","\u53d6\u6d88");e.appendTo(b);return c},_createContent:function(){var a=this.data;this.bottomHandler="";var c=this._createDock(a);
a.star=f.isAvailable(a.star)?a.star:0;a.follow=f.isAvailable(a.follow)?a.follow:0;a.friend=f.isAvailable(a.friend)?a.friend:0;var b=parseInt(a.star,10),e=parseInt(a.follow,10),g=parseInt(a.friend,10);a.isShowWidgets=1;if(b===this._ObjectType.COMMON_USER)if(f.isAvailable(a.rgroup)&&f.isAvailable(a.rgroup.isMe)&&parseInt(a.rgroup.isMe,10)===1){a.isShowWidgets=0;c.append(this._createMyInfoPanel(a));c.append(this._createFooterMe(a));this.bottomHandler=this._RelationState.UNKNOWN}else if(g===this._Relationship.STRANGER){c.append(this._createStrangerInfoPanel(a));
if(f.isAvailable(a.rgroup)){c.append(this._createFooterStranger(a));if(e===0)this.bottomHandler=this._RelationState.COMMON_STRANGER;else if(e===1)this.bottomHandler=this._RelationState.ADD_REQUEST_SEND}else switch(e){case 0:c.append(this._createFooterStranger(a));this.bottomHandler=this._RelationState.COMMON_STRANGER;break;case 1:c.append(this._createFooterWaitAgree(a));this.bottomHandler=this._RelationState.ADD_REQUEST_SEND;break;case 3:c.append(this._createFooterFailAdd(a));this.bottomHandler=this._RelationState.ADD_REQUEST_REFUSED;
break;case 4:c.append(this._createFooterAttent(a));this.bottomHandler=this._RelationState.CAN_ONLY_ATTENT;break;default:break}}else{c.append(this._createFriendInfoPanel(a));c.append(this._createFooterFriend(a));this.bottomHandler=this._RelationState.FRIEND}else if(b>this._ObjectType.COMMON_USER){e=parseInt(a.isfan,10);g="http://"+K.Env.IMG_HOST+"/i/home";switch(b){case 1:this.data.authen="\u901a\u8fc7\u516c\u5171\u4e3b\u9875\u8ba4\u8bc1";this.data.auimg=g+"/flag1_1.gif";c.append(this._createStarInfoPanel(a));
this.bottomHandler=this._RelationState.STAR_STRANGER;break;case 2:this.data.authen="\u901a\u8fc7\u516c\u5171\u4e3b\u9875\u8ba4\u8bc1";this.data.auimg=g+"/flag1_1.gif";c.append(this._createOrgInfoPanel(a));this.bottomHandler=this._RelationState.ORG_STRANGER;break;case 3:this.data.authen="\u6ca1\u6709\u901a\u8fc7\u8eab\u4efd\u8ba4\u8bc1";this.data.auimg=g+"/flag1_grey_1.gif";c.append(this._createStarInfoPanel(a));this.bottomHandler=this._RelationState.STAR_STRANGER;break;case 4:this.data.authen="\u6ca1\u6709\u901a\u8fc7\u8eab\u4efd\u8ba4\u8bc1";
this.data.auimg=g+"/flag1_grey_1.gif";c.append(this._createOrgInfoPanel(a));this.bottomHandler=this._RelationState.ORG_STRANGER;break;default:this.data.authen="\u6ca1\u6709\u901a\u8fc7\u8eab\u4efd\u8ba4\u8bc1";this.data.auimg=g+"/flag1_grey_1.gif";c.append(this._createOrgInfoPanel(a));this.bottomHandler=this._RelationState.ORG_STRANGER;break}if(b>0)if(e===this._Relationship.STRANGER)c.append(this._createFooterAddAsFan(a));else{c.append(this._createFooterFan(a));this.bottomHandler=""}}},_bindEvents:function(a,
c,b){var e=f.isAvailable(this.ucdiv)?this.ucdiv:d("#user_card_"+b.uid);switch(a){case b._RelationState.COMMON_STRANGER:d("#show_friend_"+c).click(function(){d("#showcode").show();d("#showadd").hide();d("#uc_footer_operation").hide();d("#code").focus(function(){b.rcodeFocus=true});return false});d("#add_friend_"+c).click(function(){b._addFriend(c,b);return false});break;case b._RelationState.ADD_REQUEST_SEND:d("#add_friend_state_"+c).show();d("#uc_attent_cancel_"+c).click(function(){e.unbind("mouseleave");
if(d("#uc_op_common_"+c).length>0){d("#uc_common_"+c).hide();d("#uc_ft_"+c).hide();d("#uc_op_common_"+c).show()}else{d("#uc_common_"+c).hide();d("#uc_ft_"+c).hide();d("#usercard_cnt_"+c).append(b._createCancelAddAlertTpl(b.data));d("#uc_cancel_attend_"+c).click(function(){b._cancelAttention(c,b);return false});d("#uc_cancel_"+c).click(function(){d("#uc_op_common_"+c).hide();d("#uc_common_"+c).show();d("#uc_ft_"+c).show();return false})}return false});break;case b._RelationState.ADD_REQUEST_REFUSED:d("#add_friend_again_"+
c).click(function(){b._addFriend(c,b);return false});d("#uc_cancel_"+c).click(function(){f.isAvailable(b.ucdiv)&&b.ucdiv.unbind("mouseleave");b._cancelAttention(c,b);b._close();return false});break;case b._RelationState.CAN_ONLY_ATTENT:d("#uc_have_atten_"+c).show();d("#un_attention_"+c).click(function(){b._cancelAttention(c,b);return false});break;case b._RelationState.STAR_STRANGER:d("#uc_add_star_"+c).click(function(){b._addAsFanOfStar(c,b);return false});break;case b._RelationState.ORG_STRANGER:d("#uc_add_star_"+
c).click(function(){b._addAsFanOfOrg(c,b);return false});break;case b._RelationState.FRIEND:d(".introduce").click(function(){e.unbind("mouseleave")});d("#uc_im").click(function(){window.g_chatwith(b.uid);d.ajax({url:"/interface/statLog2.php?key=usercard_online_goto_char",type:"get",success:function(){K.log(" send ok")},error:function(){K.log(" send fail")}})})}d("#uc_common_friends").click(function(){e.unbind("mouseleave");var g="/interface/statLog2.php?key=";g+=b.data.isfriend>0?b.data.online>0?
"usercard_online_goto_commonFriend":"usercard_offline_B_goto_commonFriend":"usercard_goto_commonFriend_notFriend";d.get(g)});d("#uc_j_killOut").click(this._killOut);d("#uc_j_addAdmin").click(this._addAdmin);d("#uc_j_cancelAdmin").click(this._cancelAdmin)},_close:function(){this.rcodeFocus=false;d("#user_card_"+this.uid).hide();d("#user_card_"+this.uid).remove();this.link.unbind("mouseleave");d("#uc_write_msg").unbind("click")},_addFriend:function(a,c){var b=d("#code").val();if(b==""){d("#adderror").html('<span style="color:red">\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801\uff01</span>');
return false}var e=d("#rcode").val();f.Ajax("/friend/addverify.php",c._addFriendCallBack,"touid="+a+"&ucd="+c.data.str_ucd+"&from=ucdsimple&code="+b+"&rcode="+e,[a],c)},_addFriendCallBack:function(a,c){var b=this,e;b.rcodeFocus=false;d("#adderror").html("");if(a.retcode==4||a.retcode===null){d("#add_friend_state_"+c).show();d("#uc_ft_"+c).replaceWith(b._createFooterRequireSend(b.data))}else if(a.retcode!==null){if(a.retcode==16){d("#adderror").html('<span style="color:red">\u9a8c\u8bc1\u7801\u9519\u8bef\uff01</span>');
return false}else if(a.retcode==7)e=b._createRequireFriendRelAlertTpl(b.data);else if(a.retcode==5){b.data.ffmax=a.max;e=b._createMyFriendLimitAlertTpl(b.data)}else if(a.retcode==8)e=b._createHisFriendLimitAlertTpl(b.data);else{k.Utils.writeLog("s",c,"add_friend_from_usercard");return false}(f.isAvailable(this.ucdiv)?this.ucdiv:d("#user_card_"+c)).unbind("mouseleave");d("#uc_common_"+c).hide();d("#uc_ft_"+c).hide();d("#usercard_cnt_"+c).append(e);d("#uc_attent_"+c).click(function(){f.flushUserCard(c);
b._close()});d("#uc_cancel_"+c).click(function(){b._close()})}f.flushUserCard(c);f.afterAddFriend(c);k.Utils.writeLog("s",c,"add_friend_from_usercard");return false},_addAsFanOfStar:function(a,c){f.Ajax("/friend/addverify.php",function(b,e){d("#uc_ft_"+e).html('<p class="opt_success">\u4f60\u5df2\u6210\u4e3a'+c.data.name+"\u7684\u7c89\u4e1d</p>");f.flushUserCard(e);f.afterAddStar(e);k.Utils.writeLog("s",e,"add_friend_from_usercard");return false},"touid="+a+"&ucd="+c.data.str_ucd+"&from=ucdsimple",
[a],c)},_addAsFanOfOrg:function(a,c){f.Ajax("/friend/addverify.php",function(b,e){d("#uc_ft_"+e).html('<p class="opt_success">\u4f60\u5df2\u6210\u4e3a'+c.data.name+"\u7684\u7c89\u4e1d</p>");f.flushUserCard(e);f.afterAddOrg(e);k.Utils.writeLog("s",e,"add_friend_from_usercard");return false},"touid="+a+"&ucd="+c.data.str_ucd+"&from=ucdsimple",[a],c)},_cancelAttention:function(a,c){f.Ajax("/friend/cancelfollow.php?touid="+a,function(){c._close();f.flushUserCard(a)});if(K.isString(c._recs)&&c._recs.length>
0){d(c._recs).find("a[uid='"+a+"']").next(".icowait").hide();d(c._recs).find("a[uid='"+a+"']").next(".alyconcern").hide()}},render:function(){var a=this,c=a.uid;try{this._createContent();this._adjustPosition()}catch(b){a._close();return false}d("#usrcard_close_"+c).click(function(){a._close();return false});this.container.css("display","block");changeRcode();var e=this.ucdiv=d("#user_card_"+c);a._bindEvents(this.bottomHandler,c,a);var g=null;this.link.mouseleave(function(){g=setTimeout(function(){a._close()},
200)});e.mouseenter(function(){if(g!==null){clearTimeout(g);g=null}a.ucdiv.unbind("mouseleave");a.ucdiv.mouseleave(function(){if(g!==null){clearTimeout(g);g=null}g=setTimeout(function(){a.rcodeFocus||a._close()},50)});if(g!==null){clearTimeout(g);g=null}this.style.display="block"})}});K.mix(f.prototype,{_killOut:function(a){a.preventDefault();var c=f._getGid(),b=d(a.currentTarget).attr("uid");a=encodeURIComponent(d(a.currentTarget).attr("data-name"));openWindow("window_permission.php?gid="+c+"&touid="+
b+"&name="+a+"&flag=0",330,150,"\u6210\u5458\u7ba1\u7406")},_addAdmin:function(a){a.preventDefault();var c=f._getGid(),b=d(a.currentTarget).attr("uid");a=encodeURIComponent(d(a.currentTarget).attr("data-name"));openWindow("window_permission.php?gid="+c+"&touid="+b+"&name="+a+"&flag=1",330,150,"\u6210\u5458\u7ba1\u7406")},_cancelAdmin:function(a){a.preventDefault();var c=f._getGid(),b=d(a.currentTarget).attr("uid");a=encodeURIComponent(d(a.currentTarget).attr("data-name"));openWindow("window_permission.php?gid="+
c+"&touid="+b+"&name="+a+"&flag=2",330,150,"\u6210\u5458\u7ba1\u7406")}});K.mix(f,{_getGid:function(){return f.isAvailable(k)&&f.isAvailable(k.Env)&&f.isAvailable(k.Env.rgroup)&&f.isAvailable(k.Env.rgroup.group)&&f.isAvailable(k.Env.rgroup.group.gid)?k.Env.rgroup.group.gid:""},_isShowUserCard:function(a,c,b,e){if((f.isAvailable(window.g_im_vuid)?window.g_im_vuid:0)===c&&!a||parseInt(b,10)!==0&&!e.attr("friend-show")&&!e.attr("data-usercard")&&!e.hasClass("showcard")){if(e.attr("uname")){e.attr("title",
e.attr("uname"));e.find("img")[0]&&e.find("img").attr("alt",e.attr("uname"))}return false}return true},afterAddFriend:function(){},afterAddStar:function(a){d('a.addbtn[uid="'+a+'"]').replaceWith('<span class="c9">\u5df2\u662f\u7c89\u4e1d</span>')},afterAddOrg:function(a){this.afterAddStar(a)},Ajax:function(a,c,b,e,g,h){a={url:a,dataType:"json",type:"POST",data:b,success:function(j){if(f.isAvailable(e)){var i=[];i.push(j);i=i.concat(e);c.apply(g,i)}else c(j)},error:function(){}};if(f.isAvailable(b))a.data=
b;if(f.isAvailable(h))a.dataType=h;d.ajax(a)},bindElements:function(a,c,b,e,g,h){var j=this,i=null;if(d.trim(window.getCookie("_user"))==="")return false;var n=function(q){return q};if(typeof a==="string")i=d(a);else if(a instanceof d)i=a;else{alert("\u540d\u7247\u7ed1\u5b9a\u51fa\u9519\uff0c\u672a\u6307\u5b9a\u7ed1\u5b9a\u5143\u7d20");return false}if(K.isFunction(b))n=b;var s=250;if(f.isAvailable(h)&&f.isAvailable(h.with_delay_time))s=parseInt(h.with_delay_time,10);var p=null;i.live("mouseenter",
function(q){function t(l){f.isAvailable(l.uid)&&!j.isUserCardCached(l.uid)&&j.cacheUserCard(l.uid,l);j._isShowUserCard(f.isAvailable(l.rgroup),l.uid,l.friend,m)!==false&&(new f(m,l,e,g,h)).render()}var m=null,o=null,u=null,v=null;m=d(q.currentTarget);o=m.attr("uid")||m.attr("userid")||m.attr("data-uid");if(!o)return false;u=n(o,m);v="/interface/usercard.php?uid="+o+"&aid="+c+"&ruid="+u+"&gid="+f._getGid();K.isNull(p)||clearTimeout(p);p=setTimeout(function(){if(j.isUserCardCached(o)){var l=j.getUserCardCached(o);
t(l)}else j.Ajax(v,t)},s);q.stopPropagation()});i.live("mouseleave",function(){K.isNull(p)||clearTimeout(p)})},cacheUserCard:function(a,c){window.KxuserCards[a]=c;var b=this;setTimeout(function(){b.flushUserCard(a)},18E4)},flushUserCard:function(a){var c=window.KxuserCards;c&&c[a]&&delete c[a]},getUserCardCached:function(a){return window.KxuserCards[a]},isUserCardCached:function(a){return!!window.KxuserCards[a]},isAvailable:function(a){return!K.isUndefined(a)&&!K.isNull(a)}});window.KxuserCards={};
return window.KxUserCard=f});

