var theImages = new Array()

//Random-loading images
theImages[0] = '/images/random/1.jpg'
theImages[1] = '/images/random/2.jpg' // replace with names of images
theImages[2] = '/images/random/3.jpg' // replace with names of images
theImages[3] = '/images/random/4.jpg' // replace with names of images

theImages[4] = '/images/random/5.jpg' // replace with names of images
theImages[5] = '/images/random/6.jpg' // replace with names of images
theImages[6] = '/images/random/7.jpg' // replace with names of images
theImages[7] = '/images/random/8.jpg' // replace with names of images

theImages[8] = '/images/random/9.jpg' // replace with names of images
theImages[9] = '/images/random/10.jpg' // replace with names of images
theImages[10] = '/images/random/11.jpg' // replace with names of images
theImages[11] = '/images/random/12.jpg' // replace with names of images

var j = 0
var p = 3

var whichImage = Math.round(Math.random()*(p-1));

function showImage(){
if(whichImage==0){
document.write('<img src="'+theImages[0]+'" border=0 width=109 height=142><img src="'+theImages[4]+'" border=0 width=109 height=142 hspace="1"><img src="'+theImages[8]+'" border=0 width=109 height=142>');
}
else if(whichImage==1){
document.write('<img src="'+theImages[1]+'" border=0 width=109 height=142><img src="'+theImages[5]+'" border=0 width=109 height=142 hspace="1"><img src="'+theImages[9]+'" border=0 width=109 height=142>');
}
else if(whichImage==2){
document.write('<img src="'+theImages[2]+'" border=0 width=109 height=142><img src="'+theImages[6]+'" border=0 width=109 height=142 hspace="1"><img src="'+theImages[10]+'" border=0 width=109 height=142>');
}
else if(whichImage==3){
document.write('<img src="'+theImages[3]+'" border=0 width=109 height=142><img src="'+theImages[7]+'" border=0 width=109 height=142 hspace="1"><img src="'+theImages[11]+'" border=0 width=109 height=142>');
}
}
