// JavaScript Document


// (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 = 5000

// Duration of crossfade (seconds)
var crossFadeDuration = 3

// Specify the image files
var Pic = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below

var Link = new Array()

Pic[0] = 'images/schools/strayer120.gif'
Link[0] = 'javascript:popup(\"theschool.cfm?code=0015\")'

Pic[1] = 'images/schools/kaplan120x60.gif'
Link[1] = 'javascript:popup(\"theschool.cfm?code=00014\")'

//Pic[2] = 'images/schools/CTU120x60.gif'
//Link[2] = 'javascript:popup(\"theschool.cfm?code=0004\")'

Pic[2] = 'images/schools/kennedy120x60d.jpg'
Link[2] = 'javascript:popup(\"theschool.cfm?code=0010\")'

Pic[3] = 'images/schools/anthem.gif'
Link[3] = 'javascript:popup(\"theschool.cfm?code=0043\")'

//Pic[5] = 'images/schools/CTU120x60.gif'
//Link[5] = 'javascript:popup(\"theschool.cfm?code=0004\")'

Pic[4] = 'images/schools/itt120x60.gif'
Link[4] = 'javascript:popup(\"theschool.cfm?code=0027\")'

Pic[5] = 'images/schools/banner120-devry.gif'
Link[5] = 'javascript:popup(\"theschool.cfm?code=0002\")'

Pic[6] = 'images/schools/fmu_120x60.gif'
Link[6] = 'javascript:popup(\"theschool.cfm?code=0013\")'

Pic[7] = 'images/schools/south120.gif'
Link[7] = 'javascript:popup(\"theschool.cfm?code=0022\")'

//Pic[10] = 'images/schools/aiu_b.gif'
//Link[10] = 'javascript:popup(\"theschool.cfm?code=0003\")'

Pic[8] = 'images/schools/wgovernors120x60.gif'
Link[8] = 'javascript:popup(\"theschool.cfm?code=0007\")'

// =======================================
// do not edit anything below this line
// =======================================

var t
var j = 0
var pc = Pic.length

var preLoad = new Array()
for (i = 0; i < pc; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function runSlideShow(){
   if (document.all){
      document.images.SlideShow1.style.filter="blendTrans(duration=2)"
      document.images.SlideShow1.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow1.filters.blendTrans.Apply()
	  document.images.SlideShow2.style.filter="blendTrans(duration=2)"
      document.images.SlideShow2.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow2.filters.blendTrans.Apply()
	  document.images.SlideShow3.style.filter="blendTrans(duration=2)"
      document.images.SlideShow3.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow3.filters.blendTrans.Apply()
   }
   
   document.images.SlideShow1.src = preLoad[j].src
   document.links('SlideLink1').href = Link[j]
   
   document.images.SlideShow2.src = preLoad[j+1].src
   document.links('SlideLink2').href = Link[j+1]
   
   document.images.SlideShow3.src = preLoad[j+2].src
   document.links('SlideLink3').href = Link[j+2]
   
   if (document.all){
      document.images.SlideShow1.filters.blendTrans.Play()
	  document.images.SlideShow2.filters.blendTrans.Play()
	  document.images.SlideShow3.filters.blendTrans.Play()
   }
   j = j + 3
   if (j > (pc-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}