//<![CDATA[	
    // global arrays to hold copies of the markers and html used by the side_bar
    var gmarkers = [];
    var htmls = [];
    
    // global "map" variable
    var map;

    // This function picks up the side_bar click and opens the corresponding info window
	function moveto(i) {
		gmarkers[i].openInfoWindowHtml(htmls[i]);
		$('routeInfo_1').setStyle({display:'none'});
		$('routeInfo_2').setStyle({display:'none'});
		$('routeInfo_3').setStyle({display:'none'});
		$('routeInfo_4').setStyle({display:'none'});
		i++;
		if($('routeInfo_'+(i))) $('routeInfo_'+(i)).setStyle({display:'block'});
    }
    // This function zooms in or out
    // its not necessary to check for out of range zoom numbers, because the API checks
    function myzoom(a) {
      	map.setZoom(map.getZoom() + a);
    }

    function wagt_map() {
     	if (GBrowserIsCompatible()) {
	
			var icon = new GIcon();
			var markerStyle = 'Flag';
			var markerColor = 'Nautica';
			icon.image = 'http://google.webassist.com/google/markers/flag/nautica.png';
			icon.shadow = 'http://google.webassist.com/google/markers/flag/shadow.png';
			icon.iconSize = new GSize(31,35);
			icon.shadowSize = new GSize(31,35);
			icon.iconAnchor = new GPoint(4,27);
			icon.infoWindowAnchor = new GPoint(8,3);
			icon.printImage = 'http://google.webassist.com/google/markers/flag/nautica.gif';
			icon.mozPrintImage = 'http://google.webassist.com/google/markers/flag/nautica_mozprint.png';
			icon.printShadow = 'http://google.webassist.com/google/markers/flag/shadow.gif';
			icon.transparent = 'http://google.webassist.com/google/markers/flag/nautica_transparent.png';
			// this variable will collect the html which will eventualkly be placed in the side_bar
			var i = 0;

		  	// A function to create the marker and set up the event window
			function createMarker(point,name,html) {
				var marker = new GMarker(point,icon);
				GEvent.addListener(marker, "click", function() {
					marker.openInfoWindowHtml(html);
				});
				// save the info we need to use later for the side_bar
				gmarkers[i] = marker;
				htmls[i] = html;
				// add a line to the side_bar html
			   
				i++;
				return marker;
			}

		// create the map using the global "map" variable
		map = new GMap2(document.getElementById("wagt_map"));
		map.enableContinuousZoom();
		map.enableDoubleClickZoom();
		map.addControl(new GLargeMapControl());
		map.addControl(new GScaleControl());
		map.addControl(new GOverviewMapControl());
		map.addControl(new GMapTypeControl());
		map.setCenter(new GLatLng(52.362403, 4.919452), 13);
		
		// add the points    
		var point = new GLatLng(52.30895, 4.76133);
		var marker = createMarker(point,"marker1","<span class='mapinfo'><strong>Amsterdam Schiphol Airport</strong><br /><br />Netherlands<br />[GPS]: N 52,30895 E 4,76133<br />[i]:<a href='http://www.schiphol.nl' class='maplink'>www.schiphol.nl</a><br /><br/></span>")
		map.addOverlay(marker);
		
		var point = new GLatLng(52.3778, 4.90120);
		var marker = createMarker(point,"marker2","<span class='mapinfo'><strong>Amsterdam Central Station</strong><br />Stationsplein<br/>Amsterdam, the Netherlands<br />[GPS]: N 52,3778 E 4,90120<br/>[i]:<a href='http://www.flickr.com/photos/13308426@N07/1365312938/' class='maplink'>tram 9 at Central Station towards Diemen Sniep</a></span>")
		map.addOverlay(marker);
		
		var point = new GLatLng(52.36345, 4.91938);
		var marker = createMarker(point,"marker3","<span class='mapinfo'><strong>Tram stop Alexanderplein</strong><br />Alexanderplein<br />Amsterdam, the Netherlands<br />[GPS]: N 52,36345 E 4,91938<br/>[i]:<a href='http://www.flickr.com/photos/13308426@N07/1364424601/' class='maplink'>exit tram at Alexanderplein</span>")
		map.addOverlay(marker);
							 
		var point = new GLatLng(52.36243, 4.92336);
		var marker = createMarker(point,"marker4","<span class='mapinfo'><strong>Royal Tropical Institute (parking entrance)</strong><br />Linnaeusstraat 2<br />Amsterdam, the Netherlands<br />[GPS]: N 52,36243 E 4,92336</span>")
		map.addOverlay(marker);
		
		var point = new GLatLng(52.36274, 4.92054);
		var marker = createMarker(point,"marker5","<span class='mapinfo'><strong>Royal Tropical Institute (front entrance)</strong><br />Mauritskade 63<br />1092 AD Amsterdam, the Netherlands<br />[GPS]: N 52,36274 E 4,92054<br />[i]:<a href='http://www.kit.nl' class='maplink'>www.kit.nl</a><br /><br/></span>")
		map.addOverlay(marker);
		gmarkers[4].openInfoWindowHtml(htmls[4]);
		
   	}
	
}
//]]>