function makeTrainingQuotes(quote,customer,account){
	this.quote = quote;
	this.customer = customer;
	this.account = account;
	this.write = writeTrainingQuotes;
} 

function writeTrainingQuotes(){
	var str = '';
	str += '<blockquote><table cellpadding="0" cellspacing="0" border="0" height="132"><tr><td valign="middle">';
	str += '<h2 style="font-size:14px;margin-bottom:0px;padding-bottom:0px;">&ldquo;' + this.quote + '&rdquo;</h2>';
	str += '<p style="margin-top:2px;padding-top:2px;margin-bottom:0px;padding-bottom:0px;font-size:11px;">&ndash; ' + this.customer + ', ' + this.account + '</p>';
	str += '</td></tr></table></blockquote>';
	return str;
} 

var TrainingQuotesArray = new Array();
TrainingQuotesArray[0] = new makeTrainingQuotes(
	'The instructor really knew his stuff and was very happy to answer my many questions.',
	'Dan Cramer',
	'CHS Inc.').write();

TrainingQuotesArray[1] = new makeTrainingQuotes(
	'The Instructor did an excellent job of conveying the material in an understandable way.',
	'Otto Morales',
	'Dannon USA').write();

TrainingQuotesArray[2] = new makeTrainingQuotes(
	'The instructor was one of the best instructors I have had. He also gave me pointers that fixed three issues on our CommCell during the week of the class! Truly a pleasure having him as an instructor.',
	'Joe Edwards',
	'DC Water and Sewer Authority').write();

TrainingQuotesArray[3] = new makeTrainingQuotes(
	'The instructor was one of the best instructors I have had in a long time. He is incredibly knowledgeable and his personality is well suited to teaching.',
	'Jeff Keenan',
	'Gibraltar Industries').write();

TrainingQuotesArray[4] = new makeTrainingQuotes(
	'The instructor was very good. Her delivery was excellent. She made the class very interesting.',
	'Obi Ndubuisi',
	'Johns Hopkins University').write();

TrainingQuotesArray[5] = new makeTrainingQuotes(
	'The instructor was great and very willing to help out all students who needed assistance.',
	'Tony Wong',
	'Lockheed Martin IT').write();

TrainingQuotesArray[6] = new makeTrainingQuotes(
	'Great instructor-enjoyed the class! He followed up on questions, was knowledgeable and was never boring.',
	'Mark Horning',
	'Markwest Hydrocarbon, Inc.').write();

TrainingQuotesArray[7] = new makeTrainingQuotes(
	'The instructor was a very good and allowed the class to be centered around the needs of my company.',
	'Peter McLaughlin',
	'Momenta Pharmaceuticals').write();

TrainingQuotesArray[8] = new makeTrainingQuotes(
	'To enhance the capabilities of our 7x24 operations staff, we brought CommVault in for CommVault System Administrator training... now offer 7x24 coverage of our Data Center by certified CommVault administrators. Needless to say, our backups have never run better.',
	'Brant Burington',
	'Sharp Systems').write();

TrainingQuotesArray[9] = new makeTrainingQuotes(
	'Completing Commvault&rsquo;s online system administrator course has been an immense help in my day to day duties, and has vastly increased my knowledge and understanding of our existing Commcell.',
	'Eric Scheffler',
	'General Dynamics USA').write();

TrainingQuotesArray[10] = new makeTrainingQuotes(
	'Great instructor! Good resourcing and knowledge. I felt like he wrote the software himself!',
	'Roderick Dotson',
	'VA MHCS').write();

var nIndex = Math.round(Math.random() * TrainingQuotesArray.length);
var timerID = null;
function rotateTrainingQuotes(){
	var len = TrainingQuotesArray.length;
	if (len == 1) {
		document.getElementById('largequote').innerHTML = TrainingQuotesArray[nIndex];
	} else {
		if(nIndex >= len) { nIndex = 0; }
		document.getElementById('largequote').innerHTML = TrainingQuotesArray[nIndex];
		nIndex++;
		timerID = setTimeout('rotateTrainingQuotes()', 6000);
	}
}

function pauseTrainingQuotes() {
	var len = TrainingQuotesArray.length;
	if (len >= 2) {
		if (timerID != null) {
			clearTimeout(timerID);
			timerID = null;
		}
	}
}

function playTrainingQuotes() {
	var len = TrainingQuotesArray.length;
	if (len >= 2) {
		if (timerID == null) {
			timerID = setTimeout('rotateTrainingQuotes()', 5000);
		}
	}
}

rotateTrainingQuotes()
