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(62.47070,6.51510);
     var point2 = new GLatLng(62.45530,6.47631);
     var point3 = new GLatLng(62.50298,6.28096);
     var point4 = new GLatLng(62.46324,6.44421);
     var point5 = new GLatLng(62.45942,6.09964);
     var point6 = new GLatLng(62.47620,6.17904);
     var point7 = new GLatLng(62.49629,6.18217);


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


     map.addOverlay(createMarker(point1 ,"<a href=\"../Peaks/uksenoya.html\" target=\"_blank\">Ursfjellet</a>, approx. 553m, PF 0m",icon2));
     map.addOverlay(createMarker(point2 ,"<a href=\"../Peaks/uksenoya.html\" target=\"_blank\">Høgekubben</a>, 462m, PF 103m",icon2));
     map.addOverlay(createMarker(point3 ,"<a href=\"../Peaks/myklebusthornet.html\" target=\"_blank\">Myklebusthornet</a>, 329m, PF 329m",icon2));
     map.addOverlay(createMarker(point4 ,"<a href=\"../Peaks/uksenoya.html\" target=\"_blank\">Spjelkavikfjellet</a> (Geitnosa), 458m, PF 104m",icon2));
     map.addOverlay(createMarker(point5 ,"<a href=\"../Peaks/sukkertoppen.html\" target=\"_blank\">Sukkertoppen</a>, 314m, PF 314m",icon2));
     map.addOverlay(createMarker(point6 ,"<a href=\"../Peaks/aaksla.html\" target=\"_blank\">Aksla</a>, 188m, PF 188m",icon2));
     map.addOverlay(createMarker(point7 ,"<a href=\"../Peaks/kverveaksla.html\" target=\"_blank\">Kverveaksla</a>, 143m, PF 131m",icon1));
 
     var polyline = new GPolyline ([
		new GLatLng (62.50928,6.19092),
		new GLatLng (62.52014,6.23918),
		new GLatLng (62.52237,6.27374),
		new GLatLng (62.52484,6.46276),
		new GLatLng (62.51914,6.46398),
		new GLatLng (62.50917,6.45495),
		new GLatLng (62.50472,6.43460),
		new GLatLng (62.50202,6.43785),
		new GLatLng (62.49283,6.43155),
		new GLatLng (62.48445,6.43691),
		new GLatLng (62.48460,6.43882),
		new GLatLng (62.47955,6.44457),
		new GLatLng (62.47301,6.44515),
		new GLatLng (62.47380,6.45122),
		new GLatLng (62.47454,6.46005),
		new GLatLng (62.47546,6.46551),
		new GLatLng (62.47741,6.47177),
		new GLatLng (62.47975,6.48551),
		new GLatLng (62.48003,6.49654),
		new GLatLng (62.47946,6.51654),
		new GLatLng (62.47287,6.51723),
		new GLatLng (62.47154,6.51363),
		new GLatLng (62.46855,6.51883),
		new GLatLng (62.46716,6.51697),
		new GLatLng (62.45966,6.52765),
		new GLatLng (62.46047,6.53403),
		new GLatLng (62.45703,6.54073),
		new GLatLng (62.45225,6.54521),
		new GLatLng (62.45049,6.54104),
		new GLatLng (62.44788,6.53765),
		new GLatLng (62.44720,6.53975),
		new GLatLng (62.44759,6.54315),
		new GLatLng (62.44724,6.54613),
		new GLatLng (62.44715,6.54891),
		new GLatLng (62.44409,6.55514),
		new GLatLng (62.44280,6.55687),
		new GLatLng (62.44236,6.55789),
		new GLatLng (62.43280,6.57124),
		new GLatLng (62.41706,6.51961),
		new GLatLng (62.41398,6.43852),
		new GLatLng (62.39456,6.36441),
		new GLatLng (62.41500,6.36535),
		new GLatLng (62.42432,6.37550),
		new GLatLng (62.43230,6.36622),
		new GLatLng (62.43118,6.32995),
		new GLatLng (62.43007,6.32143),
		new GLatLng (62.43155,6.31651),
		new GLatLng (62.43224,6.29619),
		new GLatLng (62.43501,6.29493),
		new GLatLng (62.43851,6.30027),
		new GLatLng (62.44462,6.26999),
		new GLatLng (62.45724,6.22841),
		new GLatLng (62.45898,6.18355),
		new GLatLng (62.44818,6.14879),
		new GLatLng (62.44549,6.10295),
		new GLatLng (62.45309,6.05558),
		new GLatLng (62.47499,6.06832),
		new GLatLng (62.48789,6.13457),
		new GLatLng (62.50339,6.16710),
		new GLatLng (62.50924,6.19098)], "#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;
}


