
			$(function() { // when the document is ready to be manipulated.
			
				if (GBrowserIsCompatible()) { // if the browser is compatible with Google Map's
				
					var map = document.getElementById("myMap"); // Get div element
					var m = new GMap2(map); // new instance of the GMap2 class and pass in our div location.
					
					m.setCenter(new GLatLng(52.35802101741935, 4.6485283970832825), 18); // pass in latitude, longitude, and zoom level.
					
					
					//m.openInfoWindow(m.getCenter(), 	(myHtml)); // displays the text
					m.setMapType(G_SATELLITE_MAP); // sets the default mode. G_NORMAL_MAP, G_SATELLITE_MAP, G_HYBRID_MAP
					
					var c = new GMapTypeControl(); // switch map modes
					m.addControl(c);
					
					m.addControl(new GLargeMapControl()); // creates the zoom feature
					
					var myHtml = "<h4>Speeltuin de Eenhoorn</h4><br/>" + //display custom html in balloon
						"<address>Bernstraat 2<br />2034 CV Haarlem</address>" +
						"telefoon: 023-536 19 69<br/>e-mail: info@speeltuindeeenhoorn.nl<br/> ";
					m.openInfoWindow(m.getCenter(), myHtml);
					

				
				}
				
				else {
				
					alert("Wij vermoeden dat uw browser niet geschikt is voor de google map. Gaarne uw brwoser upgraden.");
					
				}
			});

