//swfobject.registerObject("flashheader", "9.0.115");

// Slideshow code based on http://jonraasch.com/blog/a-simple-jquery-slideshow

function slideSwitch() {
    var $active = $('#slides div.active');

    if ( $active.length == 0 )
    	$active = $('#slides div:last');

    var $next =  $active.next().length ? $active.next() : $('#slides div:first');

    $active.animate({opacity: 0.0}, 1000);

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
        	$active.removeClass('active');
        });
}

$(function() {
    setInterval( "slideSwitch()", 3000 );
});

