var phototimeout_delay = 3000; // milliseconds
currentphoto = 0;
var photos = new Array(10);
photos[0] = "bfocimages/2133891.JPG";
photos[1] = "bfocimages/6888329.JPG";
photos[2] = "bfocimages/2845362.JPG";
photos[3] = "bfocimages/3996946l.JPG";
photos[4] = "bfocimages/3476546.JPG";
photos[5] = "bfocimages/5607710.JPG";
photos[6] = "bfocimages/2307811.JPG";
photos[7] = "bfocimages/5259519.JPG";
photos[8] = "bfocimages/6209233.JPG";
photos[9] = "bfocimages/6144414.JPG";

function nextphoto() {
if (++currentphoto > photos.length-1) {
  currentphoto = 0;
}
  document.images.photoshow.src = photos[currentphoto];
}

function previousphoto() {

currentphoto = currentphoto -1;

if (currentphoto < 0) {
  currentphoto = photos.length-1
}
  document.images.photoshow.src = photos[currentphoto];
}

function startstopphoto(text) {
document.getElementById('photosbutton').value = (text == "Stop") ? "Start" : "Stop";
phototimeout();
}


function phototimeout() {
  nextphoto();
  window.setTimeout("phototimeout()", phototimeout_delay);
}


