// Random background script

var theImages = new Array() 

theImages[0] = 'http://inapcache.boston.com/universal/site_graphics/blogs/bigpicture/kyrgyz_04_07/k23_22915797.jpg'
theImages[1] = 'http://inapcache.boston.com/universal/site_graphics/blogs/bigpicture/kyrgyz_04_07/k17_22915575.jpg'
theImages[2] = 'http://banksy.co.uk/indoors/images/grannies.gif'
theImages[3] = 'http://inapcache.boston.com/universal/site_graphics/blogs/bigpicture/shanghai_04_28/s20_22955595.jpg'
theImages[4] = 'http://www.banksy.co.uk/indoors/images/riotcoppers.gif'

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]+'">');
}

