﻿function Moveduilian3() {
var x = 0;                                                 //浮动广告层固定于浏览器的x方向位置
var y = 176;                                                //浮动广告层固定于浏览器的y方向位置
var diff = (document.documentElement.scrollTop + y - document.all.duilian3.style.posTop)*.40;
var y = document.documentElement.scrollTop + y - diff;
eval('document.all.duilian3.style.posTop = y');
eval('document.all.duilian3.style.posRight = x');         //移动广告层
setTimeout("Moveduilian3();", 80);                   //设置20毫秒后再调用函数MoveLayer()
}
function winload() 
{ 
	document.all.duilian3.style.top=85; 
	document.all.duilian3.style.right=0; 
	var nm=readCookie("service");
	if(nm!="")
	{
		setduilian3(nm);
	}
} 
function setduilian3(nm)
{
	var whichEle;
	whichEle = document.getElementById("table01");
	var djEle;
	djEle=document.getElementById("dj");
	var djimg;
	djimg=document.getElementById("imgs");	
	
	if(nm=="off")	
	{
		whichEle.style.display="block";
		  djEle.title="[点击隐藏]";
		  djimg.src="http://www.qzda.com/img/kefu1.gif";
	}
	if(nm=="on")	
	{
		 whichEle.style.display="none";	
		  djEle.title="[点击显示]";
		  djimg.src="http://www.qzda.com/img/kefu2.gif";
	}
}
function changelayer()
{
		var whichEle;
		whichEle = document.getElementById("table01");
		var djEle;
		djEle=document.getElementById("dj");
		var djimg;
		djimg=document.getElementById("imgs");
		
		if(whichEle.style.display=="block")
		{
		  whichEle.style.display="none";	
		  djEle.title="[点击显示]";
		  djimg.src="http://www.qzda.com/img/kefu2.gif";
		  SetCookie("on")  
		 
		  
		}
		else
		if(whichEle.style.display=="none"){
		  whichEle.style.display="block";
		  djEle.title="[点击隐藏]";
		  djimg.src="http://www.qzda.com/img/kefu1.gif";
		  SetCookie("off")	  
		}
}

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=.qzda.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; 　　
} 

function changelayer2()
{
		var whichEle;
		whichEle = document.getElementById("table01");
		if(whichEle.style.display=="none"){
		  whichEle.style.display="block";		
		}
}

{ 

document.write("<div id=duilian3 style='position: absolute;visibility:visible;z-index:1' >");
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;'></div>");
document.write("<a id='dj' href='#' title='[点击隐藏]' onclick='changelayer()' onFocus='this.blur()'><img id='imgs' src='http://www.qzda.com/img/kefu1.gif' width='16' height='142'  border='0'/></a>");
document.write("</td>");
document.write("<td id='table01' style='display:block;'>");
document.write("<div style='background:url(http://www.qzda.com/img/kefu_t.gif); height:27px; width:116px; text-align:center'></div>");
document.write("<div style=' border-left: #FF947F solid 1px; border-right:#FF947F solid 1px; width:114px; background:#FFF7F5'>");
document.write("<div style='background:url(http://www.qzda.com/img/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:3px;'>QQ在线客服</div>");
document.write("<div style='margin-left:0px;font-size:12px; padding-top:2px; padding-bottom:0px;'>");
document.write("<table width='100' height='40px' 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=http://wpa.qq.com/msgrd?V=1&Uin=755319635&Site=在线咨询&Menu=yes title='点击交谈QQ 755319635'><img border='0' SRC=http://wpa.qq.com/pa?p=1:755319635:4 alt='' align='middle'></a>");
document.write("</td>");
document.write("<td width='60' align='left'>");
document.write("<a target=blank href=http://wpa.qq.com/msgrd?V=1&Uin=755319635&Site=在线咨询&Menu=yes title='点击交谈QQ 755319635'>购物咨询</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=http://wpa.qq.com/msgrd?V=1&Uin=691299459&Site=在线咨询&Menu=yes title='点击交谈QQ 691299459'><img border='0' SRC=http://wpa.qq.com/pa?p=1:691299459:4 alt='' align='middle'></a>");
document.write("</td>");
document.write("<td width='60' align='left'>");
document.write("<a target=blank href=http://wpa.qq.com/msgrd?V=1&Uin=691299459&Site=在线咨询&Menu=yes title='点击交谈QQ 691299459'>售后服务</a>");
document.write("</td>");
document.write("</tr>");
document.write("</table>");
document.write("</div>");



document.write("<div style='background:url(http://www.qzda.com/img/t1.gif); width:104px; height:18px; margin-left:5px; color:#660000; font-size:12px; font-weight:bolder;margin-top:1px; text-align:center; padding-top:3px;'>免费订购热线</div>");
document.write("<div style='margin-left:0px;font-size:12px; padding-top:2px; padding-bottom:0px;'>");
document.write("<table width='100' height='20px' border='0' cellpadding='0' cellspacing='0'>");
document.write("<tr>");
document.write("<td width='100' align='right' style='padding-right:7px; line-height:18px;'>");
document.write("010-63953815 13661004036");
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:0px; text-align:center; padding-top:0px;'><img src=http://www.qzda.com/img/dianhua0.gif alt='你可通过发短信到此手机号，与我们沟通' border=0 align=middle></div>");

document.write("<table height='5px' border='0' cellpadding='0' cellspacing='0'><tr><td></td></tr></table><table width=100px align=center height='5px' border='0' cellpadding='0' cellspacing='0'><tr><td><center><a href='http://www.qzda.com/order.html'><img border='0' SRC=http://www.qzda.com/img/OrderSend.gif alt='全国所有大中小城市货到再付款，真正做到“0”风险购物，可以网上直接下定单，也可以电话（010-63953815）订购'></a></center></td></tr></table></div>");
document.write("<div style='background:url(http://www.qzda.com/img/kefu_e.gif); height:4px; width:116px; font-size:1px;'></div></td>");
document.write("</tr>");
document.write("</table>");
document.write(" </div>");


} 
winload() ;
Moveduilian3(); 
