code: function(name, options) {
          options = options || {};
          if(!options.version) {
              options.version = typeof GMap2 === "function" ? "2" : "3";
          }
          var mixin = OpenLayers.Layer.Google["v" +
              options.version.replace(/\./g, "_")];
          if (mixin) {
              OpenLayers.Util.applyDefaults(options, mixin);
          } else {
              throw "Unsupported Google Maps API version: " + options.version;
          }
  
          OpenLayers.Util.applyDefaults(options, mixin.DEFAULTS);
          if (options.maxExtent) {
              options.maxExtent = options.maxExtent.clone();
          }
  
          OpenLayers.Layer.EventPane.prototype.initialize.apply(this,
              [name, options]);
          OpenLayers.Layer.FixedZoomLevels.prototype.initialize.apply(this, 
              [name, options]);
  
          if (this.sphericalMercator) {
              OpenLayers.Util.extend(this, OpenLayers.Layer.SphericalMercator);
              this.initMercatorParameters();
          }    
      }
docs: Constructor: OpenLayers.Layer.Google
  
  Parameters:
  name - {String} A name for the layer.
  options - {Object} An optional object whose properties will be set
  on the layer.