var SlideShowSpeed = 9000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 5;



// =====================================
// Do not edit anything below this line!
// =====================================

var tss;
var iss;
var jss = 0;
var pss = Picture.length-1;



var preLoad = new Array();

for (iss = 0; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];
}



function runSlideShow(){
	
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;
if (document.getElementById) {
	if (Caption[jss]) {
		document.getElementById("ImglabelInner").innerHTML= '<div id="Imglabel">&nbsp;</div><div id="ImglabelTxt">' + Caption[jss] + '</div>';
	} else {
		document.getElementById("ImglabelInner").innerHTML= '<div id="ImglabelTxt">&nbsp;</div>';
	}
}
if (document.getElementById) {
	document.getElementById("PictureBoxlink").href = PictureOpen[jss];
	document.getElementById("PictureBoxlink").title = Caption[jss];
}
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
val = jss;
jss = jss + 1;
if (jss > (pss)) jss=0;
tss = setTimeout('runSlideShow()', SlideShowSpeed);

}

function setjss(val) {

jss = val;
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;
if (document.getElementById) {
	if (Caption[jss]) {
		document.getElementById("ImglabelInner").innerHTML= '<div id="Imglabel">&nbsp;</div><div id="ImglabelTxt">' + Caption[jss] + '</div>';
	} else {
		document.getElementById("ImglabelInner").innerHTML= '<div id="ImglabelTxt">&nbsp;</div>';
	}
}
if (document.getElementById) {
	document.getElementById("PictureBoxlink").href = PictureOpen[jss];
	document.getElementById("PictureBoxlink").title = Caption[jss];
}
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
var tmpss = jss;
jss = jss + 1;
if (jss > (pss)) jss=0;
clearTimeout(tss);
tss = setTimeout('runSlideShow()', SlideShowSpeed);
	
}
function nextjss() {
clearTimeout(tss);
jss = jss + 1;
if (jss > (pss)) jss=0;

if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;
if (document.getElementById) {
	if (Caption[jss]) {
		document.getElementById("ImglabelInner").innerHTML= '<div id="Imglabel">&nbsp;</div><div id="ImglabelTxt">' + Caption[jss] + '</div>';
	} else {
		document.getElementById("ImglabelInner").innerHTML= '<div id="ImglabelTxt">&nbsp;</div>';
	}
}
if (document.getElementById) {
	document.getElementById("PictureBoxlink").href = PictureOpen[jss];
	document.getElementById("PictureBoxlink").title = Caption[jss];
}
if (document.all) document.images.PictureBox.filters.blendTrans.Play();



tss = setTimeout('runSlideShow()', SlideShowSpeed);

}
function prevjss() {
clearTimeout(tss);
jss = jss - 1;
if (jss <0) jss=pss;


if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;
if (document.getElementById) {
	if (Caption[jss]) {
		document.getElementById("ImglabelInner").innerHTML= '<div id="Imglabel">&nbsp;</div><div id="ImglabelTxt">' + Caption[jss] + '</div>';
	} else {
		document.getElementById("ImglabelInner").innerHTML= '<div id="ImglabelTxt">&nbsp;</div>';
	}
}
if (document.getElementById) {
	document.getElementById("PictureBoxlink").href = PictureOpen[jss];
	document.getElementById("PictureBoxlink").title = Caption[jss];
}
if (document.all) document.images.PictureBox.filters.blendTrans.Play();

tss = setTimeout('runSlideShow()', SlideShowSpeed);

}
window.onload = function() {
	runSlideShow();
}

