// slideshow with Fade effect
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully

// Set slideshowSpeed (milliseconds)
var slideshowSpeed = 4000

// Duration of crossfade (seconds)
var crossFadeDuration1 = 2

// Specify the image files
var Pic1 = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below

Pic1[0] = '_images/tour/slideshow/1.jpg'
Pic1[1] = '_images/tour/slideshow/2.jpg'
Pic1[2] = '_images/tour/slideshow/3.jpg'
Pic1[3] = '_images/tour/slideshow/4.jpg'
Pic1[4] = '_images/tour/slideshow/5.jpg'
Pic1[5] = '_images/tour/slideshow/6.jpg'
Pic1[6] = '_images/tour/slideshow/7.jpg'
Pic1[7] = '_images/tour/slideshow/8.jpg'
Pic1[8] = '_images/tour/slideshow/9.jpg'
Pic1[9] = '_images/tour/slideshow/10.jpg'
Pic1[10] = '_images/tour/slideshow/11.jpg'
Pic1[11] = '_images/tour/slideshow/12.jpg'

// =======================================
// do not edit anything below this line
// =======================================

var t1
var j1 = 0
var p1 = Pic1.length

var preLoad1 = new Array()
for (i1 = 0; i1 < p1; i1++){
   preLoad1[i1] = new Image()
   preLoad1[i1].src = Pic1[i1]
}

function runslideshow(){
   if (document.all){
      document.images.slideshow.style.filter="blendTrans(duration=2)"
      document.images.slideshow.style.filter="blendTrans(duration=crossFadeDuration1)"
      document.images.slideshow.filters.blendTrans.Apply()      
   }
   document.images.slideshow.src = preLoad1[j1].src
   if (document.all){
      document.images.slideshow.filters.blendTrans.Play()
   }
   j1 = j1 + 1
   if (j1 > (p1-1)) j1=0
   t1 = setTimeout('runslideshow()', slideshowSpeed)
}