// =======================================
// set the variables
// =======================================

// Set how long each picture remains (milliseconds)
var Speed = 2000;
var picnumber = 5;

// Duration of any fade in seconds
var FadeDuration = 9;

// Specify the image files
var Pic = new Array(picnumber); // do not touch this
// to add more pictures continue
// the pattern by adding to the array below

Pic[0] = 'images/lipsy.jpg';
Pic[1] = 'images/adini2.jpg';
Pic[2] = 'images/nomads.jpg';
Pic[3] = 'images/intown.jpg';
Pic[4] = 'images/sasperilla.jpg';










// =======================================
// Do not touch anything below these lines
// =======================================
var i;
var t;
var j = 0;
var p = Pic.length;

var preLoad = new Array(picnumber);

for (i = 0; i < p; i++)
{
   preLoad[i] = new Image(picnumber);
   preLoad[i].src = Pic[i];
}



// =======================================
// Start of runSlideShow Function
// =======================================


function runSlideShow()
{
   if (document.all){
      document.images.KissShow.style.filter="blendTrans(duration=2)";
      document.images.KissShow.style.filter="blendTrans(duration=FadeDuration)";
      document.images.KissShow.filters.blendTrans.Apply();
        
}


   document.images.KissShow.src = preLoad[j].src;
   
  

   if (document.all)
{
      document.images.KissShow.filters.blendTrans.Play();
}


   j = j + 1;

   

   if (j > (p-1)) {j=0;}

   t = setTimeout('runSlideShow()', Speed);
                   
   
}

// =======================================
// End of runSlideShow Function
// =======================================



// =======================================
// Leave /script but play around with rest
// =======================================



