//var items_to_fade = new Array('fade-0', 'fade-1', 'fade-2', 'fade-3', 'fade-4', 'fade-5', 'fade-6', 'fade-7', 'fade-8', 'fade-9', 'fade-10', 'fade-11', 'fade-12', 'fade-13', 'fade-14', 'fade-15');
var items_to_fade = new Array('fade-0', 'fade-1', 'fade-2', 'fade-3');

// the starting index 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 i = 0;

// the number of milliseconds between swaps.
var wait = 12000;

// the function that performs the fade
function swapFade() {
	Effect.Fade(items_to_fade[i], { duration:1.5, from:1.0, to:0.0 });
	i++;
	if (i == items_to_fade.length) i = 0;
	Effect.Appear(items_to_fade[i], { duration:1.5, from:0.0, to:1.0 });
}

// the onload event handler that starts the fading.
function startPage() {
	setInterval('swapFade()',wait);
}