// START OF SCRIPT FOR RANDOM LOGO IMAGE 

// Set up the image files to be used.
var theImages = new Array() 

theImages[0] = '/adulthome/img/pm_logo_01.gif'
theImages[1] = '/adulthome/img/pm_logo_02.gif'
theImages[2] = '/adulthome/img/pm_logo_03.gif'
theImages[3] = '/adulthome/img/pm_logo_04.gif'
theImages[4] = '/adulthome/img/pm_logo_05.gif'

// do not edit anything below this line

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 randomLogo(){
    document.write('<a href="http://www.panmacmillan.com"><img src="'+theImages[whichImage]+'" title="click here to go to panmacmillan.com" alt="Pan Macmillan"></a>');
}