// (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 the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 3500

// Duration of crossfade (seconds)
var crossFadeDuration = 3

// Specify the image files
var Pic = new Array()
var Pic2 = new Array()
// don't touch this
// to add more images, just continue
// the pattern, adding to the array below

var AdPath = '/images/slideshow/adidas/'
var AdPath2 = '/images/slideshow/oregon/'

Pic[0] = AdPath + '1.jpg'
Pic[1] = AdPath + '2.jpg'

Pic2[0] = AdPath2 + '1.jpg'
Pic2[1] = AdPath2 + '2.jpg'
// =======================================
// do not edit anything below this line
// =======================================

var t
var j = 0
var p = Pic.length
var p2 = Pic2.length

var preLoad = new Array()
var preLoad2 = new Array()

for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]   
}

for (i = 0; i < p2; i++){
   preLoad2[i] = new Image()
   preLoad2[i].src = Pic2[i]   
}

function runSlideShow(){
   if (document.all){
	
	if (document.images.SlideShowAdidas) {
      document.images.SlideShowAdidas.style.filter="blendTrans(duration=2)"
      document.images.SlideShowAdidas.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShowAdidas.filters.blendTrans.Apply()
	}
	
	if (document.images.SlideShowOregon) {
	  document.images.SlideShowOregon.style.filter="blendTrans(duration=2)"
      document.images.SlideShowOregon.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShowOregon.filters.blendTrans.Apply()
	}
   }
   if (document.images.SlideShowAdidas) {
	document.images.SlideShowAdidas.src = preLoad[j].src
	}
   
   if (document.images.SlideShowOregon) {
	document.images.SlideShowOregon.src = preLoad2[j].src
   }
   if (document.all){
	if (document.images.SlideShowAdidas) {
      document.images.SlideShowAdidas.filters.blendTrans.Play()
	}
	
	if (document.images.SlideShowOregon) {
	  document.images.SlideShowOregon.filters.blendTrans.Play()
	}
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}
