//
// Rotating partners images for the right side
//
var Speed2 = 5000
var crossFadeDuration2 = 2

var AllPics = new Array()  // don't set the size
/*
AllPics[0] = 'graphics/slideshow/microsoft.png'
AllPics[1] = 'graphics/slideshow/hp.png'
AllPics[2] = 'graphics/slideshow/citrix.png'
AllPics[3] = 'graphics/slideshow/polycom.png'
AllPics[0] = 'graphics/slideshow/vmware.png'
AllPics[1] = 'graphics/slideshow/cisco.png'
AllPics[2] = 'graphics/slideshow/checkpoint.png'
AllPics[3] = 'graphics/slideshow/symantec.png'
AllPics[4] = 'graphics/slideshow/sun.png'
//AllPics[5] = 'graphics/slideshow/splice.png'
AllPics[5] = 'graphics/slideshow/cisco.png'
AllPics[6] = 'graphics/slideshow/telstra.png'
AllPics[7] = 'graphics/slideshow/NetApp.png'
*/
AllPics[0] = 'graphics/slideshow/telstra.png'
AllPics[1] = 'graphics/slideshow/NetApp.png'
AllPics[2] = 'graphics/slideshow/citrix.png'
AllPics[3] = 'graphics/slideshow/cisco.png'
AllPics[4] = 'graphics/slideshow/microsoft.png'
AllPics[5] = 'graphics/slideshow/hpppgold2010.png'
AllPics[6] = 'graphics/slideshow/mitel.png'
AllPics[7] = 'graphics/slideshow/vmware.png'
AllPics[8] = 'graphics/slideshow/veeam.png'

//Pic[1] = 'graphics/slideshow/hp.png'

//get the two random images
for (var counter=0;;counter++) { // an infinite loop
	var randomnumber1 = Math.floor(Math.random()* AllPics.length)
	var randomnumber2 = Math.floor(Math.random()* AllPics.length)
	if (randomnumber1 != randomnumber2) 
		break;
	if (counter == 100) break; // only do 100 iterations before we give up
}

// image files
var Pic2 = new Array()  // don't set the size
Pic2[0] = AllPics[randomnumber1]
Pic2[1] = AllPics[randomnumber2]

Pic2[0] = AllPics[0]
Pic2[1] = AllPics[1]
Pic2[2] = AllPics[2]
Pic2[3] = AllPics[3]
Pic2[4] = AllPics[4]
Pic2[5] = AllPics[5]
Pic2[6] = AllPics[6]
Pic2[7] = AllPics[7]

randomnumber1=-1
randomnumber2=-1

var t
var curImage2 = 0
var numberOfImages2 = Pic2.length

// Preload our images
var preLoad2 = new Array()
for (i = 0; i < numberOfImages2; i++){
   preLoad2[i] = new Image()
   preLoad2[i].src = Pic2[i]
}

function runSlideShow2(){
   if (document.all){ // obv. this fade will only work in IE
      document.images.SlideShow2.style.filter="blendTrans(duration=crossFadeDuration2)"
      document.images.SlideShow2.filters.blendTrans.Apply()      
   }
   document.images.SlideShow2.src = preLoad2[curImage2].src
   if (document.all){
      document.images.SlideShow2.filters.blendTrans.Play()
   }
   curImage2 = curImage2 + 1
   if (curImage2 >= (numberOfImages2)) curImage2=0
   t = setTimeout('runSlideShow2()', Speed2) // create a new timer and run it all over again.
}
// give it time to change
t = setTimeout('runSlideShow2()', Speed2)
//runSlideShow2() // run the slide show