if (typeof JmxManager !="object")
{
	var JmxManager=new Array();
}

function JmxRollover(ImageID,Files){
	JmxManager[ImageID]=this;
	this.ImageID=ImageID;
	this.Files=Files;
	this.Position=0;
	this.Interval=2;
	this.timer={};
	this.status="stop";
	this.DoRollover=function(){
		if(this.status=="stop"){
			//clearInterval(this.timer);
		}else{
			var oImg = document.getElementById(this.ImageID);
			if (document.all){oImg.filters.blendTrans.apply();}
			oImg.src=this.Files[this.Position].src;
			eval('oImg.onclick=function(){window.location="'+this.Files[this.Position].link+'";}');
			if (document.all){oImg.filters.blendTrans.play();}
			this.Position = (this.Position<(this.Files.length-1))?(this.Position+1):0;
			oImg.src=this.Files[this.Position].src;
		}
	}
	this.Run=function(){
		this.status="play";
		if(typeof document.addEventListener=="undefined"){
			eval('document.getElementById("'+this.ImageID+'").attachEvent("onmouseover",function(){JmxManager["'+this.ImageID+'"].status="stop"})');
			eval('document.getElementById("'+this.ImageID+'").attachEvent("onmouseout",function(){JmxManager["'+this.ImageID+'"].status="play"})');
			document.getElementById(this.ImageID).style.cursor="pointer";
		}else{
			eval('document.getElementById("'+this.ImageID+'").addEventListener("mouseover",function(){JmxManager["'+this.ImageID+'"].status="stop"},false)');
			eval('document.getElementById("'+this.ImageID+'").addEventListener("mouseout",function(){JmxManager["'+this.ImageID+'"].status="play"},false)');
			document.getElementById(this.ImageID).style.cursor="pointer";
		}
		this.timer=setInterval('JmxManager["'+this.ImageID+'"].DoRollover()',this.Interval*1000);
	}
}