(function() {
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 8000;
// Duration of crossfade (seconds)
var crossFadeDuration = 2;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below
//Pic[0] = ''
Pic[0] = 'http://site.memoryamerica.com/lib/banner1.jpg'
Pic[1] = 'http://site.memoryamerica.com/lib/banner2.jpg'
Pic[2] = 'http://site.memoryamerica.com/lib/banner3.jpg'
Pic[3] = 'http://site.memoryamerica.com/lib/banner4.jpg'
Pic[4] = 'http://site.memoryamerica.com/lib/banner5.jpg'


var PicURL = new Array();
// to add more images, just continue
// the pattern, adding to the array below
//PicURL[0] = 'http://www.lepalaisgourmet.com'
PicURL[0] = 'http://www.memoryamerica.com/hard-drives-solid-state-drives.html'
PicURL[1] = 'http://www.memoryamerica.com/memory-shop-by-make---model-apple-apple-desktop-mac-pro--2009--memory.html'
PicURL[2] = 'http://www.memoryamerica.com/cpu-intel-desktop.html'
PicURL[3] = 'http://www.memoryamerica.com/memory-shop-by-make---model-apple-apple-laptop-macbook-pro.html'
PicURL[4] = 'http://www.memoryamerica.com/hard-drives-internal-hard-drives-desktop-sata-sataii.html'

// do not edit anything below this line
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
var preLoadURL = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
preLoadURL[i] = PicURL[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;
document.getElementById("SlideShowLink").href = preLoadURL[j];
 
if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow()', slideShowSpeed);
}
 
 window.runSlideShow = runSlideShow;
})()