code: function(name, url, options) {
          if (options && options.sphericalMercator || this.sphericalMercator) {
              options = OpenLayers.Util.extend({
                  projection: "EPSG:900913",
                  numZoomLevels: 19
              }, options);
          }
          OpenLayers.Layer.Grid.prototype.initialize.apply(this, [
              name || this.name, url || this.url, {}, options
          ]);
      }
docs: Constructor: OpenLayers.Layer.XYZ
  
  Parameters:
  name - {String}
  url - {String}
  options - {Object} Hashtable of extra options to tag onto the layer