

var quotes = new Array(2);
var books = new Array(2);

quotes[0] = "It was the best of times. It was the worst of times. It was the age of wisdom, it was the age of foolishness. We had everything before us; we had nothing before us, we are  all going direct to heaven, we are all going direct the other way.";
books[0] = "Charles Dickens<br /> - A Tale of Two Cities";

quotes[1] = "&quot;Do you spell it with a \'V\' or a \'W\'?&quot; inquired the judge. &quot;That depends on the taste and fancy of the speller, my Lord,&quot; replied Sam.";
books[1] = "Charles Dickens<br /> - Pickwick Papers";



//calculate a random index
index = Math.floor(Math.random() * quotes.length);

//display the quotation
function showQuote()
{
	var theQuote = quotes[index];
	document.write(theQuote);
}
function showBook()
{
	var theBook = books[index];
	document.write(theBook);
}






