

var slideCounter = 1

function checkSlideshowSupport()	{
	
	/* check the browser is capable of recognising the DOM objects
	   we need to implement the script - otherwise return false and abandom the slideshow */
	   
	if(!document.getElementsByTagName) return false;
	if(!document.getElementById) return false;
	if(!document.getElementById("slideshow")) return false;

	var timeDelay = 8000
	
		
	setInterval("displaySlideshow()", timeDelay)

	
	
}


function displaySlideshow()	{	
	
	var showThisImage = "library/" + slideshowPics[slideCounter] 

	document.getElementById("slideshow").src = showThisImage

		if(slideCounter < slideshowPics.length-1) {
	
				slideCounter = (slideCounter + 1)
		}
		
		else	{
			
		slideCounter = 0
		
		}
}


