document.writeln("<div id=\"divSerWin\" class=\"service\">");
document.writeln("<div id=\"divMySer\" class=\"service-close\">");
document.writeln("<div class=\"service-button\" onclick='ClickSer();'></div>");
document.writeln("<div class=\"service-inside\">");
document.writeln("<dl>");
document.writeln("<dt>客服工作时间</dt>");
document.writeln("<dd class=\"esp_4\">周一至周日</dd>");
document.writeln("<dd class=\"esp_4\">9:00 - 23:00</dd>");
document.writeln("<dt>客服团队</dt>");
document.writeln("<a href=\"tencent://message/?uin= 275194004\"><dd title=\"点我咨询 风过信息网客服：小张\"></dd></a>");
document.writeln("<a href=\"tencent://message/?uin= 275194004\"><dd class=\"esp_a\" title=\"点我咨询 风过信息网客服：小葛\"></dd></a>");
document.writeln("<a href=\"tencent://message/?uin= 275194004\"><dd class=\"esp_a\" title=\"点我咨询 风过信息网客服：小李\"></dd></a>");

document.writeln("<dt>加盟代理</dt>");
document.writeln("<a href=\"tencent://message/?uin= 275194004\"><dd class=\"esp_a\" title=\"点我咨询 \"></dd></a>");

document.writeln("<dt>技术支持</dt>");
document.writeln("<a href=\"tencent://message/?uin=275194004\"><dd class=\"esp_a\" title=\"点我咨询  技术支持\"></dd></a>");

document.writeln("<dt>QQ交流群</dt>");
document.writeln("<dd class=\"esp_3\">qq:275194004</dd>");
document.writeln("<dt>联系电话</dt>");

document.writeln("<dd class=\"esp_3\" title=\"24小时客服电话\">18175863383</dd>");
document.writeln("</dl>");
document.writeln("</div>");
document.writeln("</div>");
document.writeln("</div>");

$(document).ready(function(){
    var destDiv = $("#divSerWin");
    var startPos = destDiv.position().top;
    var divHeight = destDiv.outerHeight();
    
    $(window).scroll(function (){
        scrTop = $(window).scrollTop();
        if( startPos < scrTop){
            topPos = startPos+(scrTop - startPos)+10;
            $("#divSerWin").css("position", "absolute").css("top", topPos +"px").css('zIndex', '500');
        }
    });
});

function ClickSer(){
    var obj=$("#divMySer")
    if( obj.attr("class") == "service-open" )
        $("#divMySer").removeClass("service-open").addClass("service-close");
    else
        $("#divMySer").removeClass("service-close").addClass("service-open");
}
