// JavaScript Document
var slideshowTimer;
var slideshowIndex=0;
var sleepTime=7000;

function slideshow(){
	imgElement = document.getElementById('slideshow');
	if(imgElement != null){
		imgElement.innerHTML = '<img src="'+img_files[slideshowIndex]+'" alt="'+img_descriptions[slideshowIndex]+'" width="150" height="113"><br>'+img_descriptions[slideshowIndex];
		if(slideshowIndex + 1 >= img_files.length){
			slideshowIndex = 0;
		}
		else{
			slideshowIndex = slideshowIndex + 1;
		}
		slideshowTimer = setTimeout("slideshow();",sleepTime);
	}
}
