var theImages = new Array()

//Random-loading images
theImages[0] = 'images/TRC_00.jpg' // replace with names of images
theImages[1] = 'images/TRC_01.jpg' // replace with names of images
theImages[2] = 'images/TRC_02.jpg' // replace with names of images
theImages[3] = 'images/TRC_03.jpg' // replace with names of images
theImages[4] = 'images/TRC_04.jpg' // replace with names of images
theImages[5] = 'images/TRC_05.jpg' // replace with names of images
theImages[6] = 'images/TRC_06.jpg' // replace with names of images
theImages[7] = 'images/TRC_07.jpg' // replace with names of images
theImages[8] = 'images/TRC_08.jpg' // replace with names of images
theImages[9] = 'images/TRC_09.jpg' // replace with names of images
theImages[10] = 'images/TRC_10.jpg' // replace with names of images
theImages[11] = 'images/TRC_11.jpg' // replace with names of images
theImages[12] = 'images/TRC_12.jpg' // replace with names of images
theImages[13] = 'images/TRC_13.jpg' // replace with names of images
theImages[14] = 'images/TRC_14.jpg' // replace with names of images
theImages[15] = 'images/TRC_15.jpg' // replace with names of images

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(){
if(whichImage==0){
document.write('<a href ="http://www.theredcircle.com/"><img src="'+theImages[0]+'" border=0 width=1280 height=1000></a>');
}
else if(whichImage==1){
document.write('<a href ="http://www.theredcircle.com/"><img src="'+theImages[1]+'" border=0 width=1280 height=1000></a>');
}
else if(whichImage==2){
document.write('<a href ="http://www.theredcircle.com/"><img src="'+theImages[2]+'" border=0 width=1280 height=1000></a>');
}
else if(whichImage==3){
document.write('<a href ="http://www.theredcircle.com/"><img src="'+theImages[3]+'" border=0 width=1280 height=1000></a>');
}
else if(whichImage==4){
document.write('<a href ="http://www.theredcircle.com/"><img src="'+theImages[4]+'" border=0 width=1280 height=1000></a>');
}
else if(whichImage==5){
document.write('<a href ="http://www.theredcircle.com/"><img src="'+theImages[5]+'" border=0 width=1280 height=1000></a>');
}
else if(whichImage==6){
document.write('<a href ="http://www.theredcircle.com/"><img src="'+theImages[6]+'" border=0 width=1280 height=1000></a>');
}
else if(whichImage==7){
document.write('<a href ="http://www.theredcircle.com/"><img src="'+theImages[7]+'" border=0 width=1280 height=1000></a>');
}
else if(whichImage==8){
document.write('<a href ="http://www.theredcircle.com/"><img src="'+theImages[8]+'" border=0 width=1280 height=1000></a>');
}
else if(whichImage==9){
document.write('<a href ="http://www.theredcircle.com/"><img src="'+theImages[9]+'" border=0 width=1280 height=1000></a>');
}
else if(whichImage==10){
document.write('<a href ="http://www.theredcircle.com/"><img src="'+theImages[10]+'" border=0 width=1280 height=1000></a>');
}
else if(whichImage==11){
document.write('<a href ="http://www.theredcircle.com/"><img src="'+theImages[11]+'" border=0 width=1280 height=1000></a>');
}
else if(whichImage==12){
document.write('<a href ="http://www.theredcircle.com/"><img src="'+theImages[12]+'" border=0 width=1280 height=1000></a>');
}
else if(whichImage==13){
document.write('<a href ="http://www.theredcircle.com/"><img src="'+theImages[13]+'" border=0 width=1280 height=1000></a>');
}
else if(whichImage==14){
document.write('<a href ="http://www.theredcircle.com/"><img src="'+theImages[14]+'" border=0 width=1280 height=1000></a>');
}
else if(whichImage==15){
document.write('<a href ="http://www.theredcircle.com/"><img src="'+theImages[15]+'" border=0 width=1280 height=1000></a>');
}

}
