
	var cycleQuotes = '';
	var cycleQuotesPosition = 0;

	function initCycleQuotes () {

		h = 0;

		cycleQuotes = $$('.contentboxwrapper p.quote');

		if ( cycleQuotes && cycleQuotes.size() ) {

			cycleQuotes.each( function (e, pos) {
				if (h < e.getHeight()) h = e.getHeight();
			});
	
			cycleQuotes.each( function (e, pos) {
	
				if (pos > 0)
					e.setStyle({position: 'absolute', top: 0, opacity: 0, height: h + 'px'});
				
				else
					e.setStyle({height: h + 'px'});
					
			});
			
			setTimeout(runCycleQuotes, '5000');

		}
	}


	function runCycleQuotes () {

		new Effect.Opacity(cycleQuotes[cycleQuotesPosition], { from: 1.0, to: 0, duration: 1 });

		cycleQuotesPosition >= cycleQuotes.size()-1 ? cycleQuotesPosition = 0 : cycleQuotesPosition++;
		
		new Effect.Opacity(cycleQuotes[cycleQuotesPosition], { from: 0, to: 1, duration: 1 });

		setTimeout(runCycleQuotes, '5000');

	}


	Event.observe(window, 'load', initCycleQuotes);
