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 - 22:00</dd>");
document.writeln("<dt>客服团队</dt>");
document.writeln("<dd><a target=\"_blank\" href=\"http://wpa.qq.com/msgrd?v=3&uin=799981805&site=qq&menu=yes\" title=\"客服小潘\">客服小潘</a></dd>");
document.writeln("<dd><a target=\"_blank\" href=\"http://wpa.qq.com/msgrd?v=3&uin=799981805&site=qq&menu=yes\" title=\"客服小叶\">客服小叶</a></dd>");
document.writeln("<dd><a target=\"_blank\" href=\"http://wpa.qq.com/msgrd?v=3&uin=799981805&site=qq&menu=yes\" title=\"充值提现\">充值提现</a></dd>");
document.writeln("<dd><a target=\"_blank\" href=\"http://wpa.qq.com/msgrd?v=3&uin=799981805&site=qq&menu=yes\" title=\"技术支持\">技术支持</a></dd>");
document.writeln("<dd><a target=\"_blank\" href=\"http://wpa.qq.com/msgrd?v=3&uin=799981805&site=qq&menu=yes\" title=\"渠道合作\">渠道合作</a></dd>");
document.writeln("<dd class=\"esp_1\"><a target=\"_blank\" href=\"http://wpa.qq.com/msgrd?v=3&uin=799981805&site=qq&menu=yes\" title=\"投诉建议\">投诉建议</a></dd>");
document.writeln("<dt>QQ交流群</dt>");
document.writeln("<dd class=\"esp_3\">群号:123456</dd>");
document.writeln("<dd class=\"esp_2\">进群认证输入账号</dd>");
document.writeln("<dt>联系电话</dt>");
document.writeln("<dd class=\"esp_2\" title=\"企业电话\">400-1234567</dd>");
document.writeln("<dd class=\"esp_3\" title=\"24小时客服电话\">13866668888</dd>");
document.writeln("</dl>");
document.writeln("</div>");
document.writeln("</div>");
document.writeln("</div>");

$(document).ready(function(){
    var destDiv = $("#divSerWin");
    var startPos = destDiv.position().top;

	$(window).scroll(function (){
        var scrTop = $(window).scrollTop();
        var topPos = startPos + (scrTop - startPos) + startPos;
        $("#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");
}