var theImages = new Array()

theImages[0] = 'colinpic_01.jpg'
theImages[1] = 'colinpic_02.jpg'
theImages[2] = 'colinpic_03.jpg'
theImages[3] = 'colinpic_05.jpg'
theImages[4] = 'colinpic_09.jpg'
theImages[5] = 'colinpic_10.jpg'

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 showRandomImage()
{
	document.write('<img border="0" alt="" src="images/'+theImages[whichImage]+'">');
}