$j(function(){
	setInterval ( "slideshow(2000)", 6000 );    
});

function slideshow(speed) {
    var $active = $j('.bilder_startseite img.active');
    
    if ( $active.length == 0 ) $active = $j('.bilder_startseite img:last');

    var $next =  $active.next('img').length ? $active.next('img')
       : $j('.bilder_startseite img:first');

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

