

function getRandomQuote()
{
  return getQuote(Math.round((190 - 1) * Math.random()));
}

function getQuote(quote_number)
{
  switch (quote_number)
  {
    case 0: quote = "What's a Paladin?"; break;
    case 1: quote = "Who are you?"; break;
    case 2: quote = "Great, more rain..."; break;
    case 3: quote = "I am looking for Hythloth. Can you help me?"; break;
    case 4: quote = "What is the book of Prophecy?"; break;
    case 5: quote = "How do you know who I am?"; break;
    case 6: quote = "Tapestry? What tapestry?"; break;
    case 7: quote = "What is going wrong here in Britain?"; break;
    case 8: quote = "Do you know anything about the Codex of Ultimate Wisdom?"; break;
    case 9: quote = "How did you know that I'm the Avatar?"; break;
    case 10: quote = "What is my quest?"; break;
    case 11: quote = "Could you please tell me about Moonglow?"; break;
    case 12: quote = "Truth is being twisted?"; break;
    case 13: quote = "There is a problem with magic?"; break;
    case 14: quote = "What's wrong with the moongates?"; break;
    case 15: quote = "What is the Candle of Love?"; break;
    case 16: quote = "Do you know anything of the Runes of Virtue?"; break;
    case 17: quote = "Paws?"; break;
    case 18: quote = "What are you talking about?"; break;
    case 19: quote = "Skeletons?"; break;
    case 20: quote = "Oh!  Avatar, is that you?  Oh boy, oh boy!"; break;
    case 21: quote = "Wandering moons?"; break;
    case 22: quote = "So what was this about the moons?"; break;
    case 23: quote = "What kind of sick joke is this, Avatar?"; break;
    case 24: quote = "Good heavens Avatar, has your memory gone completely?"; break;
    case 25: quote = "Excuse me?  What did you say?"; break;
    case 26: quote = "How could I forget?"; break;
    case 27: quote = "Is that the Avatar?"; break;
    case 28: quote = "You call me an idiot?"; break;
    case 29: quote = "Wait a minute, you're the Avatar, aren't you?"; break;
    case 30: quote = "Cursing in the cathedral, are we?"; break;
    case 31: quote = "To admit that not everything is perfect."; break;
    case 32: quote = "Why, the Tapestry of Ages!  It is a marvel, Avatar, truly a marvel."; break;
    case 33: quote = "Such an act is not compassion!"; break;
    case 34: quote = "Please, refresh my memory about the runes."; break;
    case 35: quote = "Aleena says that according to legend, the Codex is located on the Isle of the Avatar.  No one seems to know where that island is located, but at least it's a start."; break;
    case 36: quote = "I don't need you to tell me about my karma!"; break;
    case 37: quote = "If you are good and kind and virtuous, your abilities will be greater."; break;
    case 38: quote = "This is a waste of my time."; break;
    case 39: quote = "Important note:  I learned how to bind spells into my spell book."; break;
    case 40: quote = "Do you have any other brilliant questions?"; break;
    case 41: quote = "That's not such a problem.  I rather like killing undead things."; break;
    case 42: quote = "Evidious, if you wanna be a good person, just be yourself and follow the virtues."; break;
    case 43: quote = "I met Evidious, a very deluded man who seems to think that he can be the Avatar by trying to imitate me.  I'm sure he means well, but what a nut!"; break;
    case 44: quote = "Britain seems to have changed.  They're sending the sick people to Paws."; break;
    case 45: quote = "The fact that it's so near Despise is a clear indication to me that it's malevolent."; break;
    case 46: quote = "Then what are you doing here talking to me?  Why aren't you out there fixing things?  You're the Avatar; you're supposed to be fixing things.  Now go on, get busy!"; break;
    case 47: quote = "Oh, brilliance falls on castle walls..."; break;
    case 48: quote = "Poor child.  Farewell."; break;
    case 49: quote = "Stealing is wrong."; break;
    case 50: quote = "You are a mean, toad-spotted man and I hate you!"; break;
    case 51: quote = "Is that the Avatar?"; break;
    case 52: quote = "It's those frightful columns!"; break;
    case 53: quote = "I hope the Avatar can help all the peoples of Britannia."; break;
    case 54: quote = "I need to refresh my memory concerning the missing Serpent."; break;
    case 55: quote = "I have no patience for your riddles woman, explain yourself."; break;
    case 56: quote = "Thank you Avatar, you have truly given this land a hope for survival.  I suggest that you first go to the dungeon Despise."; break;
    case 57: quote = "Yes, I would like some detailed instructions."; break;
    case 58: quote = "To get to Despise, I should go out the east gate of Britain and stay on the road until I get to an intersection, then turn north and stay on the road until I get to the column."; break;
    case 59: quote = "I've been given a map!"; break;
    case 60: quote = "Dear friend, escape with me back to my world where we'll be safe."; break;
    case 61: quote = "Why have you not rooted out the disease yourself?"; break;
    case 62: quote = "What evil has been unleashed in Britannia?"; break;
    case 63: quote = "At last, some respite from the harrowing decline.  But, there is more work to do.  There are seven more shrines in the land."; break;
    case 64: quote = "Oh yes.  I'm sorry, I'm tired.  The Shrine of Compassion has been cleansed and restored."; break;
    case 65: quote = "I need to get to Yew, but I don't know how."; break;
    case 66: quote = "Good heavens!"; break;
    case 67: quote = "Oh it's been horrible here in Britain.  The people are all mean to one another and no one cares."; break;
    case 68: quote = "Oh yes, it seems that everyone in this town knows me from the tapestry."; break;
    case 69: quote = "I'm sorry, but I'm on a quest to save Britannia."; break;
    case 70: quote = "I had to kill him.  He had the keys to these cells and the only way to get them was to kill him."; break;
    case 71: quote = "Bring out your sick and poor!"; break;
    case 72: quote = "How do I get to Paws?"; break;
    case 73: quote = "The sick are finally being cared for.  Isn't that wonderful?"; break;
    case 74: quote = "It is good that you no longer cart people to Paws."; break;
    case 75: quote = "Earn your own gold, you deserve to be sent to Paws."; break;
    case 76: quote = "What do you mean 'put things right'?"; break;
    case 77: quote = "How do I find the dungeon of Despise?"; break;
    case 78: quote = "There are eight shrines, one dedicated to each of the virtues."; break;
    case 79: quote = "The Mantra of Compassion is 'Mu'.  I must chant this at the shrine when I meditate."; break;
    case 80: quote = "Ah, Son of sons, the Avatar."; break;
    case 81: quote = "I met a woman in LB's castle named Siona, who taught me how to play one of Lord British's favorite pieces, 'Stones'."; break;
    case 82: quote = "Arrr, matey."; break;
    case 83: quote = "Mmm, baby, that was fun!"; break;
    case 84: quote = "By the virtues; she's a human being, not cattle!"; break;
    case 85: quote = "This is barbaric!  How can you treat people like property?"; break;
    case 86: quote = "Please sir, help me.  These horrible pirates kidnapped me."; break;
    case 87: quote = "Could you tell me how to find New Magincia?"; break;
    case 88: quote = "You see, you can't sail there because there are no docks on New Magincia.  And of course, swimming is out of the question!"; break;
    case 89: quote = "The Avatar saved the day!"; break;
    case 90: quote = "Hey, what's up with the moons?!!"; break;
    case 91: quote = "Don't worry, I will deal with all of the columns."; break;
    case 92: quote = "All of the columns will be dealt with in their own time.  You just have to be patient!"; break;
    case 93: quote = "I've come to Britannia to assist Lord British in re-establishing order and virtue."; break;
    case 94: quote = "I am the Avatar and I go where I like."; break;
    case 95: quote = "Umm, I'm not the Avatar, and I'm very sorry to have disturbed you.  Goodbye."; break;
    case 96: quote = "Help me!  Help!  I am dying!  Give me a healing potion!"; break;
    case 97: quote = "I'm Irene, and I can buy or sell."; break;
    case 98: quote = "Is everyone here daft?"; break;
    case 99: quote = "Ooh, you must be a bad boy, eh?  You not cast so much magic, eh?"; break;
    case 100: quote = "Can you tell me where the sigil is and what the mantra might be?"; break;
    case 101: quote = "A good day today, no?"; break;
    case 102: quote = "May I have the mantra to the shrine?"; break;
    case 103: quote = "Today I learned the Mantra of Sacrifice from the old gypsy woman named Morganna.  The mantra is 'Cah'."; break;
    case 104: quote = "It's very satisfying to see one of these shrines go from derelict to it's restored state.  They're so beautiful after they've been restored."; break;
    case 105: quote = "Listen, I am the Avatar.  AV-A-TAR!!"; break;
    case 106: quote = "Blackthorn!  Harm the girl and it will be the last thing that you'll ever do."; break;
    case 107: quote = "Are you out of your mind?  You're not getting the lenses."; break;
    case 108: quote = "We'll see who's failed, Blackthorn!"; break;
    case 109: quote = "Can you tell me about love?"; break;
    case 110: quote = "That's not true, stealing is wrong."; break;
    case 111: quote = "No, I am the Avatar, I am on a quest to save Britannia."; break;
    case 112: quote = "After reuniting Elizabeth with her child, she told me that I can find the Candle of Love in Empath Abbey. That will surely help!"; break;
    case 113: quote = "You deserved to be killed, you snivelling coward."; break;
    case 114: quote = "What journey?"; break;
    case 115: quote = "In order to view your surroundings, simply move your mouse. If you wish to move, press and hold the right mouse button."; break;
    case 116: quote = "If you wish to use the object, click the left mouse button."; break;
    case 117: quote = "Don't forget to press the 'Q' key again to lock the cursor back into the middle of the screen."; break;
    case 118: quote = "To view the contents of your backpack, press the 'B' key."; break;
    case 119: quote = "Press 'J' to read your journal.  You will find that it contains a great deal of critical information for your quest.  You can left click in the table of content."; break;
    case 120: quote = "As some in Britannia prosper, Batlin gathers the discontented masses for the Guardian."; break;
    case 121: quote = "The Avatar faces a land and people who can not be converted to the ways of virtue."; break;
    case 122: quote = "I have learned that the Mantra of Justice is 'Beh'."; break;
    case 123: quote = "I have seen that the Mantra of Honesty is 'Ahm'."; break;
    case 124: quote = "I'm the Avatar, remember?  I know what I'm doing."; break;
    case 125: quote = "Good spirit, you burn not from Pyros' flames, but from your own hatred of the Avatar."; break;
    case 126: quote = "Yeah, and I'm Lord British!"; break;
    case 127: quote = "But courage is important."; break;
    case 128: quote = "Now do you see the importance of courage, you fool?"; break;
    case 129: quote = "So, all we have to do now is sail to Terfin, confront the Guardian and defeat him."; break;
    case 130: quote = "Raven says our remaining task is to head to Terfin and find the Guardian."; break;
    case 131: quote = "Wow, that's a tough one.  Umm, waiting for me here on the ship?"; break;
    case 132: quote = "Raven says we need to go to the Isle of the Avatar to get to the Abyss."; break;
    case 133: quote = "Do you know where Serpent's Hold is?"; break;
    case 134: quote = "Where might I find Empath Abbey?"; break;
    case 135: quote = "I still need to complete the Spirituality Quest, as Raven just reminded me."; break;
    case 136: quote = "Yeah, I've always been a little embarrassed that they named an island after me."; break;
    case 137: quote = "Good, we're almost there: you've only got one more shrine left to cleanse."; break;
    case 138: quote = "I appreciate your honesty, Avatar.  You could have just told me something to make me happy."; break;
    case 139: quote = "I don't know, where do you think we should go?"; break;
    case 140: quote = "I hear that Serpent's Hold is just southeast of Trinsic."; break;
    case 141: quote = "Raven says Serpent's Hold is just southeast of Trinsic."; break;
    case 142: quote = "The closest docks to the Abbey are located in Britain."; break;
    case 143: quote = "The way that things are going around here, I think you need to fix the Shrine of Justice."; break;
    case 144: quote = "How do I cleanse the Shrine of Justice?"; break;
    case 145: quote = "In that case, you'll need to learn the mantra."; break;
    case 146: quote = "How about we go below decks for a little fun?"; break;
    case 147: quote = "The Abyss, huh?"; break;
    case 148: quote = "I don't know how to get there.  You know, every city of virtue has its opposite dungeon."; break;
    case 149: quote = "Are you still telling me where I need to go next?"; break;
    case 150: quote = "Shut up and listen to me."; break;
    case 151: quote = "The Sentinel gave me the Mantra of Spirituality, which is 'Om'."; break;
    case 152: quote = "I learned that a magical force of great power deliberately created the columns."; break;
    case 153: quote = "They have turned compassion into hatred, justice into injustice, and so on."; break;
    case 154: quote = "Everybody knows you're the Avatar cause you're running around everywhere tryin' to fix stuff.  Duh!"; break;
    case 155: quote = "You're a little brat and I'm not going to give you any money."; break;
    case 156: quote = "Ha, ha!  What a stupid wimp!  You'll give your money to anybody just cause you're a stupid wimp!  Ha, ha!  What a dumb stupid-head!"; break;
    case 157: quote = "I think you're just a big idiot!"; break;
    case 158: quote = "Brr!  I should have worn some thicker knickers!"; break;
    case 159: quote = "Damn, it's cold."; break;
    case 160: quote = "No!  No!  Please don't hurt me!  I'm sorry!  I'm sorry!  I'll be quiet, just please don't hurt me."; break;
    case 161: quote = "What is the mantra for the Shrine of Honesty?"; break;
    case 162: quote = "People in Moonglow can't be trusted?"; break;
    case 163: quote = "What is the Lycaeum?"; break;
    case 164: quote = "If I hadn't lied to that man about my parents he'd believe me now, if I asked for help."; break;
    case 165: quote = "I'm so sorry that I killed you, Mariah."; break;
    case 166: quote = "What is affecting the people here in Moonglow?"; break;
    case 167: quote = "How does one find the Lycaeum?"; break;
    case 168: quote = "Because I'm an honorable man."; break;
    case 169: quote = "Can you tell me the mantra to the Shrine of Humility?"; break;
    case 170: quote = "Katrina told me the Mantra of Humility is 'Lum'."; break;
    case 171: quote = "Well, what have we here, some sort of do-gooder?  Come to save the damsel in distress, no doubt."; break;
    case 172: quote = "Can you believe this old man?  You'd think that after having been dead for the last 20 years, he'd show a little respect."; break;
    case 173: quote = "The mantra I will need to enter is 'Summ'."; break;
    case 174: quote = "How did the paladins lose their honor?"; break;
    case 175: quote = "How have the people lost their honor?"; break;
    case 176: quote = "Listen closely, for I will tell you the secret mantra that can be used to call upon the spirit of the Shrine of Valor."; break;
    case 177: quote = "I learned the Mantra of Valor from Sir Artos today.  It is 'Ra'."; break;
    case 178: quote = "What is the Dagger of Valor?"; break;
    case 179: quote = "Where is Destard?"; break;
    case 180: quote = "Yeah, piss on your 'justice'."; break;
    case 181: quote = "Not only knowing that a virtue is being restored in the world, but the whole lighting thing is pretty exhilarating."; break;
    case 182: quote = "Do you know the Mantra of Justice?"; break;
    case 183: quote = "Vasagralem told me that the Mantra of Justice can be found in the Book of Justice, in the library."; break;
    case 184: quote = "I'm sorry, but what... I mean, who are the Gargoyles?"; break;
    case 185: quote = "Vasagralem told me that the Codex of Ultimate Wisdom will answer any question, provided the red and blue lenses are used to view it."; break;
    case 186: quote = "The Codex of Ultimate Wisdom?"; break;
    case 187: quote = "To not believe that the Avatar could have forgotten about the Codex of Ultimate Wisdom!  To know that the Codex is the Holy Book of my people and yours."; break;
    case 188: quote = "Vasagralem says the Codex was important to the Gargoyles as well as the humans."; break;
    case 189: quote = "I should look to myself before judging others."; break;
  }
  return quote;
}

function writeQuote()
{
  document.write("<div class=\"generic-container\">");
  document.write(" <div class=\"top\"><div><div><\/div><\/div><\/div>");
  document.write(" <div class=\"center\"><div><div>");
  document.write("  <div id='randomquote'>");
  document.write("   <h2>Zitat:</h2>");
  document.write('   <blockquote xml:lang="en">&quot;' + getRandomQuote() + '&quot;<\/blockquote>');
  document.write("  <\/div>");
  document.write(" <\/div><\/div><\/div>");
  document.write(" <div class=\"bottom\"><div><div><\/div><\/div><\/div>");
  document.write("<\/div>");
}

function searchGo()
{
  self.location = "help_search.htm?" + escape(document.getElementById("quicksearchquery").value);
}

