// SLIDESHOW
function slideSwitch() {
    var $active = $('#hero div.active');
    if ( $active.length == 0 ) $active = $('#hero div:last');
    var $next =  $active.next().length ? $active.next() : $('#hero div:first');
    $active.addClass('last-active');
    $next.css({opacity: 0.0}).addClass('active').animate({opacity: 1.0}, 750, function() {
        $active.removeClass('active last-active');
    });
}
$(function() {
    setInterval( "slideSwitch()", 4000 );
});
