// JavaScript Document

function shout() {
	alert("Test!");
}

function insertQuote() {
	var quoteNum = Math.floor(Math.random()*quotes.length);
	//document.write(quotes.length + "<br />" + quoteNum + "<br />");
	document.write(quotes[quoteNum]);
	//document.write("<br />" + author[quoteNum]);	
	document.write('<p><span class="attributee">- ' +author[quoteNum]+'</span></p>');
}

quotes = new Array();
author = new Array();

//Quotes
quotes[0] = "If you give money, spend yourself with it.";
author[0] = "Henry David Thoreau"

quotes[1] ="It only takes a small group of citizens to change the world, indeed it's the only thing that ever has.";
author[1] = "Margaret Meade";

quotes[2] = "A nation that continues year after year to spend more money on military defense than on programs of social uplift is approaching spiritual doom.";
author[2] = "Martin Luther King, Jr.";

quotes[3] = "I have the audacity to believe that people everywhere can have three meals a day for their bodies, education and culture for their minds, and dignity, quality, and freedom for their spirits. I believe that what self-centered men have torn down, other-centered men can build up.";
author[3] = "Martin Luther King, Jr.";

quotes[4] = "You give but little when you give of your possessions. It is when you give of yourself that you truly give.";
author[4] = "Kahlil Gibran";

quotes[5] = "It's not how much we give but how much love we put into giving.";
author[5] =  "Mother Teresa";

quotes[6] = "Seek joy in what you give not in what you get.";
author[6] = "Anonymous";

quotes[7] = "I hate the giving of the hand unless the whole man accompanies it.";
author[7] = "Ralph Waldo Emerson"

quotes[8] =  "You cannot do all the good the world needs, but the world needs all the good you can do.";
author[8] =  "Anonymous"

quotes[9] = "The test of a civilization is the way that it cares for its helpless members.";
author[9] = "Pearl Buck"

quotes[10] = "Common folk, not statesmen, nor generals nor great men of affairs, but just simple plain men and women, can do something to build a better, peaceful world. The future hope of peace lies with such personal service.";
author[10] = "Henry Cadbury";

quotes[11] = "How lovely to think that no one need wait a moment, we can start now, start slowly changing the world!";
author[11] = "Anne Frank";

quotes[12] = "You must be the change you wish to see in the world.";
author[12] = "Mahatma Gandhi";

quotes[13] = "Do what you can, with what you have, where you are.";
author[13] = "Theodore Roosevelt";

quotes[14] = "Piling up zeros in your bank account, or cars in your driveway, won't in and of itself make you successful. Rather, true success is based on a constant flow of giving and receiving. In fact, if you look up affluence in the dictionary, you'll see its root is a Latin phrase meaning 'to flow with abundance.' So in order to be truly affluent, you must always let what you have received flow back into the world.";
author[14] = "Russell Simmons"

quotes[15] = "The great use of life is to spend it for something that will outlast it.";
author[15] = "William James"

quotes[16] = "Never think you need to apologize for asking someone to give to a worthy cause, any more than as though you were giving him or her an opportunity to participate in a high-grade investment. The duty of giving is as much his or hers as is the duty of asking yours.";
author[16] = "John D. Rockefeller, Jr.";

/*
quotes[17] = "I have learned that you should not go through life  with a catchers mitt on both hands.  you need to be able to throw something back.";
author[17] = "Maya Angelou";

*/

pics = new Array();

pics[0] = "images_twoKidsSmiling.jpg";
pics[1] = "images_hands.jpg";
pics[2] = "images_boy.jpg";
pics[3] = "collage_01.jpg";
pics[4] = "collage_02.jpg";
pics[5] = "collage_04_culture.jpg";
pics[6] = "collage_05_3rdworld.jpg";
pics[7] = "images_children.jpg";
pics[8] = "images_couple.jpg";
pics[9] = "images_diversity.jpg";
pics[10] = "images_girlwalking.jpg";
pics[11] = "images_homeless.jpg";
pics[12] = "images_polarBear.jpg";
pics[13] = "images_pollution.jpg";
pics[14] = "images_poverty.jpg";
pics[15] = "images_polarBear.jpg";
pics[16] = "images_polarBear.jpg";

function insertPic() {
	var picNum = Math.floor(Math.random()*pics.length);
	document.write('<img name="" src="images/' + pics[picNum] + ' " width="340" height="200" ' + ' />');
}