// GOOGLE MAP FUNCTION
function load() {
  if (GBrowserIsCompatible()) {
    var map = new GMap2(document.getElementById("googlemap"));

    var pointwill = new GLatLng(52.954384,-1.149434);
    map.setCenter(pointwill, 17);

    // set map type to satellite
    // Types: G_NORMAL_MAP or G_SATELLITE_MAP or G_HYBRID_MAP
    map.setMapType(G_NORMAL_MAP);
    
    // add maps controls
    map.addControl(new GSmallMapControl());
    // map.addControl(new GMapTypeControl());
    
    //Icon
    iconwill = new GIcon();
    iconwill.image ="images/pointer.png";
    iconwill.iconSize= new GSize (27,33);
    iconwill.iconAnchor = new GPoint(12, 46);
    iconwill.infoWindowAnchor = new GPoint(12, 48);

    // overlay Marker
    var markerwill = new GMarker(pointwill,iconwill);
    map.addOverlay(markerwill);
    
    // add a listener for marker
    GEvent.addListener(markerwill, "click", function() {
			 markerwill.openInfoWindowHtml("<strong>REG Biopower</strong><br />xxxx<br />xxxxxxxx<br />xxxxxxx<br />NOTS");
		       });
  }
}

Event.observe(window, 'load', function() {
  load()
});
