function ADobj(obj,step,delay)
{
	this.obj = obj;
	this.xin = 1;
	this.yin = 1;
	this.x = parseInt(this.obj.style.left);
	this.y = parseInt(this.obj.style.top);
	this.step = step;
	this.delay = delay;
	this.R;
	this.B;
	var self = this;
	this.floatAD = function()
	{
		self.R = (document.documentElement.clientWidth || document.body.clientWidth)-self.obj.offsetWidth
		self.B = (document.documentElement.clientHeight || document.body.clientHeight)-self.obj.offsetHeight
		self.obj.style.left = self.x + (document.documentElement.scrollLeft || document.body.scrollLeft)
		self.obj.style.top = self.y + (document.documentElement.scrollTop || document.body.scrollTop)
		
		self.x = self.x + self.step*(self.xin?1:-1) 
		if (self.x < 0) { self.xin = true; self.x = 0} 
		if (self.x > self.R){ self.xin = false; self.x = self.R}
		
		self.y = self.y + self.step*(self.yin?1:-1) 
		if (self.y < 0) { self.yin = true; self.y = 0} 
		if (self.y > self.B) { self.yin = false; self.y = self.B} 
	}
	this.it = setInterval(self.floatAD, self.delay);
	this.obj.onmouseover = function(){clearInterval(self.it)}
	this.obj.onmouseout = function(){self.it=setInterval(self.floatAD, self.delay)}
}