	//<![CDATA[

if (GBrowserIsCompatible()) {

	var iconM = new GIcon(); 
	iconM.image = 'http://www.blewspace.com/images/marks.png';
	iconM.shadow = 'http://labs.google.com/ridefinder/images/mm_20_shadow.png';
	iconM.iconSize = new GSize(15, 22);
	iconM.shadowSize = new GSize(22, 20);
	iconM.iconAnchor = new GPoint(6, 20);
	iconM.infoWindowAnchor = new GPoint(5, 1);

	var iconQ = new GIcon(); 
	iconQ.image = 'http://www.blewspace.com/images/marksq.png';
	iconQ.shadow = 'http://labs.google.com/ridefinder/images/mm_20_shadow.png';
	iconQ.iconSize = new GSize(15, 22);
	iconQ.shadowSize = new GSize(22, 20);
	iconQ.iconAnchor = new GPoint(6, 20);
	iconQ.infoWindowAnchor = new GPoint(5, 1);

	var geocoder = new GClientGeocoder();
	var map = null;

	function load() {
		map = new GMap2(document.getElementById("map"));
		map.setCenter(new GLatLng(28, -4.5), 2, G_SATELLITE_MAP);
		map.addControl(new GLargeMapControl());
		map.addControl(new GScaleControl());
		map.addControl(new GMapTypeControl());

		GDownloadUrl("db2xml.php", function(data) {
			var xml = GXml.parse(data);
			var markers = xml.documentElement.getElementsByTagName("m");
			for (var i = 0; i < markers.length; i++) {
				var info = markers[i].getAttribute("i").split(";");
				var id = info[0];
				var point = new GLatLng(parseFloat(info[1]),
							parseFloat(info[2]));
				var verified = info[3];
				var type = info[4];
				var marker = createMarker(point, id, verified);
				map.addOverlay(marker);
			}
		});
	}

	function createMarker(point, id, verified) {
		var opts = new Object();
		if (verified == 1) {
			opts.icon = iconM;
		}
		else {
			opts.icon = iconQ;
		}
		var marker = new GMarker(point, opts);
		GEvent.addListener(marker, 'click', function() {
			showWind(marker,id);
		});
		return marker;
    	}

	function showZoom(address) {
		if (geocoder) {
			geocoder.getLatLng(address,function(point) {
				if (!point) {
					alert("Location " + address + " not found!");
				} else {
					map.setCenter(point, 13);
				}
			}
			);
		}
	}
}
else {
      alert("Sorry, the Google Maps API is not compatible with this browser");
}
	//]]>