﻿document.writeln("<div id=\"sv_bar1\" style=\"position:absolute; top:450px; right:0px; width:27px; height:112px;\"><a href=\"javascript:;\" onclick=\"showservice()\"><img src=\"images/service_bar.png\" width=\"27\" height=\"112\" title=\"点击与客服洽谈\" /></a></div>");
document.writeln("<div id=\"sv1\" style=\"position:fixed;_position:absolute; top:300px; right:0px; width:120px; height:300px;display:none;\">");
document.writeln("<div style=\"height:103px;background:url(images/service_top.gif) no-repeat;\">");
document.writeln("<div id=\"sv_t\" style=\"height:25px;line-height:25px;text-align:right;\"><a href=\"javascript:;\" onclick=\"dladclose2(1)\" style=\"color:#fff;text-decoration:none;\" title=\"关闭\">x</a>&nbsp;</div></div>");
document.writeln("<div style=\"height:auto;background:url(images/service_cbg.gif) repeat-y;\"><ul style=\"height:auto;width:100%;list-style:none;\">");
//客服1
document.writeln("<li style=\"text-align:center; height:22px;line-height:22px;overflow:hidden;\"><a target='_blank' href='http://wpa.qq.com/msgrd?v=3&uin=1976145496&site=qq&menu=yes'><img border='0' src='http://wpa.qq.com/pa?p=2:1976145496:41' alt='点击这里给我发消息' title='点击这里给我发消息'></a></li>");


document.writeln("</ul></div>");
document.writeln("<div style=\"background:url(images/service_bottom.gif) no-repeat;height:53px;\"></div>");
document.writeln("</div>");
lastScrollY2=0;
function heartService(){ 
var diffY2;
if (document.documentElement && document.documentElement.scrollTop)
    diffY2 = document.documentElement.scrollTop;
else if (document.body)
    diffY2 = document.body.scrollTop
else
    {/*Netscape stuff*/}
    
percent2=.1*(diffY2-lastScrollY2); 
if(percent2>0)percent2=Math.ceil(percent2); 
else percent2=Math.floor(percent2); 
document.getElementById("sv_bar1").style.top=parseInt(document.getElementById("sv_bar1").style.top)+percent2+"px";

lastScrollY2=lastScrollY2+percent2; 
}
function dladclose2(divid){
  var ads2 ="sv"+divid;
  document.getElementById(ads2).style.display='none';
  document.getElementById("sv_bar1").style.display="";
} 

window.setInterval("heartService()",1);
function showservice(){
    document.getElementById("sv_bar1").style.display="none";
    document.getElementById("sv1").style.display='';
}
