$j = jQuery.noConflict();

function slideSwitch($div) {
    var $active = $j($div + ' DIV.active');

    //if ( $active.length == 0 ) $active = $('#slideshow DIV:last'); This line causes last image to stay visible
 
    var $next =  $active.next().length ? $active.next() : $j($div + ' DIV:first');

	$active.addClass('last-active');
	
    $next.css({opacity: 0.0})
        .addClass('active')
         .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
    
}
$j(function() {
	$j('#marquee2')
		.marquee();	

    setInterval( "slideSwitch('#slideshow')", 10000 );
});
