addOnload(Play);

function addOnload(newFunction) {
	var oldOnload = window.onload;
	
	if (typeof oldOnload == "function") {
		window.onload = function() {
			if (oldOnload) {
				oldOnload();
			}
			newFunction();
		}
	}
	else {
		window.onload = newFunction;
	} 
}



//change links in image array get different images out of slideshow
var image = new Array("images/building_500px_trans.png","images/CCTC_500px.png");
//change this to change starting image
var thisImage = 0;
var s

function Play() {
	if (thisImage == image.length) {
		thisImage = 0;
	}
	document.getElementById("slideshow").src = image[thisImage];
	s=setTimeout("Play()",8000)
	thisImage++;
}

function Pause() {
clearTimeout(s)
}
