

// JavaScript Document
var photoRotateSpeed = 5000000;
// Duration of crossfade (seconds)
var crossFadeDuration = 3;
// Specify the image files
var Books = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Books[0] = 'borgia-bride'
Books[1] = 'mona-lisa'


// do not edit anything below this line
var t;
var j = 0;
var p = Books.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Books[i];
}
function runBookRotate() {
document.getElementById(Books[0]).style.display = "none";
document.getElementById(Books[1]).style.display = "none";
document.getElementById(Books[j]).style.display ="block";
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runBookRotate()', photoRotateSpeed);
}

