// (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/winnipesaukee-cigar-company-image-number-1.jpg'
Pic[1] = '/images/adverts/winnipesaukee-cigar-company-special-offer-number-1.jpg'
Pic[2] = '/images/winnipesaukee-cigar-company-image-number-2.jpg'
Pic[3] = '/images/adverts/winnipesaukee-cigar-company-special-offer-number-2.jpg'
Pic[4] = '/images/winnipesaukee-cigar-company-image-number-3.jpg'
Pic[5] = '/images/adverts/winnipesaukee-cigar-company-special-offer-number-3.jpg'


Alt[0] = 'The Winnipesaukee Cigar Company'
Alt[1] = 'View Winnipesaukee Cigar Company Special Offers'
Alt[2] = 'The Winnipesaukee Cigar Company'
Alt[3] = 'View Winnipesaukee Cigar Company Special Offers'
Alt[4] = 'The Winnipesaukee Cigar Company'
Alt[5] = 'View Winnipesaukee Cigar Company Special Offers'


Title[0] = 'Welcome to the Winnipesaukee Cigar Company'
Title[1] = 'View Special Offers from Winnipesaukee Cigar Company'
Title[2] = 'Welcome to the Winnipesaukee Cigar Company'
Title[3] = 'View Specials from Winnipesaukee Cigar Company'
Title[4] = 'Welcome to the Winnipesaukee Cigar Company'
Title[5] = 'View Great Offers from Winnipesaukee Cigar Company'

// ===========================================
// 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.getElementById('pcs_slideshow'))
   {

	   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)   
   
   }
  
}
