// =======================================
// set the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000
// Duration of crossfade (seconds)
var crossFadeDuration = 3
//create image variable
//create array of picture categories
var categories = new Array()
// 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
var dir = "images/photos/"

Pic[0] = dir + "door/thumbs/door14.jpg"
Pic[1] = dir + "gate/thumbs/gate1.jpg"
Pic[2] = dir + "gate/thumbs/gate4.jpg"
Pic[3] = dir + "stairs/thumbs/stairs1.jpg"
Pic[4] = dir + "stairs/thumbs/stairs6.jpg"
Pic[5] = dir + "kitchen/thumbs/kitchen1.jpg"
Pic[6] = dir + "kitchen/thumbs/kitchen3.jpg"
Pic[7] = dir + "wallpaneling/thumbs/wallpaneling1.jpg"
Pic[8] = dir + "wallpaneling/thumbs/wallpaneling3.jpg"
Pic[9] = dir + "closet/thumbs/closet1.jpg"
Pic[10] = dir + "closet/thumbs/closet17.jpg"
Pic[11] = dir + "door/thumbs/door5.jpg"




// =======================================
// 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]
}

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
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }

   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}
// JavaScript Document