window.addEvent('domready',function() {
	/* settings */
	var showDuration = 6000;
	var container = $('slideshow-container');
	var images = container.getElements('img');
	var currentIndex = 0;
	var interval;
	/* opacity and fade */
	images.each(function(img,i){ 
		if(i > 0) {
			img.set('opacity',0,{duration: 'long'});
		}
	});
	/* worker */
	var show = function() {
		images[currentIndex].fade('out');
		images[currentIndex = currentIndex < images.length - 1 ? currentIndex+1 : 0].fade('in');
		//images[currentIndex].Style('opacity', {duration: 2000}).start(0);
        //images[currentIndex = currentIndex < images.length - 1 ? currentIndex+1 : 0].Style('opacity', {duration: 2000}).start(1);
	};
	/* start once the page is finished loading */
	window.addEvent('load',function(){
		interval = show.periodical(showDuration);
	});
	
	ReMooz.assign('.zoombild a', {
		'origin': 'img',
		'shadow': 'onOpenEnd', // fx is faster because shadow appears after resize animation
		'resizeFactor': 0.8, // resize to maximum 60% of screen size
		'cutOut': false, // don't hide the original
		'opacityResize': 0.4, // opaque resize
		'dragging': false, // disable dragging
		'centered': true // resize to center of the screen, not relative to the source element
	});
	
	var box = new CeraBox();

	box.addItems('a.boxed', {
		animation: 'ease',
		group:true
	});
});
<!--
function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("Rechtsklick ist deaktiviert");
return false;
}
return true;
}
document.onmousedown=right;
// -->
