// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults


function leftNavBox(boxID, state) {
	if (state) {
		document.getElementById(boxID).src = "/images/redBox.gif";
		} else {
		document.getElementById(boxID).src = "/images/blueBox.gif";
		}
}

function lightLeftNavBox(boxID, state) {
	if (state) {
		document.getElementById(boxID).src = "/images/lightRedBox.gif";
		} else {
		document.getElementById(boxID).src = "/images/lightBlueBox.gif";
		}
}

var quoteNum = 1;

function quotefader() {
	
	Effect.Fade('quote' + quoteNum);	
	if ($('quote' + (quoteNum + 1)) == undefined) {		
		this.quoteNum = 0;
	}
	
	Effect.Appear('quote' + (++quoteNum));
	startQuoteFader();
}

function startQuoteFader() {
	setTimeout('quotefader()', 10000);
}