﻿var mySlideShow;
function CreateSlideShow(items)
{
// fader configuration structure
var A_TPL = {
		// randomize the array each time page loads
		'random' : true,
		// number of transparency changes during the transition
		//	increase for smoother transition, reduce for less CPU usage
		'steps' : 20,
		// transition duration in seconds
		'transtime': 1,
		// slide time in seconds
		'slidetime': 2,
		// width of the slide (optional)
		'width' : 100,
		// height of the slide (optional)
		'height': 100,
		// alt text for the image (optional)
		'alt' : 'Slideshow',
		// css class assigned to the slide <img> (optional)
		'css' : ''
	};
	//for (var i = 0; i < items.length; i++)
	//	alert(items[i]);
	try
	{
		var obj = document.getElementById("Slideshow");
		if (obj != null)
		{
			mySlideShow = new tFader (items, A_TPL);
			//alert(obj.innerHTML);
			obj.innerHTML = mySlideShow.Images();
			//alert(obj.innerHTML);
			mySlideShow.Run();
		}
	}
	catch (e)
	{
	}
}

