function initialize() {
  var map;
  if (GBrowserIsCompatible()) {
    map = new GMap2(document.getElementById("map_canvas"));
    map.addControl(new GSmallMapControl());

    map.setCenter(new GLatLng(-44.093503, 170.327911), 10);

    var locIcon = new GIcon(G_DEFAULT_ICON);
    locIcon.image = "http://www.newzealandtravelinsider.com/images/location.png";
    var flagIcon = new GIcon(G_DEFAULT_ICON);
    flagIcon.image = "http://www.newzealandtravelinsider.com/images/flag.png";
	                   
    markerOptions1 = { icon:locIcon };
    markerOptions1.title = "Start of the scenic drive";
    var startMarker = new GMarker(new GLatLng(-44.001706, 170.461121), markerOptions1);
    map.addOverlay(startMarker);
    GEvent.addListener(startMarker, "click", function() {
	    startMarker.openInfoWindowHtml('Start of the Tekapo to Lake Pukaki scenic drive.');
	  });

    markerOptions2 = { icon:flagIcon };
    markerOptions2.title = "End of the scenic drive";
    var endMarker = new GMarker(new GLatLng(-44.188113, 170.120544), markerOptions2);
    map.addOverlay(endMarker);
    GEvent.addListener(endMarker, "click", function() {
	    endMarker.openInfoWindowHtml('End of the Tekapo to Lake Pukaki scenic drive.');
	  });

    map.setMapType(G_PHYSICAL_MAP);   
  }
    
}

