<!--

var $j = jQuery.noConflict();

$j(function() {
    setInterval( 'slideSwitch()', 5000 );
});

function slideSwitch()
{
    var $active = $j('#slideshow IMG.active');
    if ( $active.length == 0 )
        $active = $j('#slideshow IMG:last');

    // Hier werden die Bilder in der Reihenfolge ihres Auftretens in der Markup-Pull abgelegt
    var $next =  $active.next().length
        ? $active.next()
        : $j('#slideshow IMG:first');

    // kommentieren Sie die 3 Zeilen weiter unten aus, um die Bilder in zufälliger Reihenfolge ziehen zu lassen
    // var \$sibs  = \$active.siblings();
    // var rndNum = Math.floor(Math.random() * \$sibs.length );
    // var \$next  = \$j( \$sibs[ rndNum ] );

    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

//-->