var curIndx = 0;
var blurbText =  new Array();
blurbText[0] = "Must Read";
blurbText[1] = "From beginning to end, this book grabs you - Great characters and story line.";
blurbText[2] = "A very engaging book. Ross gives you the real deal. Trust and betrayal, death and debauchery...";
blurbText[3] = "On a scale of 1 to 10...this book rates 11.";
blurbText[4] = "James Ross delivers an astounding story of corruption and deceit. An excellent read...gripping until the very end."
blurbText[5] = "Ross does a very nice job with the parallel between life and the game of golf."
blurbText[6] = "You won't want to put this book down until justice is done!"
blurbText[7] = "...a complex story involving fraud, egotism and sleazy characters...three key ingredients for a highly entertaining and engrossing book."
blurbText[8] = "James Ross does an incredible job bringing the characters to life."

blurbCnt = blurbText.length - 1;

function pgInit() { 
	sDiv = document.getElementById('quotes');
	fadeIn = new YAHOO.util.Anim(sDiv, { opacity: {to: 1} }, .75 );
	fadeOut = new YAHOO.util.Anim(sDiv, { opacity: {to: 0} }, .75);
	doFadeIn();
}

function doFadeIn() {
	fadeIt();
	fadeIn.animate();
	setTimeout("doFadeOut()",4000);
}

function doFadeOut() {
	fadeOut.animate();
	setTimeout("doFadeIn()",1000);
}
	
function fadeIt() {
	document.getElementById('quotes').innerHTML = blurbText[curIndx];
	if (curIndx == blurbCnt) {
		curIndx = 0;
	} else {
		curIndx++;
	}
}

YAHOO.util.Event.on(window, 'load', pgInit);