<!--
			 	   var delay=10000 //set delay in milliseconds
				   var curindex=0 // set the current index to 0.

				   var randomimages=new Array() // Creates a Array Object named randomimages

					 randomimages[0]="./images/sailboat.masts2.jpg" // First Image
					 randomimages[1]="./images/marina.jpg"		// Second Image
					 randomimages[2]="./images/shoreline.jpg"	// Third Image
					 randomimages[3]="./images/pier.jpg"		// Fourth Image
					 randomimages[4]="./images/buoy.jpg"		// Fifth Image

					 var preload=new Array() // Creates another variable called preload.

           for (n=0;n<randomimages.length;n++)  // for loop 
           {
           	preload[n]=new Image()
           	preload[n].src=randomimages[n]
           }

	 document.write('<img name="defaultimage" src="'+randomimages[Math.floor(Math.random()*(randomimages.length))]+'">')
	
	function rotateimage() // Create a function called rotatimage() which rotates the picture in the array.
	{

	if (curindex==(tempindex=Math.floor(Math.random()*(randomimages.length))))// Checks if current index is equal to the tempoary image.
	{
	
	 curindex=curindex==0? 1 : curindex-1
	 
        }
	 else
	 curindex=tempindex

	document.images.defaultimage.src=randomimages[curindex]
					 }

	setInterval("rotateimage()",delay) // Sets the Interval of the rotateimage() function.
					 
 -->
