<!--

// rate of image rotation in milliseconds
var rotate_speed_b = 4000; 
// delay before rotation begins
var rotate_delay_b = 4000;

// put images to preload in this array
var imgAr_b = new Array(
	"images/homeimages/boat4.jpg",
	"images/homeimages/boat5.jpg",
	"images/homeimages/boat11.jpg",
	"images/homeimages/boat14.jpg",		
	"images/homeimages/boat6.jpg");

// preload the images
if (document.images) {
	var rImg_b = new Array();
	for (var i=0; i<imgAr_b.length; i++) {
  	rImg_b[i] = new Image(); 
		rImg_b[i].src = imgAr_b[i];
  }
}

var rTimer_b;		// for setTimeout
var imgNum_b = 0;	// global to track current image
function rotateImg_b() {
	if (imgNum_b < rImg_b.length-1) imgNum_b++;
  else imgNum_b = 0;
 	document.imgR_b.src = rImg_b[imgNum_b].src;
	rTimer_b = setTimeout('rotateImg_b()', rotate_speed_b);	
}

//window.onload=function()

function rotateImage2() {
	rTimer_b=setTimeout('rotateImg_b()',rotate_delay_b);
	// another function call for onload could go here
}
//-->
