function appendMenuItem( text, url ) {
 document.write( "<" + "a class='menuItem' href='" + url + "'><" +
  "p class='leftMenuPara'>" + text + "<" + "/p><" + "/a>" );
}
function appendMenu() {
 document.write( "<" + "div class='leftSubMenu'>" );
 appendMenuItem( "Online.no", "http://pethesse.home.online.no/" );
 appendMenuItem( "New host", "http://petterhesselberg.com/" );
 appendMenuItem( "HTML Verifier (Upload version)", "http://validator.w3.org/file-upload.html" );
 appendMenuItem( "Web Search", "http://www.alltheweb.com" );
 appendMenuItem( "Two Cows", "http://www.tucows.com/" );
 appendMenuItem( "ATS Portal", "https://ciosts.accenture.com/NorwayTechnologySolutions/" );
 appendMenuItem( "Gule Sider", "http://www.gulesider.no/" );
 appendMenuItem( "Stock Quote", "http://quotes.nasdaq.com/Quote.dll?mode=stock&symbol=ACN&quick.x=0&quick.y=0" );
 document.write( "<" + "/div>" );
}
function reloadPage() {
 location.reload();
}
function Quote( quote, attribution ) {
 this.quote = quote;
 this.attribution = attribution ? attribution : null;
}
Quote.prototype.write = function( title ) {
 document.write( '<' + 'div onclick="javascript:reloadPage();" title="' + title + '">' );
 document.write( '<' + 'p class="quote"><' + 'strong>&ldquo;' + this.quote + '&rdquo;<' + '/strong><' + '/p>' );
 document.write( '<' + '/div>' );
 if ( this.attribution ) {
  document.write( '<' + 'p class="attrib">&mdash;' + this.attribution + '<' + '/p>' );
 }
}
function addQuote() {
 var quotes = [
  new Quote( 'Any sufficiently advanced stupidity is indistinguishable from malice.', 'Unknown (with, no doubt, apologies to Arthur C. Clarke)' ),
  new Quote( 'The trouble with the world is that the stupid are cocksure and the intelligent full of doubt.', 'Bertrand Russell' ),
  new Quote( 'Properly read, the Bible is the most potent force for atheism ever conceived.', 'Isaac Asimov' ),
  new Quote( 'It ain&rsquo;t those parts of the Bible that I can&rsquo;t understand that bothers me, it&rsquo;s the parts that I do understand.', 'Mark Twain' ),
  new Quote( 'Many people would rather die than think; in fact, most do.', 'Bertrand Russell' ),
  new Quote( 'This crime called blasphemy was invented by priests for the purpose of defending doctrines not able to take care of themselves.', 'Robert Ingersoll' ),
  new Quote( 'Don&rsquo;t condemn people for their ignorance. Use it against them.', 'Scott E. Roeben' ),
  new Quote( 'Politics is the art of looking for trouble, finding it, misdiagnosing it and then misapplying the wrong remedies.', 'Groucho Marx' ),
  new Quote( 'He that would make his own liberty secure, must guard even his enemy from oppression; for if he violates this duty, he establishes a precedent that will reach to himself.', 'Thomas Paine' ),
  new Quote( 'Life is what happens when you&rsquo;re making other plans.' ),
  new Quote( 'The boys throw stones at the frogs in jest, but the frogs die in earnest.' ),
  new Quote( 'You can either make money, or make sense.', 'Buckminster Fuller' ),
  new Quote( 'An idealist is one who, on noticing that roses smell better than a cabbage, concludes that it will also make better soup.', 'Henry Louis Mencken' ),
  new Quote( 'There are two ways of constructing a software design; one way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.', 'C. A. R. Hoare' ),
  new Quote( 'C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg.', '<' + 'a href="http://www.research.att.com/~bs/homepage.html">Bjarne Stroustrup<' + '/a>' ),
  new Quote( 'Only two things are infinite, the universe and human stupidity, and I&rsquo;m not sure about the former.', 'Albert Einstein' ),
  new Quote( 'I do not feel obliged to believe that the same God who has endowed us with sense, reason, and intellect has intended us to forgo their use.', 'Galileo Galilei' ),
  new Quote( 'I have yet to see any problem, however complicated, which, when you looked at it in the right way, did not become still more complicated.', 'Poul Anderson' ),
  new Quote( 'Go as far as you can see, and when you get there, you&rsquo;ll see farther.', 'Anonymous' ),
  new Quote( 'Even if you are on the right track, you&rsquo;ll get run over if you just sit there.', 'Will Rogers' ),
  new Quote( 'There is no reason anyone would want a computer in their home.', 'Ken Olson, DEC, 1977' ),
  new Quote( 'I think there is a world market for maybe five computers.', 'Thomas Watson, Chairman of IBM, 1943' ),
  new Quote( 'I don&rsquo;t want to achieve immortality through my work; I want to achieve immortality through not dying.', 'Woody Allen' ),
  new Quote( 'I have never let my schooling interfere with my education.', 'Mark Twain' ),
  new Quote( 'Sometimes I think we&rsquo;re alone in the universe, and sometimes I think we&rsquo;re not. In either case the idea is quite staggering.', 'Arthur C. Clarke' ),
  new Quote( 'There is more stupidity than hydrogen in the universe, and it has a longer shelf life.', 'Frank Zappa' ),
  new Quote( 'Do. Or do not. There is no &lsquo;try&rsquo;.', 'Yoda (in &ldquo;The Empire Strikes Back&rdquo;)' ),
  new Quote( 'People demand freedom of speech to make up for the freedom of thought which they avoid.', 'S&oslash;ren Kierkegaard' ),
  new Quote( 'Dignity does not consist in possessing honors, but in deserving them.', 'Aristotle' ),
  new Quote( 'Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.', 'Douglas Adams' ),
  new Quote( 'Security is mostly a superstition. It does not exist in nature, nor do the children of men as a whole experience it. Avoiding danger is no safer in the long run than outright exposure. Life is either a daring adventure or nothing.', 'Helen Keller' ),
  new Quote( 'Religion is regarded by the common people as true, by the wise as false, and by rulers as useful.', 'Seneca the Younger' ),
  new Quote( 'Given time and plenty of paper, a philosopher can prove anything.', 'Lorenzo Smythe' ),
  new Quote( 'Yield to temptation; it may not pass your way again.', 'Lazarus Long' ),
  new Quote( 'When in danger or in doubt, run in circles, scream and shout.' ),
  new Quote( 'Climate is what you expect, weather is what you get.', 'Lazarus Long' ),
  new Quote( 'Kissing girls is a goodness. It beats the hell out of card games.', 'Valentine Michael Smith' ),
  new Quote( 'ALL YOUR BASE ARE BELONG TO US!' ),
  new Quote( 'Education is an admirable thing. But it is well to remember from time to time that nothing that is worth knowing can be taught.', 'Oscar Wilde' ),
  new Quote( 'There is much to be said in favor of modern journalism. By giving us the opinions of the uneducated, it keeps us in touch with the ignorance of the community.', 'Oscar Wilde' ),
  new Quote( 'It&rsquo;s not whether you win or lose, it&rsquo;s how you place the blame. ', 'Oscar Wilde' ),
  new Quote( 'Lord, grant me the serenity to accept the things I cannot change, the courage to change the things I can, and the wisdom to hide the bodies of those people I had to kill because they pissed me off.' ),
  new Quote( 'Rules are made for people who are unwilling to make up their own.', 'Chuck Yeager' ),
  new Quote( '640 K ought to be enough for anybody.', 'Bill Gates (?) ca. 1981' ),
  new Quote( 'Software development is more like a jam session than an orchestrated event.', 'Jim McCarthy' ),
  new Quote( 'Programming is like sex: one mistake and you have to support it for the rest of your life.', 'Michael Sinz (Commodore-Amiga Inc.)' ),
  new Quote( 'The time to begin writing an article is when you have finished it to your satisfaction.', 'Mark Twain' ),
  new Quote( 'When you say something, make sure you have said it. The chances of your having said it are only fair.', 'Strunk &amp; White, <' + 'i><' + 'a href="http://www.amazon.com/exec/obidos/ASIN/0205313426/pettersprogrammp">The Elements of Style<' + '/a><' + '/i>' ),
  new Quote( 'Sedulously eschew obfuscatory hyperverbosity and prolixity.' ),
  new Quote( 'Quidquid latine dictum sit, altum videtur.' ),
  new Quote( 'The most valuable of all talents is that of never using two words where one will do.', 'Thomas Jefferson' ),
  new Quote( 'I find that the harder I work, the more luck I seem to have.', 'Thomas Jefferson' ),
  new Quote( 'In theory, theory and practice is the same. In practice, it never is.', 'Jan L.A. van de Snepscheut<' + 'br /><' + 'smaller>[Sometimes attributed to Yogi Berra]<' + '/smaller>' ),
  new Quote( 'Censorship laws are more dangerous to a democratic society than any pornography could ever be.', '<' + 'a href="http://www.stallman.org/">Richard Stallman<' + '/a>' ),
  new Quote( 'Write for specificity. &lsquo;A man walked into the room and ordered a drink&rsquo; hasn&rsquo;t a fifth the bite of &lsquo;This dwarf stepped up to the bar and demanded a Bloody Mary.&rsquo; ', 'Browne &amp; King, <' + 'i><' + 'a href="http://www.amazon.com/exec/obidos/ASIN/0062720465/pettersprogrammp">Self-editing for Fiction Writers<' + '/a><' + '/i>' ),
  new Quote( 'The only reason some people get lost in thought is because it&rsquo;s unfamiliar territory.', 'Paul Fix' ),
  new Quote( 'Grab a chance and you won&rsquo;t be sorry for a might-have-been.', 'Commander Ted Walker, R.N.' ),
  new Quote( 'Cherryh&rsquo;s Law: No rule should be followed off a cliff.', '<a href="http://www.cherryh.com/">C. J. Cherry</a>' ),
  new Quote( 'Whenever you feel an impulse to perpetrate a piece of exceptionally fine writing, obey it&mdash;whole-heartedly&mdash;and delete it before sending your manuscripts to press. <i>Murder your darlings</i>.', 'Sir Arthur Quiller-Couch' ),
  new Quote( 'The dictionary is the only place where success comes before work.' )
 ];
 var ix = Math.floor( quotes.length * Math.random() );
 var q = quotes[ ix ];
 var title = 'Click here to get a new quote';
 if ( q ) {
  q.write( title );
 }
}
