var theImages = new Array()

theImages[0] = 'src="eyes/head_2_1'
theImages[1] = 'src="eyes/head_2_2'
theImages[2] = 'src="eyes/head_2_3'
theImages[3] = 'src="eyes/head_2_4'
theImages[4] = 'src="eyes/head_2_5'
theImages[5] = 'src="eyes/head_2_6'

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 '+theImages[whichImage]+'.jpg" width="417" height="191" border="0" usemap="#pengalaman">');
}