﻿/*
key: ABQIAAAA7-HU7lBkHuNMP1nLMg3jyhRSioOL1srEonO3onU_VMhC8rNP1BQqhPmFLCHFRcDqj7hs4JqsZNcdPQ for Url http://www.reisebuero-nitzsche.de/
api here: http://www.google.com/apis/maps/
adresse in laenge und breite umrechnen: http://www.netzwelt.de/geocoding/index.html
*/

document.write ("<script src='http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAA7-HU7lBkHuNMP1nLMg3jyhTNqtOWFD3usnzTH50ipO7xCHCKHBRNwRDTplXgSO8QVVtkOt4FB0zrwA' type='text/javascript'></script>" +
"<div id='map' style='width: 100%; height: 400px; border: 1px solid gray'></div>" +
"<div style='text-align: center'><a title='Karte in neuem Fenster öffnen' href='http://goo.gl/maps/j5rK' target='_blank'>Route berechnen</a></div>");

$(document).ready(function () {
	if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("map"));
		map.addControl(new GMapTypeControl());
		map.addControl(new GLargeMapControl());

		var center = new GLatLng(52.500078, 13.460698);
		map.setCenter(center, 12);

		var marker = new GMarker(center, {draggable: false});
		map.addOverlay(marker);
		
		map.setMapType(G_NORMAL_MAP);

		map.openInfoWindowHtml(center, "<u><b>Stralauer Reiseb&uuml;ro</b></u><br /> Corinthstr. 32, 10245 Berlin<br /><br /><i>Wir freuen uns auf Ihren Besuch !</i>");
	}
});
