document.write("<div id='siderIMchat' >");

document.write("<div id='siderIMchat_main' style='display : none;'>");

document.write("<div class='top'></div><div class='infobox'>我们服务的时间<br>09:00-18:00</div><div class='bg'><ul class='clearfix'><li><a class='blow2' target='_blank' title='在线咨询' href='tencent://message/?uin=1103182682&&Site=LICENSE_ShopEx&&Menu=yes'><img alt='在线咨询' border='0' src='http://wpa.qq.com/pa?p=1:1103182682:4'/>&nbsp;&nbsp;在线咨询</a><br/><a class='blow2' target='_blank' title='在线咨询' href='tencent://message/?uin=393325773&&Site=LICENSE_ShopEx&&Menu=yes'><img alt='在线咨询' border='0' src='http://wpa.qq.com/pa?p=1:393325773:4'/>&nbsp;&nbsp;在线咨询</a></li></ul><br/><div style='text-align:center;'><br/><br/><br/><div id='closeSiderIMchat' style='cursor:pointer;' onclick='hideMsgBox();'>关闭在线客服</div></div></div><div class='bottom'></div>");

document.write("</div>");

document.write("<div id='siderIMchat_hiddenbar' title='在线客服' onmouseover='OnlineOver();'></div>");

document.write("</div>");

//<![CDATA[

var tips; var theTop = 100/*这是默认高度,越大越往下*/; var old = theTop;

function initFloatTips() {

    tips = document.getElementById('siderIMchat');

    moveTips();

};

function moveTips() {

    var tt = 50;

    if (window.innerHeight) {

        pos = window.pageYOffset

    }

    else if (document.documentElement && document.documentElement.scrollTop) {

        pos = document.documentElement.scrollTop

    }

    else if (document.body) {

        pos = document.body.scrollTop;

    }

    pos = pos - tips.offsetTop + theTop;

    pos = tips.offsetTop + pos / 10;



    if (pos < theTop) pos = theTop;

    if (pos != old) {

        tips.style.top = pos + "px";

        tt = 10;

        //alert(tips.style.top);

    }



    old = pos;

    setTimeout(moveTips, tt);

}

//!]]>

initFloatTips();







function OnlineOver() {

    document.getElementById("siderIMchat_hiddenbar").style.display = "none";

    document.getElementById("siderIMchat_main").style.display = "block";

//    document.getElementById("siderIMchat").style.width = "125px";

}



function OnlineOut() {

    document.getElementById("siderIMchat_hiddenbar").style.display = "block";

    document.getElementById("siderIMchat_main").style.display = "none";
}



function hideMsgBox(theEvent) { //theEvent用来传入事件，Firefox的方式
    if (theEvent) {
        var browser = navigator.userAgent; //取得浏览器属性
        if (browser.indexOf("Firefox") > 0) { //如果是Firefox
            if (document.getElementById('siderIMchat_main').contains(theEvent.relatedTarget)) { //如果是子元素
                return; //结束函式

            }

        }

        if (browser.indexOf("MSIE") > 0) { //如果是IE

            if (document.getElementById('siderIMchat_main').contains(event.toElement)) { //如果是子元素

                return; //结束函式

            }

        }

    }

    /*要执行的操作*/

    document.getElementById("siderIMchat_hiddenbar").style.display = "block";

    document.getElementById("siderIMchat_main").style.display = "none";

}

