You may prefer to load Google maps directly using Google's API, see the Google Version for a working example.
In my experience, OpenLayers does not do Google maps well (bugs fixed in v2.9 deleted):