function load() {
if (GBrowserIsCompatible()) {
// BASE SCRIPT
var map = new GMap2(document.getElementById("map"));

// Adding Controls zu the Map
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());

// BASE SCRIPT
map.setCenter(new GLatLng(49.980191, 7.089593), 14);

// Opening an Info Window
//map.openInfoWindow(map.getCenter(),
//document.createTextNode("Weingut Hüls Rosendahl"));



// Creates a marker at the given point with the given number label
function createMarker(point, number) {
  var marker = new GMarker(point);
  GEvent.addListener(marker, "click", function() {
    marker.openInfoWindowHtml("<a href='images/kroev.jpg' title='Kröv Mosel Weingut' target='_blank'><img src='images/kroev_vorschau.jpg' alt='Kröv' align='left'></a>Weingut<br>Hüls-Rosendahl<br>Moselweinstr. 44<br>54536 Kröv / Mosel");
  });
  return marker;
}


// Create our "tiny" marker icon
var iconhalle = new GIcon();
iconhalle.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
iconhalle.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
iconhalle.iconSize = new GSize(12, 20);
iconhalle.shadowSize = new GSize(22, 20);
iconhalle.iconAnchor = new GPoint(6, 20);
iconhalle.infoWindowAnchor = new GPoint(5, 1);



// Add 10 markers to the map at random locations
var point = new GLatLng(49.980191, 7.089593);
var pointhalle = new GLatLng(49.979221, 7.089503);
map.addOverlay(createMarker(point));

// map.addOverlay(createMarker(pointhalle));
// map.addOverlay(new GMarker(pointhalle, icon));


}
}

function openwindow(URL) {
   window.open(URL,"images","width=520,height=400,top=0,left=0,sreenX=0,sreenY=0,resizable=no,scrollbars=no,statusbar=no");
}
