	rotator=true; 	// needed for initialising the rotator
	n=0;			// initialising the first image

	// The images...
	theImages="http://www.mercurypress.co.uk/images/photoset/0.jpg, http://www.mercurypress.co.uk/images/photoset/1.jpg, http://www.mercurypress.co.uk/images/photoset/2.jpg, http://www.mercurypress.co.uk/images/photoset/3.jpg, http://www.mercurypress.co.uk/images/photoset/4.jpg, http://www.mercurypress.co.uk/images/photoset/5.jpg".split(", ");
	allImages=theImages.length;
	
	// Creates the Preload
	imgObjects=new Array();
	for (i in theImages){
		imgObjects[i]=new Image();
		imgObjects[i].src=theImages[i];
		}
	
	function autoplay(run,srcimage,direction,speed){
		// delete old settings
		clearInterval(rotator)
		if (run != 0){rotator=setInterval("rotate('"+srcimage+"',"+direction+")",speed)}
		else{clearInterval(rotator)}
		}
	
	function rotate(srcimage,direction){
	n=n+direction;
	if (n==allImages) n=0;
	if (n==-1) n=allImages-1;
	document.images[srcimage].src=imgObjects[n].src;
	}

