//window.addEvent('domready',function() {
	/* settings */
	var showDuration = 3000;
	var images = $('slideshow-container').getElements('img');
	var currentIndex = 0;
	var SlideShowInterval;
	/* opacity and fade */
	images.each(function(img,i){
		if(i > 0) {
			img.set('opacity',0);
		}
	});
	/* worker */
	function dhSlideShow() {
		images[currentIndex].fade('out');
		images[currentIndex = currentIndex < images.length - 1 ? currentIndex+1 : 0].fade('in');
	};
	
	SlideShowInterval = window.setInterval('dhSlideShow();', 3000);
//});

