// set up variables for 
var direction = "home";

///////////////////////
// Mouseover scripts here
///////////////////////

//preload highlighted

aboutHi = new Image(77, 26);
aboutHi.src = "../new_images/about_on.gif";
diningHi = new Image(65, 26);
diningHi.src = "../new_images/dining_on.gif";
membershipHi = new Image(97, 26);
membershipHi.src = "../new_images/member_on.gif";
meetHi = new Image(202, 26);
meetHi.src = "../new_images/meet_on.gif";
socialHi = new Image(100, 26);
socialHi.src = "../new_images/social_on.gif";
golfHi = new Image(73, 26);
golfHi.src = "../new_images/golf_on.gif";
homeHi = new Image(52, 26);
homeHi.src = "../new_images/home_on.gif";
contactHi = new Image(89, 26);
contactHi.src = "../new_images/contact_on.gif";



//lowlighted icon substitutions

aboutLo = new Image(77, 26);
aboutLo.src = "../new_images/about_off.gif";
diningLo = new Image(65, 26);
diningLo.src = "../new_images/dining_off.gif";
membershipLo = new Image(97, 26);
membershipLo.src = "../new_images/member_off.gif";
meetLo = new Image(202, 26);
meetLo.src = "../new_images/meet_off.gif";
socialLo = new Image(100, 26);
socialLo.src = "../new_images/social_off.gif";
golfLo = new Image(73, 26);
golfLo.src = "../new_images/golf_off.gif";
homeLo = new Image(52, 26);
homeLo.src = "../new_images/home_off.gif";
contactLo = new Image(89, 26);
contactLo.src = "../new_images/contact_off.gif";


function hiLite(icon) {
	theMouseItem = icon;
	turnedOn = eval(icon + "Hi.src");
		if (ie) {document.images[theMouseItem].src = turnedOn;}
		if (nn) {document.navigation.document.images[theMouseItem].src = turnedOn;}
		if (dom) {document.images[theMouseItem].src = turnedOn;}
}

// hilite and lolite TD for nav items
function hiLiteNavTD(cell) {
      if (ie) {
         thisObj = eval("document.all." + cell + ".style");
      }
      if (nn) {
        thisObj = eval("document.layers." + cell + ".style");
      }
      if (dom) {
         thisObj = eval("document.getElementById." + cell + ".style");
      }
      thisObj.background="#E6EBDC";
      }
      
function loLiteNavTD(cell) {
      if (ie) {
         thisObj = eval("document.all." + cell + ".style");
      }
      if (nn) {
        thisObj = eval("document.layers." + cell + ".style");
      }
      if (dom) {
         thisObj = eval("document.getElementById." + cell + ".style");
      }
      thisObj.background="#C6C6B3";
      }

// script for spawning new window

function openWindow(page,windowName,width,height,tools) {

// if window has already been opened and is behind main window,
// bring to front

		if (tools != 1) {
				showTools = ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no";
				} else {
				showTools = ",resizable=yes,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes";
				}

    if (navigator.appName == 'Netscape') {
        adjWidth = width + 16;
        adjHeight = height + 16;
        myWin = window.open(page,'windowName','width=' + adjWidth + ',height=' + adjHeight + showTools)
    }
    else {
        adjWidth = width + 16;
        adjHeight = height + 16;
        myWin = window.open(page,'windowName','width=' + adjWidth + ',height=' + adjHeight + showTools);
    }

	if (!myWin.focus()) {
		myWin.focus();
	}
	
}
