//<![CDATA[

    function load() {
	if (GBrowserIsCompatible()) {

		createMap("<span class='mapText'><strong>Autoservice Tom Geenen</strong><br />Hinnenboomstraat 1D<br />2320 Hogstraten (Belgi&euml;)<br /><br />Tel &nbsp;&nbsp;+32 3 315 71 16<br /><a href='mailto:info@autoservicetomgeenen.be' class='mapLink'>info@autoservicetomgeenen.be</a></span>","51.385535", "4.728262",13);
    	}
    }

	function createMap(ghtmlMessage,glat,glong,gzoom){ 
	//create the icon (replaces the standard google balloon)
		var icon = new GIcon(); 
		icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
		icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
		icon.iconSize = new GSize(12, 20);
		icon.shadowSize = new GSize(22, 20);
		icon.iconAnchor = new GPoint(6, 20);
		icon.infoWindowAnchor = new GPoint(5, 1);
		
	//creates a marker at the given point, displaying the text on click 
	function createMarker(point, text) 
	{ 
		var marker = new GMarker(point,icon); 
		GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(text); }); return marker; } var map = new GMap2(document.getElementById("map")); 
		//add the pan & zoom control to the map 
		map.addControl(new GLargeMapControl()); 
		var point = new GLatLng(glat,glong); 
		map.setCenter(point, gzoom); 
		var mark = createMarker(point,ghtmlMessage); 
		map.addOverlay(mark); 
		mark.openInfoWindowHtml(ghtmlMessage); 
	}; 
			
	function printOnLoad() { 
		load(); 
		window.print(); 
	};
	
	
    //]]>
