

///////////////////////////////////////////////////////////////////////////////////////////////
/* 	ponder.js
	Code was created by C. Eton. Statement author unknown.  
 
 	Only 1 item need to be edited:

	1.  The Statements array variable.

*///////////////////////////////////////////////////////////////////////////////////////////////



///////////////////////////////////////////////////////////////////////////////////////////////
// List the statements to display.  Add statements as necessary.  


var Statements = new Array(

	'&#8220;It isn&#8216;t possible to put into words how much my family and I appreciate the gentle care and concern with which you took my mom under your wings.&#8221;<br /><br /> <span>&raquo; Sally H.</span>',
	'&#8220;I know I have told you before how wonderful HillHouse is, and I mean it. It is so very full of LIFE and LOVE and CARING, and we who benefit are so very grateful.&#8221;<br /><br /> <span>&raquo; Susan G.</span>',
	'&#8220;Words couldn&#8216;t express how appreciative I am for the care, concern, friendship and respect shown my mother while she was a resident at HillHouse. We both agreed that it was a perfect place for her to live&#8212;thanks to your professional, kind and understanding staff.&#8221;<br /><br /> <span>&raquo; Fran S.</span>',
	'&#8220;HillHouse is an organization in which genuine caring and love seems to permeate all who serve the residents. This strikes me as being rare indeed and it is a tribute to all of you. Patience, forbearance, cheerfulness: they are all present, and seemingly all of the time.&#8221;<br /><br /> <span>&raquo; Family of Walter and Jane E.</span>',
	'&#8220;I want to thank you for the exceptional care you gave L. during his stay with you. I was always favorably impressed with the friendliness and care and concern shown by each of the workers I encountered.&#8221;<br /><br /> <span>&raquo; Norma C.</span>',
	'&#8220;We are so grateful to every single person who came in contact with our mother&#8212; from the administrator, housekeepers, dietary folks, all of the nurses and aide staff. You cared for her with tenderness, dignity and compassion. We could not have asked for more patience, understanding or expert care. You all helped us and her to make a difficult adjustment. We are so thankful for each of you and the home you provide for those we love.&#8221;<br /><br /> <span>&raquo; Family of Jean V.</span>',
	'&#8220;From the moment I stepped into HillHouse I knew that I had found a &#8216;home&#8217; for my Dad. It wasn&#8216;t the interior design, although it is beautiful. It was all of you. You treat the residents with respect, dignity and love.&#8221;<br /><br /> <span>&raquo; Family of Ed S.</span>',
	'&#8220;My mother was correct when she would say that she and Dad had &#8216;landed in the lap of luxury.&#8217; She meant the whole environment and setting (her great view out the windows) were perfect, with extraordinary people to match. I could not agree more and I doubt there is another place like HillHouse anywhere.&#8221;<br /><br /> <span>&raquo; Carol S.</span>'
);


/*
	GetStatement( ) is the primary function.  It assumes the following:
	
	1.  The HTML file contains a form named "statementform".
	2.  Within the statement form, there is a textarea or textbox named "statement".               */

function GetStatement(outputtype) //modified by javascriptkit.com to either write out result or set innerHTML prop
{
	if(++Number > Statements.length - 1) Number = 0;
	if (outputtype==0)
	document.write(Statements[Number])
	else if (document.getElementById)
	document.getElementById("quotes_home").innerHTML=Statements[Number];
}


//  The GetRandomNumber( ) function extracts a random number within a given range.


function GetRandomNumber(lbound, ubound) 
{
	return (Math.floor(Math.random() * (ubound - lbound)) + lbound);
}


// The Number variable keeps track of which statement to display.  It will start at a random point.                

var Number = GetRandomNumber(0, Statements.length - 1);






