var slideShowSpeed = 8000; // delay between applying effect
var crossFadeDuration = 6; // duration of effect

var APic = new Array(); // initialize image array

APic[0] = 'images/topImage1.jpg' // one entry per image
APic[1] = 'images/topImage2.jpg' // ...
APic[2] = 'images/topImage3.jpg'
APic[3] = 'images/topImage4.jpg'
APic[4] = 'images/topImage5.jpg'

var st; // intialize timeout variable
var h = 0; // place in image array
var q = APic.length; // total places in image array
var preLoadA = new Array(); // initialize preloader array
for (i = 0; i < q; i++) { // loop through image array
preLoadA[i] = new Image(); // create new image object for each entry
preLoadA[i].src = APic[i]; // preload each entry
}

function runSlideShowA() {
if (document.all) { // if the document exists...
document.getElementById('SlideShowA').style.filter="blendTrans(duration=5)"; // set IE filter default duration
document.getElementById('SlideShowA').style.filter="blendTrans(duration=crossFadeDuration)"; // reset IE filter duration to custom duration
document.getElementById('SlideShowA').filters.blendTrans.Apply(); // apply IE filter to current image
}
document.images.SlideShowA.src = preLoadA[h].src; // 
if (document.all) {
document.getElementById('SlideShowA').filters.blendTrans.Play();
}
h = h + 1;
if (h > (q - 1)) h = 0;
st = setTimeout('runSlideShowA()', slideShowSpeed);
}

var slideShowSpeed = 8000;
var crossFadeDuration = 6;

var BPic = new Array();

BPic[0] = 'images/bottomImage1.jpg'
BPic[1] = 'images/bottomImage2.jpg'
BPic[2] = 'images/bottomImage3.jpg'
BPic[3] = 'images/bottomImage4.jpg'
BPic[4] = 'images/bottomImage5.jpg'

var t;
var j = 0;
var p = BPic.length;
var preLoadB = new Array();
for (i = 0; i < p; i++) {
preLoadB[i] = new Image();
preLoadB[i].src = BPic[i];
}
function runSlideShowB() {
if (document.all) {
document.getElementById('SlideShowB').style.filter="blendTrans(duration=5)";
document.getElementById('SlideShowB').style.filter="blendTrans(duration=crossFadeDuration)";
document.getElementById('SlideShowB').filters.blendTrans.Apply();
}
document.getElementById('SlideShowB').src = preLoadB[j].src;
if (document.all) {
document.getElementById('SlideShowB').filters.blendTrans.Play();
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShowB()', slideShowSpeed);
}