// browser slide-show script.
// with image cross fade effect for those browsers that support it.
// script copyright (c) 2004-2006 www.cryer.co.uk.
// script is free to use provided this copyright header is included.
var slidecache = new array();
function runslideshow(picturename,imagefiles,displaysecs)
{
  var imageseparator = imagefiles.indexof(";");
  var nextimage = imagefiles.substring(0,imageseparator);
  if (document.all)
  {
    document.getelementbyId(picturename).style.filter="blendtrans(duration=2)";
    document.getelementbyId(picturename).filters.blendtrans.apply();
  }
  document.getelementbyId(picturename).src = nextimage;
  if (document.all)
  {
    document.getelementbyId(picturename).filters.blendtrans.play();
  }
  var futureimages= imagefiles.substring(imageseparator+1,imagefiles.length)
    + ';' + nextimage;
  settimeout("runslideshow('"+picturename+"','"+futureimages+"',"+displaysecs+")",
    displaysecs*1000);
  // cache the next image to improve performance.
  imageseparator = futureimages.indexOf(";");
  nextimage = futureimages.substring(0,imageseparator);
  if (slidecache[nextimage] == null) {
    slidecache[nextimage] = new image;
    slidecache[nextimage].src = nextimage;
  }
}