// JavaScript Document

$(document).ready(function(){

	$("#floatShow").bind("click",function(){
	
		$("#onlineService").animate({width:"show", opacity:"show"}, "normal" ,function(){
			$("#onlineService").show();
		});
		
		$("#floatShow").attr("style","display:none");
		$("#floatHide").attr("style","display:block");
		
		return false;
	});
	
	$("#floatHide").bind("click",function(){
	
		$("#onlineService").animate({width:"show", opacity:"hide"}, "normal" ,function(){
			$("#onlineService").hide();
		});
		
		$("#floatShow").attr("style","display:block");
		$("#floatHide").attr("style","display:none");
		
		return false;
	});
  
});


document.writeln("<style type=\"text/css\">");
document.writeln("*{margin:0;padding:0;list-style-type:none;}");
document.writeln("a,img{border:0;}");
document.writeln("");
document.writeln("/* online */");
document.writeln("#online_qq_tab a,.onlineMenu h3,.onlineMenu li.tli,.newpage{background:url(/qqkf/float_s.gif) no-repeat;}");
document.writeln("#onlineService,.onlineMenu,.btmbg{background:url(/qqkf/float_bg.gif) no-repeat;}");
document.writeln("");
document.writeln("#online_qq_layer{z-index:9999;position:fixed;right:0px;top:0;margin:150px 0 0 0;}");
document.writeln("*html,*html body{background-image:url(about:blank);background-attachment:fixed;}");
document.writeln("*html #online_qq_layer{position:absolute;top:expression(eval(document.documentElement.scrollTop));}");
document.writeln("");
document.writeln("#online_qq_tab{width:28px;float:left;margin:120px 0 0 0;position:relative;z-index:9;}");
document.writeln("#online_qq_tab a{display:block;height:118px;line-height:999em;overflow:hidden;}");
document.writeln("#online_qq_tab a#floatShow{background-position:-30px -374px;}");
document.writeln("#online_qq_tab a#floatHide{background-position:0 -374px;}");
document.writeln("");
document.writeln("#onlineService{display:inline;margin-left:-1px;float:left;width:130px;display:none;background-position:0 0;padding:10px 0 0 0;}");
document.writeln(".onlineMenu{background-position:-262px 0;background-repeat:repeat-y;padding:0 15px;}");
document.writeln(".onlineMenu h3{height:36px;line-height:999em;overflow:hidden;border-bottom:solid 1px #ACE5F9;}");
document.writeln(".onlineMenu h3.tQQ{background-position:0 10px;}");
document.writeln(".onlineMenu h3.tele{background-position:0 -47px;}");
document.writeln(".onlineMenu li{height:36px;line-height:36px;border-bottom:solid 1px #E6E5E4;text-align:center;}");
document.writeln(".onlineMenu li.tli{padding:0 0 0 28px;font-size:12px;text-align:left;}");
document.writeln(".onlineMenu li.zixun{background-position:0px -131px;}");
document.writeln(".onlineMenu li.fufei{background-position:0px -190px;}");
document.writeln(".onlineMenu li.phone{background-position:0px -244px;}");
document.writeln(".onlineMenu li a.newpage{display:block;height:36px;line-height:999em;overflow:hidden;background-position:5px -100px;}");
document.writeln(".onlineMenu li img{margin:8px 0 0 0;}");
document.writeln(".onlineMenu li.last{border:0;}");
document.writeln("");
document.writeln(".wyzx{padding:8px 0 0 5px;height:57px;overflow:hidden;background:url(/qqkf/webZx_bg.jpg) no-repeat;}");
document.writeln("");
document.writeln(".btmbg{height:12px;overflow:hidden;background-position:-131px 0;}");
document.writeln("</style>");
document.writeln("");
document.writeln("<div id=\"online_qq_layer\">");
document.writeln("	<div id=\"online_qq_tab\">");
document.writeln("		<a id=\"floatShow\" style=\"display:block;\" href=\"javascript:void(0);\">收缩</a> ");
document.writeln("		<a id=\"floatHide\" style=\"display:none;\" href=\"javascript:void(0);\">展开</a>");
document.writeln("	</div>");
document.writeln("	<div id=\"onlineService\">");

document.writeln("		<div class=\"onlineMenu\">");
document.writeln("			<h3 class=\"tQQ\">QQ在线客服</h3>");
document.writeln("			<ul>");
if(qqkf!=""){
document.writeln("				<li class=\"tli zixun\">在线咨询</li>");

s_qqkf=qqkf.split(";");
for(i=0;i<s_qqkf.length;i++){

document.writeln("				<li><a href=\"http://wpa.qq.com/msgrd?v=3&uin="+s_qqkf[i]+"&site=qq&menu=yes\"><img src=\"/qqkf/pa.gif\" width=\"74\" height=\"22\" alt=\"客服\" /></a></li>");
}

}
if(dlkf!=""){
document.writeln("				<li class=\"tli fufei\">代理专区</li>");

s_dlkf=dlkf.split(";");
for(i=0;i<s_dlkf.length;i++){

document.writeln("				<li><a href=\"http://wpa.qq.com/msgrd?v=3&uin="+s_dlkf[i]+"&site=qq&menu=yes\"><img src=\"/qqkf/pa.gif\" width=\"74\" height=\"22\" alt=\"客服\" /></a></li>");
}


//document.writeln("				<li class=\"last\"><a href=\"http://wpa.qq.com/msgrd?v=3&uin=63665828&site=qq&menu=yes\"><img src=\"/qqkf/pa.gif\" width=\"74\" height=\"22\" alt=\"客服001\" /></a></li>");
}
document.writeln("			</ul>");
document.writeln("		</div>");
if(telkf!=""){
document.writeln("		<div class=\"onlineMenu\">");
document.writeln("			<h3 class=\"tele\">电话客服</h3>");
document.writeln("			<ul>");
s_telkf=telkf.split(";");
for(i=0;i<s_telkf.length;i++){
document.writeln("				<li class=\"tli phone\">"+s_telkf[i]+"</li>");
}

document.writeln("				");
document.writeln("			</ul>");
document.writeln("		</div>");
}
document.writeln("		<div class=\"btmbg\"></div>");
document.writeln("	</div>");
document.writeln("</div>");