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

