var slideCache = new Array();
function RunSlideShow(pictureName,imageFiles,displaySecs)
{
	var imageSeparator = imageFiles.indexOf(";");
	//var urlSeparator = imageUrls.indexOf(";");
	var nextImage = imageFiles.substring(0,imageSeparator);
	//var nextUrl = imageUrls.substring(0,urlSeparator);
	if (document.all)
	{
		//document.getElementById(pictureName).style.filter = "RevealTrans(duration=2, transition=5)";
		//document.getElementById(pictureName).filters.RevealTrans.Apply();
		document.getElementById(pictureName).style.filter = "blendTrans(duration=crossFadeDuration)"
		document.getElementById(pictureName).filters.blendTrans.Apply();
	}
	document.getElementById(pictureName).src = nextImage;
	//document.getElementById(urlName).href = nextUrl;

	//if (document.all) document.getElementById(pictureName).filters.RevealTrans.Play();
	if (document.all) document.getElementById(pictureName).filters.blendTrans.Play();

	var futureImages = imageFiles.substring(imageSeparator+1,imageFiles.length) + ';' + nextImage;
	//var futureUrls = imageUrls.substring(urlSeparator+1,imageUrls.length) + ';' + nextUrl;

	setTimeout("RunSlideShow('"+pictureName+"','"+futureImages+"',"+displaySecs+")", displaySecs*1000);
	// Cache the next image to improve performance.
	imageSeparator = futureImages.indexOf(";");
	nextImage = futureImages.substring(0,imageSeparator);
	if (slideCache[nextImage] == null)
	{
        slideCache[nextImage] = new Image;
		slideCache[nextImage].src = nextImage;
	}
}

/*
RevealTrans(duration, transition=N);

0  - Box in
1  - Box out
2  - Circle in
3  - Circle out
4  - Wipe up
5  - Wipe down
6  - Wipe right
7  - Wipe left
8  - Vertical blinds
9  - Horizontal blinds
10 - Checkerboard across
11 - Checkerboard down
12 - Random dissolve
13 - Split vertical in
14 - Split vertical out
15 - Split horizontal in
16 - Split horizontal out
17 - Strips left down
18 - Strips left up
19 - Strips right down
20 - Strips right up
21 - Random bars horizontal
22 - Random bars vertical
23 - Any random pattern 0-22
*/