var current_image_index = 0;
var slide_show_speed = 5000;  // (milliseconds)
var cross_fade_duration = 31; // (seconds)
var slide_show_images = new Array();

function run_slide_show(image_urls) {
  for (i = 0; i < image_urls.length; i++) {
    slide_show_images[i] = new Image();
    slide_show_images[i].src = image_urls[i];
  }
  slide_show();
}

function slide_show() {
  if (document.all) {
    document.images.SlideShow.style.filter="blendTrans(duration=2)";
    document.images.SlideShow.style.filter="blendTrans(duration=cross_fade_duration)";
    document.images.SlideShow.filters.blendTrans.Apply();   
  }
  document.images.SlideShow.src = slide_show_images[current_image_index].src;
  if (document.all) {
    document.images.SlideShow.filters.blendTrans.Play();
  }
  current_image_index = current_image_index + 1;
  if (current_image_index > (slide_show_images.length - 1))
  {
    current_image_index = 0;
  }
  t = setTimeout('slide_show()', slide_show_speed);  
}