var current_cycle = 0;
var total_cycles = 0;

function cycle_setup() {
	// Calculate total length
	total_cycles = $(".testimonialblock").length;
	
	// Start call
	cycle_next();
	
	setInterval("cycle_next()", 10000);
	
}

function cycle_next() {
	$(".testimonialblock").each(
		function(index) {
			$(this).hide();
		}
	);
	$(".testimonialblock").each(
		function(index) {
			if(index == current_cycle) {
				$(this).show();
			}
		}
	);
	current_cycle ++;
	if(current_cycle == total_cycles) {
		current_cycle = 0;
	}
}
