﻿<!-- Begin
// Set slideshowSpeed (milliseconds)
var slideshowSpeed = 4000;
// Duration of crossfade (seconds)
var crossFadeDuration = 5;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below

addup = 2;
zwikkie = 1;
Pic[0] = 'img/home/1.jpg'
for (i = 1; i < addup + 1; i++) {
	Pic[i] = 'img/home/' + i + '.jpg'
}

// 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();
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runslideshow()', slideshowSpeed);
}
//  End -->