function slideSwitch() {
    var $active = $('#top-slider-in DIV.active');
    if ( $active.length == 0 ) $active = $('#top-slider-in DIV:last');
    // use this to pull the divs in the order they appear in the markup
    var $next =  $active.next().length ? $active.next()
        : $('#top-slider-in DIV:first');

	/*$active.addClass('last-active');
    $next.animate({opacity: 0}, 0, function() {
			$next.addClass('active').css({opacity:0.0});
			$active.animate({opacity: 0.0}, {duration:2000}).removeClass('active last-active');
			$next.animate({opacity: 1.0}, {duration:2000});
		})*/
    $next.animate({opacity: 0.0}, 10, function(){
    	$active.addClass('last-active').animate({opacity: 0.0}, 1000);
		$next.addClass('active').animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
	});
}
setInterval( "slideSwitch()", 7000 );
