var divs_to_fade = new Array('pic-1', 'pic-2', 'pic-3', 'pic-4', 'pic-5', 'pic-6', 'pic-7', 'pic-8', 'pic-9', 'pic-10', 'pic-11', 'pic-12', 'pic-13', 'pic-14', 'pic-15', 'pic-16', 'pic-17', 'pic-18', 'pic-19', 'pic-20', 'pic-21', 'pic-22', 'pic-23', 'pic-24', 'pic-25', 'pic-26', 'pic-27', 'pic-28', 'pic-29', 'pic-30');
var i = 0;
var wait = 10000;

// the function that performs the fade
function swapFade() {
	Effect.Fade(divs_to_fade[i], { duration:.5, from:1.0, to:0.0 });
		i++;
		if (i == 29) i = 0;
	setTimeout("Effect.Appear(divs_to_fade[i], { duration:1, from:0.0, to:1.0 })",500);
}

// the onload event handler that starts the fading.
function startSlideShow() {

	setInterval('swapFade()',wait);
}