// Set up the image files to be used for the second book cover.
cover2 = new Array
// To add more cover images, continue with the pattern below, adding to the array.
	("../images/ne_cover02.jpg",
	 "../images/ne_cover04.jpg",
	 "../images/ne_cover06.jpg")

// Set up the links to the second set of books.
// The first link in the array matches the first cover listed in the book cover array, etc.
link2 = new Array
	("http://berkeley.worldcat.org/oclc/85019139?referer=list_view",
	 "http://berkeley.worldcat.org/oclc/227032788?referer=list_view",
	 "http://berkeley.worldcat.org/oclc/309835217?referer=list_view")

// This sets a counter to the total number of items in each of the two arrays.
// The value of the counter is used by the random number generator.
imgCt2 = cover2.length;

/* This function selects a random number to determine which book cover image
will be displayed, and the corresponding link to the book is activated.   */
function showImage2(){
	if (document.images) {    // if the document can handle images (it can)
	randomNum2 = Math.floor ((Math.random() * imgCt2))   // This is a random number generator
	}
// the XHTML is generated (book cover #2 with active link to the full text)
document.write('<a href="'+link2[randomNum2]+'"><img src="'+cover2[randomNum2]+'"></a>');
}
