

///////////////////////////////////////////////////////////////////////////////////////////////
/* 	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(

	'Everyone has photographic memory; some just don\'t have the film ', 
	'One of the great things about books is sometimes there are some fantastic pictures. -George W. Bush   ',
	'Always remember you\'re unique, just like everyone else. ', 
    'The road to success is always under construction.  ', 
    'Employees are like mules. Some you stand in front of and coax them along with a carrot. Some you stand behind and kick them in the ass. The key to management is        	knowing which mules are which. ', 
	'I am so clever that sometimes I don\'t understand a single word of what I am saying. ', 
    'Dogs have Owners, Cats have Staff. ', 
    'The only thing worse than being talked about is not being talked about. ', 
    'I am ready to meet my Maker. Whether my Maker is prepared for the ordeal of meeting me is another matter.', 
    'When choosing between two evils, I always like to try the one I\'ve never tried before. ', 
    'Life is what happens to you while you\'re busy making other plans  ', 
	'Before you criticize someone, you should walk a mile in their shoes. That way when you criticize them, you are a mile away from them and you have their shoes. ',
	'What does Geronimo yell when he jumps out of a plane? ',
	'Not deciding is deciding ', 
	'Enjoy everything, want nothing ',
	'We are what we think. All that we are arises with our thoughts. With our thoughts, We make the world. ',
	'Habit is either the best of servants or the worst of masters ',
	'Give so much time to self improvement, that you have no time to criticize others ',
	'Somebody should tell us, right at the start of our lives, that we are dying. Then we might live life to the limit ',
	'As you rule your mind you rule the world ',
	'When we want something with all of our, heart the universe conspires to make it so. ',
	'In every adversity there lies a seed of equal or greater benefit. ',
	'Habits are too subtle to notice, until they are too hard to break ',
	'To know and not to use, is not yet to know ',
	'If you don\’t know what you want you end up with a lot you don\’t ',
	'December is the toughest month of the year. Others are july, January, September, april, November, may, march , june, October, august, and February ',
	'The pessimist sees difficulty in every opportunity. The optimist sees the opportunity in every difficulty. ',
	'Silence is golden when you can\'t think of a good answer.',
	'Life is something that happens when you can\'t get to sleep.',
	'Life is what happens to you while you\'re busy making other plans.',
	'The difference between genius and stupidity is that genius has it\'s limits ',
	'A verbal contract isn\'t worth the paper it\'s written on',
	'The length of a film should be directly related to the endurance of the human bladder',
	'The only difference between me and a madman is that I am not mad',
	'I do not take drugs. I am drugs',
	'Rarely is the question asked: Is our children learning?',
	'It\'s clearly a budget. It\'s got a lot of numbers in it.',
	'The most important job is not to be Governor, or First Lady in my case.',
	'If you\'re sick and tired of the politics of cynicism and polls and principles, come and join this campaign',
	'Always do sober what you said you\'d do drunk. That will teach you to keep your mouth shut.',
	'I can resist everything except temptation',
	'Beer is proof that God loves us and wants us to be happy',
	'I hate to advocate drugs, alcohol, violence, or insanity to anyone, but they\'ve always worked for me.',
	'Experience is the name every one gives to their mistakes',
	'as he thinks, so he is. as he continuous to think, so he remains.'
	
);


/*
	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("ponder").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);






