// JavaScript Document
document.write ('<DIV id="floaterx" style="RIGHT: 86px; OVERFLOW: visible; POSITION: absolute; TOP: 301px; right: 33px; z-index: 100; width:140px; background:#FFFFFF; border:1px solid #CCCCCC;"><div ><div style="cursor:pointer; margin:4px; border-bottom:1px solid #CCCCCC;" align="right" onclick="$(&quot;#floaterx&quot;).css(&quot;display&quot;,&quot;none&quot;)"><table width="100%" border="0" cellspacing="0" cellpadding="0">  <tr><td><div align="center">在线客服&nbsp;</div></td> <td align="right">X</td></tr></table>    </div></div><div id="qqkfh"></div></DIV>')
	var strqq='';
	for(i=0;i<kfn.length;i++){
	switch (kftype[i]){
	 case"qq": 
				url="http://wpa.qq.com/msgrd?V=1&Uin="+kfn[i]+"&Exe=QQ&Site=艾洁发制品有限公司&Menu=No"
				kimg="http://wpa.qq.com/pa?p=1:"+kfn[i]+":4"
				break;
				 case "msn":
			url="msnim:chat?contact="+kfn[i]+""
			kimg="/images/msn.gif"
			break;
				 case "ww":
				url="http://amos1.sh1.china.alibaba.com/msg.atc?v=1&uid="+kfn[i]
				kimg="images/logo_out1.gif"
				break;
				
	
	}
	//document.write(kimg)
	strqq+='<div style="background:url('+ kimg +') no-repeat 10px center; line-height:25px; height:25px; padding-left:40px;"><a  target="blank" href="'+ url+'" title="'+kfh[i]+'" style="color:#000;">'+kfh[i]+'</a></div>'

	}
	$('#qqkfh').html(strqq)
//$("#floaterx").hide();
function move(b,atb){
var c=document.documentElement.scrollTop+b;
if (c<atb){
if (c<585){c=585}
$("#floaterx").css("top",c+"px")
}
}

$(function(){
//var ax=$("#floaterx").offset().top
//$("#floaterx").show();
var atb=$("body").height()-$("#floaterx").height();
setTimeout('move(400,'+atb+')',10);
$(window).scroll(function(){
setTimeout('move(400,'+atb+')',10);
})
})
