code: function(bounds, partial, inclusive) {
          if (partial == null) {
              partial = false;
          }
          if (inclusive == null) {
              inclusive = true;
          }
          var bottomLeft  = this.contains(bounds.left, bounds.bottom, inclusive);
          var bottomRight = this.contains(bounds.right, bounds.bottom, inclusive);
          var topLeft  = this.contains(bounds.left, bounds.top, inclusive);
          var topRight = this.contains(bounds.right, bounds.top, inclusive);
          
          return (partial) ? (bottomLeft || bottomRight || topLeft || topRight)
                           : (bottomLeft && bottomRight && topLeft && topRight);
      }
docs: APIMethod: containsBounds
  Returns whether the bounds object contains the given <OpenLayers.Bounds>.
  
  bounds - {<OpenLayers.Bounds>} The target bounds.
  partial - {Boolean} If any of the target corners is within this bounds
  consider the bounds contained.  Default is false.  If false, the
  entire target bounds must be contained within this bounds.
  inclusive - {Boolean} Treat shared edges as contained.  Default is
  true.
  
  Returns:
  {Boolean} The passed-in bounds object is contained within this bounds.