
// the starting currentImageIndex in the above array.  It should be set to the value of the div which doesn't have the CSS Display property set to "none"
var currentImageIndex = 0;

// the function that performs the fade
function swapFade() {
	Effect.Fade('box-'+currentImageIndex, { duration:1, from:1.0, to:0.0 });
	currentImageIndex++;
	if (currentImageIndex == slideshow_objects.length) currentImageIndex = 0;
	Effect.Appear('box-'+currentImageIndex, { duration:1, from:0.0, to:1.0 });
}

// the onload event handler that starts the fading.
function startPage() {
	setInterval('swapFade()',wait);
}

