//×ó±ß
var left2_img='';

//ÓÒ±ß
var right2_img='<a href=http://www.lyef.com/images/eflmjr2006.gif target=_blank><img src=http://www.lyef.com/images/2007photo_80x245.gif  width=80 height=245 border=0></a>';

var delta2=0.15
	var collection2;
	function floaters2() {
		this.items2	= [];
		this.addItem2	= function(id2,x,y,content)
				  {
					document.write('<DIV id='+id2+' style="Z-INDEX: 10; POSITION: absolute;  width:80px; height:60px;left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'">'+content+'</DIV>');
					
					var newItem2				= {};
					newItem2.object   = function() {return document.getElementById(id2)};
					newItem2.x				= x;
					newItem2.y				= y;

					this.items2[this.items2.length]		= newItem2;
				  }
		this.play2	= function()
				  {
					collection2				= this.items2
					setInterval('play2()',10);
				  }
		}
		function play2()
		{

			for(var ii=0;ii<collection2.length;ii++)
			{
				var followObj2		= collection2[ii].object();
				var followObj2_x		= (typeof(collection2[ii].x)=='string'?eval(collection2[ii].x):collection2[ii].x);
				var followObj2_y		= (typeof(collection2[ii].y)=='string'?eval(collection2[ii].y):collection2[ii].y);

				if(followObj2.offsetLeft!=(document.body.scrollLeft+followObj2_x)) {
					var dx=(document.body.scrollLeft+followObj2_x-followObj2.offsetLeft)*delta2;
					dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx));
					followObj2.style.left=followObj2.offsetLeft+dx;
					}

				if(followObj2.offsetTop!=(document.body.scrollTop+followObj2_y)) {
					var dy=(document.body.scrollTop+followObj2_y-followObj2.offsetTop)*delta2;
					dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));
					followObj2.style.top=followObj2.offsetTop+dy;
					}
				followObj2.style.display2	= '';
			}
		}	
		
	var thefloaters2		= new floaters2();
	thefloaters2.addItem2('followDiv3','document.body.clientWidth-100',75,''+right2_img+'');
	//thefloaters2.addItem2('followDiv2',20,230,''+left2_img+'');
	thefloaters2.play2();
