var quotes = new Array(7);
var books = new Array(7);

quotes[0] = "If you can dream - and not make dreams your master<br /> If you can think - and not make thoughts your aim<br /> If you can meet With Triumph and Disaster<br /> And treat those two imposters just the same..<br /> If you can bear to hear the truth you\'ve spoke twisted by knaves to make a trap for fools or watch the things you gave your life to, broken, <br /> And stoop and build\'em up With worn out tools";
books[0] = "If  1910";

quotes[1] = "Every woman knows all about everything";
books[1] = "The Eye of Allah (1926)";

quotes[2] = "Funny how new things are the old things";
books[2] = "With the Night Mail (1909)";

quotes[3] = "If I were damned of body and soul <br /> I know whose prayers would make me whole\'<br /> Mother o\' mine, O mother o\' mine.";
books[3] = "Mother o\'Mine (1891)";

quotes[4] = "When Earth\'s last picture is painted and the tubes are twisted and dried...<br /> When the oldest colours have faded, and the youngest critic has died,<br /> We shall rest, and, faith, we shall need it – lie down For an Aen or two,<br /> Til the Master of All Good Workmen shall put us to work Anew!";
books[4] = "When Earth\'s last picture is painted (1892)";

quotes[5] = "I keep six honest serving men:<br /> (They taught me all I knew)<br /> Their names are What and Where and When<br /> And How and Why and Who";
books[5] = "The Elephant\'s Child (Just-So Stories 1902)";

quotes[6] = "For the strength of the Pack is the Wolf, and the strength of the Wolf is the Pack";
books[6] = "The Law of the Jungle, Second Jungle Book (1895)";




//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);
}