// Defines the "on" and "off" images for all menu entries throughout the site.
// Also includes the functions imgOn and imgOff, which are used to change the
// image displayed ("hover" effect). Hence, this file must be included on all
// pages.

if(document.images) {
  bottlingsdon  = new Image(); bottlingsdon.src  = "../images/menu/bottlings-d-on.gif"
  bottlingsdoff = new Image(); bottlingsdoff.src = "../images/menu/bottlings-d.gif"

  contactdon  = new Image(); contactdon.src  = "../images/menu/contact-d-on.gif"
  contactdoff = new Image(); contactdoff.src = "../images/menu/contact-d.gif"

  downloaddon  = new Image(); downloaddon.src  = "../images/menu/download-on.gif"
  downloaddoff = new Image(); downloaddoff.src = "../images/menu/download.gif"

  homedon  = new Image(); homedon.src  = "../images/menu/home-on.gif"
  homedoff = new Image(); homedoff.src = "../images/menu/home.gif"

  membersdon  = new Image(); membersdon.src  = "../images/menu/membershome-d-on.gif"
  membersdoff = new Image(); membersdoff.src = "../images/menu/membershome-d.gif"

  membersroomdon  = new Image(); membersroomdon.src  = "../images/menu/membersroom-on.gif"
  membersroomdoff = new Image(); membersroomdoff.src = "../images/menu/membersroom.gif"

  tastingsdon  = new Image(); tastingsdon.src  = "../images/menu/tastings-d-on.gif"
  tastingsdoff = new Image(); tastingsdoff.src = "../images/menu/tastings-d.gif"

  traveldon  = new Image(); traveldon.src  = "../images/menu/travel-d-on.gif"
  traveldoff = new Image(); traveldoff.src = "../images/menu/travel-d.gif"
}

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

function imgOff(imgName) {
		if (document.images) {
				document[imgName].src = eval(imgName + "off.src");
				}
		}
		
var g_DepWindowNumber = 0;
function newWindow(url, height, width) {
  g_DepWindowNumber++;
  nameW='popup' + g_DepWindowNumber;
  // Vars for centering the new window on Version 4 Browsers
  xTop = screen.width/2 - (width/2);
  yTop = screen.height/2 - (height/2);
  window.open(url, nameW, 'height='+height+',width='+width+',dependent=1,scrollbars=1,resizable=1,menubar=0,toolbar=0,status=0,location=0,directories=0,left=' + xTop + ',top=' + yTop + '');
}
