switchTime = 5000;

setTimeout(function() { bildWechsel(); }, switchTime);

function bildWechsel() {
	var nodelist = document.getElementById('animationWrapper').childNodes;
	if (nodelist.length > 1) {
		var imglist = new Array();
		j = 0;
		for(var i = 0; i < nodelist.length; i++) {
			if (nodelist[i].nodeType == 1) {
				imglist[j] = nodelist[i];
				j++;
			}
		}
		var first = false;
		if (imglist[(imglist.length - 1)].style.display == "block") { first = true; }
		for(var i = 0; i < imglist.length; i++) {
			if (first) { imglist[i].style.display = "block"; first = false; }
			else if (imglist[i].style.display == "block") {
				imglist[i].style.display = "none"; first = true;
			}
		}
		setTimeout(function() { bildWechsel(); }, switchTime);
	}
}

