function loadarray()
{
     for(i =0; i < numphotos; i++) {
        images[i] = new Image();
        images[i].src = "slideshow1/pic" + i + ".jpg";
     }
}
function animate()
{
      if (document.animation.complete) {
          document.animation.src = images[j].src;
          j = j + 1;
          if (j >= numphotos) j = 0;
      }
      else if (j > 1) j = 0;
      timeout = setTimeout("animate()", playspeed);
}

