function ImagesRotator(){}ImagesRotator.prototype.images=new Array();ImagesRotator.prototype.nextImage=new Image();ImagesRotator.prototype.imgNumber=1;ImagesRotator.prototype.activeElem=null;ImagesRotator.prototype.inactiveElem=null;
ImagesRotator.prototype.rotateTimer=200;ImagesRotator.prototype.Rotate=function(){this.nextImage=new Image();var a=this;this.nextImage.onload=function(){a.CrossFade()};this.nextImage.src=this.images[this.imgNumber%this.images.length]
};ImagesRotator.prototype.CrossFade=function(){this.inactiveElem.src=this.nextImage.src;this.activeElem.style.zIndex=2;this.inactiveElem.style.zIndex=3;SetOpacity(this.inactiveElem,1);this.inactiveElem.style.display="inline";
FadeOpacity(this.inactiveElem.id,1,100,1000,12);FadeOpacity(this.activeElem.id,100,1,1000,12);var a=this;setTimeout(function(){a.activeElem.style.display="none";var b=a.activeElem;a.activeElem=a.inactiveElem;
a.inactiveElem=b;b=null;a.imgNumber++},3000);this.rotateTimer=setTimeout(function(){a.Rotate()},5000)};
