商务通核心函数库解密格式化后的代码

模板网 2014-09-02

商务通核心函数库解密格式化后的代码,理解其中的一些函数可以帮助我们对商务通进行一些高级功能的定制。

下面只简单介绍几个非常有用的函数,稍后会专门写一篇文章进行详细讲解。

1.openZoosUrl

函数原型:function openZoosUrl(url, data) {}

函数说明:这个函数大家应该最熟悉不过了,作用是打开对话窗口。

2.LR_showInviteDiv

函数原型:function LR_showInviteDiv(h1, h2) {}

函数作用:弹出对话邀请框。

3.LR_showHfloat

函数原型:function LR_showHfloat() {}

函数作用:显示侧边邀请框。

4.LR_HideInvite

函数原型:function LR_HideInvite() {}

函数作用:隐藏邀请框。

下载:商务通核心函数库解密格式化后的代码

复制代码 代码如下:
var LR_MCount1 = 5000;
if (LR_GCount < LR_MCount) {
    _lr_issupport_invite = 0
} else if (LR_MCount < 50) {
    LR_MCount1 = 5000
} else if (LR_MCount < 90) {
    LR_MCount1 = 7000
} else if (LR_MCount < 200) {
    LR_MCount1 = 9000
} else if (LR_MCount < 300) {
    LR_MCount1 = 11000
} else {
    LR_MCount1 = 13000
}
function LR_CheckUserUrl(_url) {
    if (_url == null) {
        return ''
    }
    if (_url.indexOf('//') == -1) {
        return LR_sysurl + _url
    }
    if (LR_sysurl.substring(0, LR_sysurl.indexOf('//')) == 'http:') {
        return _url.replace('https://', 'http://')
    } else {
        return _url.replace('http://', 'https://')
    }
}
var LR_NS = (document.layers) ? true: false;
var LR_IE = (document.all) ? true: false;
var LR_DOM = (document.getElementById) ? true: false;
if (LR_IE) LR_DOM = false;
if (LR_IE) LR_DOM = false;
function LR_checkagent(_lr_na) {
    var _lr_o = _lr_na.split('|');
    for (_lr_w = 0; _lr_w < _lr_o.length; _lr_w++) {
        if (navigator.userAgent.toLowerCase().indexOf(_lr_o[_lr_w]) > -1) return true
    }
    return false
}
var LR_cid = null;
var LR_sid = null;
var LR_fistvisitetime = null;
var LR_visitetime = new Date().getTime();
var LR_lastvisitetime = null;
var LR_visitecounts = 0;
LR_visitepages = 0;
var LR_ip = null;
var LR_ip1 = null;
var LR_ip2 = null;
var LR_showinvite = 1;
var LR_invite0 = '';
var LR_invite1 = null;
var LR_sidexists = -1;
var LR_lastinvite = new Date().getTime();
var checkcount = 0;
var LR_inviteimgJS = 1;
var LR_chatkind = -1;
var lr_refer5237 = escape(document.referrer);
if (typeof(lr_refer5236) != 'undefined') lr_refer5237 = lr_refer5236;
var LR_cname = null;
var LR_ccolor = null;
var LR_lastoname = null;
var LR_nexttimerID = null;
var LR_istate = 0,
LR_gstate = 0;
var LR_skey = null;
var LR_surl = null;
var LR_ClientEnd = 1;
var LR_cur_invite = null;
var LR_cookie_ctick = 0;
var LR_maxoid = 0;
var lastshowmini = 0;
function LR_GetObj(id, theDoc) {
    if (!theDoc) {
        theDoc = document
    }
    if (theDoc.getElementById) {
        return theDoc.getElementById(id)
    } else if (document.all) {
        return theDoc.all(id)
    }
}
var LR_m_d = null;
function LR_m_e(p1, p2, p3) {
    if (LR_m_d != null) return null;
    var div = document.createElement('DIV');
    div.id = 'LR_m_h_' + new Date().getTime();
    with(div.style) {
        zIndex = 8998;
        top = '0px';
        left = '0px';
        width = '100%';
        height = '100%';
        border = 'none';
        margin = padding = 0;
        position = 'absolute';
        backgroundColor = '#000';
        opacity = '0.2';
        filter = 'alpha(opacity=20)';
        duration = 1000
    }
    document.body.insertBefore(div, document.body.firstChild);
    if (!p3) LR_m_a('SELECT');
    if (!p2) LR_m_a('OBJECT');
    if (!p1) LR_m_a('IFRAME');
    LR_m_c(div);
    return div
}
function LR_m_c(obj) {
    obj.style.width = '100%';
    obj.style.height = '100%';
    var bodyCW = 0,
    bodyCH = 0;
    if (document.documentElement && document.documentElement.clientWidth) {
        bodyCW = document.documentElement.clientWidth
    } else if (window.innerWidth) {
        bodyCW = window.innerWidth
    } else if (document.body) {
        bodyCW = document.body.clientWidth
    }
    if (window.innerHeight) bodyCH = window.innerHeight;
    else if (document.documentElement && document.documentElement.clientHeight) bodyCH = document.documentElement.clientHeight;
    else if (document.body) bodyCH = document.body.clientHeight;
    setTimeout(function() {
        bodyCW = Math.max(document.body.scrollWidth, bodyCW);
        bodyCH = Math.max(document.body.scrollHeight, bodyCH);
        obj.style.width = bodyCW + 'px';
        obj.style.height = bodyCH + 'px'
    },
    1)
}
function LR_m_b(TagName) {
    var s = document.getElementsByTagName(TagName);
    for (var i = 0,
    n = s.length; i < n; i++) {
        if (s[i].id == 'LR_Flash') continue;
        s[i].style.visibility = s[i].getAttribute('LR_m_g');
        s[i].removeAttribute('LR_m_g')
    }
};
function LR_m_a(TagName) {
    var s = document.getElementsByTagName(TagName);
    for (var i = 0,
    n = s.length; i < n; i++) {
        if (s[i].id == 'LR_Flash') continue;
        s[i].setAttribute('LR_m_g', s[i].style.visibility, 0);
        s[i].style.visibility = 'hidden'
    }
};
function LR_m_f(obj, p1, p2, p3) {
    if (LR_m_d == null) return;
    try {
        if (obj) {
            document.body.removeChild(obj);
            LR_m_d = null;
            if (!p3) LR_m_b('SELECT');
            if (!p2) LR_m_b('OBJECT');
            if (!p1) LR_m_b('IFRAME')
        }
    } catch(e) {}
};
if (LR_auto_pagetitle && typeof(LR_pagetitle) == 'undefined') {
    var LR_pagetitle = document.title
}
if (typeof(LiveReceptionCode_need_help_html) != 'undefined') LR_showfloat = 1;
if (typeof(LR_explain) == 'undefined') {
    LR_explain = '';
    if (typeof(LiveReception_explain) != 'undefined') {
        LR_explain = unescape(LiveReception_explain)
    }
    if (typeof(LiveReceptionCode_chatexplain_online) != 'undefined') {
        LR_explain = unescape(LiveReceptionCode_chatexplain_online)
    }
}
function LR_Check_region() {
    if (LR_defineregion) {
        var invitec0 = unescape(LR_ip1) + ' ' + unescape(LR_ip2);
        if (typeof(only_invite_list) != 'undefined') {
            LR_showinvite = 0;
            var invitec1 = only_invite_list.split('|');
            for (w = 0; w < invitec1.length; w++) {
                if (invitec1[w].length == 0) continue;
                if (invitec0.indexOf(invitec1[w]) != -1) {
                    LR_showinvite = 1;
                    break
                }
            }
        } else if (typeof(never_invite_list) != 'undefined') {
            var invitec1 = never_invite_list.split('|');
            for (w = 0; w < invitec1.length; w++) {
                if (invitec1[w].length == 0) continue;
                if (invitec0.indexOf(invitec1[w]) != -1) {
                    LR_showinvite = 0;
                    break
                }
            }
        }
    }
    if (LR_hidden_region != '') {
        var lrhgs = LR_hidden_region.split(",");
        var ipfrom = unescape(LR_ip1) + ' ' + unescape(LR_ip2);
        for (w = 0; w < lrhgs.length; w++) {
            if (lrhgs[w] == '') continue;
            if (ipfrom.indexOf(lrhgs[w]) != -1) {
                LR_showinvite = 0;
                return
            }
        }
        if (LR_showfloat) LR_Floaters[0].showdiv(1)
    }
}
function LR_buildfloat() {
    return (typeof(LiveReceptionCode_need_help_html) != 'undefined') ? LiveReceptionCode_need_help_html: '<img ' + (LiveReceptionCode_isonline ? 'title="' + _lr_helpalt_on + '" alt="' + _lr_helpalt_on + '" src="' + LR_CheckUserUrl(_lr_helpsrc_on) + '"': 'title="' + _lr_helpalt_of + '" alt="' + _lr_helpalt_of + '" src="' + LR_CheckUserUrl(_lr_helpsrc_of) + '"') + '  style="cursor:pointer" onclick="openZoosUrl(\'chatwin\');">'
}
function LR_check_block(lrobjinner) {
    return ((lrobjinner.indexOf('.gif') == -1 && lrobjinner.indexOf('.jpg') == -1 && lrobjinner.indexOf('.png') == -1 && lrobjinner.indexOf('.swf') == -1) || lrobjinner.indexOf(' Blocked_') != -1)
}
var LR_Floaters = new Array();
if (typeof(LR_Fid) == 'undefined') {
    var LR_Fid = 0;
    var LR_invitew = (LR_UserInviteDiv != null && LR_isMobile) ? 120 : 211;
    var LR_inviteh = (LR_UserInviteDiv != null && LR_isMobile) ? 60 : 110;
    var LR_inviteim = new Image;
    LR_inviteim.src = LR_CheckUserUrl(_lr_mobileinviteimgsrc);
    eval("function OnlinerIcon(){this.pms=new Array();this.LR_scrollTimer=null;this.autoScroll=LR_autoScroll;this.get_tip_str=onliner_get_tip_str;this.start=onliner_start;this.imageTimer=onliner_imageTimer;this.get_close_str=onliner_get_close_str;this.hidden=hidden_div;this.showdiv=show_div;}function LR_autoScroll(){this.imageTimer();}function onliner_get_tip_str(){  var tt = 'z-index:2147483647;position:fixed!important;'+((this.pms['xCenter']==1)?'left:50%;margin-left:-'+(typeof (lr_xCenter) != 'undefined'?lr_xCenter:LR_invitew)+'px!important;':((this.pms['alignx']==1)?'right':'left')+':'+this.pms['alignW']+'px;')+((this.pms['yCenter']==1)?'top:50%;margin-top:-'+(typeof (lr_yCenter) != 'undefined'?lr_yCenter:LR_inviteh)+'px!important;':((this.pms['aligny']==1)?'bottom':'top')+':'+this.pms['alignH']+'px;')+'_position:absolute;_margin-left:0px;_margin-top:0px;_top:expression(eval(document.compatMode && document.compatMode==\\'CSS1Compat\\')?(documentElement.scrollTop + '+((this.pms['yCenter']==1)?'(document.documentElement.clientHeight-this.offsetHeight)/2':((this.pms['aligny']==1)?'document.documentElement.clientHeight-this.offsetHeight-':'')+this.pms['alignH'])+'):(document.body.scrollTop + '+((this.pms['yCenter']==1)?'(document.body.clientHeight - this.clientHeight)/2':((this.pms['aligny']==1)?'document.body.clientHeight - this.clientHeight-':'')+this.pms['alignH'])+'));_left:expression(eval(document.compatMode && document.compatMode==\\'CSS1Compat\\')?(documentElement.scrollLeft + '+((this.pms['xCenter']==1)?'(document.documentElement.clientWidth-this.offsetWidth)/2':((this.pms['alignx']==1)?'document.documentElement.clientWidth-this.offsetWidth-':'')+this.pms['alignW'])+'):(document.body.scrollLeft + '+((this.pms['xCenter']==1)?'(document.body.clientWidth - this.clientWidth)/2':((this.pms['alignx']==1)?'document.body.clientWidth - this.clientWidth-':'')+this.pms['alignW'])+'));';return tt;}function onliner_get_close_str(){if(this.pms['closer_show']==1) return '<div id=\"swtColse\" style=\"width:20px; height:15px; top:0px; right:0px; position:absolute;background-image: url('+this.pms['closer_img']+');background-repeat: no-repeat;background-position: right top;cursor:pointer;\" onclick=\"LR_Hidemobileinvite('+this.pms['LR_Fid']+');onlinerIcon'+this.pms['LR_Fid']+'.hidden();\"></div>'; return '';}function hidden_div(){this.pms['show']='none';LR_GetObj(this.pms['LRdiv']).style.display='none';}function show_div(showclose){this.pms['show']='block';LR_GetObj(this.pms['LRdiv']).style.display='block';if(LR_GetObj(this.pms['LRfloater']+'close')!=null)LR_GetObj(this.pms['LRfloater']+'close').style.display=showclose?'block':'none';}function onliner_imageTimer(hand){ var _lrobj0=LR_GetObj(this.pms['LRfloater']+'_if');if(_lrobj0!=null){_lrobj0.style.width = _lrobj0.nextSibling.clientWidth+'px';_lrobj0.style.height = _lrobj0.nextSibling.clientHeight+'px';}var _lrobj=LR_GetObj(this.pms['LRdiv']); if(hand || (this.pms['show']=='block' && _lrobj!=null && LR_check_block(_lrobj.innerHTML) && !LR_check_block(this.pms['html']))){var con_img=this.pms['html'];var tt='';if((typeof(LR_above_flash) != 'undefined') && LR_above_flash)tt+='<iframe s'+'r'+'c=\"'+LR_sysurl+'JS/im.aspx\" id=\"'+this.pms['LRfloater']+'_if\" style=\"position:absolute;z-index:2147483647;top:expression(this.nextSibling.offsetTop);left:expression(this.nextSibling.offsetLeft);width:1px;\" frameborder=\"0\" allowtransparency=\"true\" ></iframe>';tt+='<DIV id=\"'+this.pms['LRfloater']+'\" >'+this.get_close_str()+con_img+'</div>';  _lrobj.innerHTML=tt; LR_GetObj(this.pms['LRfloater']).style.cssText=this.get_tip_str();var _lrobj1=LR_GetObj(this.pms['LRfloater']+'_if');if(_lrobj1!=null){_lrobj1.style.cssText=this.get_tip_str()+'z-index:2147483647;width:expression(this.nextSibling.clientWidth);height:expression(this.nextSibling.clientHeight);';}LR_GetObj(this.pms['LRdiv']).style.display=this.pms['show'];} }function onliner_start(){ document.write('<div id=\"'+this.pms['LRdiv']+'\" style=\"display:none;\"></div>');}")
} else {
    LR_Fid++
}
eval('var onlinerIcon' + LR_Fid + '=new OnlinerIcon();');
eval('onlinerIcon' + LR_Fid + '.pms[\'LR_Fid\']=LR_Fid;');
eval('onlinerIcon' + LR_Fid + '.pms[\'show\']=(LR_showfloat && LR_hidden_region.length==0)?\'block\':\'none\';');
eval('onlinerIcon' + LR_Fid + '.pms[\'aligny\']=_lr_tobottom;');
eval('onlinerIcon' + LR_Fid + '.pms[\'alignx\']=_lr_toright;');
eval('onlinerIcon' + LR_Fid + '.pms[\'alignW\']=_lr_left;');
eval('onlinerIcon' + LR_Fid + '.pms[\'alignH\']=_lr_top;');
eval('onlinerIcon' + LR_Fid + '.pms[\'html\']=LR_buildfloat();');
eval('onlinerIcon' + LR_Fid + '.pms[\'closer_show\']=(_lr_closesrc0==\'\')?0:1;');
eval('onlinerIcon' + LR_Fid + '.pms[\'closer_img\']="' + LR_sysurl + 'LR/closeimg/' + _lr_closesrc0 + '";');
eval('onlinerIcon' + LR_Fid + '.pms[\'LRfloater\']=\'LRfloater' + LR_Fid + '\';');
eval('onlinerIcon' + LR_Fid + '.pms[\'LRdiv\']=\'LRdiv' + LR_Fid + '\';');
eval('onlinerIcon' + LR_Fid + '.start();');
eval('onlinerIcon' + LR_Fid + '.LR_scrollTimer = window.setInterval(\'onlinerIcon' + LR_Fid + '.autoScroll()\', 200); ');
eval('LR_Floaters.push(onlinerIcon' + LR_Fid + ');');
if (document.body) document.body.appendChild(LR_GetObj('LRdiv' + LR_Fid));
LR_Fid++;
eval('var onlinerIcon' + LR_Fid + '=new OnlinerIcon();');
eval('onlinerIcon' + LR_Fid + '.pms[\'LR_Fid\']=LR_Fid;');
eval('onlinerIcon' + LR_Fid + '.pms[\'show\']=\'none\';');
if ((typeof(Invite_ToBottom) != 'undefined') && (typeof(Invite_ToRight) != 'undefined') && (typeof(Invite_left) != 'undefined') && (typeof(Invite_top) != 'undefined')) {
    eval('onlinerIcon' + LR_Fid + '.pms[\'aligny\']=Invite_ToBottom;');
    eval('onlinerIcon' + LR_Fid + '.pms[\'alignx\']=Invite_ToRight;');
    eval('onlinerIcon' + LR_Fid + '.pms[\'alignW\']=Invite_left;');
    eval('onlinerIcon' + LR_Fid + '.pms[\'alignH\']=Invite_top;')
} else {
    eval('onlinerIcon' + LR_Fid + '.pms[\'xCenter\']=1;');
    eval('onlinerIcon' + LR_Fid + '.pms[\'yCenter\']=1;')
}
eval('onlinerIcon' + LR_Fid + '.pms[\'html\']=\'\';');
eval('onlinerIcon' + LR_Fid + '.pms[\'closer_show\']=0;');
eval('onlinerIcon' + LR_Fid + '.pms[\'closer_img\']="' + LR_sysurl + 'LR/closeimg/' + _lr_closesrc1 + '";');
eval('onlinerIcon' + LR_Fid + '.pms[\'LRfloater\']=\'LRfloater' + LR_Fid + '\';');
eval('onlinerIcon' + LR_Fid + '.pms[\'LRdiv\']=\'LRdiv' + LR_Fid + '\';');
eval('onlinerIcon' + LR_Fid + '.start();');
eval('onlinerIcon' + LR_Fid + '.LR_scrollTimer = window.setInterval(\'onlinerIcon' + LR_Fid + '.autoScroll()\', 200); ');
eval('LR_Floaters.push(onlinerIcon' + LR_Fid + ');');
LR_Fid++;
eval('var onlinerIcon' + LR_Fid + '=new OnlinerIcon();');
eval('onlinerIcon' + LR_Fid + '.pms[\'LR_Fid\']=LR_Fid;');
eval('onlinerIcon' + LR_Fid + '.pms[\'show\']=\'none\';');
if (typeof(Invite_ToCenter) == 'undefined') {
    eval('onlinerIcon' + LR_Fid + '.pms[\'aligny\']=_lr_mfloat_tobottom;');
    eval('onlinerIcon' + LR_Fid + '.pms[\'alignx\']=_lr_mfloat_toright;');
    eval('onlinerIcon' + LR_Fid + '.pms[\'alignW\']=_lr_mfloat_imgleft;');
    eval('onlinerIcon' + LR_Fid + '.pms[\'alignH\']=_lr_mfloat_imgtop;')
} else {
    eval('onlinerIcon' + LR_Fid + '.pms[\'xCenter\']=1;');
    eval('onlinerIcon' + LR_Fid + '.pms[\'yCenter\']=1;')
}
eval('onlinerIcon' + LR_Fid + '.pms[\'html\']=\'\';');
eval('onlinerIcon' + LR_Fid + '.pms[\'closer_show\']=0;');
eval('onlinerIcon' + LR_Fid + '.pms[\'LRfloater\']=\'LRfloater' + LR_Fid + '\';');
eval('onlinerIcon' + LR_Fid + '.pms[\'LRdiv\']=\'LRdiv' + LR_Fid + '\';');
eval('onlinerIcon' + LR_Fid + '.start();');
eval('onlinerIcon' + LR_Fid + '.LR_scrollTimer = window.setInterval(\'onlinerIcon' + LR_Fid + '.autoScroll()\', 200); ');
eval('LR_Floaters.push(onlinerIcon' + LR_Fid + ');');
function LR_SetOpacity(ev, v) {
    ev.filters ? ev.style.filter = 'alpha(opacity=' + v + ')': ev.style.opacity = v / 100
}
function LR_fadeIn(elem) {
    if (LR_GetObj(elem) == null) {
        return
    }
    speed = 120;
    opacity = 100;
    LR_GetObj(elem).style.display = 'block';
    LR_SetOpacity(LR_GetObj(elem), 0);
    var val = 0; (function() {
        LR_SetOpacity(LR_GetObj(elem), val);
        val += 5;
        if (val <= opacity) {
            setTimeout(arguments.callee, speed)
        }
    })()
}
function LR_fadeOut(elem) {
    if (LR_GetObj(elem) == null) {
        return
    }
    speed = 50;
    opacity = 0;
    var val = 100; (function() {
        LR_SetOpacity(LR_GetObj(elem), val);
        val -= 5;
        if (val >= opacity) {
            setTimeout(arguments.callee, speed)
        } else if (val <= 0) {
            LR_GetObj(elem).style.display = 'none'
        }
    })()
}
function LR_showInviteDiv(h1, h2) {
    if (!LR_showinvite) return;
    if (h1 == null && h2 == null) return;
    if (h1 == '1' && h2 == '1' && LR_chated_no_invite && LR_getCookie('LR_lastchat') == '1') {
        return
    }
    var LR_ikind1 = (!LR_invite_display_kind || h2 == '1');
    if (typeof(LiveAutoInvite0) != 'undefined' && h1 == '1') h1 = LiveAutoInvite0;
    if (h2 == '1') h2 = LR_GetAutoInvite2();
    if (h1.indexOf('%IP%') != -1) {
        var ipfrom = unescape(LR_ip1);
        if (ipfrom.length < 3 || (LR_ip1 == null && LR_ip2 == null)) {
            h1 = ''
        } else {
            h1 = h1.replace('%IP%', ipfrom)
        }
    }
    LR_cur_invite = h2;
    LR_m_f(LR_m_d);
    if ((typeof(LR_invite_m) != 'undefined') && LR_invite_m) LR_m_d = LR_m_e();
    if (LR_UserInviteDiv != null && LR_ikind1) {
        LR_Floaters[1].pms['html'] = LR_UserInviteDiv.replace('{c0}', LR_invite_color0).replace('{c1}', LR_invite_color1).replace('{c2}', LR_invite_color2).replace('{c3}', LR_invite_color3).replace('{aimg}', LR_CheckUserUrl(LR_accept_img)).replace('{fimg}', LR_CheckUserUrl(LR_refuse_img)).replace('{pimg}', LR_CheckUserUrl(LR_ivite_img)).replace('{h1}', h1).replace('{h2}', h2).replace(/\{0\}/g, 'openZoosUrl();LR_HideInvite();').replace(/\{1\}/g, 'LR_RefuseChat();LR_HideInvite();')
    } else {
        onlinerIcon1.pms['closer_show'] = (!LR_isMobile) ? 0 : (_lr_closesrc1 == '' ? 0 : 1);
        if (LR_isMobile && (LR_inviteim.readyState == 'complete' || (LR_inviteim.readyState != 'undefined' && LR_inviteim.complete))) {
            LR_invitew = LR_inviteim.width / 2;
            LR_inviteh = LR_inviteim.height / 2
        }
        LR_Floaters[1].pms['html'] = LR_isMobile ? '<img  src="' + LR_CheckUserUrl(_lr_mobileinviteimgsrc) + '" style="cursor:pointer" onclick="openZoosUrl();LR_HideInvite();">': '<table ID="LR_Tb2" style="BORDER-COLLAPSE: collapse; background-color: ' + LR_invite_color1 + ';border: ' + LR_invite_color0 + ' 2px solid;margin:2px;padding:0;WIDTH: 420px;" align=center><tr><td style="HEIGHT: 20px;margin:0; padding:0;" width="400" valign="bottom">' + ((h1 == '') ? '': '<font style="margin-LEFT: 12px;FONT-WEIGHT: bold; FONT-SIZE: 12px;COLOR: #000000;">' + h1 + '</font>') + '</td><TD width="20" align="right" style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px;"><a href="javascript:void(0)" onclick="LR_HideInvite();LR_RefuseChat();return false;"><img src="' + LR_CheckUserUrl(LR_close_img) + '" border="0"></a>&nbsp;</TD></tr><TR><TD colspan="2"><table ID="LR_Tb3" style="BORDER-COLLAPSE: collapse;border: ' + LR_invite_color2 + ' 1px solid; background-color: #FFFFFF;margin-left:7px;margin-right:7px;margin-bottom:7px;margin-top:0;WIDTH: 400px;" align=center><tr><td><table cellspacing=0 cellpadding=0 ID="LR_Tb4" align=center style="WIDTH: 400px; HEIGHT: 104px;border:0;margin:0; padding:0;"><tr><td rowspan="2" style="WIDTH: 110px" align=center><img src="' + LR_CheckUserUrl(LR_ivite_img) + '"></td><td style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 2px; PADDING-TOP: 19px;FONT-SIZE: 12px;color:' + LR_invite_color3 + ';" align=left valign=top>' + h2 + '</td></tr><tr><td align=right height=30><table border=0 style="margin:0; padding:0;WIDTH: 180px;"><tr><td><img src="' + LR_CheckUserUrl(LR_accept_img) + '" border=0 usemap="#Map93LR" /><map name="Map93LR"><area shape="rect" coords="1,1,78,22"  href="javascript:void(0)" onclick="openZoosUrl();LR_HideInvite();return false;"></map></td><td width=20></td><td><a href="javascript:void(0)" onclick="LR_HideInvite();LR_RefuseChat();return false;"><img src="' + LR_CheckUserUrl(LR_refuse_img) + '" border=0></a></td><td width=20></td></tr></table></td></tr></table></td></tr></table></td></tr></table>'
    }
    LR_Floaters[1].showdiv(0);
    LR_Floaters[1].imageTimer(true);
    if (LR_fade_invite) LR_fadeIn('LRfloater1');
    if (document.body) {
        document.body.appendChild(LR_GetObj('LRdiv0'));
        document.body.appendChild(LR_GetObj('LRdiv1'))
    }
    if (LR_invite_hide_float && LR_showfloat) LR_Floaters[0].hidden();
    window.focus();
    LR_SetCookie('lastshowinvite', new Date().getTime(), 720)
}
function LR_showHfloat() {
    if (LR_invite_hide_float && LR_showfloat) {
        LR_Floaters[0].showdiv(1);
        if (document.body) document.body.appendChild(LR_GetObj('LRdiv0'))
    }
}
function LR_HideInvite() {
    if (LR_Floaters[1].pms['html'] == '') return;
    LR_Floaters[1].pms['html'] = '';
    LR_showHfloat();
    LR_m_f(LR_m_d);
    if (LR_fade_invite) {
        if (LR_GetObj('LRfloater1') == null) return;
        LR_fadeOut('LRfloater1')
    } else {
        LR_Floaters[1].hidden()
    }
    if (LR_istate == 1) {
        LR_istate = 0
    }
}
function minichathtml(islrminimin) {
    var LR_mini_title = '';
    return '<div style="width:400px; height:390px;' + (islrminimin ? 'display:none;': '') + '" id="LRMINIWIN"><div style="z-index:2147483647;POSITION:absolute;width:400px;height:30px;overflow:hidden;"><span style="float:left;clear:none; width:123px;height:20px; overflow:hidden; margin:0 5px;"></span><span style="CURSOR:pointer;float:right;clear:none; width:20px;height:20px; margin:6px 10px 0 0; overflow:hidden;" onclick="lr_closemini();"><img style="cursor:pointer;" src="' + _lr_minipath + 'close.png" border="0"></span><span style="CURSOR:pointer;float:right;overflow:hidden;width:20px;height:20px;clear:none;display:bolck;margin:6px 2px 0 0;" onclick="openZoosUrl();lr_hidemini();"><img src="' + _lr_minipath + 'da.png" style="cursor:pointer;"  border="0"></span><span style="CURSOR:pointer;float:right;overflow:hidden;width:20px;height:20px;clear:none;display:bolck;margin:6px 2px 0 0;" onclick="lrminiMin();"><img src="' + _lr_minipath + 'da1.png" style="cursor:pointer;"  border="0"></span></div><iframe id="LR_miniframe" name="LR_miniframe" width="100%" height="400px" frameborder="0" scrolling="No" allowtransparency="true" src="' + LR_sysurl + 'JS/im.aspx' + '"></iframe></div><div id="LRMINIBar" style="' + (!islrminimin ? 'display:none;': '') + 'width:400px;height:38px;cursor:pointer;" onclick="lrminiMax();" ><div style="width:58px;height:38px;float:left;"><img src="' + _lr_minipath + 'l_1.png" border="0"></div><div style="width:290px;height:38px;float:left; background-image:url(' + _lr_minipath + 'b_' + LR_lng + '.png); color:#FFF;"><div style="margin-top:10px; font-size:12px; font-weight:bold;float:left;"></div></div><div style="width:52px;height:38px;float:left;"><img src="' + _lr_minipath + 'l_3.png" border="0"></div></div></div>'
}
var lr_winunload = window.onunload;
function lr_winunload1() {
    if (LR_Floaters[2].pms['show'] != 'none' && LR_Floaters[2].pms['html'] != '') lr_closemini(1);
    if (typeof(lr_winunload) == 'function') {
        lr_winunload()
    }
}
function LR_showminiDiv(islrminimin) {
    if (LR_chatkind == -1) {
        setTimeout('LR_showminiDiv();', 500);
        return
    }
    if (LR_chatkind == 1) return;
    if (LR_Floaters[2].pms['html'] == '') {
        window.onunload = lr_winunload1
    } else {
        return
    }
    if (!islrminimin) LR_SetCookie('LR_mimiwin', LR_Tick, 120);
    LR_Floaters[2].pms['html'] = minichathtml(islrminimin);
    LR_Floaters[2].imageTimer(true);
    lr_mini_blanksrc = islrminimin ? 1 : 0;
    lr_mini_closed = 0;
    LR_Floaters[2].showdiv(0);
    LR_Floaters[1].hidden();
    if (document.body) {
        document.body.appendChild(LR_GetObj('LRdiv2'))
    }
    if (!islrminimin) LR_miniframe.location = LR_sysurl + 'LR/minichat3.aspx?id=' + LR_websiteid + '&cid=' + LR_cid + '&lng=' + LR_lng + '&sid=' + LR_sid + '&p=' + escape(location.href) + '&r=' + lr_refer5237
}
function lr_hidemini() {
    if (LR_Floaters[2].pms['html'] != '') {
        window.onunload = lr_winunload;
        LR_Floaters[2].pms['html'] = '';
        LR_Floaters[2].hidden()
    }
}
function lr_closemini(nop) {
    if (nop || confirm(LR_confirm_closechat)) {
        lr_hidemini();
        checkcount = -1;
        LR_inviteimgJS = 0;
        LR_hcloopJS(LR_sysurl + 'LR/CdEnd.aspx', 'id=' + LR_siteid + '&m=1&lng=' + LR_lng + '&sid=' + LR_sid);
        lastshowmini = new Date().getTime();
        lr_mini_closed = 1
    }
}
var lr_mini_blanksrc = 0,
lr_mini_closed = 0;
function lrminiMin0(nop) {
    if (!lr_mini_blanksrc && nop) {
        window.onunload = lr_winunload;
        LR_miniframe.location = LR_sysurl + 'JS/im.aspx';
        lr_mini_blanksrc = 1
    }
}
function lrminiMin(nop) {
    if (LR_Floaters[2].pms['html'] == '') return;
    if (LR_GetObj('LRMINIBar').style.display == 'block') {
        lrminiMin0(nop);
        return
    }
    LR_GetObj('LRMINIWIN').style.width = '100px';
    LR_GetObj('LRMINIWIN').style.display = 'none';
    lrminiMin0(nop);
    LR_GetObj('LRMINIBar').style.display = 'block';
    LR_maxoid = 0
}
function lrminiMax() {
    if (lr_mini_blanksrc) {
        LR_SetCookie('LR_mimiwin', LR_Tick, 120);
        LR_miniframe.location = LR_sysurl + 'LR/minichat3.aspx?id=' + LR_websiteid + '&cid=' + LR_cid + '&lng=' + LR_lng + '&sid=' + LR_sid + '&p=' + escape(location.href) + '&r=' + lr_refer5237;
        lr_mini_blanksrc = 0;
        window.onunload = lr_winunload1
    }
    if (LR_GetObj('LRMINIWIN') == null || LR_GetObj('LRMINIWIN').style.display != 'none') return;
    LR_GetObj('LRMINIWIN').style.display = 'block';
    LR_GetObj('LRMINIWIN').style.width = '400px';
    LR_GetObj('LRMINIBar').style.display = 'none'
}
function LR_Hidemobileinvite(lid) {
    if (lid != 1) return;
    LR_RefuseChat();
    LR_HideInvite()
}
if (typeof(LrinviteTimeout) == 'undefined' || isNaN(LrinviteTimeout) || LrinviteTimeout < 1) {
    LrinviteTimeout = 1
}
if (!_lr_issupport_track && (LiveReceptionCode_isonline || !offline_invite_hidden)) {
    LR_nextinvite(1)
}
function getFlashMovieObject(movieName) {
    if (window.document[movieName]) {
        return window.document[movieName]
    }
    if (navigator.appName.indexOf('Microsoft Internet') == -1) {
        if (document.embeds && document.embeds[movieName]) return document.embeds[movieName]
    } else {
        return document.getElementById(movieName)
    }
}
function lr_refer5238() {
    if (typeof(lr_refer5236) != 'undefined') {
        return lr_refer5236
    }
    var ur = document.referrer;
    var i = ur.lastIndexOf('.');
    return '&rf1=' + escape(ur.substring(0, i)) + '&rf2=' + escape(ur.substr(i))
}
function openZoosUrl(url, data) {
    if (typeof(openZoosUrl_UserDefine) == 'function') {
        if (openZoosUrl_UserDefine()) return
    };
    if (typeof(LR_istate) != 'undefined') {
        LR_istate = 3
    }
    var lr_url1 = url;
    if (typeof(LR_opentimeout) != 'undefined' && typeof(LR_next_invite_seconds) != 'undefined') LR_next_invite_seconds = 999999;
    if (url == 'sendnote') {
        url = LR_sysurl + 'LR/Chatwin2.aspx?siteid=' + LR_websiteid + '&cid=' + LR_cid + '&sid=' + LR_sid + '&lng=' + LR_lng + '&p=' + escape(location.href) + lr_refer5238()
    } else {
        url = ((LR_userurl0 && typeof(LR_userurl) != 'undefined') ? LR_userurl: (LR_sysurl + 'LR/Chatpre.aspx')) + '?id=' + LR_websiteid + '&cid=' + LR_cid + '&lng=' + LR_lng + '&sid=' + LR_sid + '&p=' + escape(location.href) + lr_refer5238()
    }
    if (typeof(LR_UserSSL) != 'undefined' && LR_UserSSL && url.charAt(4) == ':') url = url.substring(0, 4) + 's' + url.substring(4, url.length);
    if (!data) {
        if (typeof(LR_explain) != 'undefined' && LR_explain != '') {
            url += '&e=' + escape(escape(LR_explain))
        } else if (typeof(LiveAutoInvite1) != 'undefined') {
            url += '&e=' + escape(escape(LiveAutoInvite1))
        }
    }
    if (typeof(LR_username) != 'undefined') {
        url += '&un=' + escape(LR_username)
    }
    if (typeof(LR_userdata) != 'undefined') {
        url += '&ud=' + escape(LR_userdata)
    }
    if (typeof(LR_ucd) != 'undefined') {
        url += '&ucd=' + escape(LR_ucd)
    }
    if (data) url += data;
    url += '&d=' + new Date().getTime();
    if (lr_url1 == 'fchatwin') {
        LR_ClientEnd = 0;
        window.location = url + '&f=1';
        return
    }
    var oWindow;
    try {
        if (LR_isMobile) {
            window.location = url
        } else if (LR_checkagent('opera|safari|se 2.x')) {
            oWindow = window.open(url)
        } else {
            oWindow = window.open(url, 'LRWIN_' + LR_websiteid, 'toolbar=no,width=630,height=435,resizable=yes,location=no,scrollbars=no,left=' + ((screen.width - 630) / 4) + ',top=' + ((screen.height - 435) / 4))
        }
        if (oWindow == null) {
            LR_ClientEnd = 0;
            window.location = url;
            return
        }
        oWindow.focus()
    } catch(e) {
        if (oWindow == null) {
            LR_ClientEnd = 0;
            window.location = url
        }
    }
}
if (LR_hasInstall > 0 && typeof(LR_swfok) == 'undefined') {
    var LR_swfok = 1;
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="' + LR_sysurl.substring(0, LR_sysurl.indexOf('//')) + '//fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width=0 height=0 id="LR_Flash" class="noswap"><param name=movie value="' + LR_sysurl + 'js/lrfla.swf"><PARAM NAME="BGColor" VALUE="FFFFFF"><param name=quality value=high><PARAM NAME="Scale" VALUE="NoBorder"><param name="allowScriptAccess" value="always" />' + (LR_hasInstall > 1 ? '': '<embed src="' + LR_sysurl + 'js/lrfla.swf" quality=high width=0 height=0 type="application/x-shockwave-flash" pluginspage="' + LR_sysurl.substring(0, LR_sysurl.indexOf('//')) + '//www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" name="LR_Flash" allowScriptAccess="always"></embed>') + '</object>');
    try {
        document.write('<script language=\"VBScript\"\>\n');
        document.write('On Error Resume Next\n');
        document.write('Sub LR_Flash_FSCommand(ByVal command, ByVal args)\n');
        document.write(' Call LR_Flash_DoFSCommand(command, args)\n');
        document.write('End Sub\n');
        document.write('</SCRIPT\>')
    } catch(e) {}
    var LR_SaveTime = null;
    function LR_savedata(data, name) {
        if (LR_swfok) {
            LR_SaveTime = setTimeout('LR_savedata("' + data + '","' + name + '")', 50);
            return
        }
        LR_swfok = 1;
        try {
            getFlashMovieObject('LR_Flash').SetVariable('send_type', 'SAVEDATA');
            getFlashMovieObject('LR_Flash').SetVariable('send_name', 'save');
            getFlashMovieObject('LR_Flash').SetVariable('send_vars', data);
            getFlashMovieObject('LR_Flash').SetVariable('obname', name);
            getFlashMovieObject('LR_Flash').SetVariable('send_go', 'true')
        } catch(e) {}
    }
    var LR_ReadTime = null;
    function LR_readdata(name) {
        if (LR_swfok) {
            LR_ReadTime = setTimeout('LR_readdata("' + name + '")', 50);
            return
        }
        LR_swfok = 1;
        try {
            getFlashMovieObject('LR_Flash').SetVariable('send_type', 'READDATA');
            getFlashMovieObject('LR_Flash').SetVariable('send_name', 'read');
            getFlashMovieObject('LR_Flash').SetVariable('obname', name);
            getFlashMovieObject('LR_Flash').SetVariable('send_go', 'true')
        } catch(e) {}
    }
    var LR_swfloadok = 1;
    var LR_testload = 0;
    function LR_loadok() {
        if (LR_swfloadok) {
            LR_testload++;
            if (LR_testload == 20) {
                LR_SetCookie('LR_hasInstall', 0, 60);
                LR_hasInstall = 0;
                LR_useCookie();
                if (LR_swf_timeid != null) {
                    clearInterval(LR_swf_timeid);
                    LR_swf_timeid = null
                }
                return
            }
            try {
                getFlashMovieObject('LR_Flash').SetVariable('send_type', 'LOADOK');
                getFlashMovieObject('LR_Flash').SetVariable('send_go', 'true')
            } catch(e) {}
        } else {
            if (LR_swf_timeid != null) {
                clearInterval(LR_swf_timeid);
                LR_swf_timeid = null
            }
        }
    }
    var LR_swf_timeid = null;
    if (LR_hasInstall > 0) LR_swf_timeid = setInterval('LR_loadok();', 100)
}
if (typeof(LR_Flash_DoFSCommand) != 'function') {
    function floatdata_append(_data, add) {
        if (_data != '') {
            _data += '|'
        }
        return _data += add
    }
    function LR_Flash_DoFSCommand(command, args) {
        if (command == "LOADOK") {
            if (!LR_swfloadok) return;
            LR_swfloadok = 0;
            LR_swfok = 0;
            return
        }
        var lrdata = '';
        if (command == "save") {
            if (args == 'true') {
                LR_swfok = 0;
                return
            } else {}
        }
        if (command == "read") {
            if (args == '') {
                LR_readdata(LR_websiteid);
                LR_swfok = 0;
                return
            } else if (args == '|') {} else {
                var oo = args.split('|');
                for (o = 0; o < oo.length; o++) {
                    var oo1 = oo[o].split(',');
                    if (oo1.length == 2) {
                        if (isNaN(oo1[1])) {
                            var v = 'if(typeof(LR_' + oo1[0] + ') != "undefined"){LR_' + oo1[0] + '=unescape(oo1[1]);}';
                            eval(v)
                        } else {
                            eval('if(typeof(LR_' + oo1[0] + ') != "undefined"){LR_' + oo1[0] + '=oo1[1];}')
                        }
                    }
                }
            }
            if (LR_cid == '' || LR_cid == 'null') LR_cid = null;
            if (LR_sid == '' || LR_sid == 'null') LR_sid = null;
            if (LR_cid == null || LR_sid == null) {
                LR_cid = LR_getCookie('LiveWS' + LR_websiteid);
                LR_sid = LR_getCookie('LiveWS' + LR_websiteid + 'sessionid');
                lrdata = floatdata_append(lrdata, 'cid,' + LR_cid + '|sid,' + LR_sid + '|fistvisitetime,' + new Date().getTime() + '|lastvisitetime,' + new Date().getTime() + '|visitecounts,1|visitepages,1')
            } else {
                lrdata = floatdata_append(lrdata, 'lastvisitetime,' + new Date().getTime() + '|visitepages,' + (parseInt(LR_visitepages) + 1));
                if ((new Date().getTime() - parseInt(LR_lastvisitetime)) > 43200000) {
                    LR_sid = LR_getCookie('LiveWS' + LR_websiteid + 'sessionid');
                    lrdata = floatdata_append(lrdata, 'sid,' + LR_sid + '|visitecounts,' + (parseInt(LR_visitecounts) + 1))
                }
            }
            LR_addnew0()
        }
        if (lrdata != '') {
            LR_savedata(lrdata, LR_websiteid)
        }
        LR_swfok = 0
    }
}
function LR_useCookie() {
    LR_cid = LR_getCookie('LiveWS' + LR_websiteid);
    LR_sid = LR_getCookie('LiveWS' + LR_websiteid + 'sessionid');
    LR_fistvisitetime = LR_getCookie('fistvisitetime');
    LR_lastvisitetime = LR_getCookie('lastvisitetime');
    LR_visitecounts = LR_getCookie('visitecounts');
    LR_visitepages = LR_getCookie('visitepages');
    LR_cname = LR_getCookie('cname');
    LR_ccolor = LR_getCookie('ccolor');
    if (LR_fistvisitetime == null) {
        LR_SetCookie('fistvisitetime', new Date().getTime(), 2628000);
        LR_SetCookie('lastvisitetime', new Date().getTime(), 2628000);
        LR_SetCookie('visitecounts', 1, 2628000);
        LR_SetCookie('visitepages', 1, 2628000)
    } else {
        LR_SetCookie('lastvisitetime', new Date().getTime(), 2628000);
        if ((new Date().getTime() - parseInt(LR_lastvisitetime)) > 43200000) {
            LR_SetCookie('visitecounts', (parseInt(LR_visitecounts) + 1), 2628000)
        }
        LR_SetCookie('visitepages', (parseInt(LR_visitepages) + 1), 2628000)
    }
    LR_addnew0()
}
function LR_addnew0() {
    if (_lr_issupport_track) {
        var data = 'id=' + LR_siteid + '&sid=' + LR_sid + '&cid=' + LR_cid + '&lng=' + LR_lng;
        data += '&p=' + escape(location.href) + '&r=' + lr_refer5237 + '&e=' + escape(LR_explain);
        if (typeof(LR_username) != 'undefined') {
            data += '&un=' + escape(LR_username)
        }
        if (typeof(LR_userdata) != 'undefined') {
            data += '&ud=' + escape(LR_userdata)
        }
        if (typeof(LR_pagetitle) != 'undefined') {
            data += '&pt=' + escape(LR_pagetitle)
        }
        if (LR_issupport_feydj) {
            data += '&f=1'
        }
        checkcount = -1;
        LR_inviteimgJS = 0;
        LR_hcloopJS(LR_sysurl + 'js/JS_Float.aspx', data + '&d=' + new Date().getTime())
    } else {
        LR_sidexists = 2
    }
}
if (LR_hasInstall > 0) {
    LR_readdata(LR_websiteid)
} else {
    LR_useCookie()
};
function LiveReceptionCode_BuildChatWin(_lrchatexplain, _lrhelpalt) {
    return ' href="javascript:void(0)"  onclick="openZoosUrl(\'chatwin\',\'&e=' + escape(escape(_lrchatexplain)) + '\');return false;" title="' + unescape(_lrhelpalt) + '" target="_self" '
}
function LR_GetAutoInvite2() {
    if (LR_invitesearchkey && LR_skey != null && typeof(LiveAutoInvite3) != 'undefined') {
        return LiveAutoInvite3.replace('%SKEY%', unescape(LR_skey))
    } else if (LR_invitestring1_auto != '') {
        return LR_invitestring1_auto
    } else {
        return LiveAutoInvite2.replace(/\\"/g, '"')
    }
}
function clearinviteTimeout() {
    if (LR_nexttimerID != null) {
        clearTimeout(LR_nexttimerID);
        LR_nexttimerID = null
    }
    LR_HideInvite()
}
function LR_invitef() {
    if (LR_invite0 == 'fopenchatwin') {
        LR_gstate = 1;
        if (LR_istate < 2) {
            clearinviteTimeout();
            LR_istate = 2;
            window.focus();
            lr_hidemini();
            openZoosUrl('fchatwin')
        }
    } else if (LR_invite0 == 'no') {
        LR_gstate = 2;
        clearinviteTimeout();
        if (LR_istate > 0) {
            LR_istate = 0
        }
    } else if (LR_invite0 == 'openchatwin') {
        LR_gstate = 1;
        if (LR_istate > -1) {
            clearinviteTimeout();
            LR_istate = 1;
            LR_showminiDiv()
        }
    } else if (LR_invite0 != '') {
        LR_gstate = 1;
        if (LR_istate > -1) {
            clearinviteTimeout();
            LR_istate = 1;
            LR_showInviteDiv(LR_invite0, LR_invite1)
        }
    }
}
function LR_LS() {
    if (LR_sidexists == -1) {
        setTimeout('LR_LS()', 100);
        return
    }
    LR_Check_region();
    if (LR_invite0 == 'alerturl') {
        var oo5 = LR_invite1.split(',');
        alert(unescape(oo5[1]));
        window.location = oo5[0]
    } else if (LR_invite0 == 'url') {
        window.location = LR_invite1
    } else if (LR_invite0 == 'alert') {
        alert(LR_invite1);
        LR_gstate = -2
    }
    if (_lr_issupport_track) {
        if (LR_sidexists == 0) {
            var LR_Color = 16;
            if (navigator.appName != 'Netscape') {
                LR_Color = screen.colorDepth
            } else {
                LR_Color = screen.pixelDepth
            }
            var LR_sSize = screen.width + '*' + screen.height;
            var data = 'id=' + LR_siteid + '&sid=' + LR_sid + '&s=' + LR_sSize + '&ft=' + LR_fistvisitetime + '&fl=' + LR_lastvisitetime + '&vc=' + LR_visitecounts + '&vp=' + LR_visitepages + '&c=' + LR_Color + '&lng=' + LR_lng + '&cid=' + LR_cid + '&z=' + (new Date()).getTimezoneOffset() / 60;
            data += '&cn=' + escape(LR_cname) + '&co=' + escape(LR_ccolor);
            checkcount = -1;
            LR_inviteimgJS = 0;
            LR_hcloopJS(LR_sysurl + 'LS/newsid0.aspx', data)
        }
    }
    if (!LiveReceptionCode_isonline && offline_invite_hidden) return;
    LR_invitef();
    if (_lr_issupport_track) LR_nextinvite(1);
    if (LiveReceptionCode_isonline && _lr_issupport_track) {
        LR_hcloop()
    }
}
LR_LS();
var lronunload0 = window.onunload;
window.onunload = lronunload1;
function lronunload1() {
    if (!LR_ClientEnd) return;
    LR_ClientEnd = 0;
    LR_inviteimgJS = 0;
    LR_hcloopJS(LR_sysurl + 'LR/ClientEndJS.aspx', 'id=' + LR_siteid + '&lng=' + LR_lng + '&sid=' + LR_sid);
    try {
        if (typeof(lronunload0) == 'function') lronunload0()
    } catch(e) {}
}
function LR_RefuseChat() {
    if (LR_gstate == 1) {
        LR_invite0 = '';
        LR_istate = -1
    }
    LR_nextinvite()
}
function LR_nextinvite(fic) {
    if (LR_gstate < 1 && LR_istate == 0 && typeof(LiveAutoInvite0) != 'undefined') {
        if (!fic && (!LR_repeatinvite || typeof(LR_next_invite_seconds) == 'undefined')) return;
        var lastshowinvite = parseInt(LR_getCookie('lastshowinvite'));
        if (isNaN(lastshowinvite)) {
            lastshowinvite = 0
        }
        var intimeout = _lr_invite_interval * 1000 - (new Date().getTime() - lastshowinvite);
        var intimeout1 = (fic ? LrinviteTimeout: LR_next_invite_seconds) * 1000;
        if (intimeout > 0) {
            intimeout1 += intimeout
        }
        LR_istate = 1;
        LR_nexttimerID = setTimeout('LR_showInviteDiv("1","1")', intimeout1)
    }
}
function LR_hcloopJS(url, param) {
    var me = arguments.callee;
    var src = url.indexOf('?') == '-1' ? url + '?': url;
    src += param + '&d=' + new Date().getTime();
    me.Script && me.Script.parentNode.removeChild(me.Script);
    me.Script = document.createElement('script');
    me.Script.setAttribute('type', 'text/javascript');
    me.Script.src = src;
    document.getElementsByTagName('head')[0].appendChild(me.Script)
}
function _LR_show2(_lrshow) {
    if (!lr_mini_closed) return;
    if (typeof(LR_nextshowmini_s) != 'undefined' && !isNaN(LR_nextshowmini_s) && new Date().getTime() - lastshowmini > LR_nextshowmini_s * 1000) {
        LR_showminiDiv(_lrshow)
    }
}
function LR_CheckImgJS(w, w1, w2, w3) {
    LR_inviteimgJS = 1;
    if (!LR_cookie_test || w == 2) {
        LR_CheckImgJS1(w, w1, w2, w3);
        return
    }
    var w0 = w + '|' + new Date().getTime() + '|' + (w1 ? w1: '') + '|' + (w2 ? w2: '') + '|' + (w3 ? w3: '');
    LR_SetCookie('LR_check_data', w0, 0.1)
}
function LR_CheckImgJS1(w, w1, w2, w3) {
    if (!w) {
        return
    }
    if (w == 28) {
        return
    }
    if (checkcount == -1 && w != 6) return;
    if (w > 0) {
        if (LR_chatkind == -1) LR_chatkind = 0;
        if (w == 2) {
            LR_gstate = 1;
            if (LR_istate < 2) {
                clearinviteTimeout();
                LR_istate = 2;
                window.focus();
                lr_hidemini();
                openZoosUrl('fchatwin')
            }
        } else if (w == 8) {
            LR_gstate = 1;
            if (LR_istate > -1) {
                clearinviteTimeout();
                LR_istate = 1;
                if (w1) LR_chatkind = w1;
                LR_showminiDiv()
            }
        } else if (w == 4) {
            LR_gstate = 0;
            if (LR_istate > 1) {
                LR_istate = 0
            }
            LR_nextinvite();
            if (LR_chatkind) {
                LR_chatkind = 0;
                lastshowmini = new Date().getTime();
                lr_mini_closed = 1
            }
            _LR_show2(0)
        } else if (w == 5) {
            if (LR_gstate != 2) {
                LR_gstate = 2;
                LR_SetCookie('LR_lastchat', '1', 720)
            }
            clearinviteTimeout();
            if (LR_istate > 0) {
                LR_istate = 0
            }
            if (w1) LR_chatkind = w1;
            if (w1 == 1) lr_hidemini();
            if (lr_mini_closed) return;
            if (w1 == 2 && LR_GetObj('LRMINIBar') == null) {
                LR_HideInvite();
                LR_istate = 1;
                LR_showminiDiv()
            }
            if (w2) LR_maxoid = w2;
            if (w3 && LR_getCookie('LR_mimiwin') == LR_Tick) lrminiMax()
        } else if (w == 7) {
            LR_gstate = -1;
            if (LR_istate > 1) {
                LR_istate = 0
            }
            LiveReceptionCode_isonline = 0;
            if (typeof(LR_offline) == 'function') LR_offline();
            LR_Floaters[0].pms['html'] = LR_buildfloat();
            LR_Floaters[0].imageTimer(true);
            return
        } else if (w == 1) {
            if (LR_gstate == 1) return;
            checkcount = 2;
            LR_invite0 = w1;
            LR_invite1 = w2;
            LR_invitef()
        }
    }
}
function LR_hcloop() {
    if (!LiveReceptionCode_isonline || !_lr_issupport_track || (LR_visitetime + 1800000) < new Date().getTime()) return;
    if (LR_cookie_test) {
        if (LR_getCookie('LR_mimiwin') != LR_Tick && LR_chatkind == 2) lrminiMin(1);
        var LR_check_data = LR_getCookie('LR_check_data');
        if (LR_check_data != null) {
            var LR_ss = LR_check_data.split("|");
            if (LR_ss.length > 4 && LR_cookie_ctick < parseInt(LR_ss[1])) {
                LR_cookie_ctick = parseInt(LR_ss[1]);
                LR_CheckImgJS1(LR_ss[0], LR_ss[2], LR_ss[3], LR_ss[4]);
                setTimeout('LR_hcloop()', 500);
                return
            }
        }
    }
    if (checkcount == -1 || !LR_inviteimgJS) {
        setTimeout('LR_hcloop()', 500);
        return
    }
    if (LR_istate == -1) {
        LR_istate = -2;
        checkcount = -1;
        LR_inviteimgJS = 0;
        LR_hcloopJS(LR_sysurl + 'JS/RefuseChatjs.aspx', 'id=' + LR_siteid + '&sid=' + LR_sid + '&lng=' + LR_lng);
        setTimeout('LR_hcloop()', 500);
        return
    }
    if (LR_cookie_test && LR_getCookie('lastinvite') != null) LR_lastinvite = LR_getCookie('lastinvite');
    if (LR_lastinvite != null) {
        if (LR_MCount1 < 5000) LR_MCount1 = 5000;
        if ((new Date().getTime() - parseInt(LR_lastinvite)) > LR_MCount1) {
            LR_lastinvite = new Date().getTime();
            LR_SetCookie('lastinvite', LR_lastinvite, 720);
            LR_inviteimgJS = 0;
            LR_hcloopJS(LR_sysurl + 'js/CheckInvitejs.aspx', 'id=' + LR_siteid + '&sid=' + LR_sid + ((LR_GetObj('LRMINIWIN') != null && LR_GetObj('LRMINIWIN').style.display == 'none') ? ('&oid=' + LR_maxoid) : ''))
        }
    }
    setTimeout('LR_hcloop()', 500)
}
function LR_showminiDiv2() {
    if (typeof(LR_showminiDiv_no) != 'undefined' || !LR_pm001 || !LiveReceptionCode_isonline || LR_isMobile || !LR_pm002) return;
    if (LR_cid == null) {
        setTimeout('LR_showminiDiv2();', 300);
        return
    }
    setTimeout('LR_HideInvite();LR_istate=1;LR_showminiDiv();', typeof(LR_showminiDivtimeout) != 'undefined' ? LR_showminiDivtimeout * 1000 : 2000);
    return
}
LR_showminiDiv2();

相关文章

  1. 网站商务通安装常见错误解决方法

    NET Framework 2.0 是网站商务通的必备组件之一,所以要安装网站商务通必需要先安装. NET Framework 2.0 。 操作说明 如果您在安装. NET Framework 2.0 时。出现如下问题,请查考解决方案: 1.常见错误一 安装.Net FrameWork 2.0 sp1时如果安装出错或者安装

  2. 商务通对话无来路显示及被恶意刷对话的解决方法

    在医疗行业,无论是做SEO还是SEM,对话始终是一个重要的指标因素。可是很多人在查看商务通对话记录的时候,往往会发现一些对话没有来路。这既不利于统计是哪个网站带来的有效对话,更不方便统计究竟是哪些关键词或着陆页面带来有效咨询。 其实造成路径丢失的

  3. 网站商务通访客留言介绍

    访客留言当所有的客服离线以后,如果有访客请求对话,系统会转到留言界面,当客服再次登录软件时,系统会提示客服有多少条留言没有处理,客服点击访客留言的按钮可以处理留言的信息。 如(图1); 图1 可以对留言进行分类查找,如(图2); 图2 也可以对留言

  4. 网站商务通浮动图标默认参数设置

    浮动图标默认参数设置如果你感觉网站商务通的图标不适合你网站,或者你想更换浮动的位置,你可以在系统设置----设置浮动图标参数中进行浮动图标图片的修改或者位置的调整。 操作说明 浮动图标的网址 选择本地文件 选择好本地已经做好的浮动图标,然后上传。

  5. 医疗网站商务通弹窗吸引用户点击的几点注意事项

    试想一下, 当我们浏览一个医疗的网站,看一篇文章总是不断的弹出对话框,就会让人烦躁,估计很少有人会有耐心的浏览的。小脑袋竞价软件个人觉得,一个优秀的医疗网站应该能让患者顺畅的查看某些病症信息或者他们想要了解全部的内容。这样才可以提升网站的用

随机推荐

  1. 网站商务通安装常见错误解决方法

    NET Framework 2.0 是网站商务通的必备组件之一,所以要安装网站商务通必需要先安装. NET Framework 2.0 。 操作说明 如果您在安装. NET Framework 2.0 时。出现如下问题,请查考解决方案: 1.常见错误一 安装.Net FrameWork 2.0 sp1时如果安装出错或者安装

  2. 商务通对话无来路显示及被恶意刷对话的解决方法

    在医疗行业,无论是做SEO还是SEM,对话始终是一个重要的指标因素。可是很多人在查看商务通对话记录的时候,往往会发现一些对话没有来路。这既不利于统计是哪个网站带来的有效对话,更不方便统计究竟是哪些关键词或着陆页面带来有效咨询。 其实造成路径丢失的

  3. 网站商务通访客留言介绍

    访客留言当所有的客服离线以后,如果有访客请求对话,系统会转到留言界面,当客服再次登录软件时,系统会提示客服有多少条留言没有处理,客服点击访客留言的按钮可以处理留言的信息。 如(图1); 图1 可以对留言进行分类查找,如(图2); 图2 也可以对留言

  4. 网站商务通浮动图标默认参数设置

    浮动图标默认参数设置如果你感觉网站商务通的图标不适合你网站,或者你想更换浮动的位置,你可以在系统设置----设置浮动图标参数中进行浮动图标图片的修改或者位置的调整。 操作说明 浮动图标的网址 选择本地文件 选择好本地已经做好的浮动图标,然后上传。

  5. 医疗网站商务通弹窗吸引用户点击的几点注意事项

    试想一下, 当我们浏览一个医疗的网站,看一篇文章总是不断的弹出对话框,就会让人烦躁,估计很少有人会有耐心的浏览的。小脑袋竞价软件个人觉得,一个优秀的医疗网站应该能让患者顺畅的查看某些病症信息或者他们想要了解全部的内容。这样才可以提升网站的用