// JavaScript Document
//Rotating picture display

var x = 0;
var intNumPics = aryPics.length;

// This function advances the photos
function advPhoto() {
	x == intNumPics - 1 ? x = 0 : x++;
	document.getElementById('agp_slideshow').src = aryPics[ x ];
	document.getElementById('agp_slidelink').href = aryLinks[ x ];
	setTimeout( 'advPhoto()', intTimeOut ); //This calls the function to advance the photos
}

setTimeout( 'advPhoto()', intTimeOut ); //This calls the function to advance the photos
