addLoadListener(init);

function init()
{
  document.getElementById('parlor1').onclick = function()
  {
    var page1 = makePopup(this.href, 947, 750, 'scroll');

    return page1.closed;
  };

  
  document.getElementById('parlor2').onclick = function()
  {
    var page2 = makePopup(this.href, 947, 750, 'scroll');

    return page2.closed;
  };

 
  document.getElementById('dining1').onclick = function()
  {
    var page3 = makePopup(this.href, 947, 750, 'scroll');

    return page3.closed;
  };

  
  document.getElementById('dining2').onclick = function()
  {
    var page4 = makePopup(this.href, 947, 750, 'scroll');

    return page4.closed;
  };
   document.getElementById('kitchen1').onclick = function()
  {
    var page5 = makePopup(this.href, 947, 750, 'scroll');

    return page5.closed;
  };
document.getElementById('kitchen2').onclick = function()
  {
    var page6 = makePopup(this.href, 947, 750, 'scroll');

    return page6.closed;
  };

  return true;
}

function makePopup(url, width, height, overflow)
{
  if (width > 947) { width = 947; }
  if (height > 750) { height = 750; }

  if (overflow == '' || !/^(scroll|resize|both)$/.test(overflow))
  {
    overflow = 'both';
  }

  var win = window.open(url, '',
      'width=' + width + ',height=' + height
      + ',scrollbars=' + (/^(scroll|both)$/.test(overflow) ? 'yes' : 'no')
      + ',resizable=' + (/^(resize|both)$/.test(overflow) ? 'yes' : 'no')
      + ',status=yes,toolbar=no,menubar=no,location=no'
  );

  return win;
}

function addLoadListener(fn)
{
  if (typeof window.addEventListener != 'undefined')
  {
    window.addEventListener('load', fn, false);
  }
  else if (typeof document.addEventListener != 'undefined')
  {
    document.addEventListener('load', fn, false);
  }
  else if (typeof window.attachEvent != 'undefined')
  {
    window.attachEvent('onload', fn);
  }
  else
  {
    var oldfn = window.onload;
    if (typeof window.onload != 'function')
    {
      window.onload = fn;
    }
    else
    {
      window.onload = function()
      {
        oldfn();
        fn();
      };
    }
  }
}

