function initialize() {
      var myOptions = {
        zoom: 12,
        scrollwheel: false,
        navigationControl: true,
        mapTypeControl: false,
        scaleControl: true,
        draggable: true,
        disableDefaultUI: true,
        center: new google.maps.LatLng(55.617556, 12.669192),
        mapTypeId: google.maps.MapTypeId.ROADMAP
      }

      
      
      var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
      
      var flightPlanCoordinates = [
          new google.maps.LatLng(55.654444,12.646379),
          new google.maps.LatLng(55.657592,12.639513),
          new google.maps.LatLng(55.66253,12.636166),
          new google.maps.LatLng(55.669986,12.633505),
          new google.maps.LatLng(55.672599,12.630329),
          new google.maps.LatLng(55.680827,12.623291),
          new google.maps.LatLng(55.683875,12.628012),
          new google.maps.LatLng(55.687311,12.637196),
          new google.maps.LatLng(55.692246,12.632647),
          new google.maps.LatLng(55.697663,12.630243),
          new google.maps.LatLng(55.698824,12.619858),
          new google.maps.LatLng(55.697422,12.605438),
          new google.maps.LatLng(55.691278,12.601662),
          new google.maps.LatLng(55.686295,12.599602),
          new google.maps.LatLng(55.679811,12.596083),
          new google.maps.LatLng(55.67802,12.593422),
          new google.maps.LatLng(55.674826,12.5875),
          new google.maps.LatLng(55.670276,12.579002),
          new google.maps.LatLng(55.662095,12.567844),
          new google.maps.LatLng(55.660449,12.566128),
          new google.maps.LatLng(55.652556,12.560549),
          new google.maps.LatLng(55.644177,12.55394),
          new google.maps.LatLng(55.641949,12.550077),
          new google.maps.LatLng(55.641368,12.549305),
          new google.maps.LatLng(55.640399,12.550678),
          new google.maps.LatLng(55.63725,12.544842),
          new google.maps.LatLng(55.631775,12.534456),
          new google.maps.LatLng(55.61428,12.512484),
          new google.maps.LatLng(55.610548,12.50845),
          new google.maps.LatLng(55.608366,12.507849),
          new google.maps.LatLng(55.605796,12.508192),
          new google.maps.LatLng(55.59411,12.511196),
          new google.maps.LatLng(55.582129,12.52038),
          new google.maps.LatLng(55.575336,12.527847),
          new google.maps.LatLng(55.57359,12.529392),
          new google.maps.LatLng(55.570484,12.540207),
          new google.maps.LatLng(55.556117,12.565098),
          new google.maps.LatLng(55.551942,12.59531),
          new google.maps.LatLng(55.560098,12.621231),
          new google.maps.LatLng(55.567475,12.636337),
          new google.maps.LatLng(55.585525,12.684746),
          new google.maps.LatLng(55.593964,12.685089),
          new google.maps.LatLng(55.627996,12.682343),
          new google.maps.LatLng(55.631485,12.680969),
          new google.maps.LatLng(55.633617,12.676506),
          new google.maps.LatLng(55.634586,12.671356),
          new google.maps.LatLng(55.634876,12.668266),
          new google.maps.LatLng(55.647374,12.651443),
          new google.maps.LatLng(55.647955,12.646809),
          new google.maps.LatLng(55.650958,12.642345),
          new google.maps.LatLng(55.654154,12.646294)
        ];
        var flightPath = new google.maps.Polyline({
          path: flightPlanCoordinates,
          strokeColor: "#FF0000",
          strokeOpacity: 1.0,
          strokeWeight: 2
        });
      
        flightPath.setMap(map);
      
      var Pointer1 = new google.maps.LatLng(55.65439,12.646603);
//      var image2 = '/wp-content/themes/cphseachallenge/images/flag.png';

      var contentString1 = '<div id="mapnotice">'+
          '<div id="siteNotice">'+
          '</div>'+
          '<h2 class="googlemap">Start/Mål:</h2><em>Amager Strandpark</em>'+
          '<h2 class="googlemap">Retning:</h2><em>Mod uret</em>'+
          '<h2 class="googlemap">Start:</h2><em>Samlet start kl. 9</em>'+
          '<h2 class="googlemap">Distance:</h2><em>Ca. 43 km</em>'+
          '</div>';
      
      
      var infowindow = new google.maps.InfoWindow({
          content: contentString1
      });
      

//      Marker 2
      
       var Pointer2 = new google.maps.LatLng(55.65425,12.56235);
      //      var image2 = '/wp-content/themes/cphseachallenge/images/flag.png';
      
       var contentString2 = '<div id="mapnotice">'+
        '<div id="siteNotice">'+
        '</div>'+
        '<h2 class="googlemap"><em>Islands Brygge-depotet <span>Ligger efter cirka 12 kilometer. Her vil der være mad og drikke og adgang til depot-pose. Præcis adresse følger.</span></em></h2>'+
        '</div>';
    
            
         var infowindow2 = new google.maps.InfoWindow({
              content: contentString2
         });
      
 //      Marker 3
       
        var Pointer3 = new google.maps.LatLng(55.64185,12.55016);
       //      var image2 = '/wp-content/themes/cphseachallenge/images/flag.png';
       
        var contentString3 = '<div id="mapnotice">'+
         '<div id="siteNotice">'+
         '</div>'+
         '<h2 class="googlemap"><em> Slusen ved Kalvebod Brygge. <span>Løbets eneste overbæring. Også mulighed for at sejle igennem slusen.</span></em></h2>'+
         '</div>';
     
             
          var infowindow3 = new google.maps.InfoWindow({
               content: contentString3
          });
          
          
// Marker 4
          
         var Pointer4 = new google.maps.LatLng(55.59251,12.68097);
            //      var image2 = '/wp-content/themes/cphseachallenge/images/flag.png';
            
         var contentString4 = '<div id="mapnotice">'+
          '<div id="siteNotice">'+
          '</div>'+
          '<h2 class="googlemap"><em> Dragør-depotet <span>Ligger efter ca. 36 kilometer. Her vil der være mad og drikke og adgang til depot-pose. Præcis adresse følger.</span></em></h2>'+
          '</div>';
      
              
           var infowindow4 = new google.maps.InfoWindow({
                content: contentString4
           });
      

      
      var seachallengeStyles = [ { featureType: "road", elementType: "geometry", stylers: [ { visibility: "off" } ] },{ elementType: "labels", stylers: [ { visibility: "off" } ] },{ featureType: "water", stylers: [ { saturation: -49 }, { gamma: 0.33 } ] },{ featureType: "landscape", elementType: "geometry", stylers: [ { saturation: -80 } ] },{ featureType: "transit", elementType: "geometry", stylers: [ { visibility: "off" } ] },{ featureType: "poi", stylers: [ { gamma: 0.73 }, { saturation: -62 }, { hue: "#ff0000" } ] },{ } ];
      
      map.setOptions({styles: seachallengeStyles});
      
           
      var marker = new google.maps.Marker({
          position: Pointer1,
          map: map,
          title:"Start / Mål",
//          icon: image2
      });
      
      var marker2 = new google.maps.Marker({
        position: Pointer2,
        map: map,
        title:"Islands Brygge-depotet",
      //          icon: image2
            });
            
      var marker3 = new google.maps.Marker({
        position: Pointer3,
        map: map,
        title:"Slusen",
      //          icon: image2
            });
       
       var marker4 = new google.maps.Marker({
         position: Pointer4,
         map: map,
         title:"Dragør depotet",
       //          icon: image2
             });
            
      
      google.maps.event.addListener(marker, 'click', function() {
        infowindow.open(map,marker);
      });
      
      google.maps.event.addListener(marker2, 'click', function() {
        infowindow2.open(map,marker2);
      });
     
     
     google.maps.event.addListener(marker3, 'click', function() {
        infowindow3.open(map,marker3);
      });
      
      google.maps.event.addListener(marker4, 'click', function() {
         infowindow4.open(map,marker4);
       });
      
      
     
     
      
    }

    
    function loadScript() {
      var script = document.createElement("script");
      script.type = "text/javascript";
      script.src = "http://maps.googleapis.com/maps/api/js?key=AIzaSyDhi9MCtqMkOPORkdL2qdAfrU1zPM5eSvc&sensor=false&callback=initialize";
      document.body.appendChild(script);
    }
    
    
    window.onload = loadScript;

    

         
    
     
      
    

