// quote-engine.js   last updated 07 Aug 2001
// by Christian Sandvig (christian@niftyc.org)
// with thanks to comp.lang.javascript

quoteArray = [
	"Communication is nothing more than the fortuitious parallelism of bio-psychic variables.<br> <br>-- Harold Lasswell",
	"When the final design seems too simple for the amount of work you've put in, then you know you're done.<br> <br>-- Brady Clark (on Web design)",
	"Just because a lot of computers are sold does not mean they make any sense.<br> <br>-- Ted Nelson",
	"The interesting puzzle in our times is that we so willingly sleepwalk through the process of reconstituting the conditions of human existence.<br> <br>-- Langdon Winner  ",
	"We can be absolutely certain only about things we do not understand.<br> <br>-- Eric Hoffer",
	"If all else fails, immortality can be assured by spectacular error.<br> <br>-- John Kenneth Galbraith",
	"Silicon Valley is to the United States what the United States is to the rest of the world.<br> <br>-- Michael Lewis",
	"Invention is the mother of necessities.<br> <br>-- Marshall McLuhan",
	"If you can tell good advice from bad advice, you don't need any advice.<br> <br>-- Anonymous",
	"Nothing is more wrong-headed than calling meaning a mental activity.<br> <br>-- Ludwig Wittgenstein",
	"The time from now until the completion of the project tends to become constant.<br> <br>-- Douglas Hartree",
	"When I am working on a problem, I never think about beauty ... but when I have finished, if the solution is not beautiful, I know it is wrong.<br> <br>-- R. Buckminster Fuller",
	"The one duty we owe to history is to rewrite it.<br> <br>-- Oscar Wilde",
	"Science has a simple faith, which transcends utility.<br> <br>-- Vannevar Bush",
	"The most costly of all follies is to believe passionately in the palpably not true. It is the chief occupation of mankind.<br> <br>-- H.L. Mencken",
	"It is certain because it is impossible.<br> (<i>Certum est, quia impossibile est.</i>)<br> <br>-- Tertullian",
        "The average lifespan of a Web page today is 100 days. This is no way to run a culture.<br> <br>-- Brewster Kahle<br> &nbsp; (quoted in 2003)",
        "We are what we pretend to be, so we must be careful what we pretend to be.<br> <br>-- Kurt Vonnegut",
        "When a thing ceases to be a subject of controversy, it ceases to be a subject of interest.<br> <br>-- William Hazlitt",
        "The more original a discovery, the more obvious it seems afterwards.<br> <br>-- Arthur Koestler",
	"In the central place of your heart there is a wireless station. So long as it receives messages of beauty, hope, cheer, grandeur, courage, and power from the earth, from men and from the Infinite-- so long are you young.<br> <br>-- Samuel Ullman  ",
	"We no longer have roots, we have aerials.<br> <br>-- Mckenzie Wark",
	"No other resource has this order of political significance.<br> <br>-- Dallas Smythe<br>(on the electromagnetic spectrum)",
	"This modern world is starving for images. The media pound the same paltry ideas into our heads time and again.  We need to see around the edges or over the top.<br> <br>-- Werner Herzog<br>(as recalled by Roger Ebert)",
	"Civilization is the limitless multiplication of unnecessary necessities.<br> <br>-- Mark Twain",
        "Technology is making gestures precise and brutal, and with them men.<br> <br>-- Theodor Adorno",
        "While employers have often commissioned studies of how to make workers happy with less power and pay, workers have rarely been in a position to undertake or commission studies of anything at all, let alone how to make employers happy with less power and profit.<br> <br>--Sandra Harding",
        "Good tests kill flawed theories; we remain alive to guess again.<br> <br>-- Karl Popper",
        "We tend to overestimate the effect of a technology in the short run and underestimate the effect in the long run.<br> <br>--Roy Amara"
]

quoteCount = 29;
browserN=(navigator.appName.indexOf('Netscape')!=-1&&parseInt(navigator.appVersion)<5)
browserS=(navigator.appName.indexOf('Netscape')!=-1&&parseInt(navigator.appVersion)>4.9)
browserM=(navigator.appName.indexOf('Microsoft')!=-1)

function writeQuote() {
	rnd = Math.floor(Math.random() * quoteCount);
	quoteMsg = "<p class='small'>";
	quoteMsg += (eval("quoteArray[" + rnd + "]"));
	quoteMsg += "<br><span class='tiny'>";
	quoteMsg += "(see <a href='javascript:writeQuote();' title='randomly choose another quote'>another random quote</a>)";
	quoteMsg += "</span></p>";
	
	if (browserN) {
		with (document.layers["quoteLayer"].document) {
			open();
			write("<dl><dd><div align='right'>");
			write(quoteMsg);
			write("</div></dl>");
			close();
		}
	} else if (browserM) {
		quoteDiv.innerHTML = quoteMsg;
	} else if (browserS) {
		document.getElementById("quoteDiv").innerHTML = quoteMsg;
	}
}
