function generateQuote()
{
	if ( QuoteList == null || QuoteList.length == 0 ) { return }
	var contentBlock = document.getElementById( 'content' );
	if ( contentBlock == null ) { return }
	var header = contentBlock.getElementsByTagName('H1')[0];
	if ( header == null ) { return }
	var quote = QuoteList[Math.floor(Math.random() * QuoteList.length)];
	var quoteBlock = document.createElement( 'P' );
	quoteBlock.id = 'quoteblock';
	quoteBlock.appendChild( document.createTextNode( quote[0] + ' ' ) );
	var person = document.createElement( 'STRONG' );
	person.appendChild( document.createTextNode( quote[1] ) );
	quoteBlock.appendChild( person );
	contentBlock.insertBefore( quoteBlock, header.nextSibling );
}

addEvent( window, 'load', generateQuote );
