//const
var NUM_OF_RIDERS = 92;
var TIME_INTERVAL = 2000;
var photoPath = "img/riderPhotos/"
var photoPrefix = "JDRF0111_"
var currentRider = 0;
var start = 1
function returnRider()
{
  currentRider = start + Math.floor(Math.random()*(93 - start));
  if (currentRider > (NUM_OF_RIDERS)) { currentRider = 1; }
  document.images.riders.src = photoPath + photoPrefix + currentRider + ".jpg"
  setTimeout('returnRider()', TIME_INTERVAL);
}



