// JavaScript Document
var theImages = new Array()
//Random-loading images
theImages[0] = '/titles/bathroom.jpg'
theImages[1] = '/titles/bricks.jpg'
theImages[2] = '/titles/close-up.jpg'
theImages[3] = '/titles/floor.jpg'
theImages[4] = '/titles/glass-tiles.jpg'
theImages[5] = '/titles/glass.jpg'
theImages[6] = '/titles/kitchen.jpg'
theImages[7] = '/titles/kitchen2.jpg'
theImages[8] = '/titles/outdoors.jpg'
theImages[9] = '/titles/pool2.jpg'
theImages[10] = '/titles/pool3.jpg'
theImages[11] = '/titles/pool4.jpg'
theImages[12] = '/titles/pool5.jpg'
theImages[13] = '/titles/pool6.jpg'
theImages[14] = '/titles/resort.jpg'
theImages[15] = '/titles/rocks.jpg'
theImages[16] = '/titles/tiles.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 showImage(){
	document.write('<img src="'+theImages[whichImage]+'" alt="">');
}