<!--

// rate of image rotation in milliseconds
var rotate_speed_a = 3000; 
// delay before rotation begins
var rotate_delay_a = 3000;

// put images to preload in this array
var imgAr_a = new Array(
	"images/homeimages/boat1.jpg",
	"images/homeimages/boat2.jpg",
	"images/homeimages/boat10.jpg",
	"images/homeimages/boat13.jpg",		
	"images/homeimages/boat16.jpg",	
	"images/homeimages/boat3.jpg");

// preload the images
if (document.images) {
	var rImg_a = new Array();
	for (var i=0; i<imgAr_a.length; i++) {
  	rImg_a[i] = new Image(); 
		rImg_a[i].src = imgAr_a[i];
  }
}

var rTimer_a;		// for setTimeout
var imgNum_a = 0;	// global to track current image
function rotateImg_a() {
	if (imgNum_a < rImg_a.length-1) imgNum_a++;
  else imgNum_a = 0;
 	document.imgR_a.src = rImg_a[imgNum_a].src;
	rTimer_a = setTimeout('rotateImg_a()', rotate_speed_a);	
}

//window.onload=function()

function rotateImage1() {
	rTimer_a=setTimeout('rotateImg_a()',rotate_delay_a);
	// another function call for onload could go here
}
//-->
