var loadPixFlag = 0;

function loadPix() {
	if (document.images) {
		beachhouseson = new Image(115,32);
		beachhouseson.src = "gizmos/navbar/beachhouses2.gif";

		gardencottageon = new Image(121,32);
		gardencottageon.src = "gizmos/navbar/gardencottage2.gif";

		galleryon = new Image(85,32);
		galleryon.src = "gizmos/navbar/photogallery2.gif";

		infoon = new Image(62,32);
		infoon.src = "gizmos/navbar/activities2.gif";

		rateson = new Image(41,32);
		rateson.src = "gizmos/navbar/rates2.gif";

		contacton = new Image(71,32);
		contacton.src = "gizmos/navbar/contactus2.gif";

		loadPixFlag = 1;
	}
}

if (document.images) {
	beachhousesoff = new Image(115,32);
	beachhousesoff.src = "gizmos/navbar/beachhouses1.gif";

	gardencottageoff = new Image(121,32);
	gardencottageoff.src = "gizmos/navbar/gardencottage1.gif";

	galleryoff = new Image(85,32);
	galleryoff.src = "gizmos/navbar/photogallery1.gif";

	infooff = new Image(62,32);
	infooff.src = "gizmos/navbar/activities1.gif";

	ratesoff = new Image(41,32);
	ratesoff.src = "gizmos/navbar/rates1.gif";

	contactoff = new Image(71,32);
	contactoff.src = "gizmos/navbar/contactus1.gif";
}

function flipOn(imgName) {
	if (document.images && loadPixFlag) {
		imgOn = eval(imgName + "on.src");
		document[imgName].src = imgOn;
	}
}

function flipOff(imgName) {
	if (document.images && loadPixFlag) {
		imgOff = eval(imgName + "off.src");
		document[imgName].src = imgOff;
	}
}

function framebuster() {
	if (self.parent.frames.length != 0) self.parent.location=document.location;
}

function startup() {
	framebuster();
	loadPix();
}

function PopupPhoto(id) {
	var photourl = "galleryphoto.cfm?id="+id;
	if (document.images) {
		pw=window.open( photourl, "pw", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=400,height=350,screenX=50,screenY=50,top=50,left=50");
	} else {
		alert( '\nSorry, this Feature requires Netscape Navigator, Version 3.0 or greater\n'+
				'or Microsoft Internet Explorer, Version 4.0+.\n\n' );
	}
}

