// JavaScript Document

var myquotes = new Array(
	'&#8220;Distinctive Dental Service helped me correct several crooked teeth and an overbite that was so bad, people didn\'t recognize me by the time I was done with treatment. These people truly work magic!!!&#8221;<span>&#8211; D. Esposito</span>',
	'&#8220;After a childhood sledding accident, I was told that I\'d never have a smile like other people. After a consultation with Dr. Cortes, I\'m on my way to the smile I want!&#8221;<span>&#8211; J. Nash</span>',
	'&#8220;I was worried to bring my child to the dentist for her first appointment. However, Dr. Cortes and his staff were wonderful! They knew exactly how to talk to my child and were very informative with everything we needed to work on.&#8221;<span>&#8211; M. Wilkins</span>' // NOTE: ADD COMMAS TO SEPARATE Testimonials, but Leave the last testimpnial WITHOUT a comma at the end
	);

 
// NOTE: DO NOT CHANGE CODE BELOW
function rotatequote()
{
	thequote = myquotes.shift(); //Pull the top one
	myquotes.push(thequote); //And add it back to the end
	
	document.getElementById('quotetext').innerHTML = thequote;
	// This rotates the quote every 10 seconds.
	// Replace 10000 with (the number of seconds you want) * 1000
	t=setTimeout("rotatequote()",10000);
}

// Start the first rotation.
rotatequote();

