/**********************
单坐席浮动图标
调用例子:
<script>
var host="http://192.168.1.23:10054";
var position='left';//浮动位置(左/右)
var adcallno='9002600638';//号码
var adurl='www.curevitiligo.com';//网址
var imgselect=0;//是否自定义图标
var img="1.jpg";//图标
var imgtxt='admin';//图标提示
var top=120;//图标距离顶部位置
</script>
<script src='http://code.laidianduo.com/service/float_1.js' charset='gb2312'></script>
********************/
var host;
if(typeof(host)== "undefined")
	host="http://www.laidianduo.cn";
	
	host="http://www.laidianduo.cn";		
var urlServer="http://manage.laidianduo.com";
var urlService=host+"service/";
var adcallno;
var imgtxt;
var position;
var adurl;
var img;
var imgurl;
var imgselect;
var top;
var side;
if(typeof(position)== "undefined")	
	position="left";
if(typeof(adurl)== "undefined")
	adurl="www.laidianduo.cn";
if(typeof(adcallno)== "undefined")
	adcallno="";
if(typeof(imgtxt)== "undefined")
	imgtxt="点击呼叫,免费通话.";
else
	imgtxt=decodeURI(imgtxt);
if(typeof(top)== "undefined")	
	top=120;
if(typeof(side)== "undefined")	
	side=10;
if(typeof(img)== "undefined")	
	imgurl=host+"/images/mfdh.gif";
else
	imgurl=host+"/images/"+img;
lastScrollY=0;function heartBeat(){var diffY;if (document.documentElement && document.documentElement.scrollTop)diffY = document.documentElement.scrollTop;else if (document.body)diffY = document.body.scrollTop;else{/*Netscape stuff*/}percent=.1*(diffY-lastScrollY); if(percent>0)percent=Math.ceil(percent); else percent=Math.floor(percent); document.getElementById("master_call").style.top=parseInt(document.getElementById("master_call").style.top)+percent+"px";lastScrollY=lastScrollY+percent;}suspendcode="<DIV id=\"master_call\" style='";if(position=="right")suspendcode +="right:"+side+"px;";else suspendcode +="left:"+side+"px;";suspendcode +="POSITION:absolute;TOP:"+top+"px;cursor:hand;'><img src='"+imgurl+"' alt='"+imgtxt+"' onClick=\"window.open('http://www.laidianduo.cn/ba/gb256.html')\"></div>";document.write(suspendcode);window.setInterval("heartBeat()",1);heartBeat();
