/* JavaScript Document

Developed by: 
	Web Solutions
	April 2009
For:
	Rotating the quote on the CMHI homepage.
Rights:
	May be used, modified, re-distributed freely dependant that alterations of the manner in which the code behaves
	is well documented to maintain ease of use.
*/


function quoteToUse(quoteNum){			

/* !! The following code is where you enter your quotes. Quote text must be surrounded in quotes and commas must separate items.*/
		
	var randomQuotes = new Array("Home is the place where when you have to go there, they have to take you in...<br />&mdash;Robert Frost",
							   	"You already are a medical home... it is up to you how great you want it to be.<br />&mdash;W. Carl Cooley, MD, Medical Director, CMHI",
								"Thank you for making your tools available--it makes getting things started a whole lot easier!<br />Carol Endo, Emanuel Children's Clinic",
								"Care plans used at school meetings help in the coordination of care, <br />Patty Couture", 
							   "A Medical Home is one of the critical building blocks of health care reform. The future of pediatrics lies in transformed primary care....Jeanne McAllister, CMHI Director"
							   	);
	quoteDisplayed = randomQuotes[quoteNum];
	return quoteDisplayed;
	}
	
	
// !!IMPORTANT!! enter the total number of quotes here. 
numItems = 5;



/*  Make No Other Changes   */	
function getQuoteNum(){	
			var quoteNum = Math.floor(Math.random()*numItems) + 0;
			
			if(quoteNum >= numItems){
				quoteNum = 0;
				}
return quoteNum;
}
	



