$(function () {
	quotes = $('div#testimonial blockquote');
	current = 0;
	var next = $('div#testimonial a#next');
	var clicked = false;
	next.show();
	next.click(function () {
		clicked = true;
		n();
		
	});
	
	setInterval(function(){
		if(!clicked){
			n();
			}
		},8000);
});

function n(){
	$(quotes[current]).hide();
	if (current == quotes.length - 1){
		current = 0;
	} else {
		current++;
	}
	$(quotes[current]).show();
}
