

// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 3000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 2;

var Pic = new Array(); // don't change this
var Caption = new Array(); // don't change this
var showHot = true;       // don't change this

Pic[0] = 'media/images/PatObriens1.gif';
Pic[1] = 'media/images/PatObriens2.gif';
Pic[2] = 'media/images/PatObriens3.gif';

Caption[0]='Pat Obriens Doors';
Caption[1]='Pat Obriens Doors';
Caption[2]='Pat Obriens Doors';

var tss;
var iss;
var jss = 0;
var pss = 31;

var preLoad = new Array();

for(iss = 1; iss < 32; iss++){
	preLoad[iss] = new Image();
	preLoad[iss].src = Pic[iss];
}

function control(how){
	if (showHot){
	if (how=="H") jss = 1;
		if (how=="F") jss = jss + 1;
		if (how=="B") jss = jss - 1;
		if (jss > (pss)) jss=1;
		if (jss < 1) 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) document.getElementById("CaptionBox").innerHTML= Caption[jss];
		if (document.all) document.images.PictureBox.filters.blendTrans.Play();
	}
}

										
