
var reservationWindow = null;
var newWindow = null;
var floorPlansWindow = null;



function loadGalleryWindow()
{	
  var winHeight = 520;
  var winWidth = 680;

  var screenX = 100;
  var screenY = 50;
  var newurl = "popup_imagerotator.html";
  if (reservationWindow != null)
  {
    if (!reservationWindow.closed) 
    {
      reservationWindow.close();
    }
    reservationWindow = null;
  }            
  reservationWindow = launch(newurl, "SeelbachHotelReservations","height=" + winHeight + ",width=" + winWidth + ",directories=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0,fullscreen=0,left=" + screenX + ",top=" + screenY, "HiltonSeelbach");
}





function loadReservationWindow()
{	
  var winHeight = 325;
  var winWidth = 550;

  var screenX = 100;
  var screenY = 50;
  var newurl = "loader.html";
  if (reservationWindow != null)
  {
    if (!reservationWindow.closed) 
    {
      reservationWindow.close();
    }
    reservationWindow = null;
  }            
  reservationWindow = launch(newurl, "SeelbachHotelReservations","height=" + winHeight + ",width=" + winWidth + ",directories=0,location=0,menubar=1,resizable=1,scrollbars=1,status=0,titlebar=1,toolbar=1,z-lock=0,fullscreen=0,left=" + screenX + ",top=" + screenY, "HiltonSeelbach");
}

//
// this method == loadNewWindow_WithEverything
//
function loadNewWindow(newPage, winWidth, winHeight, screenX, screenY)
{	
  loadNewWindow_WithEverything(newPage, winWidth, winHeight, screenX, screenY);
}

//
// this function takes 5 parameters:
//   newPage: the URL of the new page that will go into the new window
//   winHeight: the height of the new window to spawn
//   winWidth: the width of the new window to spawn
//   screenX: where on the screen (horizontally) to spawn the new window
//   screenY: where on the screen (vertically) to spawn the new window
//
// THE WINDOW THIS FUNCTION CREATES HAS BOTH THE TOOLBAR (Print, Back, Forward...) AND THE MENUBAR (File, Edit...)
// IT IS RESIZABLE AND HAS SCROLLBARS
//
function loadNewWindow_WithEverything(newPage, winWidth, winHeight, screenX, screenY)
{	
  if (newWindow != null)
  {
    if (!newWindow.closed) 
    {
      newWindow.close();
    }
    newWindow = null;
  }            
  newWindow = launch(newPage, "SeelbachExternalPage","height=" + winHeight + ",width=" + winWidth + ",directories=0,location=1,menubar=1,resizable=1,scrollbars=1,status=1,titlebar=1,toolbar=1,z-lock=0,fullscreen=0,left=" + screenX + ",top=" + screenY, "HiltonSeelbach");
}

//
// this function takes 5 parameters:
//   newPage: the URL of the new page that will go into the new window
//   winHeight: the height of the new window to spawn
//   winWidth: the width of the new window to spawn
//   screenX: where on the screen (horizontally) to spawn the new window
//   screenY: where on the screen (vertically) to spawn the new window
//
// THE WINDOW THIS FUNCTION CREATES HAS NO TOOLBAR (Print, Back, Forward...), NO MENUBAR (File, Edit...)
// ISN'T RESIZABLE, DOESN'T HAVE SCROLLBARS, **NOTHING**
//
function loadNewWindow_WithNothing(newPage, winWidth, winHeight, screenX, screenY)
{	
  if (newWindow != null)
  {
    if (!newWindow.closed) 
    {
      newWindow.close();
    }
    newWindow = null;
  }            
  newWindow = launch(newPage, "SeelbachExternalPage","height=" + winHeight + ",width=" + winWidth + ",directories=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0,fullscreen=0,left=" + screenX + ",top=" + screenY, "HiltonSeelbach");
}

//
// this function takes 5 parameters:
//   newPage: the URL of the new page that will go into the new window
//   winHeight: the height of the new window to spawn
//   winWidth: the width of the new window to spawn
//   screenX: where on the screen (horizontally) to spawn the new window
//   screenY: where on the screen (vertically) to spawn the new window
//
// THE WINDOW THIS FUNCTION CREATES HAS ONLY THE MENUBAR (File, Edit...), NO TOOLBAR (Print, Back, Forward...)
// IT IS RESIZABLE AND HAS SCROLLBARS
//
function loadNewWindow_WithOnlyMenubar(newPage, winWidth, winHeight, screenX, screenY)
{	
  if (newWindow != null)
  {
    if (!newWindow.closed) 
    {
      newWindow.close();
    }
    newWindow = null;
  }            
  newWindow = launch(newPage, "SeelbachExternalPage","height=" + winHeight + ",width=" + winWidth + ",directories=0,location=0,menubar=1,resizable=1,scrollbars=1,status=0,titlebar=1,toolbar=0,z-lock=0,fullscreen=0,left=" + screenX + ",top=" + screenY, "HiltonSeelbach");
}

//
// this function takes 5 parameters:
//   newPage: the URL of the new page that will go into the new window
//   winHeight: the height of the new window to spawn
//   winWidth: the width of the new window to spawn
//   screenX: where on the screen (horizontally) to spawn the new window
//   screenY: where on the screen (vertically) to spawn the new window
//
// THE WINDOW THIS FUNCTION CREATES HAS ONLY THE TOOLBAR (Print, Back, Forward...), NO MENUBAR (File, Edit...)
// IT IS RESIZABLE AND HAS SCROLLBARS
//
function loadNewWindow_WithOnlyToolbar(newPage, winWidth, winHeight, screenX, screenY)
{	
  if (newWindow != null)
  {
    if (!newWindow.closed) 
    {
      newWindow.close();
    }
    newWindow = null;
  }            
  newWindow = launch(newPage, "SeelbachExternalPage","height=" + winHeight + ",width=" + winWidth + ",directories=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=1,toolbar=1,z-lock=0,fullscreen=0,left=" + screenX + ",top=" + screenY, "HiltonSeelbach");
}

//
// launch the window!
//
function launch(newURL, newName, newFeatures, orgName)
{
  var remote = open(newURL, newName, newFeatures);	   

  if (remote.opener == null)
  {
    remote.opener = window;
    remote.opener.name = orgName;
  }         
  return remote;
}