
// Store the date in a variable
d = new Date()
dateText = ""

// Get the current year; if it's before 2000, add 1900
if (d.getYear() < 2000) 
    year = (1900 + d.getYear())
else 
    year = (d.getYear())
	
dateText += year


// random image generator
// Set up the image files to be used.
var theImages = new Array() 
// do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'hp_main1.jpg'
theImages[1] = 'hp_main2.jpg'
theImages[2] = 'hp_main3.jpg'
theImages[3] = 'hp_main4.jpg'

// do not edit anything below this line

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="images/'+theImages[whichImage]+'" width=571 height=245 alt=/"Key Largo, FL/">');
}


function openSS(path) {
popSS=window.open(path,"popSS","height=475,width=510,scrollbars=yes,resizable=yes,location=0,screenx=0,screeny=0,left=0,top=0");
popSS.focus()
}
function openDIR(path) {
popDIR=window.open(path,"popDIR","height=450,width=425,scrollbars=yes,resizable=yes,location=0,screenx=0,screeny=0,left=0,top=0");
popDIR.focus()
}
function openMAP(path) {
popMAP=window.open(path,"popMAP","height=420,width=525,scrollbars=yes,resizable=yes,location=0,screenx=0,screeny=0,left=0,top=0");
popMAP.focus()
}
