// JavaScript Document

var theImages = new Array() 

theImages[0] = 'img/home/wood_effects/home_img_01.jpg'
theImages[1] = 'img/home/wood_effects/home_img_02.jpg'
theImages[2] = 'img/home/wood_effects/home_img_06.jpg'
theImages[3] = 'img/home/wood_effects/home_img_07.jpg'
theImages[4] = 'img/home/wood_effects/home_img_08.jpg'
theImages[5] = 'img/home/wood_effects/home_img_09.jpg'
theImages[6] = 'img/home/wood_effects/home_img_choc_oak.jpg'
theImages[7] = 'img/home/wood_effects/home_img_cream.jpg'
theImages[8] = 'img/home/wood_effects/home_img_white_satin.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]+'" border="0" alt="click to view the Conti range" />');
}