function slideSwitch() {
    var $active = $('#header_slideshow IMG.active');
    if ( $active.length == 0 ) $active = $('#header_slideshow IMG:last');   
    var $next =  $active.next().length ? $active.next()
        : $('#header_slideshow IMG:first');
    $active.addClass('last-active');
    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}
$(function() {
    $('#header_slideshow IMG:first').css('opacity','1.0');
$('#header_slideshow IMG:first').addClass('active');
    setInterval( "slideSwitch()", 5000 );
});


