/* 
   New Perspectives on HTML and XHTML
   Case Problem 2

   Name: Charales C. Spencer
   Date:  11/08/07
*/

var randValue = randInt(15);
var quoteTxt = getQuote(randValue);
function randInt(n) {
	
						var rNum = Math.ceil(Math.random()*n);
						return rNum;	
						}

	function getQuote(qNum)	{
						var mtQuotes = new Array();

						mtQuotes[1] = "I smoke in moderation, only one cigar at a time. <em><small>- Mark Twain</small></em>";
						mtQuotes[2] = "Be careful of reading health books, you just might die of a misprint. <em><small>- Mark Twain</small></em>";
						mtQuotes[3] = "Man is the only animal that blushes or needs to.<em><small> - Mark Twain</small></em>";
						mtQuotes[4] = "Clothes make the man. Naked people have little or no influence on society.<em><small> - Mark Twain</small></em>";
						mtQuotes[5] = "One of the most striking differences between a cat and a lie is that a cat has only 	nine lives.<em><small> - Mark Twain</small></em>";
                        mtQuotes[6] = "An enemy takes up more space in our head Than a friend in our heart.";
                        mtQuotes[7] = "You feel Happiness through what you experience Not because of what you are.";
                        mtQuotes[8] = "The sun dries without prejudice The garments of the rich and poor";
                        mtQuotes[9] = "The cheapest facelift - Is a laugh";
                        mtQuotes[10] = "Should you encounter a problem along your way Change your direction, but not your destination";
                        mtQuotes[11] = "Upbringing is a result of love, patience and wisdom The last two allow love to rule.";
                        mtQuotes[12] = "Not knowing something is normally a Milestone on the way to knowledge";
                        mtQuotes[13] = "Don't live in the past, Don't dream of the future, But concentrate on the Present";
                        mtQuotes[14] = "Reach for the sun, And should you miss, You will still end up amongst the stars";
                        mtQuotes[15] = "The greatest change will happen when You stop believing that you need to change";

						return mtQuotes[qNum];
						}
