var imgs = new Array(); var imgcnt = 0; var thisimg = 0;

imgs[imgcnt++] = 'img/picture/president_in_nyando5.jpg';
imgs[imgcnt++] = 'img/picture/president_in_nyando6.jpg';
imgs[imgcnt++] = 'img/picture/president_in_nyando4.jpg';
imgs[imgcnt++] = 'img/picture/president_in_nyando.jpg';
imgs[imgcnt++] = 'img/picture/president_in_nyando1.jpg';
imgs[imgcnt++] = 'img/picture/president_in_nyando2.jpg';

// set up a new function
function rotate() {
	if (document.images) {  // check to see if this browser can handleimage object
		thisimg++;   // adding the value of thisimg and ading one to it
		if (thisimg >= imgcnt) thisimg = 0; //if value is greater or equal then set value to zero
			document.rollimg.src = imgs[thisimg];
			setTimeout("rotate();",7000); // measured in milliseconds, this is 7 seconds
	}
		//setTimeout("rotate();",10000); // allow time for all of the images to load		
}




