// Startinfos
	function init(){
		// Karte initialisieren
			map = new GMap2(document.getElementById("map"));
	
		// Karte zentrieren + Kartentypen setzen
			map.setCenter(new GLatLng(centerLatitude , centerLongitude), startZoom);
			map.setMapType(map.getMapTypes()[2]);
	
		// Navigation + Zoom
			map.addControl(new GSmallMapControl());
		// Umstellung auf Satellit, Karte, Hybrid
			map.addControl(new GMapTypeControl());
	}

// Creates Marker and adds it to Map
	function addMarker(longitude,latitude, htmltxt, icon) {
		var point = new GLatLng(longitude,latitude);
	  	var marker = new GMarker(point, icon);
	  	if(htmltxt != ''){
			GEvent.addListener(marker, "click", 
				function() {
					marker.openInfoWindowHtml('<div align="left">'+htmltxt+'</div>');
				}
			)
		}		
		map.addOverlay (marker)
	}
// Creates an Icon
	function createIcon(image, width, height, anch_x, anch_y, wach_x, wach_y){
		var icon = new GIcon();
		icon.image = image;
		icon.iconSize = new GSize(width, height);			
		icon.iconAnchor = new GPoint(anch_x, anch_y);
		icon.infoWindowAnchor = new GPoint(wach_x, wach_y);
		return icon;
	}


// Polyline einzeichnen Pfad (Array), Farbe der Linie, Dicke der Linie
	function drawPolyline(path, color, line){
		var polyline = new GPolyline(
			path, 
			color, 
			line
		);
		map.addOverlay(polyline);				
	}
