$(function() {
	var elems = $('p.testimonial-entry');
	var count = elems.removeClass('testimonials-hide').hide().size();
	var curr = 0;
	elems.eq(curr).show().fadeIn('normal');
	flip = function () {
		elems.eq(curr).hide();
		if( curr < (count-1)) curr++;
		else {
			clearInterval(this.t_intval);
			$('#testimonials-more').show();
		}
		elems.eq(curr).fadeIn("normal");
	}

	start_flip = function() {
		if (!this.t_intval) {
			this.t_intval = setInterval("flip()", 4000);
		}
	}

	start_flip();
})
