﻿/*
 * Compressed by JSA(www.xidea.org)
 */
luguoUI=new Object();luguoUI.HTMLMODEL={sysinfor:"<DIV class=logitem><DIV class=statuslog>#mess#</DIV></DIV>",guestinfor:"<DIV class=logitem><DIV class=strangermsg><SPAN class=msgsource>"+FaqeeLang.stranger+"#dm#\uff1a</SPAN> #mess#</DIV></DIV>",privateinfor:"<DIV class=logitem><DIV class=strangermsg><SPAN class=msgsource>\u964c\u751f\u4eba\u6084\u6084\u5730\u8bf4\uff1a</SPAN> #mess#</DIV></DIV>",youinfor:"<DIV class=logitem><DIV class=youmsg><SPAN class=msgsource>"+FaqeeLang.me+"\uff1a</SPAN> #mess#</DIV></DIV>",overinfor:"<DIV class=logitem><DIV><a href='#' onclick='luguoUI.newChat()'>"+FaqeeLang.newchat+"</a> "+FaqeeLang.or+" <a href='#' onclick='luguoUI.inviteLuguo()'>"+FaqeeLang.fingerwho+"</a> "+FaqeeLang.or+" <A href=\"javascript:luguoUI.sendEmail(this)\">"+FaqeeLang.sendemail+"</A>&nbsp;<img src='new.gif'/>&nbsp; "+FaqeeLang.or+" <A href=\"javascript:luguoUI.downloadMessages()\">"+FaqeeLang.saveLog+"</A> .</DIV></DIV>",glistinfor:"<div class='fex_row'><a href='#'>"+FaqeeLang.stranger+"</a><br/><div class='fex_tail'><small>"+FaqeeLang.formwhat+" [#addr#] </small></div></div>"};luguoUI.args={messList:new Array(),CURPAGE:1};luguoUI.url={refreshGuest:"http://nb.faqee.com:9090/plugins/online/online?type=user&domain=nb.faqee.com&cmd=getonlinenum&jid=admin@nb.faqee.com",getstat:"http://nb.faqee.com:9090/plugins/online/online?type=user&domain=nb.faqee.com&cmd=getstatinfor&jid=admin@nb.faqee.com",getguestdetail:"http://nb.faqee.com:9090/plugins/online/online?type=user&domain=nb.faqee.com&cmd=getguest&jid=admin@nb.faqee.com",getrandg:"http://nb.faqee.com:9090/plugins/online/online?type=user&domain=nb.faqee.com&cmd=getrandguest&jid=admin@nb.faqee.com",setguest:"http://nb.faqee.com:9090/plugins/online/online?type=user&domain=nb.faqee.com&cmd=setguest&jid=admin@nb.faqee.com",guestlist:"http://nb.faqee.com:9090/plugins/online/online?type=user&domain=nb.faqee.com&cmd=guestlist&topn=50&jid=admin@nb.faqee.com",sendemail:"http://www.faqee.com/crm/g_email.action"};luguoUI.init=function(){luguoUI.refreshStat();window.setInterval(function(){luguoUI.refreshGuest()},10000)};luguoUI.formatJID=function($){$=$.split("@")[0];return $.replace(/@/g,"_at_").replace(/\//g,"_xx_").replace(/\./g,"_dt_").replace(" ","_b_").replace(/\s/g,"_b_")};luguoUI.formatRoomNick=function($){$=$.split("/")[1];return $};luguoUI.transFace=function($){for(var _=0;_<=26;_++){reg="`face"+_+"`";$=$.replace(new RegExp(reg,"g"),"<img src='http://v4.faqee.com/images/msn/"+_+".gif' />")}$=this.ubb($);return $};luguoUI.transVChat=function(A){if(A.indexOf("vchat`")>=0){var $=A.split("`")[1],_=webim.status.myname;A="\u6211\u53d1\u8d77\u4e86\u4e00\u4e2a\u89c6\u9891\u804a\u5929\uff0c<a href=\"javascript:luguoUI.openV('"+_+"','"+$+"')\">\u70b9\u51fb\u8fd9\u91cc\u8fdb\u5165</a>"+""}return A};luguoUI.getDisplayName=function($){return $.split("@")[0]};luguoUI.msgReplace=function($,A,_){var B="";if(typeof(A)!="undefined"&&A)B=this.HTMLMODEL.youinfor+"";else B=this.HTMLMODEL.guestinfor+"";B=B.replace(/#mess#/g,$);if((_!="")&&(_.length!=8))B=B.replace(/#dm#/g,"("+_+")");else B=B.replace(/#dm#/g,"");return B};luguoUI.sendMessage=function(A,_){GCONFIG.dotyping=false;this.appendMessage(_,true,"");if(GCONFIG.transEnglish)_=luguoUI.trans(_);else webim.sendGroupMessage(GCONFIG.roomid,_);$("#whotyping").hide()};luguoUI.showEnabled=function(_){$(".disconnectbtn").attr("disabled",_);$(".chatmsg").attr("disabled",_);$(".sendbtn").attr("disabled",_)};luguoUI.randID=function(){var D="luguo_";for(i=0;i<10;i++){var E=Math.ceil(Math.random()*9),A=String.fromCharCode(Math.ceil(25*Math.random()+65)),_=String.fromCharCode(Math.ceil(25*Math.random()+97)),$="",C="",B=Math.round(Math.random());B==0?C=A:C=_;b=E+C;D+=""+b}return D};luguoUI.appendMessage=function(B,_,C){var A=B;A=this.transFace(A);A=this.transVChat(A);A=this.msgReplace(A,_,C);A=A.replace(/autoreply`/g,"");$(".logbox").append(A);this.scrollDown()};luguoUI.refreshOnlineNum=function(){$("#onlinenum").text($(".myonline").size())};luguoUI.addOnlineUser=function(A){var _=this.constant.userinHTML;if(A==webim.status.nickname)_=this.constant.selfinHTML;_=_.replace(/#who#/g,A);$("#onlineUsers").append(_);this.refreshOnlineNum()};luguoUI.formatStr=function($){var _="";if($<10)_="0"+$;else _=$;return _};luguoUI.leaveRoomMessage=function(){webim.leaveRoom(GCONFIG.roomid);var $=luguoUI.HTMLMODEL.overinfor;sysMessage($,false);webim.status.ischat=false;webim.status.isDelayChat=false;this.showEnabled(true);this.scrollDown()};luguoUI.scrollDown=function(){$(".logwrapper").attr("scrollTop","100000000");$(".logbox").attr("scrollTop","100000000")};luguoUI.switchLang=function(_){$("body").changeLang({lang:_,file:"lang/lang.xml"});if(_=="zh")$("#langjs").attr("src","lang/zh.js");else $("#langjs").attr("src","lang/en.js")};luguoUI.resvMessage=function(A){if(typeof(this.formatRoomNick(A.from))=="undefined")return;if((A.body+"").indexOf("typing`")==0){var B=A.body.split("`")[1];if(B!=webim.status.myname){$("#whotyping").text(FaqeeLang.inputing+"...");$("#whotyping").animate({opacity:"show"},1000).animate({opacity:"0.1"},200).animate({opacity:"0.9"},200).animate({opacity:"0.1"},200).animate({opacity:"0.9"},200);$("#whotyping").show();document.title=(document.title==FaqeeLang.title)?"\u3010"+FaqeeLang.inputing+"\u3011"+FaqeeLang.title:FaqeeLang.title}return}else if((A.body+"").indexOf("vchat`")==0){if(webim.status.nickname!=this.formatRoomNick(A.from))this.appendMessage("\u5bf9\u65b9\u53d1\u8d77\u4e86\u4e00\u4e2a\u89c6\u9891\u804a\u5929\uff0c<a href=\"javascript:luguoUI.openV()\">\u70b9\u51fb\u8fd9\u91cc\u8fdb\u5165</a>"+"",false,this.formatRoomNick(A.from));return}else if((A.body+"").indexOf("notyping`")==0){B=A.body.split("`")[1];if(B!=webim.status.myname){$("#whotyping").hide();document.title=FaqeeLang.title}return}else if((A.body+"").indexOf("mfplaying`")==0){this.playMagicFace(A.body.split("`")[1]);return}var _=A.body;_=this.transFace(_);if(webim.status.nickname!=this.formatRoomNick(A.from)){this.appendMessage(A.body+"",false,this.formatRoomNick(A.from));luguoUI.newMessageCome();luguoUI.playSound("message");this.pushMessage({who:FaqeeLang.stranger,message:_});if(webim.status.autoreply!="")if((A.body+"").indexOf("autoreply`")!=0)webim.sendGroupMessage(GCONFIG.roomid,"autoreply`"+webim.status.autoreply)}else this.pushMessage({who:FaqeeLang.me,message:_});$(".chatmsg").focus()};luguoUI.newMessageCome=function(){if(typeof(TITLETIMER)=="undefined")TITLETIMER=window.setInterval(function(){document.title=(document.title==FaqeeLang.title)?("\u3010"+FaqeeLang.newmess+"\u3011"+FaqeeLang.title):FaqeeLang.title},500)};luguoUI.sendInvite=function(_){var A=$("#chkinvitetxt").val();$("input[name='"+_+"']").each(function(){var _=$(this).val();_=_.replace(" ","\\40");webim.sendMessage(A,_)});$(".boxy-wrapper").hide()};luguoUI.selectAll=function(_){$("input[name='"+_+"']").each(function(){$(this).attr("checked",true)})};luguoUI.whoChange=function(A,_,B){var C=A.split("@")[0];if(C=="")return;if($("#myf_"+C).length==0)$("#inviteList").append("<p id='myf_"+C+"'><input type='checkbox' value='"+A+"' name='chkinvite'/>"+C+"</p>")};luguoUI.loginSvr=function(A){var B=$("#usr_"+A).val(),_=$("#pwd_"+A).val(),C=A;if($.trim(B)==""||$.trim(_)==""){alert(FaqeeLang.blackuser);return}webim.bindMSN(B,_,C);$("#btn_"+A).attr("disabled",true);$("#btn_"+A).val(FaqeeLang.reading)};luguoUI.invite=function(_){if(_=="all"){var A="<p><a href=\"#\" onclick=\"javascript:luguoUI.invite('msn');\" langtag=\"invitebymsn2\">\u9080\u8bf7\u4f60\u7684MSN\u670b\u53cb\u5230\u8fd9\u91cc\u6765\uff01</a></p><br/>"+"<p><a href=\"#\" onclick=\"javascript:luguoUI.invite('yahoo');\" langtag=\"invitebyyahoo2\">\u9080\u8bf7\u4f60\u7684Yahoo\u670b\u53cb\u5230\u8fd9\u91cc\u6765\uff01</a></p><br/>"+"<p><a href=\"#\" onclick=\"javascript:luguoUI.invite('gtalk');\" langtag=\"invitebygtalk2\">\u9080\u8bf7\u4f60\u7684Gtalk\u670b\u53cb\u5230\u8fd9\u91cc\u6765\uff01</a></p><br/>"+"<p><a href=\"#\" onclick=\"javascript:luguoUI.invite('icq');\" langtag=\"invitebyicq2\">\u9080\u8bf7\u4f60\u7684ICQ\u670b\u53cb\u5230\u8fd9\u91cc\u6765\uff01</a></p><br/>";this.openWnd({title:"\u8bf7\u9009\u62e9\u9080\u8bf7\u65b9\u5f0f",content:A})}else{$("#msnlist").remove();var B="<div id=\"msnlist\"><p>"+_+FaqeeLang.username+"\uff1a<input type=\"text\" id=\"usr_"+_+"\" /></p><p>"+_+FaqeeLang.password+"\uff1a<input type=\"password\" id=\"pwd_"+_+"\" /></p>"+"<center><input type=\"button\" id=\"btn_\""+_+" onclick=\"luguoUI.loginSvr('"+_+"')\" value=\""+FaqeeLang.login+"\" /></center></div>";this.openWnd({title:FaqeeLang.invite,content:B})}};luguoUI.getJoke=function(){$.getJSON("http://www.faqee.com/crm/g_joke.action?cmd=getjoke&callback=?",function(A){if(A.joke){var $=A.joke.title,_="<div style='font-size:12px;'>"+A.joke.content+"</div><center id=\"xiaohua_center\"><a href=\"javascript:luguoUI.getJoke();\">"+FaqeeLang.switchpage+"</a></center>",B=A.joke.class_name;luguoUI.openWnd({title:$+" \u2014 "+B,content:_})}})};function sendEmailcallback(){if(AjaxCrossDomainResponse.indexOf("1")>0){luguoUI.openWnd({title:FaqeeLang.sysinfor,content:FaqeeLang.emailok});window.setTimeout(function(){$(".boxy-wrapper").hide()},2000)}else{luguoUI.openWnd({title:FaqeeLang.sysinfor,content:FaqeeLang.emailerror});window.setTimeout(function(){$(".boxy-wrapper").hide()},2000)}}luguoUI.sendEmailOK=function(){email=$("#myemail").val();this.setCookie("email",email);this.openWnd({title:FaqeeLang.sysinfor,content:FaqeeLang.emailsending});var A="",_=this.args.messList.join("");_=encodeURIComponent(_);_=encodeURIComponent(_);if(_==""){$(".boxy-wrapper").hide();return}$("#frm_email").val(email);$("#frm_content").val(_);AjaxCrossDomainRequest(this.url.sendemail,"POST","cross_domain_demo","sendEmailcallback()")};luguoUI.ubb=function($){if($.indexOf("://")>0){$=$.replace(/(^|[^\"\'\]])(http|ftp|mms|rstp|news|https)\:\/\/([^\s\033\[\]\"\']+)/gi,"$1[url]$2://$3[/url]");$=$.replace(/\[url\](http\:\/\/\S+\.)(gif|jpg|jpeg|png)\[\/url\]/gi,"[img]$1$2[/img]")}if($.match(/\[(\w+)([^\[\]\s]*)\].*\[\/\1\]/)){$=$.replace(/\[url\](.+?)\[\/url\]/gi,"<a href=$1 target=_blank>$1</a>");$=$.replace(/\[img\](.+?\.(?:gif|jpg|jpeg|png))\[\/img\]/gi,"<img src='$1' alt='$1'>");$=$.replace(/\[flash\](.+?\.swf)\[\/flash\]/gi,"<embed src='$1' quality=high wmode=transparent type='application/x-shockwave-flash' width=400 height=300></embed><br> FLASH: <a href='$1' target=_blank>$1</a><br>");$=$.replace(/\[wma\](.+?\.(?:wma|mp3))\[\/wma\]/gi,"<embed src='$1' height=40 AutoStart=0></embed><br> WMA: <a href='$1' target=_blank>$1</a><br>");$=$.replace(/\[color=([#0-9a-zA-Z]{1,10})\](.+?)\[\/color\]/gi,"<font color='$1'>$2</font>");$=$.replace(/\[b\](.+?)\[\/b\]/gi,"<b>$1</b>");$=$.replace(/\[i\](.+?)\[\/i\]/gi,"<i>$1</i>")}return $};luguoUI.sendEmail=function(_){this.openWnd({title:FaqeeLang.sysinfor,content:FaqeeLang.inputEmail+"<input type=\"text\" id=\"myemail\" value=\"@\" />&nbsp;&nbsp;<input type=\"button\" onclick=\"luguoUI.sendEmailOK()\" value=\""+FaqeeLang.send+"\" />"});if(this.getCookie("email")!=null)$("#myemail").val(this.getCookie("email"))};luguoUI.getClipboard=function(){if(window.clipboardData)return(window.clipboardData.getData("Text"));else if(window.netscape){netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");var $=Components.classes["@mozilla.org/widget/clipboard;1"].createInstance(Components.interfaces.nsIClipboard);if(!$)return;var B=Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable);if(!B)return;B.addDataFlavor("text/unicode");$.getData(B,$.kGlobalClipboard);var C=new Object(),A=new Object();try{B.getTransferData("text/unicode",C,A)}catch(_){return null}if(C)if(Components.interfaces.nsISupportsWString)C=C.value.QueryInterface(Components.interfaces.nsISupportsWString);else if(Components.interfaces.nsISupportsString)C=C.value.QueryInterface(Components.interfaces.nsISupportsString);else C=null;if(C)return(C.data.substring(0,A.value/2))}return null};luguoUI.sendFile=function(){this.openWnd({title:FaqeeLang.infor,content:"<iframe src=\"http://www.faqee.com/crm/common/luguo.jsp\" border=\"0\" frameBorder=\"0\" style=\"z-index: -1; padding-bottom: 0px; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; height: 100%; top: 0px; padding-top: 0px; left: 0px;\"></iframe>"})};luguoUI.sendPic=function($){var _=luguoUI.randID();this.openWnd({title:FaqeeLang.infor,content:FaqeeLang.inputURL+"\uff1a<input type=\"text\" style=\"width:350px;\" id=\"picurl_"+_+"\" value=\"http://\" />&nbsp;&nbsp;<input type=\"button\" onclick=\"luguoUI.sendPicOK('"+$+"','"+_+"')\" value=\""+FaqeeLang.insert+"\" />"})};luguoUI.sendPicOK=function(A,B){var _="["+A+"]"+$("#picurl_"+B).val()+"[/"+A+"]";insertAtCaret($(".chatmsg").get(0),_);$(".boxy-wrapper").hide()};luguoUI.insert2Text=function(_){$(".chatmsg").focus();insertAtCaret($(".chatmsg").get(0),_)};window.sendEmailCallback=function($){if(typeof($.res)!="undefined"){if($.res=="1")alert(FaqeeLang.emailok);else alert(FaqeeLang.emailerror)}else alert(FaqeeLang.emailerror)};luguoUI.downloadMessages=function(){var B=new Date(),E=(B.getDate()).toString();if(B.getDate()<10)E="0"+(B.getDate()).toString();var D=(B.getMonth()+1).toString();if((B.getMonth()+1)<10)D="0"+D;var C=B.getYear().toString()+D+E+"_"+Math.floor(Math.random()*1000000)+".html",_=window.open();_.document.open("html","UTF-8");_.document.writeln("<html></body>");_.document.writeln($(".logbox").html());_.document.writeln("<br>");_.document.writeln("<center>  Copyright @ 2009 faqee.com</center>");_.document.writeln();_.document.writeln("</body></html>");var A=_.document.execCommand("SaveAs",true,C);_.close()};luguoUI.pushMessage=function($){this.args.messList.push("<div>"+$.who+"\uff1a"+$.message+"</div>")};luguoUI.formatStr=function($){var _="";if($<10)_="0"+$;else _=$;return _};luguoUI.showDate=function(){var $=new Date(),A=($.getDate()).toString();if($.getDate()<10)A="0"+($.getDate()).toString();var B=($.getMonth()+1).toString();if(($.getMonth()+1)<10)B="0"+B;var C=$.getYear().toString()+"-"+B+"-"+A,_=C+"  "+this.formatStr($.getHours())+":"+this.formatStr($.getMinutes())+":"+this.formatStr($.getSeconds());return _};luguoUI.setCookie=function(_,$){date=new Date();date.setTime(date.getTime()+2*365*(24*60*60*1000));document.cookie=_+"="+($!=""?escape($):"")+"; expires="+date.toGMTString()};luguoUI.getCookie=function(A){var $=document.cookie.split("; ");for(var B=0;B<$.length;B++){var _=$[B].split("=");if(A==_[0]){if(typeof(_[1])=="undefined")return null;return unescape(_[1])}}return null};luguoUI.changeRoom=function(_){var $=this.url.getrandg+"&gid="+webim.status.myname+"&pregid="+_+"&site=luguo&callback=window.getRandUser";$=$+"&t="+new Date();this.exeCode($)};luguoUI.setGuest=function(_,$){var A=this.url.setguest+"&gid="+webim.status.myname+"&key="+_+"&value="+$+"&callback=window.setGuestCallback";A=A+"&t="+new Date();this.exeCode(A)};window.setGuestCallback=function($){alert("\u8bbe\u7f6e\u6210\u529f!")};luguoUI.newChat=function(){$(".logbox").empty();this.startChat(true)};luguoUI.showChatWnd=function(){$("#mainDiv").hide();$("#chatdiv").show();var _=$(".chatmsg").offset();$("#whotyping").css("left",_.left+220);$("#whotyping").css("top",_.top+35);$("#whotyping").show()};luguoUI.startChat=function(A,_){this.showChatWnd();if(typeof(_)=="undefined"){GCONFIG.roomid=luguoUI.randID();webim.joinRoom(GCONFIG.roomid,webim.status.nickname)}else{if(webim.status.ischat)webim.leaveRoom(GCONFIG.roomid);GCONFIG.roomid=_;webim.joinRoom(_,webim.status.nickname)}if(A){sysMessage(FaqeeLang.searching);this.changeRoom(GCONFIG.cguest)}$(".disconnectbtn").attr("disabled",false)};window.getRandUser=function(A){if(typeof(A.res)!="undefined"){if(A.res=="0")sysMessage(FaqeeLang.person2low);else{var $=A.guest;GCONFIG.scity=$.addr;GCONFIG.cguest=$.gid;var _=FaqeeLang.supei.replace(/_stranger_/g,GCONFIG.cguest).replace(/_me_/g,webim.status.nickname);sysMessage(_);webim.roomInviteOne(GCONFIG.roomid,$.gid+"@"+GCONFIG.url,FaqeeLang.autoinvitereason)}}else sysMessage(FaqeeLang.person2low)};window.getInviteLuguoCallback=function(A){var _="";$.each(A.glist,function(B,A){var C=A.addr,$=A.gid;if(typeof($)!="undefined")if($!=webim.status.myname)_=_+"<input type='radio' name='radio_invitethissite' id='inv_chk_"+$+"' value='"+$+"' /><label for='inv_chk_"+$+"'>"+$+"("+C+")</label><br/>"});_=_+"<p><center><textarea rows=3 style='border:1px solid #CCC;width:98%' id='inv_txt_reason'>"+FaqeeLang.inviteinfordefault+"</textarea></center></p>";_=_+"<p><center><input type='button' onclick=\"luguoUI.sendInviteFromThisSite()\" value='"+FaqeeLang.startinvite+"' /></center></p>";_=_+"<p><center style='font-size:12px;'>"+FaqeeLang.disinfor+"</center></p>";luguoUI.openWnd({title:FaqeeLang.invitezhannei,content:_})};window.getguestlistCallback=function(A){var _="<table width=550><thead><td width=80>ID</td><td width=120>"+FaqeeLang.glisttd_logindt+"</td><td width=60>"+FaqeeLang.glisttd_sex+"</td><td width=140>"+FaqeeLang.glisttd_city+"</td><td>"+FaqeeLang.opration+"</td></thead>";$.each(A.glist,function(B,A){var C=A.addr,$=A.gid;_+="<tr>";if(typeof($)!="undefined")if($!=webim.status.myname)_=_+"<td>"+$+"</td><td>"+A.logindate+"</td><td>"+(A.sex=="0"?FaqeeLang.secret:(A.sex=="m"?FaqeeLang.man:FaqeeLang.woman))+"</td><td>"+C+"</td><td><a href=\"javascript:luguoUI.sendInviteByGid('"+$+"')\">"+FaqeeLang.chat2he+"</a></td>";else _=_+"<td>"+FaqeeLang.me+"</td><td>"+A.loginDate+"</td><td>"+(A.sex=="0"?FaqeeLang.secret:(A.sex=="m"?FaqeeLang.man:FaqeeLang.woman))+"</td><td>"+C+"</td><td><a href=\"javascript:luguoUI.sendInviteByGid('"+$+"')\">"+FaqeeLang.chat2he+"</a></td>";_+="</tr>"});_=_+"</table>";luguoUI.openWnd({title:FaqeeLang.onlinelistinfor,content:_})};luguoUI.getGuestDetail=function($){var _=webim.status.myname,A=this.url.getguestdetail;A=A+"&gid="+$+"&callback=window.getguestlistDetailCallback";A=A+"&t="+new Date();this.exeCode(A)};luguoUI.getGuestDetailInfor=function($){var _=webim.status.myname,A=this.url.getguestdetail;A=A+"&gid="+$+"&callback=window.getguestlistDetailInforCallback";A=A+"&t="+new Date();this.exeCode(A)};window.getguestlistDetailCallback=function($){if($.guest){var _=$.guest;GCONFIG.scity=_.addr;GCONFIG.cguest=_.gid}else sysMessage(FaqeeLang.shasgoneinfor)};window.getguestlistDetailInforCallback=function($){if($.guest){var _=$.guest,A="";A=FaqeeLang.daoju_user+"\uff1a<br/>"+FaqeeLang.glisttd_city+"\uff1a"+_.addr;A=A+"\uff0cIP\uff1a "+_.ip;A=A+"\uff0c"+FaqeeLang.glisttd_logindt+"\uff1a "+_.loginDate;A=A+"\uff0c"+FaqeeLang.glisttd_sex+"\uff1a "+(_.sex=="0"?FaqeeLang.secret:(_.sex=="f"?FaqeeLang.woman:FaqeeLang.man));sysMessage(A)}else sysMessage(FaqeeLang.daoju_gone)};luguoUI.sendInviteFromThisSite=function(){var _=$("input[name='radio_invitethissite']:checked").val();if($.trim(_)==""){alert(FaqeeLang.leastone);return}if(typeof(GCONFIG.roomid)!="undefined")webim.leaveRoom(GCONFIG.roomid);GCONFIG.roomid=this.randID();webim.joinRoom(GCONFIG.roomid,webim.status.nickname);window.setTimeout(function(){webim.roomInviteOne(GCONFIG.roomid,_+"@"+GCONFIG.url,$("#inv_txt_reason").val())},2000);this.openWnd({title:FaqeeLang.sysinfor,content:FaqeeLang.hassend});window.setTimeout(function(){$(".boxy-wrapper").hide()},2000);this.getGuestDetail(_);if(document.getElementById("mainDiv").style.display!="none"){$("#mainDiv").hide();$("#chatdiv").show();var A=$(".sendbtnwrapper").offset();$("#whotyping").css("left",A.left+220);$("#whotyping").css("top",A.top+35);$("#whotyping").hide()}};window.portalWeather=function(A){if(typeof(A.t)!="undefined"&&A.t!="undefined"){var _=FaqeeLang.today+FaqeeLang.weather+"\uff1a<b><font color=red>"+A.t+"</font>("+A.t_result+")</b>\uff0c<br/>"+FaqeeLang.today2+FaqeeLang.weather+"\uff1a<b><font color=green>"+A.t2+"</font>("+A.t2_result+")</b>\uff0c<br/>"+FaqeeLang.today3+FaqeeLang.weather+"\uff1a<b><font color=green>"+A.t3+"</font>("+A.t3_result+")</b>\uff0c<br/>",$="";for(var B=0;B<A.zhishu.length;B++)$+=A.zhishu[B].name+":"+A.zhishu[B].value+"<br/>";sysMessage(FaqeeLang.daoju_weather+"\uff1a<br/>"+FaqeeLang.stranger+_+"<br/>"+$)}else sysMessage(FaqeeLang.daoju_weather+"\uff1a"+FaqeeLang.daoju_error)};luguoUI.trans=function(A){$("#whotyping").text(FaqeeLang.transing+"...");var _=A;google.language.translate(_,"","en",function(B){if(!B.error){var A=B.translation;webim.sendGroupMessage(GCONFIG.roomid,A)}else webim.sendGroupMessage(GCONFIG.roomid,_);$("#whotyping").text("")})};luguoUI.daoju=function(E){var D=GCONFIG.logindt,B=new Date(),A=parseInt((B-D)/1000);if(A<120){var C=FaqeeLang.daoju_2low.replace(/_jg_/g,A+"");this.openWnd({title:FaqeeLang.sysinfor,content:C});return}if("qly"==E){if(GCONFIG.scity!=""){C=FaqeeLang.daoju_qly_infor.replace(/_city_/g,GCONFIG.scity);sysMessage(C)}else sysMessage(FaqeeLang.nolink)}else if("ld"==E){if(GCONFIG.scity!=""){sysMessage("<a href=\"#\" onclick=\"javascript:luguoUI.getJuli()\">"+FaqeeLang.daoju_juli_infor+"</a>");GCONFIG.map=new LTMaps("mapDiv");GCONFIG.map.addControl(new LTStandMapControl());JULI.cal("",GCONFIG.scity,GCONFIG.youcity)}else sysMessage(FaqeeLang.nolink)}else if("qyb"==E){if(GCONFIG.scity!=""){var _="http://www.faqee.com/crm/interface/weather/w.js?id=portal_weather_zhishu&encode=UTF-8&city="+GCONFIG.scity+"&callback=window.portalWeather";$("#faqee_weather_script").attr("src",_);sysMessage(FaqeeLang.daoju_qyb+"\uff1a");window.setTimeout(function(){FaqeeWeatherService.init()},2000)}else sysMessage(FaqeeLang.nolink)}else if("tkq"==E){if(GCONFIG.scity!="")this.getGuestDetailInfor(GCONFIG.cguest);else sysMessage(FaqeeLang.nolink)}else if("trans"==E)$("#transAgent").toggle(function(){$(this).css("font-weight","bold");GCONFIG.transEnglish=true},function(){$(this).css("font-weight","normal");GCONFIG.transEnglish=false});else sysMessage("error\uff01")};luguoUI.sendInviteByGid=function(_){if(typeof(GCONFIG.roomid)!="undefined")webim.leaveRoom(GCONFIG.roomid);GCONFIG.roomid=this.randID();webim.joinRoom(GCONFIG.roomid,webim.status.nickname);window.setTimeout(function(){webim.roomInviteOne(GCONFIG.roomid,_+"@"+GCONFIG.url,$("#inv_txt_reason").val())},2000);this.getGuestDetail(_);this.openWnd({title:FaqeeLang.sysinfor,content:FaqeeLang.invitehassend});window.setTimeout(function(){$(".boxy-wrapper").hide()},2000);if(document.getElementById("mainDiv").style.display!="none"){$("#mainDiv").hide();$("#chatdiv").show();var A=$(".sendbtnwrapper").offset();$("#whotyping").css("left",A.left+220);$("#whotyping").css("top",A.top+35);$("#whotyping").hide()}};luguoUI.inviteLuguo=function(){var _=webim.status.myname,$=this.url.guestlist;$=$+"&callback=window.getInviteLuguoCallback";$=$+"&t="+new Date();this.exeCode($)};luguoUI.getguestlist=function(){var _=webim.status.myname,$=this.url.guestlist;$=$+"&callback=window.getguestlistCallback";$=$+"&t="+new Date();this.exeCode($)};luguoUI.openWnd=function(_){$(".boxy-wrapper").hide();new Boxy("<div style='background-color:#FFFFCC;font-size:14px;'>"+_.content+"</div>",{title:_.title,width:450})};luguoUI.loadFile=function($,_){var A=null;if(_=="js"){A=document.createElement("script");A.setAttribute("type","text/javascript");A.setAttribute("src",$)}else if(_=="css"){A=document.createElement("link");A.setAttribute("rel","stylesheet");A.setAttribute("type","text/css");A.setAttribute("href",$)}if(typeof A!="undefined")document.getElementsByTagName("head")[0].appendChild(A)};luguoUI.script={exeScript:"faqee_script_exescript"};luguoUI.createScriptTag=function(){var _=document.getElementsByTagName("head").item(0),$=document.createElement("script");$.src="";$.id=this.script.exeScript;_.appendChild($)};luguoUI.exeCode=function(B){if(document.getElementById(this.script.exeScript)){var $=document.getElementById(this.script.exeScript),A=$.parentNode;A.removeChild($)}var _=document.getElementsByTagName("head").item(0),C=document.createElement("script");C.src=B;C.id=this.script.exeScript;_.appendChild(C)};luguoUI.retGuestList=function(){var _=webim.status.myname,$=this.url.guestlist;$=$+"&callback=window.retGuestList";$=$+"&t="+new Date();this.exeCode($)};window.retGuestList=function(_){luguoUI.refreshGuest();window.setInterval(function(){luguoUI.refreshGuest()},10000);$.each(_.glist,function(D,C){var _=C.addr,A=C.gid,B=luguoUI.HTMLMODEL.glistinfor.replace(/#addr#/g,_).replace(/#id#/g,A);$(".fex_rows").append(B)})};luguoUI.refreshGuest=function(){var $=this.url.refreshGuest+"&callback=window.getOnlineUser";$=$+"&t="+new Date();this.exeCode($)};luguoUI.refreshStat=function(){var $=this.url.getstat+"&callback=window.getStat";$=$+"&t="+new Date();this.exeCode($)};luguoUI.getDist=function(_,$){JULI.cal("juli_"+_,$,GCONFIG.youcity)};window.getOnlineUser=function(A){var _=A.len;$("#totalnum").html(FaqeeLang.chatonline+":<b>"+_+"</b>");$("#totalnum").animate({opacity:"show"},1000).animate({opacity:"0.1"},200).animate({opacity:"0.9"},200).animate({opacity:"0.1"},200).animate({opacity:"0.9"},200)};window.getStat=function(A){var _=A.len;$("#stotalmess").text(_.split("/")[1]);$("#stotaluser").text(_.split("/")[0])};luguoUI.sendMagicFace=function($){webim.sendGroupMessage(GCONFIG.roomid,"mfplaying`"+$+"`"+webim.status.myname+"")};luguoUI.playMagicFace=function($){document.getElementById("magic_face").style.display="";var _=new SWFObject("mf/mf_"+$+".swf","mymovie","500","350","6","#336699","wmode");_.addParam("wmode","transparent");_.write("magic_face");window.setTimeout(function(){document.getElementById("magic_face").style.display="none"},5000)};luguoUI.setAway=function(){var $=document.getElementById("chkAllowChat").checked;if($){document.getElementById("chkAutoAllowChat").checked=false;this.setCookie("autochat","0");this.setCookie("nochat","1")}else this.setCookie("nochat","0")};luguoUI.setNoSound=function(){var $=document.getElementById("chkNoSound").checked;if($)this.setCookie("nosound","1");else this.setCookie("nosound","0")};luguoUI.playSound=function($){var A=this.getCookie("nosound");if(A==null||A!="1"){var B="wave/msgcome.swf";if($=="invite")B="wave/invite.swf";else if($=="leave")B="wave/leave.swf";else if($=="online")B="wave/online.swf";document.getElementById("magic_face").style.display="";var _=new SWFObject(B,"mymovie","1","1","6","#336699","wmode");_.addParam("wmode","transparent");_.write("magic_face");window.setTimeout(function(){document.getElementById("magic_face").style.display="none"},3000)}};luguoUI.setAutoAllow=function(){var $=document.getElementById("chkAutoAllowChat").checked;if($){document.getElementById("chkAllowChat").checked=false;this.setCookie("nochat","0");this.setCookie("autochat","1")}else this.setCookie("autochat","0")};luguoUI.setHome=function(A,$){try{A.style.behavior="url(#default#homepage)";A.setHomePage($)}catch(B){if(window.netscape){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")}catch(B){alert("\u6b64\u64cd\u4f5c\u88ab\u6d4f\u89c8\u5668\u62d2\u7edd\uff01\n\u8bf7\u5728\u6d4f\u89c8\u5668\u5730\u5740\u680f\u8f93\u5165\"about:config\"\u5e76\u56de\u8f66\n\u7136\u540e\u5c06[signed.applets.codebase_principal_support]\u8bbe\u7f6e\u4e3a'true'")}var _=Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);_.setCharPref("browser.startup.homepage",$)}}};luguoUI.addFavor=function(_,$){try{window.external.addFavorite($,_)}catch(A){try{window.sidebar.addPanel(_,$,"")}catch(A){alert("\u52a0\u5165\u6536\u85cf\u5931\u8d25\uff0c\u8bf7\u4f7f\u7528Ctrl+D\u8fdb\u884c\u6dfb\u52a0")}}};luguoUI.openV=function(){var $="http://red5.faqee.com/test/?myid="+webim.status.myname+"&youid="+GCONFIG.cguest,_="<iframe src=\""+$+"\" border=\"0\" width=\"650\" height=\"270\" frameBorder=\"0\" "+"style=\"z-index: -1; padding-bottom: 0px; margin: 0px; padding-left: 0px; width: 650px;"+"padding-right: 0px; height: 270px; top: 0px; padding-top: 0px; left: 0px;\"></iframe>";this.openWnd({title:"\u964c\u751f\u4eba\u89c6\u9891\u663e\u793a\u7a97\u53e3",content:_,width:650,height:270})};luguoUI.jp=function(){try{if(!document.all){alert("\u5bf9\u4e0d\u8d77\uff0c\u8be5\u529f\u80fd\u53ea\u80fd\u5728IE\u5185\u6838\u4e0b\u7684\u6d4f\u89c8\u5668\u4f7f\u7528\uff01");return}var A=new ActiveXObject("kf37.HotKeyX"),$="1.0";try{$=A.version();if($==null||$=="undefined")$="1.0"}catch(_){}if($!="2.0"){if(confirm("\u9700\u8981\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684\u63d2\u4ef6\u624d\u80fd\u4f7f\u7528\u8be5\u529f\u80fd\uff0c\u4f60\u662f\u5426\u786e\u5b9a\u9700\u8981\u5b89\u88c5\uff1f"))window.open("activex/WEB_IM_Screen.exe")}else{var B=A.jp();A=null}}catch(_){if(confirm("\u9700\u8981\u5b89\u88c5\u63d2\u4ef6\u624d\u80fd\u4f7f\u7528\u8be5\u529f\u80fd\uff0c\u4f60\u662f\u5426\u786e\u5b9a\u9700\u8981\u5b89\u88c5\uff1f"))window.open("activex/WEB_IM_Screen.exe");return}};luguoUI.scroll={flag:true,t:0};luguoUI.startli=function(){if(this.scroll.flag){if(typeof(luguoUI.scroll.t)!="undefined")clearInterval(luguoUI.scroll.t);luguoUI.scroll.t=setInterval("luguoUI.autoScroll(\".scrollDiv\")",5000)}};luguoUI.autoScroll=function(_){$(_).find("ul:first").animate({marginTop:"-20px"},500,function(){$(this).css({marginTop:"0px"}).find("li:first").appendTo(this)})};luguoUI.getLang=function(){var $=navigator.language||navigator.userLanguage;$=$.replace(/_/,"-").toLowerCase();if($.length>3)$=$.substring(0,2);return $};JULI=new Object();JULI.showPoint=function(_){if(_.searchPoints.length>0){var $=_.searchPoints[0];GCONFIG.pointA=$}else GCONFIG.pointA="-1"};JULI.showPoint2=function(_){if(_.searchPoints.length>0){var $=_.searchPoints[0];GCONFIG.pointB=$}else GCONFIG.pointB="-1"};JULI.dealwith=function(_){var $=_.indexOf("\u7701"),A=_.indexOf("\u5e02");if($>=0&&A>=0)return _.substring($+1,A);else if($<0&&A>=0)return _.substring(0,A);else if($>=0&&A<0)return _.substring($+1);else return _};JULI.cal=function(objid,city1,city2){var s=city1,e=city2;s=this.dealwith(s);e=this.dealwith(e);if(s==e){if(objid=="")sysMessage(FaqeeLang.daoju_leida+"\uff1a"+FaqeeLang.daoju_leida_samecity);else $("#"+objid).text(FaqeeLang.daoju_leida+"\uff1a"+FaqeeLang.daoju_leida_samecity);return}var search=new LTLocalSearch(JULI.showPoint);search.setCity(s);search.search(s);window.setTimeout(function(){var $=new LTLocalSearch(JULI.showPoint2);$.setCity(e);$.search(e)},2000);var TIMERTEMP="TT_"+objid+" = ";TIMERTEMP+="window.setInterval(function(){"+"  if((GCONFIG.pointA!=\"\") && (GCONFIG.pointB!=\"\")){"+"     window.clearInterval(TT_"+objid+");"+"\t if((GCONFIG.pointA!=\"-1\")&&(GCONFIG.pointB!=\"-1\")){"+"\t\tvar distance=LTFunction.getPointsDistance(GCONFIG.pointA.point,GCONFIG.pointB.point);"+"       window.clearInterval(TT_"+objid+");"+"\t\tif(objid==\"\"){"+"\t\t\tsysMessage("+FaqeeLang.daoju_leida+"\"\uff1a"+FaqeeLang.daoju_xc+"  <b>\" + distance/1000 + \"</b>  "+FaqeeLang.kmeter+"\");"+"\t\t}else{"+"\t\t\t$(\"#\"+objid).text(distance/1000+\""+FaqeeLang.kmeter+"\");}"+"\t }"+"  }"+"},1000);";eval(TIMERTEMP)}