/**************************************************************

	Script		: Gallery Controls
	Version		: 1.0
	Authors		: Michael Aguiar
	Desc		: The controls for the gallery, change wait, effect, loop, etc.
	Licence		: N/A

**************************************************************/

window.addEvent('domready',function(){
	var obj = {
		wait: 3000, 					// The length of time to wait before going to the next image. default: 3000
		effect: 'fade', 				// The transition effect to use (fade|wipe|slide|random). default: 'fade'
		duration: 2000, 				// The length of the transition. default: 2000
		loop: true, 					// When the last image is reached it will go back to the start. default: true
		thumbnails: true, 				// Using thumbnails or not. default: true
		backgroundSlider: true,			// Use the backgroundSlider class for the thumbnails. default: true
		onClick: function(i){alert(i)}	// The function called when the image is clicked. The index of the image is passed to the function.
	}
	show = new SlideShow('slideshowContainer','slideshowThumbnail',obj);
	show.play();
});