﻿

{
//自动发起对话邀请
document.write("<scr"+"ipt language=\"javascript\" src=\"http://chat.53kf.com/kf.php?arg=33chakefu&style=1&keyword="+escape(document.referrer)+"\"></scr"+"ipt>");
//自动发起对话邀请结束



document.write("<link href='http://www.33cha.com/css/kefu.css' rel='stylesheet' type='text/css'/>");
document.write("<div class='clear'></div>");
document.write("<div id='pp'>");
document.write("<div  class='show' id='p1'>");     
document.write("<img id='img1' src='http://www.33cha.com/images/kefu//kefu2.gif' width='16' height='142' border='0' title='[点击显示]' onclick='changelayer()' />");        
document.write("</div>");

document.write("<div class='hidden' id='p2'>");
document.write("<table width='16' border='0' cellpadding='0' cellspacing='0'>");
document.write("<tr>");
document.write("<td valign='top'>");
document.write("<div style='height: 25px; font-size: 1px;'>");
document.write("</div>");
document.write("<img id='imgs' src='http://www.33cha.com/images/kefu//kefu1.gif' width='16' height='142' border='0'  title='[点击隐藏]' onclick='changelayer1()'/>");
document.write("</td>");

document.write("<td id='table01' style='display:block;'>");
document.write("<div style='background:url(http://www.33cha.com/images/kefu//kefu_t.gif); height:27px; width:116px; text-align:center'></div>");
document.write("<div style=' border-left: #97cf50 solid 1px; border-right:#97cf50 solid 1px; width:114px; background:#FFF7F5'>");
document.write("<div style='background:url(http://www.33cha.com/images/kefu//t1.gif); width:104px; height:18px; margin-left:5px; color:#660000; font-size:12px; font-weight:bolder; margin-top:2px; text-align:center; padding-top:2px;'>在线客服</div>");
document.write("<div style='margin-left:5px; line-height:20px; font-size:12px; padding-top:5px; padding-bottom:5px;'>");
document.write("&nbsp;&nbsp;<a href='#' onclick=\"window.open('http://www.53kf.com/company.php?arg=33chakefu&style=1','_blank','height=473,width=703,fullscreen=3,top=200,left=200,status=yes,toolbar=no,menubar=no,resizable=no,scrollbars=no,location=no,titlebar=no,fullscreen=no');\"><img src='http://www.53kf.com/kfimg.php?arg=33chakefu&style=1&on_img=http://www.33cha.com/images/kefu/mm2.gif&off_img=http://www.33cha.com/images/kefu/mm3.gif' border=0></a><br/>");
document.write("</div>");
document.write("<div style='margin-left:10px; line-height:20px; font-size:12px; padding-top:0px; padding-bottom:0px;'>");
document.write("<a href='' target='_blank' title='上上茶网客服工作时间'>时间 8:30-21:00</a>");
document.write("</div>");

document.write("<div style='background:url(http://www.33cha.com/images/kefu//t1.gif); width:104px; height:18px; margin-left:5px; color:#660000; font-size:12px; font-weight:bolder;margin-top:2px; text-align:center;padding-top:2px;'>在线客服</div>");
document.write("<div style='margin-left:0px;font-size:12px; padding-top:0px; padding-bottom:5px;'>");
document.write("<table width='100' height='60px'  border='0' cellpadding='0' cellspacing='0'>");

document.write("<tr>");
document.write("<td width='40' style='width:35px' align='right' style='padding-right:5px;'>");              
document.write("<a target=blank style='display:block;width:40px;' href=tencent://message/?uin=923817515&Site=在线咨询&Menu=yes title='QQ在线上上茶客服1'><img border='0' SRC='http://wpa.qq.com/pa?p=1:923817515:4' align='middle'></a>");
document.write("</td>");
document.write("<td width='60' align='left' >");
document.write("<a target=blank style='display:block;width:60px;'href=tencent://message/?uin=923817515&Site=在线咨询&Menu=yes title='QQ在线上上茶客服1'>在线客服1</a>");
document.write("</td>");
document.write("</tr>");

document.write("<tr>");
document.write("<td width='40' style='width:35px' align='right' style='padding-right:5px;'>");
document.write("<a target=blank style='display:block;width:40px;' href=tencent://message/?uin=1150971376&Site=在线咨询&Menu=yes title='QQ在线上上茶客服2'><img border='0' SRC='http://wpa.qq.com/pa?p=1:1150971376:4'  align='middle'></a>");
document.write("</td>");
document.write("<td width='60' align='left'>");
document.write("<a target=blank style='display:block;width:60px;' href=tencent://message/?uin=1150971376&Site=在线咨询&Menu=yes title='QQ在线上上茶客服2'>在线客服2</a>");
document.write("</td>");
document.write("</tr>");


document.write("<tr>");
document.write("<td width='40' style='width:35px' align='right' style='padding-right:5px;'>");
document.write("<a target=blank style='display:block;width:40px;' href=tencent://message/?uin=1362311872&Site=在线咨询&Menu=yes title='QQ在线上上茶客服3'><img border='0' SRC='http://wpa.qq.com/pa?p=1:1362311872:4'  align='middle'></a>");
document.write("</td>");
document.write("<td width='60' align='left'>");
document.write("<a target=blank style='display:block;width:60px;' href=tencent://message/?uin=1362311872&Site=在线咨询&Menu=yes title='QQ在线上上茶客服3'>在线客服3</a>");
document.write("</td>");
document.write("</tr>");


document.write("<tr>");
document.write("<td width='40' style='width:35px' align='right' style='padding-right:5px;'>");
document.write("<a target=blank style='display:block;width:40px;' href=tencent://message/?uin=1019417540&Site=在线咨询&Menu=yes title='QQ在线上上茶客服4'><img border='0' SRC='http://wpa.qq.com/pa?p=1:1019417540:4'  align='middle'></a>");
document.write("</td>");
document.write("<td width='60' align='left'>");
document.write("<a target=blank style='display:block;width:60px;' href=tencent://message/?uin=1019417540&Site=在线咨询&Menu=yes title='QQ在线上上茶客服4'>在线客服4</a>");
document.write("</td>");
document.write("</tr>");


document.write("<tr>");
document.write("<td width='40' style='width:35px' align='right' style='padding-right:5px;'>");
document.write("<a target=blank style='display:block;width:40px;' href=tencent://message/?uin=963462852&Site=在线咨询&Menu=yes title='QQ在线上上茶客服5'><img border='0' SRC='http://wpa.qq.com/pa?p=1:963462852:4'  align='middle'></a>");
document.write("</td>");
document.write("<td width='60' align='left'>");
document.write("<a target=blank style='display:block;width:60px;' href=tencent://message/?uin=963462852&Site=在线咨询&Menu=yes title='QQ在线上上茶客服5'>在线客服5</a>");
document.write("</td>");
document.write("</tr>");


document.write("<tr>");
document.write("<td width='40' style='width:35px' align='right' style='padding-right:5px;'>");
document.write("<a target='blank' style='display:block;width:40px;' href='http://amos1.taobao.com/msg.ww?v=2&amp;uid=网海电子商务&amp;s=2' title='在线上上茶网客服6'><img src='http://amos1.taobao.com/online.ww?v=2&amp;uid=网海电子商务&amp;s=2' target='_blank' id='222' /> </a>");
document.write("</td>");
document.write("<td width='60' align='left'>");
document.write("<a target='blank' style='display:block;width:60px;' href='http://amos1.taobao.com/msg.ww?v=2&amp;uid=网海电子商务&amp;s=2'>在线客服6</a>");
document.write("</td>");
document.write("</tr>");

document.write("<tr>");
document.write("<td width='40' style='width:35px' align='right' style='padding-right:5px;'>");
document.write("<a target='blank' style='display:block;width:40px;' href='http://amos1.taobao.com/msg.ww?v=2&amp;uid=特产大卖场&amp;s=2' title='在线上上茶网客服7'><img src='http://amos1.taobao.com/online.ww?v=2&amp;uid=特产大卖场&amp;s=2' target='_blank' id='223' /></a>");
document.write("</td>");
document.write("<td width='60' align='left'>");
document.write("<a target='blank' style='display:block;width:60px;' href='http://amos1.taobao.com/msg.ww?v=2&amp;uid=特产大卖场&amp;s=2'>在线客服7</a>");
document.write("</td>");
document.write("</tr>");



document.write("</table>");
document.write("</div>");


document.write("<div style='background:url(http://www.33cha.com/images/kefu//t1.gif); width:104px; height:18px; margin-left:5px; color:#660000; font-size:12px; font-weight:bolder;margin-top:2px; text-align:center; padding-top:2px;'>网站合作</div>");
document.write("<div style='margin-left:0px;font-size:12px; padding-top:0px; padding-bottom:5px;'>");
document.write("<table width='100' height='60px' border='0' cellpadding='0' cellspacing='0'>");

document.write("<tr>");
document.write("<td width='40' align='right' style='padding-right:5px;'>");
document.write("<a target=blank href=tencent://message/?uin=32211215&Site=在线咨询&Menu=yes title='战略合作'><img border='0' SRC='http://wpa.qq.com/pa?p=1:32211215:4'  align='middle'></a>");
document.write("</td>");
document.write("<td width='60' align='left'>");
document.write("<a target=blank href=tencent://message/?uin=32211215&Site=在线咨询&Menu=yes title='战略合作'>战略合作</a>");
document.write("</td>");
document.write("</tr>");


document.write("<tr>");
document.write("<td width='40' align='right' style='padding-right:5px;'>");
document.write("<a target=blank href=tencent://message/?uin=534711992&Site=在线咨询&Menu=yes title='友情链接'><img border='0' SRC='http://wpa.qq.com/pa?p=1:534711992:4'  align='middle'></a>");
document.write("</td>");
document.write("<td width='60' align='left'>");
document.write("<a target=blank href=tencent://message/?uin=534711992&Site=在线咨询&Menu=yes title='友情链接'>友情链接</a>");
document.write("</td>");
document.write("</tr>");

document.write("</table>");
document.write("</div>");

document.write("<div style='background:url(); width:104px; height:18px; margin-left:5px; color:#660000; font-size:12px; font-weight:bolder;margin-top:2px; text-align:center; padding-top:2px;'><a href='http://chat.53kf.com/eht.php?company_id=62804559&style_id=103508536' target='_blank'><img src='http://www.33cha.com/images/kefu//dianhua0.gif' border='0' align='middle'></a></div>");

document.write("</div>");
document.write("<div style='background:url(http://www.33cha.com/images/kefu//kefu_e.gif); height:4px; width:116px; font-size:1px;'>&nbsp;</div></td>");
document.write("</tr>");
document.write("</table>");
document.write(" </div>");

document.write(" </div>");

}

var x = 0;
document.getElementById("pp").style.left = window.screen.availWidth - 155 + "px";
var hold = 250;
var the_timeoutd;
//定时移动浮动对比层
function moveHelp() {
    document.getElementById("pp").style.left = window.screen.availWidth - 155 + "px";
    var hTop = 150;
    var help = document.getElementById("pp");

    if (help === null)
        return;

    var tt = 80;

    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 - help.offsetTop + hTop;
    pos = help.offsetTop + pos / 10;
    if (pos < hTop) pos = hTop;
    if (pos != hold) {
        help.style.top = pos + "px";
        tt = 10;
    }
    hold = pos;
    the_timeoutd = setTimeout(moveHelp, tt);
}


function winload() {
    var nm = readCookie("service");
    if (nm != "") {
        setduilian3(nm);
    }
    else {
        changelayer();
    }
}
function setduilian3(nm) {
    var whichEle;
    whichEle = document.getElementById("table01");
    var djEle;
    djEle = document.getElementById("dj");
    var djimg;
    djimg = document.getElementById("imgs");

    if (nm == "off") {
        changelayer()
    }
    if (nm == "on") {
        changelayer1()
    }
}
function changelayer() {
    var whichEle;
    whichEle = document.getElementById("p1");
    var djEle;
    djEle = document.getElementById("p2");
    whichEle.style.display = "none";
    djEle.style.display = "block";
    SetCookie("off");
}
function changelayer1() {
    var whichEle;
    whichEle = document.getElementById("p1");
    var djEle;
    djEle = document.getElementById("p2");
    whichEle.style.display = "block";
    djEle.style.display = "none";
    SetCookie("on");
}

function SetCookie(value)
//设定Cookie值
{
    var Days = 30; //此 cookie 将被保存 30 天
    var exp = new Date();    //new Date("December 31, 9998");
    exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000);
    document.cookie = "service" + "=" + escape(value) + ";  expires=" + exp.toGMTString() + ";  domain=.xzuan.com";

}
function readCookie(name) {
    var cookieValue = "";
    var search = name + "=";
    if (document.cookie.length > 0) {
        offset = document.cookie.indexOf(search);
        if (offset != -1) {
            offset += search.length;
            end = document.cookie.indexOf(";", offset);
            if (end == -1) end = document.cookie.length;
            cookieValue = unescape(document.cookie.substring(offset, end))
        }
    }
    return cookieValue;
}
winload();
moveHelp();

