function slideShowHome() {
    var jQueryactive = jQuery('#slideshow img.active');
    if (jQueryactive.length == 0) jQueryactive = jQuery('#slideshow img:last');
    var jQuerynext =  jQueryactive.next().length ? jQueryactive.next():jQuery('#slideshow img:first');
    jQueryactive.addClass('last-active');
    jQuerynext.css({opacity: 0}).addClass('active').animate({opacity: 1}, 1000, function() {
          jQueryactive.removeClass('active last-active');
    });
}

jQuery(function() {
    setInterval( "slideShowHome()", 5000 );
});

