 
  function panoramic_preview(image)
  {
    PanoWindow = window.open ('http://content.cozumel-villa-rentals.com/ViewPanoramic.aspx?Image=' + image, 'PanoWindow', config='height=605, width=351, toolbar=no, menubar=no, resizable=yes, location=no, directories=no, status=no')
    PanoWindow.focus();
  }

  function image_preview(image)
  {
    ImageWindow = window.open ('http://content.cozumel-villa-rentals.com/ViewImage.aspx?Image=' + image, 'ImageWindow', config='height=481, width=640, toolbar=no, menubar=no, resizable=yes, location=no, directories=no, status=no')
    ImageWindow.focus();
  }

  function property_request(id)
  {
    var screensize = "unknown";
    var height     = "625";

    if (navigator.appVersion.indexOf("4.") != -1 && navigator.appName.indexOf("Explorer") != -1)
    {
      screensize = screen.width + "x" + screen.height;
    }
    if (navigator.appVersion.indexOf("4.") != -1 && navigator.appName.indexOf("Netscape") != -1)
    {
      screensize = screen.width + "x" + (screen.height + 19); // Add 19 pixels for Netscape
    }
    if (screensize == "800x600")
    {
      height = "525";
    }
    RequestWindow = window.open ('InfoRequestor.aspx?PropertyID=' + id, 'RequestWindow', config='height=' + height + ', width=550, scrollbars=yes, toolbar=no, menubar=no, resizable=yes, location=no, directories=no, status=no')
    RequestWindow.focus();
  }
  
   function food_menu(n)
  {
    var screensize = "unknown";
    var height     = "625";
    var URL = 'http://content.cozumel-villa-rentals.com/Content/'+n+'.htm'

    if (navigator.appVersion.indexOf("4.") != -1 && navigator.appName.indexOf("Explorer") != -1)
    {
      screensize = screen.width + "x" + screen.height;
    }
    if (navigator.appVersion.indexOf("4.") != -1 && navigator.appName.indexOf("Netscape") != -1)
    {
      screensize = screen.width + "x" + (screen.height + 19); // Add 19 pixels for Netscape
    }
    if (screensize == "800x600")
    {
      height = "525";
    }
    RequestWindow = window.open (URL, 'FoodMenuWindow', config='height=' + height + ', width=550, scrollbars=yes, toolbar=no, menubar=no, resizable=yes, location=no, directories=no, status=no')
    RequestWindow.focus();
  }
  
  
  function rates(n)
  {
    var screensize = "unknown";
    var height     = "400";
    var URL = 'http://content.cozumel-villa-rentals.com/Content/rates/popup'+n+'.htm'

    if (navigator.appVersion.indexOf("4.") != -1 && navigator.appName.indexOf("Explorer") != -1)
    {
      screensize = screen.width + "x" + screen.height;
    }
    if (navigator.appVersion.indexOf("4.") != -1 && navigator.appName.indexOf("Netscape") != -1)
    {
      screensize = screen.width + "x" + (screen.height + 19); // Add 19 pixels for Netscape
    }
    if (screensize == "800x600")
    {
      height = "525";
    }
    RequestWindow = window.open (URL, 'Rates', config='height=' + height + ', width=550, scrollbars=yes, toolbar=no, menubar=no, resizable=yes, location=no, directories=no, status=no')
    RequestWindow.focus();
  }

  function stopPanning()
  {
    try
    {
      if (document.all('oApplet'))
        oApplet.stopAutoPan();
    }
    catch(e){}
  }
  
  var newWin = null;
function popUp(strURL, strType, strHeight, strWidth) {
 if (newWin != null && !newWin.closed)
   newWin.close();
 var strOptions="";
 if (strType=="console")
   strOptions="resizable,scrollbars,height="+
     strHeight+",width="+strWidth;
 if (strType=="fixed")
   strOptions="resizable,scrollbars,status,height="+
     strHeight+",width="+strWidth;
 if (strType=="elastic")
   strOptions="toolbar,menubar,scrollbars,"+
     "resizable,location,height="+
     strHeight+",width="+strWidth;
 newWin = window.open(strURL, 'newWin', strOptions);
 newWin.focus();
}
