
// set the starting image.
var i = 0;			

// The array of div names which will hold the images.
var image_slide = new Array('image-1', 'image-2');
// The time to wait before moving to the next image. Set to 4 seconds by default.
var wait = 8000;

// The Fade Function
function SwapImage(x,y) {

var hideImg = Element.visible(x) ? x : y;
var showImg = Element.visible(x) ? y : x;
showImg.show();
hideImg.hide();

}

// the onload event handler that starts the fading.
function StartSlideShow() {
	var play = setInterval('Play()',wait);

}

function Play() {
SwapImage($('image-1'),$('image-2'));
}


