You can load the Earth and Map API at the same time and use whatever logic to display one of them. Upon switching between them you read out the coords and screen boundaries from the old and update the view of the new display.
I used the Google AJAX API playground and inserted some code lines from the "Map Simple" example into the "Hello Earth" example - working fine.
Using the [Edit HTML] option, in the Hello Earth demo code, insert into the init() function
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
replace the html body by this
<div id="map_canvas" style="width:600px;height:400px;position:absolute;top:0;left:0;visibility:hidden;"></div>
<div id="map3d" style="width: 500px; height: 380px;position:absolute;top:0;left:0;"></div>
moving the visibility attribute from one to the other switches the display - this you can achieve by a JavaScript. Note I used different div sizes just for demo purposes, normally they would be same size.
Good luck
MikeD