
    //<![CDATA[

// Creates a marker at the given point with the given number label 
var map;
var marker;
function onPageLoad() {
    if (GBrowserIsCompatible()) {
	map = new GMap2(document.getElementById("map"));
	map.addControl(new GLargeMapControl());
	map.addControl(new GMapTypeControl());
	map.setCenter(new GLatLng(52.11296253505166, 12.45351791381836), 15);
	
	var icon = new GIcon();
	//icon.image = "http://www.google.com/mapfiles/marker.png";
	//icon.image = "http://www.beaubeau.de/img/pic/signet_s_f02.png";
	icon.shadow = "http://www.google.com/mapfiles/shadow50.png";
	icon.iconSize = new GSize(20, 34);
	icon.shadowSize = new GSize(37, 34);
	
	//var point = new GPoint( GLatLng(55.019,09.429) );
	var point =  new GLatLng(52.11296253505166, 12.45351791381836);
	var marker = createMarker(point,'Schloss Wiesenburg')
	map.addOverlay(marker);
	
    }
}

function createMarker(point,html) {
	var marker = new GMarker(point);
	GEvent.addListener(marker, "click", function() {
		marker.openInfoWindowHtml(html);
	});
return marker;
}

    //]]>