<!-- Begin
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 4500;
// Duration of crossfade (seconds)
var crossFadeDuration = 5;
// Specify the image files
var Pic = new Array();

Pic[0] = 'http://www.islandrock.net/images/Header1-a.jpg'
Pic[1] = 'http://www.islandrock.net/images/Header2-a.jpg'
Pic[2] = 'http://www.islandrock.net/images/Header3-a.jpg'
Pic[3] = 'http://www.islandrock.net/images/Header5-a.jpg'


var t;
var j = 0;
var i = 0;
var p = Pic.length;
var preLoad = new Array();
var imageDuration = new Array();
var fadeDuration = new Array();
for(i = 0; i < p; i++) {
	imageDuration[i] = -1;
	fadeDuration[i] = -1;

	preLoad[i] = new Image();
	preLoad[i].src = Pic[i];
}

// This is the image number that the loop restart will go through
// Set to zero if you want everything to loop
// Otherwise set to an image number (1, 2, 3, ...)
var loopRestart = 0;


// These are the default duration values (in milliseconds)
// These defaults are used in case that a particular image does not have
// a specified duration value
var defaultImageDuration = 3000;
var defaultFadeDuration = 3000;

// Here is where you can set image-specific duration values
// For example, imageDuration[3] = 2000; would set Pic[3]'s image duration value to 2000
imageDuration[0] = 1000;
// Same as above with fadeDuration
fadeDuration[0] = 1000;


function runSlideShow() {
	var crossFadeDuration;
	var showSpeed;

	if(fadeDuration[j] == -1)
		crossFadeDuration = defaultFadeDuration;
	else
		crossFadeDuration = fadeDuration[j];

	if(imageDuration[j] == -1)
		showSpeed = defaultImageDuration;
	else
		showSpeed = imageDuration[j];


	if (document.all) {
		document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
		document.images.SlideShow.filters.blendTrans.Apply();
	}
	document.images.SlideShow.src = preLoad[j].src;
	if (document.all) {
		document.images.SlideShow.filters.blendTrans.Play();
	}
	j = j + 1;
	if (j > (p - 1)) j = loopRestart;
	t = setTimeout('runSlideShow()', crossFadeDuration + showSpeed);
}
//  End -->






