function preLoad(image_list) {
	var x = 0;
	x++; image_list[x] = new Image; image_list[x].src = "images/bg-home3.jpg";
	x++; image_list[x] = new Image; image_list[x].src = "images/bg-about1.jpg";
	x++; image_list[x] = new Image; image_list[x].src = "images/bg-about2.jpg";
	x++; image_list[x] = new Image; image_list[x].src = "images/bg-club1.jpg";
	x++; image_list[x] = new Image; image_list[x].src = "images/bg-clubhouse1.jpg";
	x++; image_list[x] = new Image; image_list[x].src = "images/bg-dining1.jpg";
	x++; image_list[x] = new Image; image_list[x].src = "images/bg-employ1.jpg";
	x++; image_list[x] = new Image; image_list[x].src = "images/bg-evtserv1.jpg";
	x++; image_list[x] = new Image; image_list[x].src = "images/bg-evtserv2.jpg";
	x++; image_list[x] = new Image; image_list[x].src = "images/bg-golf1.jpg";
	x++; image_list[x] = new Image; image_list[x].src = "images/bg-golf2.jpg";
	x++; image_list[x] = new Image; image_list[x].src = "images/bg-location1.jpg";
	x++; image_list[x] = new Image; image_list[x].src = "images/bg-membership1.jpg";
	x++; image_list[x] = new Image; image_list[x].src = "images/bg-memserv1.jpg";
	x++; image_list[x] = new Image; image_list[x].src = "images/bg-memserv2.jpg";
	x++; image_list[x] = new Image; image_list[x].src = "images/bg-proshop1.jpg";
	x++; image_list[x] = new Image; image_list[x].src = "images/dining2b.jpg";
	x++; image_list[x] = new Image; image_list[x].src = "images/dining3b.jpg";
	x++; image_list[x] = new Image; image_list[x].src = "images/dining4b.jpg";
	x++; image_list[x] = new Image; image_list[x].src = "images/dining5b.jpg";
	x++; image_list[x] = new Image; image_list[x].src = "images/dining6b.jpg";
	x++; image_list[x] = new Image; image_list[x].src = "images/dining7b.jpg";
	x++; image_list[x] = new Image; image_list[x].src = "images/meeting1b.jpg";
	x++; image_list[x] = new Image; image_list[x].src = "images/meeting2b.jpg";
	x++; image_list[x] = new Image; image_list[x].src = "images/meeting3b.jpg";
}

// Watermark script by Paul Anderson, CNET Builder.com. All rights reserved.
function setVals() {
 barW = 0; // scrollbar compensation for PC Nav
 barH = 0;
 if (navDOM) {
  if (document.height > innerHeight) barW = 20;
  if (document.width > innerWidth) barH = 20;
  } else {
  innerWidth = document.body.clientWidth;
  innerHeight = document.body.clientHeight;
  }
 posX = ((innerWidth - markW)-barW) * (markX/100);
 posY = ((innerHeight - markH)-barH) * (markY/100);
 }

function wRefresh() {
 wMark.left = posX + (navDOM?pageXOffset:document.body.scrollLeft);
 wMark.top = posY + (navDOM?pageYOffset:document.body.scrollTop);
 }

function markMe() {
 setVals();
 window.onresize=setVals;
 markID = setInterval ("wRefresh()",markRefresh);
 }

function startMark(startMarkID) {
	found=true;
	var imageCnt = image_list.length;
	for (x=1; x<imageCnt; x++) {
		if (image_list[x].complete == false) {
			found=false;
		}
	}

	if (found) {
		clearTimeout(startMarkID);
		markMe();
	}
}
