//Slide show 03/08/2004

// Specify the image files
var Pic = new Array();

// the pattern, adding to the array below
Pic[0] = 'assets/home/homepage_main/main_img01.jpg'
Pic[1] = 'assets/home/homepage_main/main_img02.jpg'

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000;
// Duration of crossfade (seconds)
var crossFadeDuration = 2;
// Whether images are shown randomly (otherwise sequential)
var randomDisplay = false;

// do not edit anything below this line
var z;
var t;
var c;
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(l) {

if (document.all) {
document.images.anim01.style.filter="blendTrans(duration=2)";
document.images.anim01.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.anim01.filters.blendTrans.Apply();
}

if (randomDisplay == true) {
	c = Math.floor(Math.random()*p);
	if (z = c) {
		c = Math.floor(Math.random()*p);
	}
	document.images.anim01.src = preLoad[c].src;
//	document.links[1].href = Lin[c];
	z = c;
} else {
	document.images.anim01.src = preLoad[l].src;
//	document.links[1].href = Lin[l];
}
if (document.all) {
document.images.anim01.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow(' + j + ')', slideShowSpeed);
}

