var mySlideShow;

window.addEvent('domready',function(){

	//if element content-fade is in the document
	if( $('content-fade')){
		//instance with a few options
		mySlideShow = new SlideShow('content-fade',{
			delay: 5000,
			autoplay: true
		});

		//Showing how to control the instance
		var toggled = [$('right'), $('left')];

		$('right').addEvent('click',function(){
			mySlideShow.showNext();
		});

		$('left').addEvent('click',function(){
			mySlideShow.showPrevious();
		});
	}
});
