function slideSwitch() {
var $active = $('#top-right div.active');
if ( $active.length == 0 )
$active = $('#top-right div:last');
var $next = $active.next().length ? $active.next()
: $('#top-right div:first');
$active.addClass('last-active')
.animate({opacity : 0.0}, 1000);
$next.css({opacity: 0.0})
.addClass('active')
.animate({opacity: 1.0}, 1000, function() {
$active.removeClass('active last-active');
});
}
$(function() {
	
    $('#slideshow div').css({opacity: 0.0});

$('#slideshow div:first').css({opacity: 1.0});
setInterval( "slideSwitch()", 5000 );
});

jQuery.easing.easeOutQuart = function (x, t, b, c, d) {
	return -c * ((t=t/d-1)*t*t*t - 1) + b;
};

