function init() {
	/* Pick a quote when the pages loads */
	newQuote();
}

/*var remTimer;
function showCourses() {
	document.getElementById("courses").style.display = "block";
	clearTimeout(remTimer);
}

function hideCourses() {
	remTimer = setTimeout('document.getElementById("courses").style.display = "none"; clearTimeout(remTimer);', 1000);
}*/

function toggle(elem) {
	if (document.getElementById(elem).style.display == "block") {
		document.getElementById(elem).style.display = "none";
		if (elem == "training") {
			document.getElementById("courses").style.display = "none";
		}
	} else {
		document.getElementById(elem).style.display = "block";
	}
}

function newQuote() {
	var quotes = new Array();
	
	/*  Add new quotes here. Syntax:
	**  quotes[x] = ["quote", "author"];
	**  Quotes are displayed: "quote" --author
	**
	**  If you remove quotes from the list, renumbering 
	**  the others is recommended, but not necessary.
	*/
	quotes[0] = ["Peace comes from being able to contribute the best that we have, and all that we are, toward creating a world that supports everyone. But it is also securing the space for others to contribute the best that they have and all that they are.", "Hafsat Abiola"];
	quotes[1] = ["If you want to make peace, you don't talk to your friends. You talk to your enemies.", "Moshe Dayan"];
	quotes[2] = ["Progress in mediation comes swiftly for those who try their hardest.", "Patanjali"];
	quotes[3] = ["You have to listen to not only what is being said, but what is not said &#150; which is often more important than what they say.", "Kofi Annan"];
	quotes[4] = ["Nothing could be worse than the fear that one had given up too soon, and left one unexpended effort that might have saved the world.", "Jane Addams"];
	quotes[5] = ["We slowly learn that life consists of processes as well as results, and that failure may come quite as easily from ignoring the adequacy of one's method as from selfish or ignoble aims.", "Jane Addams"];
	quotes[6] = ["The easiest kind of relationship is with ten thousand people, the hardest is with one.", "Joan Baez"];
	quotes[7] = ["A conclusion is simply the place where someone got tired of thinking.", "Arthur Block"];
	quotes[8] = ["There is no time left for anything but to make peace work a dimension of our every waking activity.", "Elise Boulding"];
	quotes[9] = ["To listen well, is as powerful a means of influence as to talk well, and is as essential to all true conversation", "Chinese Proverb"];
	quotes[10] = ["If we don't change the direction we are headed, we will end up where we are going.", "Chinese Proverb"];
	quotes[11] = ["When we change the way we look at things, the things we look at change.", "unknown"];
	quotes[12] = ["The opposite of a fact is a falsehood, but the opposite of one profound truth may very well be another profound truth.", "Neils Bohr"];
	quotes[13] = ["It is not the strongest of the species that survive, nor the most intelligent, but the ones most responsive to change.", "Charles Darwin"];
	quotes[14] = ["Courage is not the absence of fear, but rather the judgment that something else is more important than fear.", "unknown"];
	quotes[15] = ["To listen a soul into disclosure and discovery is the greatest service one human being can do for another.", "Quaker saying"];
	quotes[16] = ["You cannot solve a problem from the same consciousness that created it.", "Albert Einstein"];
	quotes[17] = ["Values are like fingerprints. Nobody's are the same, but you leave 'em all over everything you do.", "Elvis Presley"];
	quotes[18] = ["Ask yourself whether your needs are getting met by continuing in the manner you have begun. If not, a new approach is in order.", "Shari Bandes"];
	quotes[19] = ["Peace cannot be kept by force. It can only be achieved by understanding.", "Albert Einstein"];
	quotes[20] = ["Courage is what it takes to stand up and speak. Courage is also what it takes to sit down and listen.", "Winston Churchill"];
	quotes[21] = ["The ultimate measure of a person is not where one stands in moments of comfort and convenience, but where one stands in times of challenge and controversy.", "Martin Luther King Jr."];
	quotes[22] = ["You can't lead anyone else further than you have gone yourself.", "Gene Mauch"];
	quotes[23] = ["Respectful dialogue, in the interest of searching for more complete truth, is considerably more productive than arguing for the purity of position.", "Gerard Vanderhaar"];


	/***** Do NOT change any of the following code. You might break the page. *****/
	
	var thisQuote = quotes[Math.round(Math.random() * (quotes.length - 1))];
	
	/* Check if the quote exists */
	if (thisQuote != undefined) {
		/* Display the quote on the page */
		document.getElementById("quote").innerHTML = "&#8220;" + thisQuote[0] + "&#8221;<br />&#151;" + thisQuote[1];
	} else {
		/* Get a new quote if there was a mistake in numbering and it does not exist */
		newQuote();
	}
}

function foo() {
	/* Empty function */
}