// (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 = 5000;

// Duration of crossfade (seconds)
var crossFadeDuration = 3;

// Specify the image files
var LIndex = 0; // don't touch this
var LeadershipPic = new Array(); // don't touch this
var PIndex = 0; // don't touch this
var PartnershipPic = new Array(); // don't touch this
var SIndex = 0; // don't touch this
var ServicePic = new Array(); // don't touch this

// to add more images, just continue
// the pattern, adding to the array below
LeadershipPic[LIndex++] = 'photos/Photos for slideshow/Leadership/leadership1.jpg';
LeadershipPic[LIndex++] = 'photos/Photos for slideshow/Leadership/leadership2.jpg';
LeadershipPic[LIndex++] = 'photos/Photos for slideshow/Leadership/leadership3.jpg';
LeadershipPic[LIndex++] = 'photos/Photos for slideshow/Leadership/leadership4.jpg';
LeadershipPic[LIndex++] = 'photos/Photos for slideshow/Leadership/leadership5.jpg';
PartnershipPic[PIndex++] = 'photos/Photos for slideshow/Partnership/partnership1.jpg';
PartnershipPic[PIndex++] = 'photos/Photos for slideshow/Partnership/partnership2.jpg';
PartnershipPic[PIndex++] = 'photos/Photos for slideshow/Partnership/partnership4.jpg';
PartnershipPic[PIndex++] = 'photos/Photos for slideshow/Partnership/partnership5.jpg';
ServicePic[SIndex++] = 'photos/Photos for slideshow/Service/service1.jpg';
ServicePic[SIndex++] = 'photos/Photos for slideshow/Service/service2.jpg';
ServicePic[SIndex++] = 'photos/Photos for slideshow/Service/service3.jpg';
ServicePic[SIndex++] = 'photos/Photos for slideshow/Service/service4.jpg';
ServicePic[SIndex++] = 'photos/Photos for slideshow/Service/service5.jpg';
ServicePic[SIndex++] = 'photos/Photos for slideshow/Service/service6.jpg';

var t1
var j1 = 0
var p1 = LeadershipPic.length

var t2
var j2 = 0
var p2 = PartnershipPic.length

var t3
var j3 = 0
var p3 = ServicePic.length

var preLoadLeadership = new Array()
for (i1 = 0; i1 < p1; i1++){
   preLoadLeadership[i1] = new Image()
   preLoadLeadership[i1].src = LeadershipPic[i1]
}

var preLoadPartnership = new Array()
for (i2 = 0; i2 < p2; i2++){
   preLoadPartnership[i2] = new Image()
   preLoadPartnership[i2].src = PartnershipPic[i2]
}

var preLoadService = new Array()
for (i3 = 0; i3 < p3; i3++){
   preLoadService[i3] = new Image()
   preLoadService[i3].src = ServicePic[i3]
}

function runSlideShowLeadership(){
   if (document.all){
      document.images.LeadershipPic.style.filter="blendTrans(duration=2)"
      document.images.LeadershipPic.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.LeadershipPic.filters.blendTrans.Apply()      
   }
   document.images.LeadershipPic.src = preLoadLeadership[j1].src
   if (document.all){
      document.images.LeadershipPic.filters.blendTrans.Play()
   }
   j1 = j1 + 1
   if (j1 > (p1-1)) j1=0
   t1 = setTimeout('runSlideShowLeadership()', slideShowSpeed)
}

function runSlideShowPartnership(){
   if (document.all){
      document.images.PartnershipPic.style.filter="blendTrans(duration=2)"
      document.images.PartnershipPic.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.PartnershipPic.filters.blendTrans.Apply()      
   }
   document.images.PartnershipPic.src = preLoadPartnership[j2].src
   if (document.all){
      document.images.PartnershipPic.filters.blendTrans.Play()
   }
   j2 = j2 + 1
   if (j2 > (p2-1)) j2=0
   t2 = setTimeout('runSlideShowPartnership()', slideShowSpeed)
}

function runSlideShowService(){
   if (document.all){
      document.images.ServicePic.style.filter="blendTrans(duration=2)"
      document.images.ServicePic.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.ServicePic.filters.blendTrans.Apply()      
   }
   document.images.ServicePic.src = preLoadService[j3].src
   if (document.all){
      document.images.ServicePic.filters.blendTrans.Play()
   }
   j3 = j3 + 1
   if (j3 > (p3-1)) j3=0
   t3 = setTimeout('runSlideShowService()', slideShowSpeed)
}