$(document).ready(function(){
	
	setInterval( "sliderTestimonials()", 4000 );
	
})

function sliderTestimonials() {
	
	var $current = $('#right .testimonial.show');
	
	if ( $current.next().length == 0 )
	{
		
		$('#right .testimonial').first().css({opacity: 0.0}).addClass('show').animate({opacity: 1.0}, 1000, function() {
            $current.removeClass('show');
        });;
		
	}
	else {
		$current.next().css({opacity: 0.0}).addClass('show').animate({opacity: 1.0}, 1000, function() {
            $current.removeClass('show');
        });;
		
	}
}
