function load() {
  if (GBrowserIsCompatible()) {

	// Initialize the map
    var map = new GMap2(document.getElementById("map"));

	// center map
    map.setCenter(new GLatLng(47.368711, 8.538179), 9);

	// set type of map (karte, satellit)
	map.setMapType(G_NORMAL_MAP);
	
	// add controller
	map.addControl(new GLargeMapControl());
	// map.addControl(new GSmallMapControl());
	// map.addControl(new GScaleControl());
	map.addControl(new GMapTypeControl());


    // Create a base icon for all of our markers that specifies the shadow, icon dimensions, etc.
    var baseIcon = new GIcon();
    baseIcon.shadow = "shadow.png";
    baseIcon.iconSize = new GSize(44, 36);
    baseIcon.shadowSize = new GSize(44, 36);
    baseIcon.iconAnchor = new GPoint(12, 36);
    baseIcon.infoWindowAnchor = new GPoint(9, 2);
    baseIcon.infoShadowAnchor = new GPoint(18, 25);

    // Creates a marker whose info window displays the letter corresponding to the given index.
	function createMarker(point, index, info) {
		// Create a lettered icon for this point using our icon class
		var numberedIcon = new GIcon(baseIcon);
		numberedIcon.image = "marker" + index + ".png";

		// Set up our GMarkerOptions object
		markerOptions = { icon:numberedIcon };
		var marker = new GMarker(point, markerOptions);

		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml(info);
		});
		return marker;
	}

	// place markers
	
	// 1 - Rautistrasse 75, 8048 Zürich
    var latlng = new GLatLng(47.381798, 8.48851);
    map.addOverlay(createMarker(latlng, 1, "<p class='ginfo'><strong>Werkstätte Rauti</strong><br />Rautistrasse 75<br />8048 Zürich<br /><br />" + 
		"<a href='http://maps.google.ch/maps?f=q&hl=de&geocode=&q=Rautistrasse+75,+8048+Z%C3%BCrich'>" + 
		"In Google Maps öffnen</a></p>"));

	// 2 - Winterthurerstrasse 563, 8051 Zürich
    var latlng = new GLatLng(47.404976, 8.576109);
    map.addOverlay(createMarker(latlng, 2, "<p class='ginfo'><strong>Heilpädagogische Schule und Tagesförderstätte</strong><br />Winterthurerstrasse 563<br />8051 Zürich<br /><br />" + 
		"<a href='http://maps.google.ch/maps?f=q&hl=de&geocode=&q=Winterthurerstrasse+563,+8051+Z%C3%BCrich'>" + 
		"In Google Maps öffnen</a></p>"));

	// 3 - Mainaustrasse 35, 8032 Zürich
    var latlng = new GLatLng(47.361079, 8.55129);
    map.addOverlay(createMarker(latlng, 3, "<p class='ginfo'><strong>Frühberatung</strong><br />Mainaustrasse 35<br />8032 Zürich<br /><br />" + 
		"<a href='http://maps.google.ch/maps?f=q&hl=de&geocode=&q=Mainaustrasse+35,+8032+Z%C3%BCrich'>" + 
		"In Google Maps öffnen</a></p>"));

	// 4 - Solistrasse 25, 8180 Bülach
    var latlng = new GLatLng(47.52612, 8.538067);
    map.addOverlay(createMarker(latlng, 4, "<p class='ginfo'><strong>Therapiestelle für Kinder</strong><br />Solistrasse 25<br />8180 Bülach<br /><br />" + 
		"<a href='http://maps.google.ch/maps?f=q&hl=de&geocode=&q=Solistrasse+25,+8180+B%C3%BClach'>" + 
		"In Google Maps öffnen</a></p>"));

	// 5 - Bahnhofstrasse 234d, 8623 Wetzikon
    var latlng = new GLatLng(47.32969, 8.80614);
    map.addOverlay(createMarker(latlng, 5, "<p class='ginfo'><strong>Frühberatungs- und Therapiestelle</strong><br />Bahnhofstrasse 234d<br />8623 Wetzikon<br /><br />" + 
		"<a href='http://maps.google.ch/maps?f=q&hl=de&geocode=&q=Bahnhofstrasse+234d,+8623+Wetzikon'>" + 
		"In Google Maps öffnen</a></p>"));

	// 6 - Neue Jonastrasse 59, 8640 Rapperswil
    //var latlng = new GLatLng(47.228137, 8.82417);
    //map.addOverlay(createMarker(latlng, 6, "<p class='ginfo'><strong>Therapiestelle für Kinder</strong><br />Neue Jonastrasse 59<br />8640 Rapperswil<br /><br />" + 
	//	"<a href='http://maps.google.ch/maps?f=q&hl=de&geocode=&q=Neue+Jonastrasse+59,+8640+Rapperswil'>" + 
	//	"In Google Maps öffnen</a></p>"));

	// 7 - Poststrasse 4, 8808 Pfäffikon
    var latlng = new GLatLng(47.201942, 8.78001);
    map.addOverlay(createMarker(latlng, 6, "<p class='ginfo'><strong>Frühberatungs- und Therapiestelle</strong><br />Poststrasse 4<br />8808 Pfäffikon<br /><br />" + 
		"<a href='http://maps.google.ch/maps?f=q&hl=de&geocode=&q=Poststrasse+4,+8808+Pf%C3%A4ffikon'>" + 
		"In Google Maps öffnen</a></p>"));

	// 8 - Seestrasse 229, 8810 Horgen
    var latlng = new GLatLng(47.257909, 8.606114);
    map.addOverlay(createMarker(latlng, 7, "<p class='ginfo'><strong>Frühberatungs- und Therapiestelle</strong><br />Seestrasse 229<br />8810 Horgen<br /><br />" + 
		"<a href='http://maps.google.ch/maps?f=q&hl=de&geocode=&q=Seestrasse+229,+8810+Horgen'>" + 
		"In Google Maps öffnen</a></p>"));

	// 9 - Löwenstrasse 17, 8953 Dietikon
    var latlng = new GLatLng(47.405439, 8.402618);
    map.addOverlay(createMarker(latlng, 8, "<p class='ginfo'><strong>Frühberatungs- und Therapiestelle</strong><br />Löwenstrasse 17<br />8953 Dietikon<br /><br />" + 
		"<a href='http://maps.google.ch/maps?f=q&hl=de&geocode=&q=L%C3%B6wenstrasse+17,+8953+Dietikon'>" + 
		"In Google Maps öffnen</a></p>"));

	// 10 - Geissackerstrasse 24, 8157 Dielsdorf
    var latlng = new GLatLng(47.4794, 8.455557);
    map.addOverlay(createMarker(latlng, 9, "<p class='ginfo'><strong>Heilpädagogische Schule</strong><br />Geissackerstrasse 24<br />8157 Dielsdorf<br /><br />" + 
		"<a href='http://maps.google.ch/maps?f=q&hl=de&geocode=&q=Geissackerstrasse+24,+8157+Dielsdorf'>" + 
		"In Google Maps öffnen</a></p>"));

	// 11 - Geissacher 8, 8126 Zumikon
    var latlng = new GLatLng(47.329627, 8.627636);
    map.addOverlay(createMarker(latlng, 10, "<p class='ginfo'><strong>Frühberatungs und Therapiestelle für Kinder</strong><br />Geissacher 8<br />8126 Zumikon<br /><br />" + 
		"<a href='http://maps.google.ch/maps?f=q&hl=de&geocode=&q=Geissacher+8,+8126+Zumikon'>" + 
		"In Google Maps öffnen</a></p>"));

	// 12 - Loomattstrasse 50, 8143 Stallikon
    var latlng = new GLatLng(47.337907, 8.486893);
    map.addOverlay(createMarker(latlng, 11, "<p class='ginfo'><strong>Wohnheim Loomatt</strong><br />Loomattstrasse 50<br />8143 Stallikon<br /><br />" + 
		"<a href='http://maps.google.ch/maps?f=q&hl=de&geocode=&q=Loomattstrasse+50,+8143+Stallikon'>" + 
		"In Google Maps öffnen</a></p>"));

	// 13 - Riedenhaldenstrasse 7, 8046 Zürich
    var latlng = new GLatLng(47.415182, 8.517264);
    map.addOverlay(createMarker(latlng, 12, "<p class='ginfo'><strong>Haus Riedenhalden</strong><br />Riedenhaldenstrasse 7<br />8046 Zürich<br /><br />" + 
		"<a href='http://maps.google.ch/maps?f=q&hl=de&geocode=&q=Riedenhaldenstrasse+7,+8046+Zürich'>" + 
		"In Google Maps öffnen</a></p>"));
	
  }
}

