
function sclose(){

var p=document.getElementById('qq');    
    p.style.display="none";
    p.style.width =0+"px";
    p.style.height =0+"px";
}


var delta=0.15
var collection;
function floaters() {
	this.items	= [];
	this.addItem	= function(id,x,y,content) {
		document.write('<DIV id='+id+' style="Z-INDEX: 10; POSITION: absolute; width:100px; height:192px;left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'">');
		var swfHtml='';
		swfHtml += '<div id=qq class=buiss>';
		swfHtml += '<ul>';
		swfHtml += '<li><img src=http://www.5813999.com/Images/swt/zxt_r1_c1.gif width=100 height=10  style=\"cursor:hand;\" onClick=\"sclose();\"/></li>';
		swfHtml += '<li><a href=http://kft.zoosnet.net/LR/Chatpre.aspx?id=KFT73315186&lng=cn target=_blank><img src=http://www.5813999.com/Images/swt/zxt_r2_c1.gif width=100 height=99 border=0 /></li>';
		swfHtml += '<li><a href=http://kft.zoosnet.net/LR/Chatpre.aspx?id=KFT73315186&lng=cn target=_blank><img src=http://www.5813999.com/Images/swt/zxt_r3_c1.gif width=100 height=40 border=0 /></a></li>';
		swfHtml += '<li><a href=tencent://message/?uin=944120&Site=长沙仁爱医院&Menu=yes><img src=http://www.5813999.com/Images/swt/zxt_r4_c1.gif width=100 height=43 border=0 /></a></li>';		
	    swfHtml += '</ul>';
        swfHtml += '</div>';

        document.write(swfHtml);
		
		document.write('</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()',10);
		}
}

function play() {
	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);
        var elmfrm=(document.compatMode.toLowerCase()=="css1compat")?document.documentElement:document.body;
		if(followObj.offsetLeft!=(elmfrm.scrollLeft+followObj_x)) {
			var dx=(elmfrm.scrollLeft+followObj_x-followObj.offsetLeft)*delta;
			dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx));
			followObj.style.left=followObj.offsetLeft+dx;
		}

		if(followObj.offsetTop!=(elmfrm.scrollTop+followObj_y)) {
			var dy=(elmfrm.scrollTop+followObj_y-followObj.offsetTop)*delta;
			dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));
			followObj.style.top=followObj.offsetTop+dy;
		}
		followObj.style.display	= '';
	}
}	
		
function shLayers(n){
	n.style.visibility="hidden";
}
		
var theFloaters		= new floaters();
//we can edit the screen.width value to flating anywhere!
theFloaters.addItem('followDiv2',0,0);
theFloaters.play();


if(typeof(LiveReceptionCode_isonline)!='undefined'  && LR_GetObj('LR_User_Icon0')!=null)
{
	if(LiveReceptionCode_isonline)
		LR_GetObj('LR_User_Icon0').innerHTML='<a '+LiveReceptionCode_BuildChatWin('11','客服人员在线,欢迎点击咨询')+'><img src="/Images/swt/zixuntai_04.gif" border="0" width="109px" height="109px" ></a>';
	else
		LR_GetObj('LR_User_Icon0').innerHTML='<a '+LiveReceptionCode_BuildChatWin('11','客服人员不在线,请点击留言')+'><img src="/Images/swt/zixuntai_04.gif" border="0" width="109px" height="109px"></a>';
}
