// quotebox.js
// Jeff Nguyen
// 
// This program picks a quote at random from a predefined database.

// function definition for Quote Object

function Quote(quip, author) {
	     this.quip = quip;
		 this.author = author;
}

var quips = new Array();



/********************************************************************************
*********************************************************************************/


quips[quips.length++] = new Quote("Without music, life would be a mistake.", "Nietzsche");

quips[quips.length++] = new Quote("Music is the shorthand of emotion.", "Leo Tolstoy");

quips[quips.length++] = new Quote("It would be nice to hear someone accidentally whistle something of mine, somewhere, just once.", "Leonard Bernstein");

quips[quips.length++] = new Quote("When I hear music, I fear no danger. I am invulnerable. I see no foe. I am related to the earliest times, and to the latest.", "Henry David Thoreau");

quips[quips.length++] = new Quote("Music should strike fire from the heart of man, and bring tears from the eyes of woman.", "Ludwig van Beethoven");

quips[quips.length++] = new Quote("Music hath charms to soothe the savage beast.", "James Bramston");

quips[quips.length++] = new Quote("It is cruel…that music should be so beautiful. It has the beauty of loneliness and of pain: of strength and freedom. The beauty of disappointment and never-satisfied love. The cruel beauty of nature, and everlasting beauty of monotony.", "Benjamin Britten");

quips[quips.length++] = new Quote("Music, once admitted to the soul, becomes a sort of spirit, and never dies.", "Edward George Bulwer-Lytton");

quips[quips.length++] = new Quote("Music is a kind of inarticulate, unfathomable speech, which leads us to the edge of the infinite, and impels us for a moment to gaze into that.", "Thomas Carlyle");

quips[quips.length++] = new Quote("There can be no mischief sure when there is music.", "Miguel de Cervantes");

quips[quips.length++] = new Quote("Never did Mozart write for eternity, and it is for precisely that reason that much of what he wrote is for eternity.", "Albert Einstein");

quips[quips.length++] = new Quote("You are the music while the music lasts.", "T.S. Eliot");

quips[quips.length++] = new Quote("Music expresses that which cannot be said and on which it is impossible to be silent.", "Victor Hugo");

quips[quips.length++] = new Quote("Give me a laundry list and I&#8217;ll set it to music.", "Gioacchino Antonio Rossini");

quips[quips.length++] = new Quote("If music be the food of love, play on; / Give me excess of it, that, surfeiting, / The appetite may sicken, and so die.", "William Shakespeare");

quips[quips.length++] = new Quote("Music, of all the arts, has the greatest influence over the passions, and the legislator ought to give it the greatest encouragement.", "Napoleon");

quips[quips.length++] = new Quote("Music is the mediator between the spiritual and the sensual life.", "Ludwig van Beethoven");

quips[quips.length++] = new Quote("Who hears music feels his solitude peopled at once.", "Robert Browning");

quips[quips.length++] = new Quote("See deep enough and you see musically.", "Thomas Carlyle");

quips[quips.length++] = new Quote("The cello is like a beautiful woman who has not grown older, but younger with time, more slender, more supple, more graceful.", "Pablo Casals");

quips[quips.length++] = new Quote("Without music, life is a journey through a desert.", "Pat Conroy");

quips[quips.length++] = new Quote("Music was known and understood before words were spoken.", "Charles Darwin");

quips[quips.length++] = new Quote("The best way to get to know any bunch of people is to go and listen to their music.", "Woody Guthrie");

quips[quips.length++] = new Quote("After silence, that which comes nearest to expressing the inexpressible is music.", "Aldous Huxley");

quips[quips.length++] = new Quote("Music expresses that which cannot be said and on which it is impossible to be silent.", "Victor Hugo");

quips[quips.length++] = new Quote("I never practice; I always play.", "Wanda Landowska");

quips[quips.length++] = new Quote("Music makes more people milder and gentler, more moral and more reasonable.", "Martin Luther");

quips[quips.length++] = new Quote("I can hold a note as long as the Chase National Bank.", "Ethel Merman");

quips[quips.length++] = new Quote("The violinist is that peculiarly human phenomenon distilled to a rare potency - half tiger, half poet.", "Yehudi Menuhin");

quips[quips.length++] = new Quote("If the king loves music, there is little wrong in the land.", "Mencius");

quips[quips.length++] = new Quote("Music is an invisible dance, as dancing is silent music.", "Jean Paul");

quips[quips.length++] = new Quote("Music is to the mind as air to the body.", "Plato");

quips[quips.length++] = new Quote("Music is not science any more than poetry is.  It is a sublime instinct, like genius of all kinds.", "Louise de la Ramé");

quips[quips.length++] = new Quote("If music could be translated into human speech, it would no longer need to exist.", "Ned Rorem");

quips[quips.length++] = new Quote("Composing gives me great pleasure… There is nothing which surpasses the joy of creation, if only because through it one wins hours of self-forgetfulness, when one lives in a world of sound.", "Clara Schumann");

quips[quips.length++] = new Quote("I love music more than my own convenience.  Actually, I love it more than myself - but it is vastly more lovable than I.", "George Szell");

quips[quips.length++] = new Quote("Good music is wine turned to sound.", "Ella Wheeler Wilcox");

quips[quips.length++] = new Quote("A musical talent is like having six fingers on one hand.  You&#8217;re born with it, you&#8217;re different because of it, you can&#8217;t do a thing about it except put it to good use.", "Florian Zabach, violinist");

quips[quips.length++] = new Quote("Songs have immunity from death.", "Ovid");

quips[quips.length++] = new Quote("Music gives a soul to the universe, wings to the mind, flight to the imagination, and life to everything.", "Plato");

quips[quips.length++] = new Quote("Music is not an escape from reality; it is an adventure into the reality of the world of the spirit.", "John Blacking");

quips[quips.length++] = new Quote("Music is the harmonious voice of creation, an echo of the invisble world.", "Guiseppe Mizzini");

quips[quips.length++] = new Quote("Music is a kind of inarticulate, unfathomable speech, which leads us to the edge of the infinite, and impels us for a moment to gaze into that.", "Thomas Carlyle");

quips[quips.length++] = new Quote("Which of the two powers, Love or Music, can elevate man to the sublimest heights.  It is a great problem, and yet it seems to me that this is the answer:  &quot;Love can give no idea, but music can give an idea of Love.&quot;  Why separate them?  They are the two wings of the soul.", "Hector Berlioz");

quips[quips.length++] = new Quote("The business of music should in some measure lead to the love of the beautiful.", "Plato: Rebublic");

quips[quips.length++] = new Quote("Music is your own experience, your thoughts, your wisdom. If you don&#8217;t live it, it won&#8217;t come out of your horn.", "Charlie Parker");

quips[quips.length++] = new Quote("A musical work, which is still only a piece of writing, is a cheque drawn on the fund of talent of an eventual performer.", "Paul Valéry");

quips[quips.length++] = new Quote("If a man lacks the virtues proper to humanity, what has he to do with music?", "Confucius: Analects");

quips[quips.length++] = new Quote("If you would know if a people are well governed, and if its laws are good or bad, examine the music it practises.", "Confucius: Analects");

quips[quips.length++] = new Quote("I don&#8217;t choose what I compose.  It chooses me.", "Gustav Mahler");

quips[quips.length++] = new Quote("Music is more than a combination of sounds.  It is colors too.  I see the different keys like a rainbow.  The key of D is daffodil yellow, B major is maroon, and B flat is blue.", "Marian McPartland");

quips[quips.length++] = new Quote("When you play from your heart, all of a sudden there&#8217;s no gravity.  You don&#8217;t feel the weight of the world, of bills, of anything.  That&#8217;s why people love it.  Your so-called insurmountable problems disappear, and instead of problems you get possibilities.", "Carlos Santana");

quips[quips.length++] = new Quote("Music washes away from the soul the dust of everyday life.", "Berthold Auerbach");

quips[quips.length++] = new Quote("The greatest respect an artist can pay to music is to give it life.", "Pablo Casals");

quips[quips.length++] = new Quote("The notes I handle no better than many pianists.  But the pauses between the notes — ah, that is where the art resides!", "Artur Schnabel");

quips[quips.length++] = new Quote("The composer, as in old China, joins Heaven and Earth with threads of sound.", "Alan Hovhaness");

quips[quips.length++] = new Quote("Composing is like driving down a foggy road toward a house.  Slowly you see more details of the house — the color of the slates and bricks, the shape of the windows. The notes are the bricks and mortar of the house.", "Sir Benjamin Britten");

quips[quips.length++] = new Quote("To sing is to love and affirm, to fly and to soar, to coast into the hearts of the people who listen, to tell them that life is to live, that love is there, that nothing is a promise, but that beauty exists, and must be hunted for and found.", "Joan Baez");

quips[quips.length++] = new Quote("People compose for many reasons:  to become immortal; because the pianoforte happens to be open; to become a millionaire; because of the praise of friends; because they have looked into a pair of beautiful eyes; or for no reason whatsoever.", "Robert Schumann");

quips[quips.length++] = new Quote("Music produces a kind of pleasure that human nature cannot do without.", "Confucius");

quips[quips.length++] = new Quote("Music is the shorthand of emotion.  Emotions which let themselves be described inwords with such difficulty are directly conveyed to man in music, and in that is its power and significance.", "Leo Tolstoy");

quips[quips.length++] = new Quote("Improvisation is not the expression of accident, but rather of the accumulated yearnings, dreams, and wisdom of our very soul.", "Yehudi Menuhin");

quips[quips.length++] = new Quote("Rhythm is one of the principal translators between dream and reality.  Rhythm might be described as to the world of sound what light is to the world of sight.  It shapes and gives new meaning.", "Edith Sitwell");

quips[quips.length++] = new Quote("There are two aspects to life:  the first is that man is tuned by his surroundings, and the second is that man can tune himself in spite of his surroundings.", "Inayat Kahn");

quips[quips.length++] = new Quote("Music is the answer to the mystery of life.  The most profound of all the arts, it expresses the deepest thoughts of life.", "Arthur Schopenhauer");

quips[quips.length++] = new Quote("Music does something to a person, something not done by anything else; nothing can be substituted for it… We do not consider music to have a single main function except for being music, but we feel we cannot live without it.", "Bruno Nettl");

quips[quips.length++] = new Quote("You got twelve notes.  Those notes don&#8217;t know the difference who&#8217;s using them.  Some of &#8217;em are white, some of &#8217;em are black.", "Quincy Jones");

quips[quips.length++] = new Quote("A song ain&#8217;t nothing but a conversation fixed up to where you can talk it over and over without getting tired of it.", "Woody Guthrie");

quips[quips.length++] = new Quote("Music is nothing else but wild sounds civilized into time and tune.", "Thomas Fuller");

quips[quips.length++] = new Quote("Where I come from we say that rhythm is the soul of life, because the whole universe revolves around rhythm, and when we get out of rhythm, that&#8217;s when we get into trouble.", "Babatunde Olantunji");

quips[quips.length++] = new Quote("The man who disparages music as a luxury and nonessential is doing the nation an injury.  Music, now more than ever, is a national need.", "Woodrow Wilson");

quips[quips.length++] = new Quote("After silence, that which comes nearest to expressing the inexpressible is music.", "Aldous Huxley");

quips[quips.length++] = new Quote("If there is anything intelligent, effective, and at the same time formless, it is music.", "Inayat Khan");

quips[quips.length++] = new Quote("Music can name the unnameable and communicate the unknowable.", "Leonard Bernstein");

quips[quips.length++] = new Quote("Music is the electrical soil in which the spirit lives, thinks, and invents.", "Ludwig van Beethoven");

quips[quips.length++] = new Quote("All tones are born from the heart of man.  Sentiment being stirred within manifests without as sound.", "Dane Rudhyar");

quips[quips.length++] = new Quote("There is nothing better than music as a means for the upliftment of the soul.", "Inayat Khan");

quips[quips.length++] = new Quote("Most people don&#8217;t have any idea what improvisation is… It means the magical lifting of one&#8217;s spirits to a state of trance… it means experiencing oneself as another kind of living organism…", "Cecil Taylor");

quips[quips.length++] = new Quote("A person does not hear sound only through his ears; he hears sound through every pore of his body.", "Inayat Khan");

quips[quips.length++] = new Quote("All one&#8217;s life is a music, if one touches the notes rightly, and in time.", "John Ruskin");

quips[quips.length++] = new Quote("Music makes time audible.", "Suzanne Langer");

quips[quips.length++] = new Quote("It may be that when we communicate with life on another planet, it will be through music, not through language or words.", "Madeleine L'Engle");

quips[quips.length++] = new Quote("There is music in the air, music all around us; the world is full of it, and you simply take as much as you require.", "Sir Edward Elgar");

quips[quips.length++] = new Quote("Some kinds of music dissipate in seconds.  Other kinds remain a lifetime, stored in the limbs, or maybe the brain, or even the heart.", "Derrick de Kreckhove");

quips[quips.length++] = new Quote("Music has no other object than to brush aside the veil of everyday life, in order to bring us face to face with reality itself.", "Henri Bergson");

quips[quips.length++] = new Quote("One good thing about music, when it hits, you feel no pain.", "Bob Marley");

quips[quips.length++] = new Quote("Music is a kind of inarticulate, unfathomable speech, which leads us to the edge of the infinite, and impels us for a moment to gaze into that.", "Thomas Carlyle");

quips[quips.length++] = new Quote("Music is the mediator between intellectual and sensuous life… the one spiritual entrance into the higher world.", "Ludwig van Beethoven");

quips[quips.length++] = new Quote("Where speech fails, then music begins.  It is the natural medium for the expression tood strong and deep to be expressed in words.", "Charles W. Landon");

quips[quips.length++] = new Quote("Music is a language, but a language of the intangible, a kind of soul-language.", "Edward MacDowell");

quips[quips.length++] = new Quote("Music is not an escape from reality; it is an adventure into the reality of the world of the spirit.", "John Blacking");

quips[quips.length++] = new Quote("If the piece works poetically, it takes me down a new path from beginning to end.  Each piece should be like a journey - and every journey is different.", "Earle Brown");

quips[quips.length++] = new Quote("Music sobs for you.  It laments, it rejoices, it explodes with vigor and life.", "Anais Nin");

quips[quips.length++] = new Quote("A sound precipitates air, then fire, then water and earth - and that&#8217;s how the world becomes.", "Joseph Campbell");

quips[quips.length++] = new Quote("There are many ways leading to God; I have chosen that of music and dance.", "Jalalladin Rumi");

quips[quips.length++] = new Quote("If you cannot concentrate when you pray, search for melodies and choose a tune you like.  Your heart will then feel what you say, for it is the song that makes your heart respond.", "Sefer Chasidim");

quips[quips.length++] = new Quote("All true and deeply felt music, whether sacred or profane, journeys to heights where art and religion can always meet.", "Albert Schweitzer");

quips[quips.length++] = new Quote("Music is the harmonious voice of creation, an echo of the invisible world.", "Giuseppe Mazzini");

/********************************************************************************
*********************************************************************************/


function getRandomQuote(collection) {

   var randIndex = Math.floor(Math.random() * collection.length);
   var randQuote = collection[randIndex];

   document.write('<i>' + randQuote.quip + '</i><br />');
   document.write('<p class="author">&ndash; '  + randQuote.author + '</p>');
}






