

// NS4-6,IE4-6

// =======================================
// set the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 2000

// Duration of crossfade (seconds)
var crossFadeDuration = 1

var Pic = new Array()

//Pic[0] = '../gfx/slideshow_big/boy-with-a-kite.jpg'
Pic[0] = '../gfx/slideshow_big/gas_stove.jpg'
Pic[1] = '../gfx/slideshow_big/electric_stove.jpg'
Pic[2] = '../gfx/slideshow_big/flowers.jpg'
//Pic[4] = '../gfx/slideshow_big/pillons_on_hill.jpg'
//Pic[5] = '../gfx/slideshow_big/yellow_gas.jpg'
//Pic[6] = '../gfx/slideshow_big/fire.jpg'
Pic[3] = '../gfx/slideshow_big/wind_turbines_dark.jpg'
Pic[4] = '../gfx/slideshow_big/clouds.jpg'
Pic[5] = '../gfx/slideshow_big/oven_dial.jpg'
//Pic[10] = '../gfx/slideshow_big/wind_turbines.jpg'
Pic[6] = '../gfx/slideshow_big/balloons.jpg'
Pic[7] = '../gfx/slideshow_big/blue_curves.jpg'
Pic[8] = '../gfx/slideshow_big/grey_dial.jpg'
//Pic[11] = '../gfx/slideshow_big/keyboard.jpg'
Pic[9] = '../gfx/slideshow_big/arrow.jpg'
Pic[10] = '../gfx/slideshow_big/trees.jpg'
//Pic[17] = '../gfx/slideshow_big/balloon2.jpg'
Pic[11] = '../gfx/slideshow_big/chairs.jpg'
Pic[12] = '../gfx/slideshow_big/keyboard2.jpg'
//Pic[15] = '../gfx/slideshow_big/mobile.jpg'
Pic[13] = '../gfx/slideshow_big/sunset.jpg'
Pic[14] = '../gfx/slideshow_big/reconnect.jpg'


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)
}
