var GoogleMaps = {
  start: function() {
    var mapsElement = $('google_maps');
    if(mapsElement && GBrowserIsCompatible()) {
        var map = new GMap2(mapsElement);
        
        var location = new GLatLng(53.203912,5.766084);
        map.setCenter(location, 12);
        map.addControl(new GSmallMapControl());
        
        // Create our "tiny" marker icon
        var blueIcon = new GIcon(G_DEFAULT_ICON);
        blueIcon.iconSize = new GSize(98, 72);
        blueIcon.iconAnchor = new GPoint(9, 34);        
        blueIcon.image = "../styles/google_wielinga.png";        
        
		// Set up our GMarkerOptions object
		markerOptions = { icon:blueIcon };        
        
        var marker = new GMarker(location, markerOptions);
        map.addOverlay(marker);
    }
  }
}

window.addEvent('load', GoogleMaps.start);