// JavaScript Document

//store the quotations in arrays
quotes = new Array();
author = new Array();
quotes[0] = "A painter paints pictures on canvas.  But musicians paint their pictures on silence.";
author[0] = "Leopold Stokowski";
quotes[1] = "If a composer could say what he had to say in words he would not bother trying to say it in music.";
author[1] = "Gustav";
quotes[2] = "He who sings scares away his woes.";
author[2] = "Cervantes";
quotes[3] = "Alas for those that never sing,But die with all their music in them!";
author[3] = "Oliver Wendell Holmes";
quotes[4] = "Life can't be all bad when for ten dollars you can buy all the Beethoven sonatas and listen to them for ten years.";
author[4] = "William F. Buckley, Jr.";
quotes[5] = "Music is the wine that fills the cup of silence.";
author[5] = "Robert Fripp";
quotes[6] = "Music is the universal language of mankind.";
author[6] = "Henry Wadsworth Longfellow";
quotes[7] = "Music expresses that which cannot be said and on which it is impossible to be silent.";
author[7] = "Victor Hugo";
quotes[8] = "Music expresses feeling and thought, without language; it was below and before speech, and it is above and beyond all words.";
author[8] = "Robert G. Ingersoll";
quotes[9] = "Music is the shorthand of emotion.";
author[9] = "Leo Tolstoy";
quotes[10] = "Musicians own music because music owns them.";
author[10] = "Virgil Thomson";


//calculate a random index
  index = Math.floor(Math.random() * quotes.length);

//display the quotation
  function random_quote() {
    document.write("<div id='Quote'>\"" + quotes[index] + "\"</div>");
    document.write("<div id='Author'>" + "~ " + author[index] + "</div>");
  }