/*
	quoteload.js - JavaScript Function Library - Data load for quotes
	
	Author: Kevin P. Wojdak (http://www.wojzworld.com)


*/ 

// Data Structure
function quoteObj(quot, auth){
	this.quote = quot;
	this.author = auth;
}

var quotes = new Array();

quotes[0] = new quoteObj(
	'A day without wine is like a day without sunshine',
	'Louis Pasteur'
);

quotes[1] = new quoteObj(
	'Compassion for yourself translates into compassion for others',
	'Suki Jay Munsell'
);

quotes[2] = new quoteObj(
	'Courage does not always roar. Sometimes, it is the quiet voice at the end of the day saying, \'I will try again tomorrow.\'',
	'Anonymous'
);

quotes[3] = new quoteObj(
	'I would rather have thirty minutes of wonderful than a lifetime of nothing special.',
	'Julia Roberts in the movie \'Steel Magnolias\''
);

quotes[4] = new quoteObj(
	'If she puts the hum in your hummer, drive her home.',
	'MS Bites on \'Braintalk Communities\''
);

quotes[5] = new quoteObj(
	'Be who you are and say how you feel because those who mind don\'t matter and those who matter don\'t mind.',
	'Dr. Seuss'
);

quotes[6] = new quoteObj(
	'Always Remember.... When life hands you lemons, always ask for tequila and salt!',
	'Unknown'
);

quotes[7] = new quoteObj(
	'Trust your hunches.  They\'re usually based on facts filed away just below the conscious level.',
	'Dr. Joyce Brothers'
);

quotes[8] = new quoteObj(
	'Luck is a matter of preparation meeting opportunity.',
	'Oprah Winfrey'
);

quotes[9] = new quoteObj(
	'The time is always right to do what is right.',
	'Martin Luther King, Jr.'
);

quotes[10] = new quoteObj(
	'The highest reward for a person\'s toil is not what they make for it, but what they become by it.',
	'John Ruskin'
);

quotes[11] = new quoteObj(
	'Truth has no special time of its own.  Its hour is now - always.',
	'Albert Schweitzer'
);

quotes[12] = new quoteObj(
	'A real friend is one who walks in when the rest of the world walks out.',
	'Walter Winchell'
);

quotes[13] = new quoteObj(
	'Statistics are no substitute for judgement.',
	'Henry Clay'
);

quotes[14] = new quoteObj(
	'Kind words can be short and easy to speak, but their echoes are truly endless.',
	'Mother Teresa'
);

quotes[15] = new quoteObj(
	'Meetings are indispensable when you don\'t want to do anything.',
	'John Kenneth Galbraith'
);

quotes[16] = new quoteObj(
	'The difference between the impossible and the possible lies in a person\'s determination.',
	'Tommy Lasorda'
);

quotes[17] = new quoteObj(
	'Education is learning what you didn\'t even know you didn\'t know.',
	'Daniel J. Boorstin'
);

quotes[18] = new quoteObj(
	'Any child can tell you that the sole purpose of a middle name is so he can tell when he\'s really in trouble.',
	'Dennis Fakes'
);

quotes[19] = new quoteObj(
	'There ain\'t no surer way to find out whether you like people or hate them than to travel with them.',
	'Mark Twain'
);

quotes[20] = new quoteObj(
	'Correction does much, but encouragement does more.',
	'Goethe'
);

quotes[21] = new quoteObj(
	'Life is far too important a thing ever to talk seriously about.',
	'Oscar Wilde'
);

quotes[22] = new quoteObj(
	'Do not fear death so much, but rather the inadequate life.',
	'Bertolt Brecht'
);

quotes[23] = new quoteObj(
	'Writing well means never having to say, "I guess you had to be there."',
	'Jef Mallett'
);

quotes[24] = new quoteObj(
	'The skill of writing is to create a context in which other people can think.',
	'Edwin Schlossberg'
);

quotes[25] = new quoteObj(
	'Everything has its beauty but not everyone sees it.',
	'Confucius'
);

quotes[26] = new quoteObj(
	'I hear and I forget. I see and I remember. I do and I understand.',
	'Confucius'
);

quotes[27] = new quoteObj(
	'Respect yourself and others will respect you',
	'Confucius'
);



//+----------------------------------------------------------------------------
//  Function:       getQuote
//  Author:         Kevin P. Wojdak
//  Created:        September 2005
//  Description:    Retrieves a single random quote from the data load.
//                  
//  Arguments:      none
//  Returns:        comma delimited string containing quote and author data
// 
//  Note:           
//+----------------------------------------------------------------------------
//
function getQuote () {

	var pullQuote = getRandomNum(0, quotes.length-1);
	var quote = quotes[pullQuote].quote;
	var author = quotes[pullQuote].author;
	return quote + "|" + author;
}


/*
quotes[] = new quoteObj(
	'',
	''
);
*/
