// JavaScript Document

$(document).ready(function() {
	makeBigQuote();
});

var quoteIncrement = 0;
var quoteParts;

function makeBigQuote() {
	$(".blueblock div").css("opacity","0.0");
	$(".blueblock div").each(function(index, value) {
		var myID = "quote"+index;
		$(this).attr("id", myID);
		if (index == $('.blueblock div').length-1) {
			animateQuote();
		}
	});
	quoteParts = $('.blueblock div').length;
}

function animateQuote() {
	var myID = "#quote"+quoteIncrement;
	$(myID).animate({
    	opacity: '1.0'
		}, 1200, 'linear', function() {
		if (quoteIncrement < quoteParts ) {
			$(myID).css('filter', 'none');
			quoteIncrement = quoteIncrement+1;
			animateQuote();
		}
	});
}
