function slideSwitch() {
    var active = $('#slideshow img.active').removeClass('active').hide();
    var next =  active.next().length ? active.next() : $('#slideshow img:first');
    next.css({opacity: 0.1})
        .show()
        .addClass('active')
        .animate({opacity: 1.0}, 700);
    setTimeout("slideSwitch()",5000);
}

$(function(){ setTimeout("slideSwitch()",5000); });
