// JavaScript Document
<!--
//the following three variables should be modified to reflect your content
myTimeSpan2 = 1; //this sets the pace in seconds
var srcImagePath = 'image_cycle';//path to source images
var srcImages = new Array ("img01.jpg","img02.jpg","img03.jpg","img04.jpg","img05.jpg","img06.jpg"); //source images

//the folowing should be left alone unless you see how it affects the images.
var srcImageCount = srcImages.length-1; 
var imgArrayIndex = 0;
myTimer2 = myTimeSpan2; //this one will change dynamically over time
function clock2() 
	{
		if (myTimer2 == 0) //once the myTimeSpan reaches zero we will swap the images and reset the clock
			{
			myTimer2 = myTimeSpan2; //myTimeSpan is not changing over time like the myTimer
			imgArrayIndex = imgArrayIndex + 1;
			
			//reset the image numbers if they exceed the numImages
			if (imgArrayIndex > srcImageCount)
				{
				imgArrayIndex = 0;
				}
			document.imageCycle.src = srcImagePath + '/' + srcImages[imgArrayIndex]; 
			}
		myTimer2 = myTimer2 - 1;		
		setTimeout('clock2()', 5000);
	}
onError = null;
clock2();

//-->