function showMap_1(id, aPlaces, lat, long, zoom, icon)
{
	function createMarker_1(point, url, html)
	{
		// set options
		options = { icon:baseIcon }
		var marker = new GMarker(point, options);

		// add listener
		GEvent.addListener(marker, "click", function()
		{
			// redirect
			window.location = url;
		});

		// add listener
		GEvent.addListener(marker, "mouseover", function()
		{
			// open info window
      marker.openInfoWindowHtml(html);
		});

		// return
		return marker;
	}

	// create map
	var map = new GMap2(document.getElementById(id));

	// set center
	//map.setCenter(new GLatLng(37.4419, -122.1419), 0);
	map.setCenter(new GLatLng(lat,long),zoom);

	// add control
	//map.addControl(new GSmallMapControl());
	map.addControl(new GLargeMapControl());
	map.addControl(new GMapTypeControl());

	// create icons
				var info = new GIcon(baseIcon, "http://maps.google.com/mapfiles/kml/pal3/icon36.png", null, "http://maps.google.com/mapfiles/kml/pal3/icon36s.png");
				var house = new GIcon(baseIcon, "http://maps.google.com/mapfiles/kml/pal2/icon10.png", null, "http://maps.google.com/mapfiles/kml/pal2/icon10s.png");
				var flag = new GIcon(baseIcon, "http://maps.google.com/mapfiles/kml/pal2/icon5.png", null, "http://maps.google.com/mapfiles/kml/pal2/icon5s.png");

	var baseIcon = new GIcon();


    // place trips
    for (var i = 1; i <= aPlaces.length; i++)
    {
			switch(icon)
			{
			case 1:
        baseIcon.iconSize = new GSize(32, 37);
        baseIcon.iconAnchor = new GPoint(0, 34);
				baseIcon.infoWindowAnchor=new GPoint(20,0);
				baseIcon.image = 'http://google-maps-icons.googlecode.com/files/golf.png';
				break;
			case 2:
        baseIcon.iconSize = new GSize(32, 37);
        baseIcon.iconAnchor = new GPoint(0, 34);
				baseIcon.infoWindowAnchor=new GPoint(20,0);
				baseIcon.image = 'http://google-maps-icons.googlecode.com/files/home.png';
				break;
			default:
        baseIcon.iconSize = new GSize(20, 34);
        baseIcon.iconAnchor = new GPoint(0, 34);
				baseIcon.infoWindowAnchor=new GPoint(20,0);
				baseIcon.image = 'http://89.18.178.188/~golfhuizen/icons/markers/marker'+i+'.png';
			}
    	map.addOverlay(createMarker_1(new GLatLng(aPlaces[i-1][0], aPlaces[i-1][1]), aPlaces[i-1][2], aPlaces[i-1][3]));
    }
}
