// (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
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 3000
// Duration of crossfade (seconds)
var crossFadeDuration = 4
var Pic = new Array() // don't touch this
Pic[0] = '/files/system/topbanners_defco/img_top_01.jpg'
Pic[1] = '/files/system/topbanners_defco/img_top_02.jpg'
Pic[2] = '/files/system/topbanners_defco/img_top_03.jpg'
Pic[3] = '/files/system/topbanners_defco/img_top_04.jpg'
Pic[4] = '/files/system/topbanners_defco/img_top_05.jpg'
Pic[5] = '/files/system/topbanners_defco/img_top_06.jpg'
Pic[6] = '/files/system/topbanners_defco/img_top_07.jpg'
Pic[7] = '/files/system/topbanners_defco/img_top_08.jpg'
Pic[8] = '/files/system/topbanners_defco/img_top_09.jpg'
Pic[9] = '/files/system/topbanners_defco/img_top_10.jpg'
Pic[10] = '/files/system/topbanners_defco/img_top_11.jpg'
Pic[11] = '/files/system/topbanners_defco/img_top_12.jpg'
Pic[12] = '/files/system/topbanners_defco/img_top_13.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]
}
preLoad.sort(function() {return 0.5 - Math.random()});
function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=3)"
      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)
}


