// JavaScript Document
// =======================================
// set the following variables
// =======================================

// slideShowSpeed (milliseconds)
var slideShowSpeed = 9800

// Duration of crossfade (seconds)
var crossFadeDuration = 3

var Pic = new Array()
Pic[0] = 'images/checking_donation.jpg'
Pic[1] = 'images/locxmas_web.jpg'
Pic[2] = 'images/black_friday.jpg'
Pic[3] = 'images/Free_checking_rough.jpg'
Pic[4] = 'images/skip_new-1.jpg'
Pic[5] = 'images/nmp-1.jpg'


// Storing the url
var Url = new Array() //this array will contain all urls to which the image link
Url[0] = '/newchecking.php'
Url[1] = 'https://www.netit.financial-net.com/accesscu-loan/cgi-bin/ebs?OLB_CMD-SLN-164&loan_file=../loan_master'
Url[2] = 'https://www.netit.financial-net.com/accesscu-loan/cgi-bin/ebs?OLB_CMD-SLN-164&loan_file=../loan_master'
Url[3] = 'http://www.accesscreditunion.com/learning3.php'
Url[4] = 'http://www.accesscreditunion.com/PDFs/cspay.pdf'
Url[5] = 'http://www.accesscreditunion.com/learning2.php'

// =======================================
// 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"
