// (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/client/kgc_spring_2007_00000.jpg'
Pic[1] = '/images/client/2nd_hole_at_kingswood_golf_club.jpg'
Pic[2] = '/images/client/7th_hole_at_kingswood_golf_club.jpg'
Pic[3] = '/images/client/8th_hole_at_kingswood_golf_club.jpg'
Pic[4] = '/images/client/12th_hole_at_kingswood_golf_club.jpg'
Pic[5] = '/images/client/13th_hole_at_kingswood_golf_club.jpg'
Pic[6] = '/images/client/fall_storm_approaching_the_16th_hole_at_kingswood_golf_club.jpg'

Alt[0] = 'Welcome to Kingswood Golf Club'
Alt[1] = 'Welcome to Kingswood Golf Club'
Alt[2] = 'Welcome to Kingswood Golf Club'
Alt[3] = 'Welcome to Kingswood Golf Club'
Alt[4] = 'Welcome to Kingswood Golf Club'
Alt[5] = 'Welcome to Kingswood Golf Club'
Alt[6] = 'Welcome to Kingswood Golf Club'


Title[0] = 'Welcome to Kingswood Golf Club'
Title[1] = 'Welcome to Kingswood Golf Club'
Title[2] = 'Welcome to Kingswood Golf Club'
Title[3] = 'Welcome to Kingswood Golf Club'
Title[4] = 'Welcome to Kingswood Golf Club'
Title[5] = 'Welcome to Kingswood Golf Club'
Title[6] = 'Welcome to Kingswood Golf Club'



// ===========================================
// 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 commented out by jjf //

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