// JavaScript Document

// this array consists of the id attributes of the divs we wish to alternate between
var divs_to_fade = new Array('slideshow1', 'slideshow2', 'slideshow3', 'slideshow4', 'slideshow5', 'slideshow6');

// 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. Default is five seconds.
var wait = 4500;

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

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