// (c) 2009 Positively Creative Solutions, LLC
// http://www.PCSWebDesign.com
// Contact author for licensing options
// NS4-6,IE4-7
// smooth fadein/fadeout effect in IE only
// ===========================================
// setup the slideshow variables
// ===========================================
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 3500
// Duration of fadein/fadeout (seconds)
var crossFadeDuration = 3
// Specify the image files
var Pic = new Array() // don't touch these arrays...
var Alt = new Array()
var Title = new Array()
// to add more images, alt, and title tags just continue
// the pattern, adding to the following arrays...
Pic[0] = '/images/servicemaster_van.jpg'
Pic[1] = '/images/servicemaster_arrives_on_time.jpg'
Pic[2] = '/images/servicemaster_technicians_are_courteous_and_professional.jpg'
Pic[3] = '/images/servicemaster_uses_professional_equipment_for_excellent_results.jpg'
Pic[4] = '/images/servicemaster_technicians_protect_your_furnishings.jpg'
Pic[5] = '/images/servicemaster_technicians_are_trained.jpg'
Pic[6] = '/images/servicemaster_is_not_satisfied_until_you_are_completely_satisfied.jpg'


Alt[0] = 'Welcome to ServiceMASTER by Disaster Associates, Inc.'
Alt[1] = 'ServiceMASTER technicians arrive on time.'
Alt[2] = 'ServiceMASTER technicians are courteous and professional.'
Alt[3] = 'ServiceMASTER uses professional equipment to deliver superior results.'
Alt[4] = 'ServiceMASTER technicians always protect your furniture.'
Alt[5] = 'ServiceMASTER technicians are all expertly trained.'
Alt[6] = 'ServiceMASTER is not satisfied until you are completely satisfied.'

Title[0] = 'Welcome to ServiceMASTER by Disaster Associates, Inc.'
Title[1] = 'ServiceMASTER arrives on time.'
Title[2] = 'ServiceMASTER technicians are courteous and professional.'
Title[3] = 'ServiceMASTER uses professional equipment to deliver excellent results.'
Title[4] = 'ServiceMASTER technicians protect your furniture.'
Title[5] = 'ServiceMASTER technicians are all trained.'
Title[6] = 'ServiceMASTER is not satisfied until you are completely satisfied.'

// ===========================================
// IMPORTANT! do not edit beneath this line
// ===========================================
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[i].alt = Alt[i]
   preLoad[i].title = Title[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
   document.images.SlideShow.alt = preLoad[j].alt
   document.images.SlideShow.title = preLoad[j].title
   document.getElementById('PIC_CAPTION').value = preLoad[j].alt

   if (document.all){
	  document.images.SlideShow.filters.blendTrans.Play(  )
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}