	var delta=0.8;
	var collection;
	var closeB=false;
	function floaters() {
		this.items	= [];
		this.addItem	= function(id,x,y,content)
				  {
					document.write('<div id='+id+' style="Z-INDEX: 99999; POSITION: absolute; width:100px; left:'+(typeof(x)=='string'?eval(x):x)+'px;top:'+(typeof(y)=='string'?eval(y):y)+'px; ">'+content+'</div>');
					
					var newItem				= {};
					newItem.object			= document.getElementById(id);
					newItem.x				= x;
					newItem.y				= y;

					this.items[this.items.length]		= newItem;
				  }
		this.play	= function()
				  {
					collection				= this.items
					setInterval('play()',30);
				  }
		}
		function play()
		{
			if(screen.width<=800 || closeB)
			{
				for(var i=0;i<collection.length;i++)
				{
					collection[i].object.style.display	= 'none';
				}
				return;
			}
			for(var i=0;i<collection.length;i++)
			{
				var followObj		= collection[i].object;
				var followObj_x		= (typeof(collection[i].x)=='string'?eval(collection[i].x):collection[i].x);
				var followObj_y		= (typeof(collection[i].y)=='string'?eval(collection[i].y):collection[i].y);

				if(followObj.offsetLeft!=(document.documentElement.scrollLeft+followObj_x)) {
					var dx=(document.documentElement.scrollLeft+followObj_x-followObj.offsetLeft)*delta;
					dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx));
					followObj.style.left=followObj.offsetLeft+dx+'px';
					}

				if(followObj.offsetTop!=(document.documentElement.scrollTop+followObj_y)) {
					var dy=(document.documentElement.scrollTop+followObj_y-followObj.offsetTop)*delta;
					dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));
					followObj.style.top=followObj.offsetTop+dy+'px';
					}
				followObj.style.display	= '';
			}
		}	

	var strMainDivHTML = '';
    strMainDivHTML = '<div id="close_div" onmouseover="Div_Open();" style="width: 22px; height: 108px; background-image: url(/images/kefu_hide.gif); background-repeat: no-repeat; position: absolute; top: 121.6px; left: 0px; display: block; cursor: pointer;"></div>';

    strMainDivHTML += '<div id="open_div" style="display: none;">';
    strMainDivHTML += '<div style="background-image: url(/images/top.gif); width: 100px; height: 28px;">';
    strMainDivHTML += '<div onclick="Div_Close();" style="width: 13px; height: 13px; cursor: pointer; float: right; margin-right: 2px; margin-top: 2px; background-image: url(/images/close.gif); background-repeat: no-repeat;" title="关闭" id="close">';
    strMainDivHTML += '</div>';
    strMainDivHTML += '<div style="width: 55px; height: 28px; float: left;">';
    strMainDivHTML += '</div>';
    strMainDivHTML += '</div>';
    strMainDivHTML += '<div style="background-image: url(/images/middle.gif); width: 100px; background-repeat: repeat-y;" id="middlecontent">';
    strMainDivHTML += '<div style="width: 98px; height: 20px; text-align: center; vertical-align: bottom; color: rgb(0, 0, 0);">在线服务</div>';
    strMainDivHTML += '<div style="width: 98px; text-align: center; vertical-align: bottom;"><img align="center/" src="/images/kf13.gif"></div>';
	
    strMainDivHTML += '<div style="text-align: left; margin-left: 8px; height: 22px; width: 88px;">';
    strMainDivHTML += '<img src="/images/online.gif" border="0">';
    strMainDivHTML += '<a style="color: rgb(0, 0, 0); cursor: pointer; margin-left: 0px; width: 65px;" href="http://wpa.qq.com/msgrd?V=1&Uin=10924616&Site=在线咨询&Menu=no" target="_blank">';
    strMainDivHTML += '在线客服①';
    strMainDivHTML += '</a>';
    strMainDivHTML += '</div>';
	
    strMainDivHTML += '<div style="text-align: left; margin-left: 8px; height: 22px; width: 88px;">';
    strMainDivHTML += '<img src="/images/online.gif" border="0">';
    strMainDivHTML += '<a style="color: rgb(0, 0, 0); cursor: pointer; margin-left: 0px; width: 65px;" href="http://wpa.qq.com/msgrd?V=1&Uin=781995342&Site=在线咨询&Menu=no" target="_blank">';
    strMainDivHTML += '在线客服②';
    strMainDivHTML += '</a>';
    strMainDivHTML += '</div>';
	
    strMainDivHTML += '<div style="text-align: left; margin-left: 8px; height: 22px; width: 88px;">';
    strMainDivHTML += '<img src="/images/online.gif" border="0">';
    strMainDivHTML += '<a style="color: rgb(0, 0, 0); cursor: pointer; margin-left: 0px; width: 65px;" href="http://wpa.qq.com/msgrd?V=1&Uin=757847717&Site=在线咨询&Menu=no" target="_blank">';
    strMainDivHTML += '在线客服③';
    strMainDivHTML += '</a>';
    strMainDivHTML += '</div>';
	
    strMainDivHTML += '<div style="text-align: left; margin-left: 8px; height: 22px; width: 88px;">';
    strMainDivHTML += '<img src="/images/online.gif" border="0">';
    strMainDivHTML += '<a style="color: rgb(0, 0, 0); cursor: pointer; margin-left: 0px; width: 65px;" href="http://wpa.qq.com/msgrd?V=1&Uin=1304954515&Site=在线咨询&Menu=no" target="_blank">';
    strMainDivHTML += '在线客服④';
    strMainDivHTML += '</a>';
    strMainDivHTML += '</div>';
	
    strMainDivHTML += '<div style="text-align: left; margin-left: 8px; height: 22px; width: 88px;">';
    strMainDivHTML += '<img src="/images/online.gif" border="0">';
    strMainDivHTML += '<a style="color: rgb(0, 0, 0); cursor: pointer; margin-left: 0px; width: 65px;" href="http://wpa.qq.com/msgrd?V=1&Uin=847997396&Site=在线咨询&Menu=no" target="_blank">';
    strMainDivHTML += '在线客服⑤';
    strMainDivHTML += '</a>';
    strMainDivHTML += '</div>';
	
    strMainDivHTML += '<div style="text-align: left; margin-left: 8px; height: 2px; width: 90px;"></div>';
    strMainDivHTML += '</div>';
    strMainDivHTML += '<div style="background-image: url(/images/bottom.gif); width: 100px; height: 19px;">';
    strMainDivHTML += '</div>';
    strMainDivHTML += '</div>';
	
var theFloaters = new floaters();
theFloaters.addItem('online', 1, 80, strMainDivHTML);
theFloaters.play();


function Div_Open()
{
	my_getbyid("close_div").style.display = 'none';
	my_getbyid("open_div").style.display = 'block';
}
function Div_Close()
{
	my_getbyid("close_div").style.display = 'block';
	my_getbyid("open_div").style.display = 'none';
}

