var theImages = new Array() 

theImages[0] = 'images/covers/double_dare.jpg'
theImages[1] = 'images/covers/the_reluctant_countess.jpg'
theImages[2] = 'images/covers/the_hungry_heart.jpg'
theImages[3] = 'images/covers/sharing_sunrise.jpg'
theImages[4] = 'images/covers/chrysalis.jpg'
theImages[5] = 'images/covers/voice_of_the_lion.jpg'
theImages[6] = 'images/covers/guesthouse.jpg'
theImages[7] = 'images/covers/outlaws_son.jpg'
theImages[8] = 'images/covers/awakening.jpg'
theImages[9] = 'images/covers/the_druids_curse.jpg'
theImages[10] = 'images/covers/the_lady_and_the_lawyer.jpg'
theImages[11] = 'images/covers/forevver.jpg'

var theLinks = new Array()

theLinks[0] = 'books/double_dare.html'
theLinks[1] = 'books/the_reluctant_countess.html'
theLinks[2] = 'books/the_hungry_heart.html'
theLinks[3] = 'books/sharing_sunrise.html'
theLinks[4] = 'books/chrysalis.html'
theLinks[5] = 'books/voice_of_the_lion.html'
theLinks[6] = 'books/guesthouse.html'
theLinks[7] = 'books/outlaws_son.html'
theLinks[8] = 'books/awakening.html'
theLinks[9] = 'books/the_druids_curse.html'
theLinks[10] = 'books/the_lady_and_the_lawyer.html'
theLinks[11] = 'books/forevver.html'

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<a href="'+theLinks[whichImage]+'"><img src="'+theImages[whichImage]+'" border="0" width="140"></a>');
}