// randoQuote.js
function randoQuote(author)
{
	var quotes = new Array();
	
	if (author == "mccarthy")
	{
	
		quotes[0] = "Everyone needs computer programming. It will be the way we speak to the servants.";
		quotes[1] = "People prefer dealing with machinery to dealing with bureaucracies.";
		quotes[2] = "The politicians have a most touching faith in technology - that it can make up for any dumb thing the politicians decide to do.";
		quotes[3] = "You say you couldn't live if you thought the world had no purpose. You're saying that you can't form purposes of your own—that you need someone to tell you what to do. The average child has more gumption than that.";	
		quotes[4] = "He who refuses to do arithmetic is doomed to talk nonsense.";
		quotes[5] = "It's possible to program a computer in English. It's also possible to make an airplane controlled by reins and spurs.";
		quotes[6] = "Your statements amount to saying that if AI is possible, it should be easy. Why is that?";
		quotes[7] = "You don't want to examine the basis of your computer's morality any more than you want to see sausage being made.";
	}
	
	else if ( author == "minsky" )
	{
		quotes[0] = "[Artificial intelligence is] the science of making machines do things that would require intelligence if done by men.";
		quotes[1] = "No computer has ever been designed that is ever aware of what it's doing; but most of the time, we aren't either.";
		quotes[2] = "You don't understand anything until you learn it more than one way.";
		quotes[3] = "Societies need rules that make no sense for individuals. For example, it makes no difference whether a single car drives on the left or on the right. But it makes all the difference when there are many cars!";	
		quotes[4] = "Imagine what it would be like if TV actually were good. It would be the end of everything we know.";
		quotes[5] = "In general we are least aware of what our minds do best.";
		quotes[6] = "In science, one learns the most by studying what seems to be the least.";
		quotes[7] = "It would be as useless to perceive how things 'actually look' as it would be to watch the random dots on untuned television screens.";
	}
	
		else if ( author == "asimov" )
	{
		quotes[0] = "I do not fear computers. I fear the lack of them.";
		quotes[1] = "Part of the inhumanity of the computer is that, once it is competently programmed and working smoothly, it is completely honest.";
		quotes[2] = "Science fiction writers foresee the inevitable, and although problems and catastrophes may be inevitable, solutions are not.";
		quotes[3] = "In life, unlike chess, the game continues after checkmate.";	
		quotes[4] = "If knowledge can create problems, it is not through ignorance that we can solve them.";
		quotes[5] = "The first law of dietetics seems to be: if it tastes good, it's bad for you.";
		quotes[6] = "It pays to be obvious, especially if you have a reputation for subtlety.";
	}
	
	else if ( author == "turing" )
	{
		quotes[0] = "We can only see a short distance ahead, but we can see plenty there that needs to be done.";
		quotes[1] = "Mathematical reasoning may be regarded rather schematically as the exercise of a combination of two facilities, which we may call intuition and ingenuity.";
		quotes[2] = "A man provided with paper, pencil, and rubber, and subject to strict discipline, is in effect a universal Turing Machine.";
		quotes[3] = "A computer would deserve to be called intelligent if it could deceive a human into believing that it was human.";	
		quotes[4] = "Machines take me by surprise with great frequency.";
		quotes[5] = "We are not interested in the fact that the brain has the consistency of cold porridge.";
		quotes[6] = "Science is a differential equation. Religion is a boundary condition.";
	}
	
	
	var index = Math.floor(Math.random() * quotes.length);
	
	document.getElementById("randoQuote").innerHTML = "<img src=\"images/quoted.gif\" alt=\"Quote\" /><blockquote>" + quotes[index] + "</blockquote>";
	
}