window.onload = rotate;

var adImages = new Array("pictures/monitor1.gif","pictures/monitor2.gif","pictures/monitor3.gif","pictures/monitor4.gif");
var thisAd = 0;

function rotate() {
	thisAd++;
	if (thisAd == adImages.length) {
		thisAd = 0;
	}
	document.getElementById("slideShow").src = adImages[thisAd];

	setTimeout("rotate()", 6 * 1000);
}
