fwxAttachEvent(window, "load", function(){ ... });
...is my own script for attaching window events.
You should just use...
window.onload = function(){ ... };
These....
%72%6F%6E
...are encoded
HTML.
The site is run by a CMS and the user might end up putting > < ' " in the text used in the label. I encode it so to avoid runtime errors and undefined strings...
Remember to load the google map script...
<script src="
http://maps.google.com/maps?file=api&v=2&key=YOUR_KEY_GOES_HERE&" type="text/javascript"></script>
Then all you need is something like...
window.onload = function(){
var GoogleMap1 = new GMap2(document.getElementById("GoogleMap1"));
GoogleMap1.addControl(new GSmallMapControl());
GoogleMap1.addControl(new GMapTypeControl());
GoogleMap1.setCenter(new GLatLng(51.526, -0.191), 15);
var GoogleMap1point = new GLatLng(51.819247, -2.480292);
var GoogleMap1marker = new GMarker(GoogleMap1point, 1);
GoogleMap1.addOverlay(GoogleMap1marker);
GoogleMap1marker.openInfoWindowHtml("Hello world!");
};