
/* BEGIN random quote rotation function */
function rotatequotes() {

var quotes=new Array()

quotes[0] = document.getElementById('quote1');
quotes[1] = document.getElementById('quote2');
quotes[2] = document.getElementById('quote3');
quotes[3] = document.getElementById('quote4');
quotes[4] = document.getElementById('quote5');
quotes[5] = document.getElementById('quote6');

var whichquote=Math.floor(Math.random()*(quotes.length));

var theQuote = quotes[whichquote];

quotes[0].style.display = 'none';
quotes[0].style.visibility = 'hidden';
quotes[1].style.display = 'none';
quotes[1].style.visibility = 'hidden';
quotes[2].style.display = 'none';
quotes[2].style.visibility = 'hidden';
quotes[3].style.display = 'none';
quotes[3].style.visibility = 'hidden';
quotes[4].style.display = 'none';
quotes[4].style.visibility = 'hidden';
quotes[5].style.display = 'none';
quotes[5].style.visibility = 'hidden';

theQuote.style.display = 'block';
theQuote.style.visibility = 'visible';

}
/* END random quote rotation function */



/* BEGIN countdown function for rotating the random quotes */
var countDownInterval = 5;
var countDownTime = countDownInterval+1;

function countDown() {

countDownTime--;

	if (countDownTime <= 0) {
		countDownTime = countDownInterval;
		clearTimeout(counter);
		rotatequotes();
		return;
	}

counter = setTimeout("countDown()", 1000);

}
/* END countdown function for rotating the random quotes */



/* BEGIN 'next' and 'previous' function */
function display(num) {

var theQuote = document.getElementById('quote'+num);

var quotes=new Array()
quotes[0] = document.getElementById('quote1');
quotes[1] = document.getElementById('quote2');
quotes[2] = document.getElementById('quote3');
quotes[3] = document.getElementById('quote4');
quotes[4] = document.getElementById('quote5');
quotes[5] = document.getElementById('quote6');

quotes[0].style.display = 'none';
quotes[0].style.visibility = 'hidden';
quotes[1].style.display = 'none';
quotes[1].style.visibility = 'hidden';
quotes[2].style.display = 'none';
quotes[2].style.visibility = 'hidden';
quotes[3].style.display = 'none';
quotes[3].style.visibility = 'hidden';
quotes[4].style.display = 'none';
quotes[4].style.visibility = 'hidden';
quotes[5].style.display = 'none';
quotes[5].style.visibility = 'hidden';

theQuote.style.display = 'block';
theQuote.style.visibility = 'visible';

}
/* BEGIN 'next' and 'previous' function */