function ImageRotator(aImages,sImageID,iStartIndex){this.aImages=aImages;this.oImage=null;this.sImageID=sImageID;this.iIndex=iStartIndex;};ImageRotator.prototype.next=function(){this.iIndex++;if(this.iIndex>=this.aImages.length)this.iIndex=0;if(this.oImage==null)this.oImage=document.getElementById(this.sImageID);this.oImage.src=this.aImages[this.iIndex];};ImageRotator.prototype.previous=function(){this.iIndex--;if(this.iIndex<0)this.iIndex=this.aImages.length-1;if(this.oImage==null)this.oImage=document.getElementById(this.sImageID);this.oImage.src=this.aImages[this.iIndex];} 