//--------------- Random Quote ---------------

var random_quote = "";
var random_number = "";

function generaterandom_number() {
  var temp_string = ""
  temp_string += Math.random() * 100000
  return temp_string.substring(2,4)
}

random_number = generaterandom_number();

if (random_number >= "00" && random_number < "05")
{
  random_quote = 'Price is what you pay. Value is what you get.'
}
else if (random_number >= "05" && random_number < "10")
{
  random_quote = 'Never invest in a business you cannot understand.'
}
else if (random_number >= "10" && random_number < "15")
{
  random_quote = 'Look at market fluctuations as your friend rather than your enemy; profit from folly rather than participate in it.'
}
else if (random_number >= "15" && random_number < "20")
{
  random_quote = 'Risk comes from not knowing what you\'re doing.'
}
else if (random_number >= "20" && random_number < "25")
{
  random_quote = 'It\'s far better to buy a wonderful company at a fair price than a fair company at a wonderful price.'
}
else if (random_number >= "25" && random_number < "30")
{
  random_quote = 'If past history was all there was to the game, the richest people would be librarians.'
}
else if (random_number >= "30" && random_number < "35")
{
  random_quote = 'I never attempt to make money on the stock market. I buy on the assumption that they could close the market the next day and not reopen it for five years - by Warren Buffet'
}
else if (random_number >= "35" && random_number < "40")
{
  random_quote = 'Great investment opportunities come around when excellent companies are surrounded by unusual circumstances that cause the stock to be misappraised.'
}
else if (random_number >= "40" && random_number < "45")
{
  random_quote = 'The investor of today does not profit from yesterday\'s growth.'
}
else if (random_number >= "45" && random_number < "50")
{
  random_quote = 'Simply attempt to be fearful when others are greedy and to be greedy only when others are fearful.'
}
else if (random_number >= "50" && random_number < "55")
{
  random_quote = 'Wide diversification is only required when investors do not understand what they are doing.'
}
else if (random_number >= "55" && random_number < "60")
{
  random_quote = 'You only have to do a very few things right in your life so long as you don\'t do too many things wrong.'
}
else if (random_number >= "60" && random_number < "65")
{
  random_quote = 'There\'s no secret, just start early and invest regularly.'
}
else if (random_number >= "65" && random_number < "70")
{
  random_quote = 'In the short term, the market is like a voting machine; but in the long term, the market is like a weighing machine.'
}
else if (random_number >= "70" && random_number < "75")
{
  random_quote = 'Don\'t wait for the bottom, no one knows it.'
}
else if (random_number >= "75" && random_number < "80")
{
  random_quote = 'Stock prices are slaves of earnings, and nothing else.'
}
else if (random_number >= "80" && random_number < "85")
{
  random_quote = 'Time and not timing is the key to equity investment.'
}
else if (random_number >= "85" && random_number < "90")
{
  random_quote = 'A good investment advisor is as important as a good investment.'
}
else if (random_number >= "90" && random_number < "95")
{
  random_quote = 'In hindsight, best investments have proved to be done when done in panic.'
}
else if (random_number >= "95" && random_number < "100")
{
  random_quote = 'In the short term, sentiments rule; but in the long term, its the fundamentals.'
}
else
{
  random_quote = 'Always take care of your losses, and profits would take care of themselves.'
}