// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 3000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 3;

var Picture = new Array(); // don't change this

Picture[1]  = 'images/ss1.jpg';
Picture[2]  = 'images/ss2.jpg';
Picture[3]  = 'images/ss3.jpg';
Picture[4]  = 'images/ss4.jpg';
Picture[5]  = 'images/ss5.jpg';
Picture[6]  = 'images/ss6.jpg';
Picture[7]  = 'images/ss7.jpg';
Picture[8]  = 'images/ss8.jpg';
Picture[9]  = 'images/ss9.jpg';
Picture[10]  = 'images/ss10.jpg';
Picture[11]  = 'images/ss11.jpg';
Picture[12]  = 'images/ss12.jpg';
Picture[13]  = 'images/ss13.jpg';
Picture[14]  = 'images/ss14.jpg';
Picture[15]  = 'images/ss15.jpg';

var tss;
var iss;
var jss = 1;
var pss = Picture.length-1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}
function runSlideShow()
{
  document.getElementById('PictureBox').style.filter="blendTrans(duration=CrossFadeDuration)";
  if (document.getElementById('PictureBox').filters)
  {
    document.getElementById('PictureBox').filters.blendTrans.Apply();
  }
  document.getElementById('PictureBox').src = preLoad[jss].src;
  if (document.getElementById('PictureBox').filters)
  {
    document.getElementById('PictureBox').filters.blendTrans.Play();
  }
  jss = jss + 1;
  if (jss > (pss)) jss=1;
  tss = setTimeout('runSlideShow()', SlideShowSpeed);
}