// JavaScript Document


// Create arrays to contain all the values 
// for image locations

image = new Array

image[1]="Images/img_book.jpg"
image[2]="Images/img_book2.jpg"
image[3]="Images/img_book3.jpg"
image[4]="Images/img_pen.jpg"


// Create a random number between 1 and four
random_num = (Math.round((Math.random()*3)+1))


function rand_img(){
// Write the image tag with a random array element
document.write("<img src=\"" + image[random_num] + "\"><br>");
}

quote = new Array
var index = 0;

quote[index++] = "This book is not to be tossed aside lightly. It should be thrown with great force.<br><strong>Dorothy Parker</strong>";
quote[index++] = "Men can only be happy when they do not assume that the object of life is happiness.<br><strong>George Orwell</strong>";
quote[index++] = "Read in order to live.<br><strong>Gustave Flaubert</strong>";
quote[index++] = "Like a piece of ice on a hot stove the poem must ride on its own melting. . . . It can never lose its sense of meaning that once unfolded by surprise as it went.<br><strong>Robert Lee Frost</strong>";
quote[index++] = "I never let my schooling interfere with my education.<br><strong>Mark Twain</strong>";
quote[index++] = "I believe that today more than ever a book should be sought after even if it has only one great page in it. We must search for fragments, splinters, toenails, anything that has ore in it, anything that is capable of resuscitating the body and the soul.<br><strong>Henry Miller</strong>";
quote[index++] = "I learned long ago that being Lewis Carroll was infinitely more exciting than being Alice.<br><strong>Joyce Carol Oates</strong>";
quote[index++] = "Reading is to the mind what exercise is to the body.<br><strong>Joseph Addison</strong>";
quote[index++] = "If I read a book and it makes my whole body so cold no fire can ever warm me, I know that is poetry. If I feel physically as if the top of my head were taken off, I know that is poetry.<br><strong>Emily Dickinson</strong>";
quote[index++] = "Literature is the one place in any society where, within the secrecy of our own heads, we can hear voices talking about everything in every possible way.<br><strong>Salman Rushdie</strong>";
quote[index++] = "Literature is language charged with meaning.<br><strong>Ezra Pound</strong>";
quote[index++] = "Surely it was time someone invented a new plot, or that the author came out from the bushes.<br><strong>Virginia Woolf</strong>";
quote[index++] = ". . .The analysis of character is the highest human entertainment.  And literature does it, unlike gossip, without mentioning real names.<br><strong>Isaac Bashevis Singer</strong>";
quote[index++] = "The thing that teases the mind over and over for years, and at last gets itself put down rightly on paper&#8211;whether little or great, it belongs to Literature.<br><strong>Sarah Orne Jewett</strong>";
quote[index++] = "The sole substitute for an experience which we have not ourselves lived through is art and literature.<br><strong>Alexander Isayevich Solzhenitsyn</strong>";
quote[index++] = "Reading maketh a full man, conference a ready man, and writing an exact man.<br><strong>Francis Bacon</strong>";


// Create a random number between 1 and lenght of quote array
random_num_quote = (Math.round(Math.random()*(index-1)))
//alert(random_num_quote);

function rand_quote(){
// Write the image tag with a random array element
document.write(quote[random_num_quote]);
}


