function load() {
   if (GBrowserIsCompatible()) {
     var map = new GMap2(document.getElementById("map"));
     var icon1 = new GIcon();
     icon1.image = "/fpage/google/markerie.gif";
     icon1.shadow = "/fpage/google/dithshadow.gif";
     icon1.iconSize = new GSize(12, 20);
     icon1.shadowSize = new GSize(22, 20);
     icon1.iconAnchor = new GPoint(6, 20);
     icon1.infoWindowAnchor = new GPoint(5, 1);
     var icon2 = new GIcon();
     icon2.image = "/fpage/google/dd-startie.gif";
     icon2.shadow = "/fpage/google/dithshadow.gif";
     icon2.iconSize = new GSize(12, 20);
     icon2.shadowSize = new GSize(22, 20);
     icon2.iconAnchor = new GPoint(6, 20);
     icon2.infoWindowAnchor = new GPoint(5, 1);
     var point1 = new GLatLng(63.11787,7.80939);


     map.addMapType(G_PHYSICAL_MAP);
     map.addControl(new GSmallMapControl());
     map.addControl(new GMapTypeControl());
     map.setCenter (new GLatLng(63.11834,7.77094), 10);
     map.setMapType(G_PHYSICAL_MAP);


     map.addOverlay(createMarker(point1 ,"<a href=\"../Peaks/kvernberget.html\" target=\"_blank\">Kvernberget</a>, 205m, primary factor 205m",icon2));

 
     var polyline = new GPolyline ([
		new GLatLng(63.22234,7.32867),
		new GLatLng(63.12612,7.66991),
		new GLatLng(63.09245,7.69100),
		new GLatLng(63.10107,7.78158),
		new GLatLng(63.10479,7.80066),
		new GLatLng(63.10731,7.86462),
		new GLatLng(63.11537,7.93077),
		new GLatLng(63.14427,7.87221),
		new GLatLng(63.15693,7.76731),
		new GLatLng(63.16633,7.74430),
		new GLatLng(63.20255,7.77588),
		new GLatLng(63.28182,7.58844),
		new GLatLng(63.30746,7.47179)], "#FF0000", 5, 0.5);
     map.addOverlay(polyline);
   }
}

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


