

var theImages = new Array()

//Random-loading images
theImages[0] = 'http://www.california-construction.com/picts/randompicts/windsurfer.gif' 
theImages[1] = 'http://www.california-construction.com/picts/randompicts/Sailinbay.gif' 
theImages[2] = 'http://www.california-construction.com/picts/randompicts/Coronadobridge.gif' 
theImages[3] = 'http://www.california-construction.com/picts/randompicts/Balboapark.gif' 
theImages[4] = 'http://www.california-construction.com/picts/randompicts/desert.gif' 
theImages[5] = 'http://www.california-construction.com/picts/randompicts/aerial.gif' 
theImages[6] = 'http://www.california-construction.com/picts/randompicts/beach.gif' 
theImages[7] = 'http://www.california-construction.com/picts/randompicts/torreypinesgolf.gif'
theImages[8] = 'http://www.california-construction.com/picts/randompicts/hortonplaza.gif'
theImages[9] = 'http://www.california-construction.com/picts/randompicts/balloon.gif'
theImages[10] = 'http://www.california-construction.com/picts/randompicts/balboareflectingpond.gif'
theImages[11] = 'http://www.california-construction.com/picts/randompicts/horsestatue.gif'
theImages[12] = 'http://www.california-construction.com/picts/randompicts/lajollaaerial.gif'

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 ="sandiego.html"><img src="'+theImages[whichImage]+'" border=0 width=215 height=150 align="right"></a>');}
else if(whichImage==1){document.write('<a href ="link.html"><img src="'+theImages[whichImage]+'" border=0 width=215 height=150 align="right"></a>');}
else if(whichImage==2){document.write('<a href ="link.html"><img src="'+theImages[whichImage]+'" border=0 width=215 height=150 align="right"></a>');}
else if(whichImage==3){document.write('<a href ="link.html"><img src="'+theImages[whichImage]+'" border=0 width=215 height=150 align="right"></a>');}
else if(whichImage==4){document.write('<a href ="link.html"><img src="'+theImages[whichImage]+'" border=0 width=215 height=150 align="right"></a>');}
else if(whichImage==5){document.write('<a href ="link.html"><img src="'+theImages[whichImage]+'" border=0 width=215 height=150 align="right"></a>');}
else if(whichImage==6){document.write('<a href ="link.html"><img src="'+theImages[whichImage]+'" border=0 width=215 height=150 align="right"></a>');}
else if(whichImage==7){document.write('<a href ="link.html"><img src="'+theImages[whichImage]+'" border=0 width=215 height=150 align="right"></a>');}
else if(whichImage==8){document.write('<a href ="link.html"><img src="'+theImages[whichImage]+'" border=0 width=215 height=150 align="right"></a>');}
else if(whichImage==9){document.write('<a href ="link.html"><img src="'+theImages[whichImage]+'" border=0 width=215 height=150 align="right"></a>');}
else if(whichImage==10){document.write('<a href ="link.html"><img src="'+theImages[whichImage]+'" border=0 width=215 height=150 align="right"></a>');}
else if(whichImage==11){document.write('<a href ="link.html"><img src="'+theImages[whichImage]+'" border=0 width=215 height=150 align="right"></a>');}
else if(whichImage==12){document.write('<a href ="link.html"><img src="'+theImages[whichImage]+'" border=0 width=215 height=150 align="right"></a>');}

} 

