var hexinput = 255; // initial color value.
quotation = new Array()
quotation[0] = '"We are amazed at how reliable Patient Prompt is.  We\'ve really come to depend on it."'
quotation[1] = '"Patient Prompt reduced our Patient No-Shows by over 80% in the first 90 Days..."'
quotation[2] = '"Patient Prompt more than pays for itself each month..."'
quotation[3] = '"Patient Prompt support is excellent, they assisted immediately on any issue we had..."'
quotation[4] = '"You can tell the team at Patient Prompt know their business..."'
quotation[5] = '"Patient Prompts two way capacity has completely automated our office. I am surprised other appointment reminder applications aren\'t designed this way..."'
quotation[6] = '"Their ability to communicate directly with our scheduling system is light years ahead of anything else out there right now..."'
quotation[7] = '"We looked at quite a few applications, none offered the features and capabilities of Patient Prompt..."'
quotation[8] = '"Our patients love it, our staff loves it, and my accountant loves it... that\'s good enough for me..."'
quotation[9] = '"Patient Prompt is really a fantastic example of great customer service!"'
quotation[10] = '"Patient Prompt was recommended by our Practice Consultant and we were not disappointed..."'
quotation[11] = '"I wish 1/4 of the vendors we work with were as responsive and efficient as you..."'
quotation[12] = '"You really make it easy..."'

function fadingtext(){ 
if(hexinput >0) { 
hexinput -=11; // increase color value
document.getElementById("textrotator").style.color="rgb("+hexinput+","+hexinput+","+hexinput+")"; // Set color value.
setTimeout("fadingtext()",100); // 200ms per step
}
else {
hexinput = 255; //reset hex value
}
}

function changetext(){
if(!document.getElementById){return}

var which = Math.round(Math.random()*(quotation.length - 1)); //select random quote
document.getElementById("textrotator").innerHTML = quotation[which]; // and display it

fadingtext();

setTimeout("changetext()",10000); // fiten seconds
}

window.onload = changetext();


//    "''We are amazed at how Patient Prompt at how reliable Patient Prompt is''",
//	"''Patient Prompt has reduced our Patient No-Shows by over 80% in just 90 Days''",
//	"''Patient Prompt more than pays for itself each month''",
//	"''Patient Prompt support is excellent, they assisted immediately on any issue we had.''",
//	"''You can tell the team at Patient Prompt know their business''",
//	"''Patient Prompt's two way capacity has completely automated our office. I am surprised other appointment reminder applications aren’t designed this way''",
//	"''Their ability to communicate directly with our scheduling system is light years ahead of anything out there right now''",
//	"''We looked at quite a few applications, none offered the features, and capabilities of Patient Prompt''",
//	"''Our patient's love it, our staff loves it, and my accountant loves it... that' s good enough for me.''",
//	"''You can tell the team at Patient Prompt know their business''",
//	"''Patient Prompt was recommended by our Practice Consultant, we were not dissappointed''",
//	"''You guys made it really easy...''",
//	"''Patient Prompt is really a fantastic example of great customer service!''",
//	"''I wish 1/4 of the vendors we work with were as responsive and efficient as you.''"

