<!--
//*
//* To add any quote, you must supply all three, quoteText, quoteAuthor, and quoteSchool.
//*
var quoteSchool  = new Array(	
// #1
"State of CT, DMR",
// #2
"CPA",
// #3
"Independent Consultant and Director, Pampered Chef",
// #4
"Life's Little Moments",
// #5
"State of CT, DMR",
// #6
"CPA",
// #7
"Independent Consultant and Director, Pampered Chef",
// #8
"Life's Little Moments",
// #9
"",
// #10
""
);

var quoteAuthor  = new Array(
// #1
"Ann Marino, RN",
// #2
"Anthony Ciliberti",
// #3
"Suzanne Perucci",
// #4
"Michelle Averitt",
/// #5
"Ann Marino, RN",
// #6
"Anthony Ciliberti",
// #7
"Suzanne Perucci",
// #8
"Michelle Averitt",
// #9
"",
// #10
""
);
									
var quoteText    = new Array(	
// #1
"Overall I would say it was an unqualified success. So much so, in fact, that we had many requests to repeat the program which we did. He displayed a great deal of spontaneity and enthusiasm!",
// #2
"He knows how to get the class involved and he insists on their participation. His humor and personality has a universal appeal to all students.",
// #3
"He spoke, but did not 'perform.'  He was just one of us; speaking to us in terms we could identify with. Everyone was completely tuned in to him for the entire time he spoke.  He never lost the group for a moment.",
// #4
"Hiring Rich as my coach was one of the best decisions I ve made - he has this amazing ability to go straight to what really matters, never accepting I can't, I won't or even I'll try - he's all about ACTION. <br><br>With his encouragement and honesty he's shown me that I have always had everything I needed to make my life a success. Changing my life didn't seem possible - but working with Rich made it possible. ",
// #5
"Overall I would say it was an unqualified success. So much so, in fact, that we had many requests to repeat the program which we did. He displayed a great deal of spontaneity and enthusiasm!",
// #6
"He knows how to get the class involved and he insists on their participation. His humor and personality has a universal appeal to all students.",
// #7
"He spoke, but did not 'perform.'  He was just one of us; speaking to us in terms we could identify with. Everyone was completely tuned in to him for the entire time he spoke.  He never lost the group for a moment.",
// #8
"Hiring Rich as my coach was one of the best decisions I ve made - he has this amazing ability to go straight to what really matters, never accepting I can't, I won't or even I'll try - he's all about ACTION. <br><br>With his encouragement and honesty he's shown me that I have always had everything I needed to make my life a success. Changing my life didn't seem possible - but working with Rich made it possible. ",
// #9
"",
// #10
""
);
								

									
//---------------------- DO NOT MODIFY BELOW THIS LINE ---------------------------------------//
var gl_quote 	= '&quot;';
var gl_dash	 	= '-';
var gl_newline = '<br>'; 
var gl_empty 	= '&nbsp;';
var gl_max_tries = 10;
									
									
function writeQuote()
{
	var tmpQuote;
	var tmpAuthor;
	var tmpSchool;
	var tmpBuff;
	var theDate;
	var seconds;
	var attempts = 0;
	var msgCount;
	
	msgCount = getArrayFillLength( quoteText ); 

	if( msgCount == 0 )
	{
		document.write( gl_newline + gl_empty + gl_newline );
		return( false );
	}
	
	msgCount--; //modulus is zero based

	for( i=0; i < gl_max_tries; i++ )
	{
		theDate = new Date();
		index = theDate.getSeconds() % 10;
		
//		alert( "for i=" + i + "::Seconds=" + theDate.getSeconds()+ "::msgCount=" + msgCount +  "::index=" + index );
		
		if( index <= msgCount )
		{
			theDate = null;
			break;
		}
		theDate = null;
	}


	
	if( i == gl_max_tries )
	{
		index = 0;
	}
	tmpQuote	 = quoteText[index];
	tmpAuthor = quoteAuthor[index];
	tmpSchool = quoteSchool[index];

	if( tmpQuote == "" )
	{
		document.write( gl_newline + gl_empty + gl_newline );
		return false;
	}
	if( tmpAuthor == "" )
	{
		tmpAuthor = gl_empty;
	}
	if( tmpSchool == "" )
	{
		tmpSchool = gl_empty;
	}	
	tmpBuff = gl_quote + tmpQuote + gl_quote + 
	          gl_newline + gl_newline + gl_dash + 
				 tmpAuthor + gl_newline + tmpSchool +
				 gl_newline;
	document.write( tmpBuff );		
 	return true;
}

function getArrayFillLength( this_array )
{
	var count = 0;
	
	for( count=0;  count < this_array.length; count++ )
	{
		if( this_array[count] == "" )
		{
			break;
		}
	}
	return( count );	
}
//-->

