// +----------------------------------------------+ //
// |  Copyright©2008, Steven Douglas Huddleston   | //
// |             All Rights Reserved              | //
// | No portion of this code can be copied, used, | //
// | published or reproduced in any way without   | //
// | the expressed written consent of the author. | //
// +----------------------------------------------+ //

function selecthquote(X) {I=0;

I++; if (X == I) {msg='Let me bring you all things refined: Galliards and lute songs served in chilling ale. Greetings, well-met fellow, hail! I am the wind to fill your sail. I am the cross to take your nail: A singer of these ageless times&mdash;With kitchen prose, and gutter rhymes.';
                  aut='&mdash; Jethro Tull &mdash; <a href="javascript:AmazonLink(\'B00008G9JN\');">Songs From The Wood</a> &mdash; Songs From The Wood &mdash;';
                  return;}

I++; if (X == I) {msg='Pass the word and pass the lady. Pass the plate to all who hunger.<br>Pass the wit of ancient wisdom, pass the Cup of Crimson Wonder.';
                  aut='&mdash; Jethro Tull &mdash; <a href="javascript:AmazonLink(\'B00008G9JN\');">Songs From The Wood</a> &mdash; Cup Of Wonder &mdash;';
                  return;}

I++; if (X == I) {msg='Won\'t you have my company, yes, take it in your hand. Go down on Velvet Green, with a country man. Who\'s a young girl\'s fancy and an old maid\'s dream.<br>Tell your mother that you walked all night on Velvet Green.';
                  aut='&mdash; Jethro Tull &mdash; <a href="javascript:AmazonLink(\'B00008G9JN\');">Songs From The Wood</a> &mdash; Velvet Green &mdash;';
                  return;}

I++; if (X == I) {msg='Let me bring you songs from the wood: To make you feel much better than you could know&mdash;Dust you down from tip to toe&mdash;Show you how the garden grows&mdash;Hold you steady as you go&mdash;Join the chorus if you can:<br>It\'ll make of you an honest man.';
                  aut='&mdash; Jethro Tull &mdash; <a href="javascript:AmazonLink(\'B00008G9JN\');">Songs From The Wood</a> &mdash; Songs From The Wood &mdash;';
                  return;}

I++; if (X == I) {msg='We live in an age of cages. The tale of an ape escaping, in the search for some truth he can use. But many a drunk got drunker, and mostly a thinker, thunker. Set the place, set the time, set the fuse. The optimist laughed and the pessimist cried in his wine. And the madman said &mdash;Son, take a word they\'ll awake given time&mdash;';
                  aut='&mdash; Emerson, Lake & Palmer &mdash; <a href="javascript:AmazonLink(\'B0000033P4\');">Works Vol. 1</a> &mdash; Hallowed Be Thy Name &mdash;';
                  return;}

I++; if (X == I) {msg='From the opium of custom to the ledges of extremes, don\'t believe it till you\'ve held it, life is seldom what it seems. But lay your heart upon the table and in the shuffling of dreams, <i>remember who on earth you are.</i>';
                  aut='&mdash; Emerson, Lake & Palmer &mdash; <a href="javascript:AmazonLink(\'B0000033P4\');">Works Vol. 1</a> &mdash; Closer To Believing &mdash;';
                  return;}

I++; if (X == I) {msg='Hey there Mister Madman, what\'cha know that I don\'t know? Tell me some crazy stories, let me know who runs this show. &mdash;Glassy-eyed and laughing, he turns and walks away&mdash; Tell me what made you that way.';
                  aut='&mdash; Kansas &mdash; <a href="javascript:AmazonLink(\'B00005JA2B\');">Leftoverture</a> &mdash; Miracles Out Of Nowhere &mdash;';
                  return;}

I++; if (X == I) {msg='Gold and diamonds cast a spell, it\'s not for me I know it well. The treasures that I seek are waiting on the other side. There\'s more than I can measure in the treasure of the love that I can find. And though it\'s always been with me I must tear down the wall and let it be all I am, and all that I was ever meant to be, in harmony.';
                  aut='&mdash; Kansas &mdash; <a href="javascript:AmazonLink(\'B00005JA2B\');">Leftoverture</a> &mdash; The Wall &mdash;';
                  return;}

I++; if (X == I) {msg='I came to learn&mdash;perhaps to teach, but I can tell somehow the world that I was sent to reach has got no future now. Across the galaxy to spread the word and no one heard.<br>I came for nothing, I\'m alone and nobody\'s home.';
                  aut='&mdash; Kansas &mdash; <a href="javascript:AmazonLink(\'B00005Y1M3\');">Point Of Know Return</a> &mdash; Nobody\'s Home &mdash;';
                  return;}

if (X == -1) return I;}

MAX = selecthquote(-1);                          // Counts Total Number of Items
selecthquote(Math.ceil(Math.random() * MAX));    // Random Item Selector

document.getElementById('hqtext').innerHTML = msg;
document.getElementById('hqauth').innerHTML = aut;

