code: function(geometry) {
          var intersect = false;
          if(geometry.CLASS_NAME == "OpenLayers.Geometry.Point") {
              intersect = this.containsPoint(geometry);
          } else if(geometry.CLASS_NAME == "OpenLayers.Geometry.LineString") {
              intersect = geometry.intersects(this);
          } else if(geometry.CLASS_NAME == "OpenLayers.Geometry.LinearRing") {
              intersect = OpenLayers.Geometry.LineString.prototype.intersects.apply(
                  this, [geometry]
              );
          } else {
              // check for component intersections
              for(var i=0, len=geometry.components.length; i<len; ++ i) {
                  intersect = geometry.components[i].intersects(this);
                  if(intersect) {
                      break;
                  }
              }
          }
          return intersect;
      }
docs: APIMethod: intersects
  Determine if the input geometry intersects this one.
  
  Parameters:
  geometry - {<OpenLayers.Geometry>} Any type of geometry.
  
  Returns:
  {Boolean} The input geometry intersects this one.