/*Adapted from http://jonraasch.com/blog/a-simple-jquery-slideshow  retrieved 1/3/2009 */

function slideSwitch() {
    var $active = $('#slideshow a.active');


	var $next = $active.next();
    if ( $next.length == 0 ) $next = $('#slideshow a:first');

    $active.addClass('last-active');

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

$(function() {
	var current_width = $('#slideshow').width();
	$('#slideshow').height(current_width/3.2);
    setInterval( "slideSwitch()", 4000 );
});