var theImages = new Array()

//Random-loading images
theImages[0] = 'Images/ImgCycle/MainGraphic1.gif' // replace with names of images
theImages[1] = 'Images/ImgCycle/MainGraphic2.gif' // replace with names of images
theImages[2] = 'Images/ImgCycle/MainGraphic3.gif' // replace with names of images
theImages[3] = 'Images/ImgCycle/MainGraphic1.gif' // replace with names of images
theImages[4] = 'Images/ImgCycle/MainGraphic4.gif' // replace with names of images
theImages[5] = 'Images/ImgCycle/MainGraphic5.gif' // replace with names of images
theImages[6] = 'Images/ImgCycle/MainGraphic6.gif' // replace with names of images
theImages[7] = 'Images/ImgCycle/MainGraphic1.gif' // replace with names of images
theImages[8] = 'Images/ImgCycle/MainGraphic7.gif' // replace with names of images
theImages[9] = 'Images/ImgCycle/MainGraphic8.gif' // replace with names of images
theImages[10] = 'Images/ImgCycle/MainGraphic9.gif' // replace with names of images
theImages[11] = 'Images/ImgCycle/MainGraphic1.gif' // replace with names of images
theImages[12] = 'Images/ImgCycle/MainGraphic10.gif' // 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 ="link.html"><img src="'+theImages[whichImage]+'" border=0 ></a>');
}
else if(whichImage==1){
document.write('<a href ="link.html"><img src="'+theImages[whichImage]+'" border=0 ></a>');
}
else if(whichImage==2){
document.write('<a href ="link.html"><img src="'+theImages[whichImage]+'" border=0 width=796 height=411></a>');
}
else if(whichImage==3){
document.write('<a href ="link.html"><img src="'+theImages[whichImage]+'" border=0 width=796 height=411></a>');
}
else if(whichImage==4){
document.write('<a href ="link.html"><img src="'+theImages[whichImage]+'" border=0 width=796 height=411></a>');
}
else if(whichImage==5){
document.write('<a href ="link.html"><img src="'+theImages[whichImage]+'" border=no width=796 height=411></a>');
}
else if(whichImage==6){
document.write('<a href ="link.html"><img src="'+theImages[whichImage]+'" border=no width=796 height=411></a>');
}
else if(whichImage==7){
document.write('<a href ="link.html"><img src="'+theImages[whichImage]+'" border=no width=796 height=411></a>');
}
else if(whichImage==8){
document.write('<a href ="link.html"><img src="'+theImages[whichImage]+'" border=no width=796 height=411></a>');
}
else if(whichImage==9){
document.write('<a href ="link.html"><img src="'+theImages[whichImage]+'" border=no width=796 height=411></a>');
}
else if(whichImage==10){
document.write('<a href ="link.html"><img src="'+theImages[whichImage]+'" border=no width=796 height=411></a>');
}
else if(whichImage==11){
document.write('<a href ="link.html"><img src="'+theImages[whichImage]+'" border=no width=796 height=411></a>');
}
else if(whichImage==12){
document.write('<a href ="link.html"><img src="'+theImages[whichImage]+'" border=no width=796 height=411></a>');
}
else if(whichImage==13){
document.write('<a href ="link.html"><img src="'+theImages[whichImage]+'" border=no width=796 height=411></a>');
}

}



