$(document).ready(function () {
	var cur = 0;
	var maxi = $(".jFlowControl").length;
	var showQuote = function() {
		$("#splashquote p").each(function(i) {
			if (cur == i)
			{
				$(this).show();
			}
			else
			{
				$(this).hide();
			}
		});
	}
	
	$(this).find(".jFlowControl").each(function(i){
		$(this).click(function(){
			cur = i;
		});
	});
	
   	$(".jFlowPrev").click(function(){
		if (cur > 0)
			cur--;
		else
			cur = maxi -1;
		showQuote();
	});

	$(".jFlowNext").click(function(){
		if (cur < maxi - 1)
			cur++;
		else
			cur = 0;
		showQuote();
	});
});
