window.onload = beginrotate;




var go = 1;
var adImages = new Array("images/Auto1Long.jpg","images/Auto2Long.jpg","images/Auto3Long.jpg","images/Auto4Long.jpg","images/Auto5Long.jpg");
var thisAd = 0; //Array counter to set which image to display

function beginrotate() {
	go=1;
	rotate();
	}




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

			setTimeout("rotate()", 4 * 1000);
		}
		else
		{
			setTimeout("rotate()", 100);
		}
}
				