// JavaScript Document
// =======================================
// set the following variables
// =======================================

// slideShowSpeed (milliseconds)
var slideShowSpeed = 7500

// Duration of crossfade (seconds)
var crossFadeDuration = 2

var Pic = new Array()
Pic[0] = 'images/webcasts.jpg'
Pic[1] = 'images/rv.jpg'
Pic[2] = 'images/odp-2.jpg'
Pic[3] = 'images/aadvance-1.jpg'
Pic[4] = 'images/new_loan_line.jpg'
Pic[5] = 'images/mobile money.jpg'


// Storing the url
var Url = new Array() //this array will contain all urls to which the image link

Url[0] = 'http://www.accesscreditunion.com/learning.php'
Url[1] = 'https://www.netit.financial-net.com/accesscu-loan/cgi-bin/ebs?OLB_CMD-SLN-164&loan_file=../loan_master'
Url[2] = 'http://www.accesscu.org/new_odp.php'
Url[3] = 'https://www.netit.financial-net.com/accesscu-loan/cgi-bin/ebs?OLB_CMD-SLN-164&loan_file=../loan_master'
Url[4] = 'https://www.netit.financial-net.com/accesscu-loan/cgi-bin/ebs?OLB_CMD-SLN-164&loan_file=../loan_master'
Url[5] = 'http://www.accesscreditunion.com'

// =======================================
// do not edit anything below 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]
}

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()
   }
   document.getElementById('the_link').href = Url[j];
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}
target="_blank"