function initialize() {
	if (GBrowserIsCompatible()) {
		// instantiate map
		var map = new GMap2(document.getElementById("google_map"),{mapTypes:[G_PHYSICAL_MAP]});
		//map.setCenter(new GLatLng(55.676294, 12.568116), 10);
		var ui = map.getDefaultUI();
		ui.controls.smallzoomcontrol3d = true;
		ui.controls.menumaptypecontrol = false;
		ui.zoom.scrollwheel = false;
		map.setUI(ui);

		// create custom marker icon
		var tinyIcon = new GIcon();
		tinyIcon.image = "http://trygdenaf.dk/assets/images/core/gx_bluedot.png";
		tinyIcon.iconSize = new GSize(11, 11);
		tinyIcon.iconAnchor = new GPoint(5, 5);
		mo = { icon:tinyIcon };
	
		// load POIs
		var gx = new GGeoXml("http://maps.google.com/maps/ms?ie=UTF8&msa=0&output=kml&msid=108183337947961083467.00049346df99d7a3f2da0",function()
		{
			var bounds = this.getDefaultBounds();
			var zoomCorrection = 0; //standalone? 1:0;
			map.setCenter(bounds.getCenter(), map.getBoundsZoomLevel(bounds)-zoomCorrection);
						
			var pois = this.ad;
			for(i=0;i<pois.length;i++) {
				var poi = pois[i];
				var c = poi.C; var n = poi.name;
				var marker = new GMarker(c, mo);
				marker.locName = poi.name;
				marker.link = $("#locationName").html();
				
				GEvent.addDomListener(marker, 'mouseover', function() {$("#locationName").html(this.locName);});
				
				GEvent.addDomListener(marker, 'mouseout', function() {$("#locationName").html(this.link);});
				map.addOverlay(marker);
			}
		});
	}
}

$(window).load( function () {initialize()} );
$(window).unload( function () {GUnload()} );

