I have tried this code and it worked out for me. Hope it work for you also.
var options = {
projection: new OpenLayers.Projection(“EPSG:900913”),
units: “m”,
maxResolution: 156543.0339,
maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34,
20037508.34, 20037508.34)
};

map = new OpenLayers.Map(‘map’, options);

// To create Google Mercator layers

var gmap = new OpenLayers.Layer.Google(
“Google Streets”,
{‘sphericalMercator’: true,
‘maxExtent’: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34)
}
);

// to create WMS layer
var wms = new OpenLayers.Layer.WMS(
“World Map”,
“”,
{‘layers’: ‘basic’, ‘transparent’: true}
);

map.addLayers(gmap, wms);