/***********************************************
* Ultimate Fade-In Slideshow (v1.51): © Dynamic Drive (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
var slideShowSpeed = 6000

var crossFadeDuration = 80

var Pic = new Array()

Pic[0] = './wp-content/themes/bettoni/randomimg/home_1.jpg'
Pic[1] = './wp-content/themes/bettoni/randomimg/home_2.jpg'
Pic[2] = './wp-content/themes/bettoni/randomimg/home_3.jpg'
Pic[3] = './wp-content/themes/bettoni/randomimg/home_4.jpg'
Pic[4] = './wp-content/themes/bettoni/randomimg/home_5.jpg'
Pic[5] = './wp-content/themes/bettoni/randomimg/home_6.jpg'
Pic[6] = './wp-content/themes/bettoni/randomimg/home_7.jpg'
Pic[7] = './wp-content/themes/bettoni/randomimg/home_8.jpg'
Pic[8] = './wp-content/themes/bettoni/randomimg/home_9.jpg'
Pic[9] = './wp-content/themes/bettoni/randomimg/home_10.jpg'
Pic[10] = './wp-content/themes/bettoni/randomimg/home_11.jpg'
Pic[11] = './wp-content/themes/bettoni/randomimg/home_12.jpg'
Pic[12] = './wp-content/themes/bettoni/randomimg/home_13.jpg'
Pic[13] = './wp-content/themes/bettoni/randomimg/home_14.jpg'

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)
}
