// JavaScript Document
function quoteChanger ( )
	{
	  Quotes.getRandomQuote();
	};
 
	var Quotes =
	{
		getRandomQuote: function()
		{			 
			var maxLength = quote.length;
			var position = Math.floor(Math.random() * maxLength);
			return Quotes.displayQuote("quoteWrapper", quote[position]);
		},
		displayQuote: function(ctl, quote)
		{
			ctl = document.getElementById(ctl);
			ctl.innerHTML = quote;
		}
	};
$jq(document).ready(function(){	 
	Quotes.getRandomQuote();
	
	if (timeDelay != 0){
		setInterval ( "quoteChanger()", timeDelay );
	};
	
	var quoteHeight = parseFloat($('#quoteWrapper').parent('div').css('height')) - 150;
	$('#wrapper').css('min-height', 800 + quoteHeight +'px');
	
});
