<!--
function openResWindow() {
/*
 With the options specified below for a new window, the outer width of the new window will be approximately
 12 pixels wider than you specify, and the outer height will be approximately 130 pixels taller than you specify.
 Also allow 25 pixels of height for task bar at bottom of screen.
 So, if you want the maximum height for a window, specify a window height 155 pixels less than the height of the screen.
 New SynXis bar window is approximately 812 x 812 pixels (as of 8/1/02).
*/
  var screenHeight = 600; // default to 800x600 screen
  var screenWidth  = 800;
  var winHeight    = 812; // desired height
  var winWidth     = 812; // desired width
  var heightOffset = 155;
  var widthOffset  = 12;
  if (window.screen && window.screen.height && window.screen.height) {
    screenHeight = window.screen.height;
    screenWidth  = window.screen.width;
    }
  if (screenHeight < winHeight)
    winHeight = screenHeight;
  if (screenWidth < winWidth)
    winWidth = screenWidth;
  window.alert("The online reservations will open in a new browser window. The " + siteName + " site will remain open in the background.\n\nYou may need to disable any pop-up blockers you have installed.");
  var resWin = window.open("resources/reservations-popup.asp","resWin","width=" + (winWidth - widthOffset) + ",height=" + (winHeight - heightOffset) + ",left=0,top=0,location=no,resizable=yes,status=yes,toolbar=yes,menubar=yes,scrollbars=yes");
  if (parseInt(navigator.appVersion) >= 4)
    resWin.window.focus();
  }

function popupWindow(url,name,w,h,centered) {
  var screenHeight = 600; // default to 800x600 screen
  var screenWidth  = 800;
  var top = 0, left = 0;
  if (window.screen && window.screen.height && window.screen.height) {
    screenHeight = window.screen.height;
    screenWidth  = window.screen.width;
    }
  screenHeight = screenHeight-40;  // allow room for taskbars, etc.
  screenWidth  = screenWidth-40;
  if ((h == 0) || (screenHeight < h))
    h = screenHeight;
  if ((w == 0) || (screenWidth < w))
    w = screenWidth;
  if (centered) {
    var left = (screen.width - w) / 2;
    var top  = (screen.height - h) / 2;
    }
  var winProps = "toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes,width=" + w + ",height=" + h + ",left=" + left + ",top=" + top + "";
  var popupWin = window.open(url,name,winProps);
  if (parseInt(navigator.appVersion) >= 4)
    popupWin.window.focus();
  }

function openInNewWindow(whichLink,whichLinkText) {
  if (openInNewWindow.arguments.length < 2) whichLinkText = "this link";
  if (window.confirm("Would you like to open " + whichLinkText + " in a new browser window, so that the " + siteName + " site can remain open?\n\nIf so, you may need to disable any pop-up blockers you have installed.")) {
    if (!whichLink.oTarget) whichLink.oTarget = whichLink.target;
    whichLink.target = "_blank";
    }
  else {
    if ((whichLink.oTarget) && (whichLink.oTarget != "_blank")) whichLink.target = whichLink.oTarget;
    else whichLink.target = "";
    }
  }

function writeEmailAddress(addressee,subject) {
  var emailAddress = addressee + "@" + siteAddress;
  if (writeEmailAddress.arguments.length < 2) {
    subject = "Inquiry from " + siteAddress;
    }
  document.write("<a href=\"mailto:" + emailAddress + "?subject=" + subject + "\">" + emailAddress + "</a>");
  }

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
  }

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
  }

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
  }

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
  }

var rollOverArr=new Array();
function setrollover(OverImgSrc,pageImageName)
{
if (! document.images)return;
if (pageImageName == null)
pageImageName = document.images[document.images.length-1].name;
rollOverArr[pageImageName]=new Object;
rollOverArr[pageImageName].overImg = new Image;
rollOverArr[pageImageName].overImg.src=OverImgSrc;
}
function rollover(pageImageName)
{
if (! document.images)return;
if (! rollOverArr[pageImageName])return;
if (! rollOverArr[pageImageName].outImg)
{
rollOverArr[pageImageName].outImg = new Image;
rollOverArr[pageImageName].outImg.src = document.images[pageImageName].src;
}
document.images[pageImageName].src=rollOverArr[pageImageName].overImg.src;
}
function rollout(pageImageName)
{
if (! document.images)return;
if (! rollOverArr[pageImageName])return;
document.images[pageImageName].src=rollOverArr[pageImageName].outImg.src;
}
//-->