function daumenKino() {
    var $alt = $('#bilderstapel img.obersteebene');
    var $neu = $alt.next().length ? $alt.next() : $('#bilderstapel img:first');
    $alt.addClass('mittlereebene');
	$alt.removeClass('obersteebene');
    $neu.css({opacity: 0.0});
    $neu.addClass('obersteebene');
    $neu.animate({opacity: 1.0}, 2000, function() {
            $alt.removeClass('mittlereebene');
    });
}

$(document).ready(function() {
	setInterval( "daumenKino()", 4000 );
});


function contentFade()
{
  //Herausfaden
  $('.row div:first').fadeOut("slow",
		//callback
        function()
        {
        //aktuelles div ans Ende verschieben
        $(this).remove().appendTo(".row");
        //Erstes div hereinfaden
        $('.row div:first').fadeIn("slow");
         });
}

function contentFade2()
{
  //Herausfaden
  $('.secondRow div:first').fadeOut("slow",
		//callback
        function()
        {
        //aktuelles div ans Ende verschieben
        $(this).remove().appendTo(".secondRow");
        //Erstes div hereinfaden
        $('.secondRow div:first').fadeIn("slow");
         });
}

function contentFadeWrap()
{
  //Herausfaden
  $('.contentWrapper div:first').fadeOut("slow",
		//callback
        function()
        {
        //aktuelles div ans Ende verschieben
        $(this).remove().appendTo(".contentWrapper");
        //Erstes div hereinfaden
        $('.contentWrapper div:first').fadeIn("slow");
         });
}
