// homeQuote.js
// Author: Adam Toda

/* This program places the quote text on the Kenny Endo Homepage */

/* GLOBAL VARIABLES */

var authorArray = new Array ("The Oregonian (Continental Harmony commission)",
				"Natural History (North American Taiko Conference report)",
				"The Advertiser (Hawaii Opera Theater collaboration)", 
				"The Morning Call, Pennsylvania",
				"The Japan Society", 
				"New York Times", 
				"Nadir (Tokyo)");

var quoteArray= new Array ("The centerpiece of the evening - was the world premiere of 'Wind, Water, and Wood' which demonstrated in large scale what Endo showed in a solo before the piece: a keen sense of large rhythmic structures and an expansive palette.",
			"Kenny Endo has probably taken taiko the farthest among Americans.",
			"Perhaps Akina's finest stroke of genius was incorporating taiko artist Kenny Endo, whose music wove in and out, supplementing the music, supporting the stage action, and inserting solos.  Endo's voice was one of the best of the evening and his drumming contributions were so successful, they should be added to the score.",
			"an artist and a showman who closed the gap between audience and proscenium with every energetic blow to his instrument.",
			"blends the primitive and traditional with the modern and unconventional", 
			"Virtuosic and often thrillingly choreographed works in Japanese rhythmic forms held together by Japanese, Western, and Middle Eastern influence.", 
			"Earthy, jazzy, and sassy.  While nature inspires and tradition guides, it is Endo's relentless experimentation and deviations from the conventional that jolt. Music that is transcribed directly from the inside- music that comes from the spirit - that is the music that concerns him.");


/* FUNCTIONS */

function setQuote(directory) {
	var quoteNumber = Math.floor(Math.random() * quoteArray.length);
	var quote = quoteArray[quoteNumber];
	var author = authorArray[quoteNumber];
	
	getObject("quoteText").innerHTML = quote;
	getObject("authorText").innerHTML = "- " + author;
}


/* FUNCTION getObject
 * ------------------
 * Helper function used to retrieve objects in web space.  Shorter form
 * of using the document.getElementById command.
 */

function getObject(obj) {
	if (document.getElementById) return document.getElementById(obj);
	else if (document.all) return document.all[obj];
}


/* END OF JAVASCRIPT CODE */
