// This script and many more are available free online at
// The JavaScript Source!! http://javascript.internet.com
// (C) 2000 www.CodeLifter.com
// Web Site:  http://www.codelifter.com


// =======================================
// set the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000

// Duration of crossfade (seconds)
var crossFadeDuration = 3

// Specify the image files
var Pic = new Array() // don't touch this
var Pic1 = new Array() // don't touch this
var Pic2 = new Array() // don't touch this

// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = '/lib/templates/beacon/images/clients/anim/zopa.gif'
Pic[1] = '/lib/templates/beacon/images/clients/anim/logo_borro.gif'
Pic[2] = '/lib/templates/beacon/images/clients/anim/logo_google.gif'

Pic1[0] = '/lib/templates/beacon/images/clients/anim/logo_techlightenment.gif'
Pic1[1] = '/lib/templates/beacon/images/clients/anim/logo_sandrunner.jpg'
Pic1[2] = '/lib/templates/beacon/images/clients/anim/logo_tpas.gif'

Pic2[0] = '/lib/templates/beacon/images/clients/anim/logo_kublax.jpg'
Pic2[1] = '/lib/templates/beacon/images/clients/anim/ppi.gif'
Pic2[2] = '/lib/templates/beacon/images/clients/anim/logo_bandce2.gif'

// =======================================
// do not edit anything below this line
// =======================================

var t
var j = 0
var p = Pic.length

var preLoad = new Array()
var preLoad1 = new Array()
var preLoad2 = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
   preLoad1[i] = new Image()
   preLoad1[i].src = Pic1[i]
   preLoad2[i] = new Image()
   preLoad2[i].src = Pic2[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.SlideShow1.style.filter="blendTrans(duration=2)"
      document.images.SlideShow1.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow1.filters.blendTrans.Apply()   
			
      document.images.SlideShow2.style.filter="blendTrans(duration=2)"
      document.images.SlideShow2.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow2.filters.blendTrans.Apply()   

   }

   document.images.SlideShow.src = preLoad[j].src
   document.images.SlideShow1.src = preLoad1[j].src
   document.images.SlideShow2.src = preLoad2[j].src
	 	 
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
      document.images.SlideShow1.filters.blendTrans.Play()
      document.images.SlideShow2.filters.blendTrans.Play()
   }

	 
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}

window.onload=runSlideShow;