// JavaScript Document
// (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

var slideShowSpeed = 5000     /* Velocita' dello slideshow (in millisecondi) */ 
var crossFadeDuration = 2     /* Durata dell'effetto fade (espresso in secondi) */
var Pic = new Array() 

Pic[0] = '../res/slideshow/big/fot_2.jpg'   /*Qui i richiami alle immagini che compongono lo slideshow.*/ 
Pic[1] = '../res/slideshow/big/fot_3.jpg'  /* Aggiungi quante immagini vuoi. Basta seguire la numerazione */
Pic[2] = '../res/slideshow/big/fot_4.jpg'  /* Aggiungi quante immagini vuoi. Basta seguire la numerazione */
Pic[3] = '../res/slideshow/big/fot_5.jpg'  /* Aggiungi quante immagini vuoi. Basta seguire la numerazione */
Pic[4] = '../res/slideshow/big/fot_6.jpg'  /* Aggiungi quante immagini vuoi. Basta seguire la numerazione */
Pic[5] = '../res/slideshow/big/fot_7.jpg'  /* Aggiungi quante immagini vuoi. Basta seguire la numerazione */
Pic[6] = '../res/slideshow/big/fot_8.jpg'
Pic[7] = '../res/slideshow/big/fot_9.jpg'
Pic[8] = '../res/slideshow/big/fot_10.jpg'
Pic[9] = '../res/slideshow/big/fot_11.jpg'
// =========================================
// Non editare niente nella zona sottostante
// =========================================

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)
}
