var slots = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); /* Es gibt insgesamt 10 Slots */

var slot_randomize = true; /* Zufall an */
var slot_duration = 250; /* Abstand in Millisekunden zwischen jedem Bild */
var slot_app_dur = 0.5; /* Abstand in Sekunden zwischen nicht und anzeigen */

//function InitSlides() {



//	var j = (slot_randomize ? Math.floor(Math.random() * (slots.length - 1)) : 0);
//	var i = slots[j];
	
//	slots.splice(j, 1);
	 
//	i = parseInt(i);
//	var slotnumber = "slot"+i;

	// document.getElementById(slotnumber).style.visibility = 'visible';	
//	Element.hide(slotnumber);
//	new Effect.Appear(slotnumber, {duration: slot_app_dur});
	
//	if (slots.length >= 1) {
//		window.setTimeout("InitSlides();", slot_duration);
//	}
	// else
	// {
	// alert("Erster Durchlauf fertig");
	// }
//}

function ContinueSlides(whichslot,whichathlete) {
//	Element.hide('slot'+whichslot+'name',{duration: 0}); new Effect.Appear('slot<?= $slot; ?>name',{duration: 0.2});
	alert("Hier kommt dann etwas");
}



function initAllSlots() {
	for (i=1; i<11; i++) {
		Element.hide('slot'+i,{duration: 0});
		document.getElementById('slot'+i).style.display = 'none';
	}
}	

function hideAllSlotnames() {
	for (i=1; i<11; i++) {
		Element.hide('slot'+i+'name',{duration: 0});
	}
}
