// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 2000

// Duration of crossfade (seconds)
var crossFadeDuration = 5

// Specify the image files
var Pic = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below

Pic[ 0 ] = '/images/logo_blank.gif'
Pic[ 1 ] = '/images/logo1.gif'
Pic[ 2 ] = '/images/logo2.gif'
Pic[ 3 ] = '/images/logo3.gif'
Pic[ 4 ] = '/images/logo_noscript.gif'
Pic[ 5 ] = '/images/logo_noscript.gif'
Pic[ 6 ] = '/images/logo_blank.gif'
Pic[ 7 ] = '/images/logo_blank.gif'

// =======================================
// do not edit anything below this line
// =======================================

var ti
var pj = 0
var pl = Pic.length

var preLoad = new Array()
for (pi = 0; pi < pl; pi++) {
   preLoad[pi] = new Image()
   preLoad[pi].src = Pic[pi]
}

function runSlideShow() {

   //Bypass slideshow if Browser = Opera (original script returns error)
   if (window.opera && document.readyState){
      document.write('<span style="font-family:arial,helvetica,sans-serif; font-size:13px; color:#000066;">');
      document.write('<center><img src="logo_noscript.gif" width=550 height=400 alt="Strathmore Ladder" title="Strathmore Ladder" border=0></center>');
      document.write('<center>[ <A HREF="http://www.strathmoreladder.com">Enter</A> ]</center>');
      return;
   }
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()
   }
   document.images.SlideShow.src = preLoad[pj].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   pj++
   //if (pj > (pl-1)) pj=0 //this causes a repeating slide show
   if (pj > (pl-1)) document.location = 'http://www.strathmoreladder.com'; //this redirects
   ti = setTimeout('runSlideShow()', slideShowSpeed)
}

document.write('<center><img name="SlideShow" src="/images/logo_blank.gif"></center>');
