// This script generates and displays the random quotes

var counter = 0;
var quote = new Array(41)

quote[0] = "<em>Pure and complete sorrow is as impossible as pure and complete joy.</em><br />- Leo Tolstoy";
quote[1] = "<em>Blessed are they that mourn, for they shall be comforted.</em><br />- Matthew 5:4";
quote[2] = "<em>Never to suffer would be never to have been blessed.</em><br />- Edgar Allan Poe";
quote[3] = "<em>'On with the dance! Let joy be unconfined' is my motto, whether there's any dance to dance or joy to unconfine.</em><br />- Mark Twain";
quote[4] = "<em>Treasure the love that you receive above all. It will survive long after your gold and good health have vanished.</em><br />- Og Mandino";
quote[5] = "<em>I have spent my days stringing and unstringing my instrument, while the song I came to sing remains unsung.</em><br />- Rabindranath Tagore";
quote[6] = "<em>Do the thing and you will have the power.</em><br />- Ralph Emerson";
quote[7] = "<em>Our greatest business in life is not to see what lies dimly at a distance, but to do what lies clearly in mind.</em><br />- Thomas Carlyle";
quote[8] = "<em>You can't build a reputation on what you're going to do.</em><br />- Henry Ford";
quote[9] = "<em>Action is the antidote to dispair.</em><br />- Joan Baez";
quote[10] = "<em>Don't be afraid to tak a big step if one is indicated. You can't cross a chasm in two small jumps.</em><br />- David George";
quote[11] = "<em>The great end of lige is not knowledge, but action.</em><br />- Thomas Fuller";
quote[12] = "<em>Action may not always bring happiness, but there is no happiness without action.</em><br />- Benjamin Disraeli";
quote[13] = "<em>Don't wait for a light to appear at the end of the tunnel, stride down there...and light the bloody thing yourself.</em><br />- Sara Henderson";
quote[14] = "<em>Character consists of what you do on the third and fourth tries.</em><br />- James Michener";
quote[15] = "<em>The love of life is necessary to the vigorous prosecution of any undertaking.</em><br />- Dr. Samuel Johnson";
quote[16] = "<em>Go confidently in the direction of your dreams! LIve the life you've imagined.</em><br />- Henry Thoreau";
quote[17] = "<em>The future belongs to those who believe in the beauty of their dreams.</em><br />- Eleanor Roosevelt";
quote[18] = "<em>Attitude determines altitude.</em><br />- unknown";
quote[19] = "<em>There is nothing either good or bad, but thinking makes it so.</em><br />- William Shakespeare";
quote[20] = "<em>You can't expect people to look eye to eye with you if you are looking down on them.</em><br />- unknown";
quote[21] = "<em>You can tell more about a person by what he says about others than you can by what others say about him.</em><br />- unknown";
quote[22] = "<em>A man never likes you so well as when he leaves your company liking himself.</em><br />- Dale Carnegie";
quote[23] = "<em>People don't care how much you know, until they know how much you care.</em><br />- unknown";
quote[24] = "<em>The only job where you start at the top, is digging a hole.</em><br />- unknown";
quote[25] = "<em>Knowledge is proud that she knows so much; Wisdom is humble that she knows no more.</em><br />- Cowper";
quote[26] = "<em>Once the game is over, the king and the pawn go back in the same box.</em><br />- unknown";
quote[27] = "<em>Don't be so humble; you're not that great.</em><br />- Golda Meir";
quote[28] = "<em>Smile: if you can't lift the corners, let the middle sag.</em><br />- unknown";
quote[29] = "<em>A smile is an inexpensive way to improve your looks.</em><br />- unknown";
quote[30] = "<em>All labor that uplifts humanity has dignity and importance and should be undertaken with painstaking excellence.</em><br />- Dr. Martin Luther King Jr.";
quote[31] = "<em>The time to repair the roof is when the sun is shining.</em><br />- John F. Kennedy";
quote[32] = "<em>I am not discouraged, because every wrong attempt discarded is another step forward.</em><br />- Thomas A. Edison";
quote[33] = "<em>No bird soars too high if he soars with his own wings.</em><br />- William Blake";
quote[34] = "<em>Shoot for the moon. Even if you miss, you'll land among the stars.</em><br />- Les Brown";
quote[35] = "<em>Don't bother just to be better than your contemporaries or predecessors. Try to be better than yourself.</em><br />- William Faulkner";
quote[36] = "<em>Advance, and never halt, for advancing is perfection. Advance and do not fear the thorns in the path, for they draw only corrupt blood.</em><br />- Kahlil Gibran";
quote[37] = "<em>The entrepreneur is essentially a visualizer and an actualizer... He can visualize something, and when he visualizes it he sees exactly how to make it happen.</em><br />- Robert L. Schwartz";
quote[38] = "<em>The roots of true achievement lie in the will to become the best that you can become.</em><br />- Harold Taylor";
quote[39] = "<em>If you have built castles in the air, your work need not be lost; that is where they should be. Now put the foundations under them.</em><br />- Henry David Thoreau";
quote[40] = "<em>Keep away from people who try to belittle your ambitions. Small people always do that, but the really great make you feel that you, too, can become great.</em><br />- Mark Twain";

function showQuote() {	
	index = Math.floor(Math.random() * quote.length);
	if (counter < 5) {
		document.getElementById('quote_text').innerHTML = quote[index];
		if (document.layers) {
			document.layers['quote'].backgroundImage = 'url(/images/quote_balloon.gif)';
		}
		else if (document.all) {
			document.all['quote'].style.backgroundImage = 'url(/images/quote_balloon.gif)';
		}
		else if (document.getElementById) {
			document.getElementById('quote').style.backgroundImage = 'url(/images/quote_balloon.gif)';
		}
		counter++;
	} else {
		document.getElementById('quote_text').innerHTML = "I'm tired, try again later!<br /><br />For now, check out the rest of the site!";
	}
	return false;
}