<!-- hide this stuff from other browsers 


var tss;
var iss;
var jss = -1;
var preLoad = new Array();
// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 4000;
// Set the duration of crossfade (in miliseconds)
var CrossFadeDuration = 40;


// =====================================
// Do not edit anything below this line!
// =====================================

function randomImg(range) {
	if (Math.random)
		return Math.round(Math.random() * (range-1));
	else {
		var now = new Date();
		return (now.getTime() / 1000) % range;
	}
}

function nextImg(range) {
 jss++;	
 if(jss >= range) { jss = 0; }
 return jss;
}

function initSlideShow() {
	for (iss = 0; iss <= Picture.length; iss++){
		preLoad[iss] = new Image();
		preLoad[iss].src = Picture[iss];
	}		
	runSlideShow();
}

function fader(opacity) {
	/* helper function to deal specifically with images and the cross-browser differences in opacity handling */
	var obj=document.getElementById("slidenext");
	
	if (obj.style) {
		if (obj.style.MozOpacity!=null) {  
			/* Mozilla's pre-CSS3 proprietary rule */
			obj.style.MozOpacity = (opacity/100) - .001;
		} else if (obj.style.opacity!=null) {
			/* CSS3 compatible */
			obj.style.opacity = (opacity/100) - .001;
		} else if (obj.style.filter!=null) {
			/* IE's proprietary filter */
			obj.style.filter = "alpha(opacity="+opacity+")";
		}
	}
}				


function crossfade(opacity) {
	// Increase Opacity until its 100%
	if (opacity < 100) {
		/* current image not faded up fully yet...so increase its opacity */
		fader(opacity);
		opacity += 10;
		window.setTimeout("crossfade("+opacity+")", CrossFadeDuration);
	} 
	// Set curent slide to new image and reset the new slide
	else {
		document.getElementById("slidecurrent").src = preLoad[jss].src
		// Insert URL into Hyperlink
		document.getElementById("slideshow").href = Caption[jss];		
		// Reset new slide to 0 opacity
		fader(0);	
	}
}
							


function runSlideShow(){
	// Choose new image
	//jss = randomImg(Picture.length);
	jss = nextImg(Picture.length);
	// Insert new image into next slide
	document.getElementById("slidenext").src = preLoad[jss].src;
	//Fade in next slide
	crossfade(0);
	window.setTimeout('runSlideShow()', SlideShowSpeed);
}



window.onload = initSlideShow;

// end hiding javascript -->