var theImages = new Array() 

theImages[0] = 'images/RandomFront_FtLauderdale1.jpg'
theImages[1] = 'images/RandomFront_Sarasota1.jpg'
theImages[2] = 'images/RandomFront_Sarasota2.jpg'
theImages[3] = 'images/RandomFront_Outdoor1.jpg'
theImages[4] = 'images/RandomFront_FourAmigos1.jpg'
theImages[5] = 'images/RandomFront_Outdoor2.jpg'
theImages[6] = 'images/RandomFront_Outdoor3.jpg'
theImages[7] = 'images/RandomFront_George1.jpg'
theImages[8] = 'images/RandomFront_Tom1.jpg'
theImages[9] = 'images/RandomFront_FtLauderdale2.jpg'
theImages[10] = 'images/RandomFront_Outdoor4.jpg'
theImages[11] = 'images/RandomFront_Sarasota3.jpg'
theImages[12] = 'images/RandomFront_Judging.jpg'
theImages[13] = 'images/RandomFront_Sarasota4.jpg'
theImages[14] = 'images/RandomFront_Sarasota5.jpg'
theImages[15] = 'images/RandomFront_Sarasota6.jpg'
theImages[16] = 'images/RandomFront_FtLauderdale3.jpg'
theImages[17] = 'images/RandomFront_Outdoor5.jpg'
theImages[18] = 'images/RandomFront_TwoPeeps1.jpg'
theImages[19] = 'images/RandomFront_DebKris.jpg'
theImages[20] = 'images/RandomFront_Steve.jpg'
theImages[21] = 'images/RandomFront_Nat1.jpg'
theImages[20] = 'images/RandomFront_Will1.jpg'

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(){
document.write('<img src="'+theImages[whichImage]+'">');
}

function addLoadEvent(func){
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
		} else {
			window.onload = function() {
				oldonload();
				func();
		}
	}	
}

function redirect(VLocation){				
	top.location='../index.php?pageid='+VLocation;
 }



