//<![CDATA[

function load(arg) {
  if (GBrowserIsCompatible())  {
createMap("<span><strong>Lippens</strong><br />Hofstraat 7<br />2960 Brecht (Belgi&euml;)<br />Tel &nbsp;&nbsp;+32 (0)3 313 86 12<br /><a href='mailto:info@verzekeringenlippens.be' class='mapLink'>info@verzekeringenlippens.be</a></span>","51.35179", "4.640758",15);
}}

function createMap(ghtmlMessage,glat,glong,gzoom){
//create the icon (replaces the standard google balloon)
	var icon = new GIcon();
	icon.image = "img/logoMap.png";
	icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
	icon.iconSize = new GSize(30, 30);
	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();
};
