        var delta=0.15
	var collection;
	function floaters() {
		this.items	= [];
		this.addItem	= function(id,L,R,T,content)
		{
			if(id == ""||content == ""||(L == "" && R == ""))
			{
				return false;
			}

			if(L!="" && L!=null)
			{
				document.write('<DIV align=center id='+id+' style="Z-INDEX: 10; POSITION: absolute;  width:80px; height:60px;left:'+(typeof(L)=='string'?eval(L):L)+';top:'+(typeof(T)=='string'?eval(T):T)+'">'+content+'</DIV>')
			}
			else if(R!="" && R!=null)
			{
				document.write('<DIV align=center id='+id+' style="Z-INDEX: 10; POSITION: absolute;  width:80px; height:60px;right:'+(typeof(R)=='string'?eval(R):R)+';top:'+(typeof(T)=='string'?eval(T):T)+'">'+content+'</DIV>');
			}
			else
			{						
				return false;					
			}
			
			var newItem				= {};
			newItem.object			= document.getElementById(id);
			newItem.L				= L;
			newItem.R				= R;
			newItem.T				= T;

			this.items[this.items.length]		= newItem;
		}
		this.play	= function()
				  {
					collection				= this.items
					setInterval('play()',20);
				  }
		}
function play()
{
	for(var i=0;i<collection.length;i++)
	{
		var followObj		= collection[i].object;
		var followObj_L		= (typeof(collection[i].L)=='string'?eval(collection[i].L):collection[i].L);
		var followObj_R		= (typeof(collection[i].R)=='string'?eval(collection[i].R):collection[i].R);
		var followObj_T		= (typeof(collection[i].T)=='string'?eval(collection[i].T):collection[i].T);

		//alert(document.body.scrollWidth);
		if(followObj_L!="" && followObj_L!=null)
		{
			//alert(followObj_L);
			followObj.style.left = followObj_L;
		}
		else
		{
			followObj.style.right = followObj_R;
		}
		
		if(followObj.offsetTop!=(document.body.scrollTop+followObj_T)) {
			var dy=(document.body.scrollTop+followObj_T-followObj.offsetTop)*delta;
			dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));
			followObj.style.top=followObj.offsetTop+dy;
			}
		followObj.style.display	= '';
	}
}

//*******************
//关闭漂浮广告函数
//id:漂浮广告的唯一命名值
//*******************

function closead(myID)
{	
	myID.style.visibility='hidden';
}
