function setupQuotes(){

	var quote_container = document.getElementById('centergraphicframe');
	var quote_template_el = document.getElementById('quotebox_template');

	for(var i=0; i<quotes.length; i++){

		var curr = quotes[i];
		var newdiv = document.createElement('div');
		quote_container.appendChild(newdiv);
		newdiv.id = quote_prefix + i;
		newdiv.className = "quotebox";
		newdiv.innerHTML = "<span class=\"quote\">\"" + curr.quote + "\"</span>";


		var attribdiv = document.createElement('div');
		newdiv.appendChild(attribdiv);
		attribdiv.className = "quoteattribbox";
		attribdiv.innerHTML = curr.person;

		if (i != 0){
			newdiv.style.display = "none;";
			
		}		


	}



}

function nextQuote(){

	var prev_quote_index = curr_quote_index;
	curr_quote_index ++;
	if (curr_quote_index >= max_quote_index){
		curr_quote_index = 0;
	}
	new Effect.Fade(document.getElementById(quote_prefix + prev_quote_index));
	var curr_quote_id = quote_prefix + curr_quote_index;
	
	new Effect.Appear(document.getElementById(curr_quote_id));
	setTimeout("nextQuote()",delay);
	
}
