var map = new GMap2(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(50.7424807, 10.5104448), 15);

/* Lädt die Daten in data.xml herunter und lädt sie auf die Karte. Das erwartete Format lautet:
 <markers>
  <marker lat="50.7424807" lng="10.5104448"/>
  <marker lat="50.7424807" lng="10.5104448"/>
 </markers>*/
 var point1 = new GPoint(10.5080907772216796, 50.743567149598945);/**/
var icon2 = new GIcon();
icon2.image = "../images/schild.png";
icon2.shadow = "../images/schild_schatten.png";
icon2.iconSize = new GSize(100, 60);
icon2.shadowSize = new GSize(160, 60);
icon2.iconAnchor = new GPoint(6, 20);
icon2.infoWindowAnchor = new GPoint(0, 0);

var struth = new GMarker(point1, icon2);
GEvent.addListener(struth, "click", function() {struth.openInfoWindowHtml(html1)});
map.addOverlay(struth);

var html1 = "<h5>Ferienhaus Familie Danz</h5><p><a href='http://www.ferienhaus-danz.de' title='Ferienhaus Familie Danz'><img  src='../images/ferienhaus_klein.jpg'  border='0' align='left' hspace='0' vspace='0' style='margin-right:5px;' alt='Ferienhaus Familie Danz'/></a>Kirchweg 22<br>98593 Floh-Seligenthal<br><br>&nbsp;&nbsp;<a href='http://maps.google.de/maps?f=q&hl=de&geocode=&q=Kirchweg+22,+98593+Floh-Seligenthal,+Deutschland&sll=50.742471,10.510431&sspn=0.006708,0.019312&g=Kirchweg+22,+98593+Floh-Seligenthal,+Deutschland&ie=UTF8&ll=50.743299,10.51044&spn=0.006708,0.019312&t=h&z=16&iwloc=addr%20target='_blank'><u>Route erstellen</u></a></p>"
 
 
GDownloadUrl("geso.xml", function(data, responseCode) {
  var xml = GXml.parse(data);
  var markers = xml.documentElement.getElementsByTagName("marker");
  for (var i = 0; i < markers.length; i++) {
    var point = new GLatLng(parseFloat(markers[i].getAttribute("lat")),
                            parseFloat(markers[i].getAttribute("lng")));
    map.addOverlay(new GMarker(point));
  }
});