// Fade effect only in IE; degrades gracefully

// =======================================
// set the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000

// Duration of crossfade (seconds)
var crossFadeDuration = 12

// Specify the image files
var OJC = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below

OJC[0] = 'http://www.ojc.edu/content/athletics/Images/ssOJC01.jpg'
OJC[1] = 'http://www.ojc.edu/content/athletics/Images/ssOJC02.jpg'
OJC[2] = 'http://www.ojc.edu/content/athletics/Images/ssOJC03.jpg'
OJC[3] = 'http://www.ojc.edu/content/athletics/Images/ssOJC04.jpg'
OJC[4] = 'http://www.ojc.edu/content/athletics/Images/ssOJC05.jpg'
OJC[5] = 'http://www.ojc.edu/content/athletics/Images/ssOJC06.jpg'

// =======================================
// do not edit anything below this line
// =======================================

var t
var j = 0
var p = OJC.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = OJC[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
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}

// This Function Does Away with Body onLoad Tag
window.onload = function() {
	runSlideShow();
//Insert this Code to Remove OJC Dropdown Menu Conflicts (Old Menu)
	//var root = document.getElementById("menuList");
	//var rootOffset = root.offsetLeft;
	//getMenus(root, root);
	return; 
}
