var theHPSets = new Array();
theHPSets[0] = 'hp_01';
theHPSets[1] = 'hp_02';
theHPSets[2] = 'hp_03';
theHPSets[3] = 'hp_04';
theHPSets[4] = 'hp_05';

var t = theHPSets.length;
var whichHPNum = Math.round(Math.random()*(t-1));
var whichHPSet = theHPSets[whichHPNum];

var theHPImage = whichHPSet+'.jpg';
var preBuffer = new Array();
   preBuffer[0] = new Image();
   preBuffer[0].src = '/assets/img/random/'+theHPImage;
function showHPImage(w,h){
   document.write('<img src="/assets/img/random/'+theHPImage+'" border="0" width="'+w+'"'+' height="'+h+'">');
}