// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully
// =======================================
// set the following variables
// =======================================
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 3500
// Duration of crossfade (seconds)
var crossFadeDuration = 3
// Specify the image files
var Pic = new Array() // don't touch this...
var Alt = new Array() // don't touch this, either...
var Title = new Array() // don't touch this one, either...
// to add more images, alt & title tags just continue
// the pattern, adding to the arrays below...
Pic[0] = 'images/covers/9781596880108-thumbnail.jpg'
Pic[1] = 'images/covers/9781596880603-thumbnail.jpg'
Pic[2] = 'images/covers/9781596880856-thumbnail.jpg'
Pic[3] = 'images/covers/9781596881099-thumbnail.jpg'
Pic[4] = 'images/covers/9781596881150-thumbnail.jpg'
Pic[5] = 'images/covers/9781596881235-thumbnail.jpg'
Pic[6] = 'images/covers/9781596881426-thumbnail.jpg'
Pic[7] = 'images/covers/9781596881471-thumbnail.jpg'

Alt[0] = 'Large Print Books'
Alt[1] = 'Large Print Books'
Alt[2] = 'Large Print Books'
Alt[3] = 'Large Print Books'
Alt[4] = 'Large Print Books'
Alt[5] = 'Large Print Books'
Alt[6] = 'Large Print Books'
Alt[7] = 'Large Print Books'

Title[0] = 'Large Print Books'
Title[1] = 'Large Print Books'
Title[2] = 'Large Print Books'
Title[3] = 'Large Print Books'
Title[4] = 'Large Print Books'
Title[5] = 'Large Print Books'
Title[6] = 'Large Print Books'
Title[7] = 'Large Print Books'


// =======================================
// do not edit anything below this line
// =======================================
var t
var j = 0
var p = Pic.length
var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
   preLoad[i].alt = Alt[i]
   preLoad[i].title = Title[i]
}
function runSlideShow(){
   if (document.all){
	  document.images.SlideShow.style.filter="blendTrans(duration=2)"
	  document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
	  document.images.SlideShow.filters.blendTrans.Apply  ()	  
   }
   document.images.SlideShow.src = preLoad[j].src
   document.images.SlideShow.alt = preLoad[j].alt
   document.images.SlideShow.title = preLoad[j].title
   // document.getElementById('PIC_CAPTION').value = preLoad[j].alt

   if (document.all){
	  document.images.SlideShow.filters.blendTrans.Play(  )
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}
