function fade(step)
	 {
	 var imgs = document.getElementById("TitelBild").getElementsByTagName("img");
	 step = step || 0;
	 imgs[counter].style.opacity = step/100;
	 imgs[counter].style.filter = "alpha(opacity=" + step + ")"; //
	 step = step + 2;
	 if (step <= 100)
		{
		window.setTimeout(function () { fade(step); }, 60);
		}
	 else
		{
		window.setTimeout(next, 3600);
		}
	 }
var zIndexCounter = 0;
function next()
	 {
	 var imgs = document.getElementById("TitelBild").getElementsByTagName("img");
	 if (typeof(counter) != "number")
		{
		counter = 0;
		}
	 counter++;
	 if (counter >= imgs.length)
		{
		counter=0;
		}
	 var nextImage = imgs[counter];
	 nextImage.style.opacity = 0;
	 nextImage.style.filter = "alpha(opacity=0)";
	 zIndexCounter++;
	 nextImage.style.zIndex = zIndexCounter;
	 fade();
	 };

