var divs_to_fade = new Array('spot-1', 'spot-2', 'spot-3', 'spot-4', 'spot-5');

var i = 0;

// the number of milliseconds between swaps. Default is five seconds.
var wait = 5000;

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

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