// JavaScript Document

var theImages = new Array()

//Random-loading images
theImages[0] = '/Portals/27854/images/home01.jpg' // replace with names of images
theImages[1] = '/Portals/27854/images/home02.jpg' // replace with names of images
theImages[2] = '/Portals/27854/images/home03.jpg' // replace with names of images
theImages[3] = '/Portals/27854/images/home04.jpg' // replace with names of images
theImages[4] = '/Portals/27854/images/home05.jpg' // replace with names of images
theImages[5] = '/Portals/27854/images/home06.jpg' // replace with names of images
theImages[6] = '/Portals/27854/images/home07.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="/our-fleet/40-passenger-limo-bus/"><img src="'+theImages[whichImage]+'" border=0 width=309 height=232><h5 id="featured"><span>40 Passenger Limo Bus</span></h5></a>');
}
else if(whichImage==1){
document.write('<a href="/our-fleet/rolls-royce-phantom/"><img src="'+theImages[whichImage]+'" border=0 width=309 height=232><h5 id="featured"><span>Rolls Royce Phantom</span></h5></a>');
}
else if(whichImage==2){
document.write('<a href="/our-fleet/krystal-e-5-limousines/"><img src="'+theImages[whichImage]+'" border=0 width=309 height=232><h5 id="featured"><span>Krystal E-5 Limousines</span></h5></a>');
}
else if(whichImage==3){
document.write('<a href="/our-fleet/1955-rolls-royce-silver-wraith/"><img src="'+theImages[whichImage]+'" border=0 width=309 height=232><h5 id="featured"><span>1955 Rolls Royce Silver Wraith</span></h5></a>');
}
else if(whichImage==4){
document.write('<a href="/our-fleet/10-pass-cadillac-dts/"><img src="'+theImages[whichImage]+'" border=0 width=309 height=232><h5 id="featured"><span>10 Pass Cadillac DTS</span></h5></a>');
}
else if(whichImage==5){
document.write('<a href="/our-fleet/bentley-continental-flying-spur/"><img src="'+theImages[whichImage]+'" border=0 width=309 height=232><h5 id="featured"><span>Bentley Continental Flying Spur</span></h5></a>');
}
else if(whichImage==6){
document.write('<a href="/our-fleet/20-passenger-cadilac-escalades/"><img src="'+theImages[whichImage]+'" border=0 width=309 height=232><h5 id="featured"><span>20-Passenger Cadillac Escalade</span></h5></a>');
}

}
