$(document).ready(function()
{
	// rotate testimonials
	var timer = setTimeout("rotate_testimonial()",10000);
});

function rotate_testimonial(next)
{
	curEl = $('.test:visible').get(0);
	curId = curEl.id.replace('test','');
	nxtId = parseInt(curId)+1;
	total = $('.test').length;
	if(nxtId>total) nxtId = 1;
	$('.test:visible').fadeOut('slow', function(){
		$('#test'+nxtId).fadeIn('slow');
	});
	var timer = setTimeout("rotate_testimonial()",10000);
}
