
///////////////////////////////////////////////////////////////////////////////////////////////
/* 	ponder.js
	copyright: www.financial-spread-betting.com 
 
 	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(

	'John Montague, the Earl of Sandwich, was a man of doubtful integrity and a compulsive gambler who lived in the 1700s. He was so reluctant to leave a card game even for a meal that he had a servant bring him a piece of meat between two slices of bread so he could eat with one hand and play cards with the other. The new invention was dubbed...the sandwich. ', 
	'Simon Cawkwell aka Evil Knievil, a famous spreadbetter warned in Nov 2007 that the shares in Northern Rock shares would be worth 5p and that the banks woes represented one of the greatest shorting opportunity he had ever seen.  He backed his own advice and made his usual 1m profit.  ',
	'Did you know that ten years ago most spread betting providers would have required you to deposit a minimum of &pound;5,000 to open an account?  Not only that but you would have had to demonstrate sufficient trading experience.  Today, there are fewer restrictions in place and with the advent of stop losses anyone can open a spread betting account with as little as &pound;100.  ',
	'Did you know that currencies of resource-rich countries like Australia and Canada tend to do well when the values of their mineral deposits appreciate?  The collapse in commodity prices during the second half of 2008 sent the Australian dollar crashing from close to parity to below $0.60 against the US dollar.  ',
	'Remember that a bear market will give back in one month what a bull market has taken three months to build.  ',
	'The deepest secret for the trader is to subordinate his will to the will of the market. The market is truth as it reflects all forces that bear upon it. As long as he recognizes this he is safe.  ',
	'If you do not know who you are, the markets are an expensive place to find out.  ',
	'If I had eight hours to chop down a tree, I would spend six hours sharpening my axe. - Abraham Lincoln. I like this maxim, because it is similar to trading: Research and learning are very important. Preparation for trading takes much longer than executing and watching the trade.  ',
	'The market has far more patience than the majority of traders. There is an old saying that the market will do whatever it takes to drive the largest amount of traders crazy. Trends can persist as long as there are traders fighting them. Do not fight the tape.  ',
	'Trading drunk, high or hung over or starving is unprofessional, adds additional risk and sets you up for bad luck.  ',
	'Keep a positive attitude, no matter how much you lose.  In trading as in fencing there are the quick and the dead.  ',
	'The path to success consists of knowing your outcome, taking action, knowing what results you are getting, and having the flexibility to change until you are successful - Anthony Robbins.  ',
	'It was in the cult 1987 film, Wall Street, that the hero Bud Fox told the film s star character, Gordon Gekko: - You once told me, don t get emotional about stock. Don t! The bid is 16 1/2 and going down. As your broker, I advise you to take it. - It turns out that this is excellent risk management advice. Of all the skills to learn in financial speculation, taking losses is probably the hardest because - just like Gekko - we do get emotional about prices.  ',
	'Markets misprice stocks all of the time, if they did not there would be no opportunity to make any profit out of share dealing. - The market is like a voting machine, tallying up which firms are popular and unpopular. But in the long run, the market is like a weighing machine, assessing the substance of a company - Benjamin Graham  ',
	'Spreadbetters propency to speculate on individual shares rises when they feel that markets are set to rise.  The proportion of IG clients doing this was down to 11 per cent in February 09 but had reached 23 per cent in May, although that is still some way below the 40 per cent seen at the height of the bull market which ended in 2007.  ',
	'More than 6,000 stocks are listed in the USA compared to just under 3,000 on the London Stock Exchange.  According to the World Federation of Exchanges, the volume of shares traded in the US was approximately $3.5 trillion in August alone compared to just $0.24 trillion in the UK during the same period.  '	
);





/*
	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(++Numberr > Statements.length - 1) Numberr = 0;
	if (outputtype==0)
	document.write(Statements[Numberr])
	else if (document.getElementById)
	document.getElementById("ponder").innerHTML=Statements[Numberr];
}


//  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 Numberr = GetRandomNumber(0, Statements.length - 1);







