

///////////////////////////////////////////////////////////////////////////////////////////////
/* 	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(
	'Like this cup, you are full of your own opinions and speculations. How can I show you enlightenment unless you first empty your cup?', 
	'Everything in this life is impermanent', 
	'Is that so?', 
	'Every day is a good day.', 
	'When cold, be thoroughly cold; when hot, be hot through and through.', 
	'The world is vast and wide. Why do you put on your robes at the sound of a bell?', 
	'A broken mirror never reflects again; fallen flowers never go back to the old branches.', 
	'I do not see myself as outside. Why enter?', 
	'Without words, without silence, will you tell me the truth?', 
	'A good horse runs even at the shadow of the whip', 
	'Your questioning is effective. Finish your worship and leave.', 
	'Something must be wrong with the sight. Nothing is gained without seeing.', 
	'How do you know that I do not know that the fishes are enjoying themselves?', 
	'It is not the flag that moves. It is not the wind that moves. It is your mind that moves.', 
	'If you call this a short staff, you oppose its reality. If you do not call it a short staff, you ignore the fact. Now what do you wish to call this?', 
	'Everyday life is the path', 
	'What is the sensation of thinking?', 
	'What is the sensation of not thinking?', 
	'What is the sound of one hand failing to clap?', 
	'Does the idea of Ideal-nature have the Ideal-nature?', 
	'Do not do harm to other beings', 
	'Do not get yourselves entangled with any object, but stand above, pass on, and be free!', 
	'Where is Heaven? Let me ride on this sweet breeze and waft away thither.', 
	'No thought, no reflection, no analysis, no cultivation, no intention; let it settle itself.', 
	'When you pass through, no one can pin you down, no one can call you back. ', 
	'If you try to fail and succeed which have you done?', 
	'The ultimate Path is without difficulty. Just avoid picking and choosing. ', 
	'How can there be self-help groups?', 
	'Let go over a cliff, die completely, and then come back to life -- after that you cannot be deceived. ', 
	'The mind that does not understand is the Ideal. There is no other.', 
	'There are no mundane things outside of Buddhism, and there is no Buddhism outside of mundane things. ', 
	'Learning Zen is a phenomenon of gold and dung. Before you understand it, it is like gold; after you understand it, it is like dung. ', 
	'The path does not belong to the perception world, neither does it belong to the nonperception world.  Cognition is a delusion and noncognition is senseless.', 
	'Was I before a man who dreamt about being a butterfly, or am I now a butterfly who dreams about being a man?', 
	'Does the reverse side also have a reverse side?', 
	'The only Zen you find on tops of mountains is the Zen you bring there', 
	'Zen is not some kind of excitement, but concentration on our usual everyday routine.', 
	'That Was Zen; This Is Tao', 
	'Man stands in his own shadow and wonders why it is dark', 
	'This is not mine, this I am not, this is not my self.', 
	'Externally keep yourself away from all relationships, and internally have no pantings in your heart; when your mind is like unto a straight-standing wall, you may enter into the Path.', 
	'When you are deluded, every statement is an ulcer - when you are enlightened, every word is wisdom.', 
	'The mind that does not understand is the Ideal. There is no other.', 
	'No thought, no reflection, no analysis, no cultivation, no intention; let it settle itself.', 
	'weeds only grow when we dislike them', 
	'Do not wish for perfect health. In perfect health, there is greed and wanting.', 
	'Do not hope for life without problems. An easy life results in a judgmental and lazy mind.', 
	'Accept the anxieties and difficulties of this life', 
	'Do not expect your practice to be clear of obstacles.', 
	'Attain deliverance in disturbances', 
	'No matter how many years you sit doing meditation, you will never become anything special.', 
	'Normally, we do not so much look at things as overlook them.', 
	'The reverse side also has a reverse side.', 
	'Ride your horse along the edge of a sword; hide yourself in the middle of flames.', 
	'All conditioned things are impermanent. Work out your own salvation with diligence.', 
	'God has no religion', 
	'Do not mistake understanding for realization, and do not mistake realization for liberation.', 
	'If you can stop right now, then stop', 
	'In all activities it is only essential to understand ones own mind clearly', 
	'The whole world is a fire pit; attaining what state of mind can you avoid being burned?', 
	'Everyone has a shadow, which never leaves; why cant you step on it?', 
	'Why do fat chance and slim chance mean the same thing? ', 
	'The bright sun is in the sky, shining on everything; why is it blocked by a cloud?', 
	'Just have no mind on things and no things in your mind, and you will naturally be empty and spiritual, tranquil and sublime', 
	'Be master of mind rather than mastered by mind', 
	'Sitting quietly, doing nothing, spring comes, and the grass grows by itself', 
	'Move and the way will open', 
	'Before enlightenment; chop wood, carry water. After enlightenment; chop wood, carry water.', 
	'If the problem can be solved then there is no point in worrying about it, if it canot be solved then worrying will do no good', 
	'Life is more or less the same wherever you are go, because you are there', 
	'The monkey mind has to find something to occupy itself with', 
	'Your mind is like a mirror, when thoughts appear, let them pass like in a mirror', 
	'All things arise and pass away', 
	'Is the glass half full or half empty?', 
	'He who knows does not speak, he who speaks does not know', 
	'The reality that can be defined is not the absolute reality', 
	'Remember today, forget tomorrow, but be changed forever', 
	'Live the life you love, love the life you live', 
	'To give a sheep or cow a large, spacious meadow is the way to control him', 
	'A person without history is like a tree without roots', 
	'When you know nothing, you will understand everything', 
	'Vice can found in everyone but not virtue.', 
	'Everything we do is an act of poetry or a painting if we do it with mindfulness.', 
	'Anger is like leaping into a wonderfully responsive sports car, gunning the motor, taking off at high speed and then discovering the brakes are out of order. ', 
	'Anger is a wind that blows out the lamp of the mind. ', 
	'The gift of Truth excels all other gifts.', 
	'In this world , hatred can never be appeased by hatred. Hatred can only be appeased by love.', 
	'One is the road that leads to worldly gain , one leads to deathlessness - Eternal Bliss', 
	'All conditioned things are impermanent. When one see this is Wisdom, then one becomes dispassionate towards the painful.', 
	'Fools wait for a lucky day, but everyday is a lucky day for an industrious man.', 
	'The secret of happiness lies in mind\'s release from worldly ties.', 
	'The man of little learning grows old like the ox. His body grows but wisdom grows not.', 
	'All tremble at the rod. All fear death. Feeling for others as for oneself, one should neither kill nor cause to kill.', 
	'Vigilance is the path to deathlessness.Negligence is the path to death. The vigilant do not die. The negligent are as if dead already.', 
	'The fool who is aware of his foolishness is wise at least to that extent. But the fool who thinks himself wise is a fool indeed.', 
	'Tolerance, patience and understanding are the highest virtues every man should develop.', 
	'If a stealth bomber crashes in a forest, will it make a sound? ', 
	'Have you ever imagined a world with no hypothetical situations?',
	'Understanding is a three-edged sword.',
	'You seek meaning? Then listen to the music, not the song.',
	'What is need compared to the path?',
	'You are not ready for immortality.',
	'When avalanche has already started, it is too late for the pebbles to vote.',
	'And so it begins.',
	'You do not understand. But you will.',
	'Paranoia is the natural condition of the barbarian',
	'Violence is the last refuge of the incompetent',
	'When I hear the word culture I reach for my pen',
	'After a victory, fasten your helmet more tightly',
	'Tell me: I will forget.  Show me: I will remember.  Involve me: I will understand'
);


/*
	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);







