// Use these files
var theImages = new Array()
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'http://www.clubmans.org.uk/decoration/headpix/c1.png'
theImages[1] = 'http://www.clubmans.org.uk/decoration/headpix/c2.png'
theImages[2] = 'http://www.clubmans.org.uk/decoration/headpix/c3.png'
theImages[3] = 'http://www.clubmans.org.uk/decoration/headpix/c4.png'
theImages[4] = 'http://www.clubmans.org.uk/decoration/headpix/c5.png'
theImages[5] = 'http://www.clubmans.org.uk/decoration/headpix/c6.png'
theImages[6] = 'http://www.clubmans.org.uk/decoration/headpix/c7.png'

// 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 showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}
