		var directionDisplay;
		var flughafen =  new google.maps.LatLng(47.453655, 8.564689);
		var directionsService = new google.maps.DirectionsService();
		var map;
		function initGoogleMaps() {
			directionsDisplay = new google.maps.DirectionsRenderer();
			var myOptions = {
				zoom:13,
				center: flughafen,
				mapTypeControl: true,
				mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DROPDOWN_MENU},
				navigationControl: true,
				navigationControlOptions: {style: google.maps.NavigationControlStyle.SMALL},
				scaleControl: true,
				mapTypeId: google.maps.MapTypeId.ROADMAP
			}
			//Karte
			map = new google.maps.Map(document.getElementById("mapPanel"), myOptions);
			
			//Wegbeschreibung
			directionsDisplay.setMap(map);
			directionsDisplay.setPanel(document.getElementById("routePanel"));
			
			//Marker
			var marker = new google.maps.Marker({
				map: map, 
				position: flughafen,
				title:"Almo Personal AG"
			});
			
			//Infofenster
			var infowindow = new google.maps.InfoWindow({
				content: "<img height=\"51\" border=\"0\" width=\"112\" alt=\"Almo Personal AG\" src=\"http://www.almopersonal.ch/images/logo.jpg\">",
			});
			infowindow.open(map, marker);
		}
  
		function calcRoute(start, mode) {
			var request = {
				origin: start, 
				destination: flughafen,
				travelMode: google.maps.DirectionsTravelMode[mode]
			};
			$('.googleMaps input[type=button]').attr('disabled', 'disabled');
			directionsService.route(request, function(response, status) {
				if (status == google.maps.DirectionsStatus.OK) {
					directionsDisplay.setDirections(response);
					calcRouteSuccess();
				} else {
					calcRouteError();
				}
				$('.googleMaps input[type=button]').removeAttr('disabled');
			});
		}

		function calcRouteSuccess() {
			$('.googleMaps #routePanel').css('display', 'block');
		}		
		
		function calcRouteError() {
			alert("Es konnte leider keine Route gefunden werden.");
			$('.googleMaps input[type=text]').val('');
			$('.googleMaps #routePanel').css('display', 'none');
		}
