    function load() {
      if (GBrowserIsCompatible()) {
        this.map = new GMap2(document.getElementById("map"));
        map.setCenter(new GLatLng(2.460181, -106.523438), 2);
        map.setMapType(G_SATELLITE_MAP);
        document.getElementById("message").innerHTML = "(2.460181, -106.523438), 2";
        this.smallControl = new GSmallMapControl();
        map.addControl(this.smallControl );
        var topRight = new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(10,10));
        var mapTypeControl = new GMapTypeControl();
        map.addControl(mapTypeControl, topRight);
        map.addControl(new GScaleControl());
        this.zoom = new DragZoomControl({}, {backButtonEnabled: true}, {});
        map.addControl(this.zoom);
        this.manager = new MarkerManager(map);
        GEvent.addListener(map, "moveend", function() {
                var center = map.getCenter();
                var zoomp = map.getZoom();
                document.getElementById("message").innerHTML = center.toString() + ", " + zoomp.toString();
        });
        
        // Create our  marker icon
        var whiteIcon = new GIcon();
        whiteIcon.image = "images/marker_white.png";
        whiteIcon.shadow = "images/marker_shadow.png";
        whiteIcon.iconSize = new GSize(16, 28);
        whiteIcon.shadowSize = new GSize(30, 30);
        whiteIcon.iconAnchor = new GPoint(8, 26);
        whiteIcon.infoWindowAnchor = new GPoint(7, 8);
        
        
        // Set up our GMarkerOptions object literal
        markerOptions = { icon:whiteIcon };
        
        //arrays
        var level2Labels = new Array();
        var level4Labels = new Array();
        var level5Labels = new Array();
        var level6Labels = new Array();
        var level8Labels = new Array();
        var markers = new Array();
        
        //points
        var portsmouthPoint = new GLatLng(50.774075,-1.081303);
        var tenerifePoint = new GLatLng(28.471296,-16.286656);
        var rioPoint = new GLatLng(-22.898386,-43.277205);
        var pitcairnPoint = new GLatLng(-25.069075,-130.106952);
        var tahitiPoint = new GLatLng(-17.660163,-149.419816);
        var duciePoint = new GLatLng(-24.682431,-124.783749);
        var maruteaPoint = new GLatLng(-21.518469,-135.574459);
        var tureiaPoint = new GLatLng(-20.828815,-138.535620);
        var aitutakiPoint = new GLatLng(-18.867374,-159.780116);
        var palmerstonPoint = new GLatLng(-18.051876,-163.158276);
        var huahinePoint = new GLatLng(-16.761376,-151.009388);
        var raiateaPoint = new GLatLng(-16.813229,-151.427620);
        var tahaaPoint = new GLatLng(-16.632715,-151.488613);
        var boraPoint = new GLatLng(-16.492266,-151.747146);
        var tupaiPoint = new GLatLng(-16.263627,-151.814207);
        var mauruaPoint = new GLatLng(-16.448622,-152.264259);
        var atafuPoint = new GLatLng(-8.586559,-172.484011);
        var nukunonoPoint = new GLatLng(-9.174823,-171.810172);
        var upoluPoint = new GLatLng(-13.940677,-171.736414);
        var savaiiPoint = new GLatLng(-13.631597,-172.458916);
        var tutuilaPoint = new GLatLng(-14.311172,-170.758448);
        var manuaPoint = new GLatLng(-14.232879,-169.597388);
        var annamookaPoint = new GLatLng(-20.246427,-174.800839);
        var tofoaPoint = new GLatLng(-19.755290,-175.060374);
        var kaoPoint = new GLatLng(-19.667107,-175.015198);
        var manuaPoint = new GLatLng(-14.233333,-169.508333);
        var vavauPoint = new GLatLng(-18.667844,-174.002601);
        var tokuPoint = new GLatLng(-18.156879,-174.162364);
        var fonualeiPoint = new GLatLng(-18.028163,-174.309936);
        var falsePoint = new GLatLng(-17.639833,-174.923483);
        var tongatapuPoint = new GLatLng(-21.201013,-175.179615);
        var niuafoPoint = new GLatLng(-15.600497,-175.640257);
        var wallisPoint = new GLatLng(-13.292105,-176.201845);
        var rotumaPoint = new GLatLng(-12.510064,177.095166);
        var fatakaPoint = new GLatLng(-11.915478,170.114784);
        var anutaPoint = new GLatLng(-11.615358,169.855132);
        var vanikoroPoint = new GLatLng(-11.611767,166.967675);
        var willisPoint = new GLatLng(-12.330538,160.133976);
        
        var wreckPoint = new GLatLng(-11.217412,144.063424);
        
        //markers
        var pitcairnMarker = new GMarker(pitcairnPoint, markerOptions);
        GEvent.addListener(pitcairnMarker, "click", function() {
            pitcairnMarker.openInfoWindowHtml("Pitcairn Island");
          });
        markers[0] = pitcairnMarker;
        
        var tahitiMarker = new GMarker(tahitiPoint, markerOptions);
        GEvent.addListener(tahitiMarker, "click", function() {
                tahitiMarker.openInfoWindowHtml("<b>Tahiti</b><br>HMS <i>Pandora</i> arrives at Tahiti Mar 23, 1791,<br>taking 124 days for the passage, compared to <i>Bounty</i>'s 308,<br>having rounded Cape Horn without difficulty.", 300);
        });
        markers[1] = tahitiMarker;
        
        var portsmouthMarker = new GMarker(portsmouthPoint, markerOptions);
        GEvent.addListener(portsmouthMarker, "click", function() {
                portsmouthMarker.openInfoWindowHtml("<b>Portsmouth, England</b><br>HMS <i>Pandora</i> departs Portsmouth Nov 11, 1790.");
        });
        markers[2] = portsmouthMarker;
        
        var wreckMarker = new GMarker(wreckPoint, markerOptions);
        GEvent.addListener(wreckMarker, "click", function() {
                wreckMarker.openInfoWindowHtml("<b>Pandora wrecked</b><br>On Aug 28, 1791, <i>Pandora</i> struck the Great Barrier Reef<br>and foundered. Thirty-one of her crew were lost, as well as<br>four of her prisoners; two of whom were still in handcuffs.");
        });
        markers[3] = wreckMarker;
        
        var palmerstonMarker = new GMarker(palmerstonPoint, markerOptions);
        GEvent.addListener(palmerstonMarker, "click", function() {
                palmerstonMarker.openInfoWindowHtml("<b>Palmerston's Island</b><br>The <i>Pandora</i> made this island May 21, 1791. On the 22nd<br>they found a yard marked &quot;Bounty Driver Yard.&quot;<br>On the 28th Edwards discovers the cutter is missing<br>and on the 29th the cutter and her crew of five are given up for lost.");
        });
        markers[4] = palmerstonMarker;
        
        var upoluMarker = new GMarker(upoluPoint, markerOptions);
        GEvent.addListener(upoluMarker, "click", function() {
                upoluMarker.openInfoWindowHtml("<b>Upolu (Oatooah)</b><br>The <i>Pandora</i> lost sight of her tender in the evening of Jun 22, 1791.<br>Edwards cruised about the island for two days looking for them<br>then decides to make for Annamooka, their rendezvous point.<br>Dubbed the <i>Matavy</i> Tender by Edwards, this was the boat built by Morrison and christened <i>Resolution</i>.<br>Master's Mate Oliver, her commander, and his crew of eight made their own epic voyage,<br>told <a href=\"../pandora/pandoraNRenouard.html\">here</a> by Midshipman Renouard.");
        });
        markers[5] = upoluMarker;
        
        var vanikoroMarker = new GMarker(vanikoroPoint, markerOptions);
        GEvent.addListener(vanikoroMarker, "click", function() {
                vanikoroMarker.openInfoWindowHtml("<b>Vanikoro (Pitt's Island)</b><br>The <i>Pandora</i> sighted this island on Aug 13, 1791.<br>Edwards did not land as he saw no evidence of inhabitants,<br>however he states that &quot;we saw smoke very plain&quot;. Had he<br>landed, he may have been the rescuer of the survivors of La P&eacute;rouse's<br>expedition, discussed <a href=\"http:\/\/en.wikipedia.org/wiki/Jean-Fran%C3%A7ois_de_Galaup%2C_comte_de_La_P%C3%A9rouse\">here</a>.");
        });
        markers[6] = vanikoroMarker;
        
        // level 2 labels
        var pitcairnDiv2 = '<div class="pbl"><div class="lbl"><b> Pitcairn </b></div></div>';
        var pitcairnLabel2 = new ELabel(pitcairnPoint, pitcairnDiv2, null, null, 65);
        level2Labels[0] = pitcairnLabel2;
        
        var tahitiDiv2 = '<div class="pbl"><div class="lbl"><b> Tahiti </b></div></div>';
        var tahitiLabel2 = new ELabel(tahitiPoint, tahitiDiv2, null, null, 65);
        level2Labels[1] = tahitiLabel2;
        
        var wreckDiv2 = '<div class="ptr"><div class="lbl"><b> Wreck </b></div></div>';
        var wreckLabel2 = new ELabel(wreckPoint, wreckDiv2, null, new GSize(-55,27), 65);
        level2Labels[2] = wreckLabel2;
        
        var portsmouthDiv2 = '<div class="pbl"><div class="lbl"><b> Portsmouth </b></div></div>';
        var portsmouthLabel2 = new ELabel(portsmouthPoint, portsmouthDiv2, null, null, 65);
        level2Labels[3] = portsmouthLabel2;
        
        var rioDiv2 = '<div class="pbl"><div class="lbl"><nobr><b> Rio de Janeiro</b></nobr></div></div>';
        var rioLabel2 = new ELabel(rioPoint, rioDiv2, null, null, 65);
        level2Labels[4] = rioLabel2;
        
        var tenerifeDiv2 = '<div class="pbl"><div class="lbl"><b> Tenerife </b></div></div>';
        var tenerifeLabel2 = new ELabel(tenerifePoint, tenerifeDiv2, null, null, 65);
        level2Labels[5] = tenerifeLabel2;
        
        var palmerstonDiv2 = '<div class="ptr"><div class="lbl"><nobr><b>3. Palmerston </b></nobr></div></div>';
        var palmerstonLabel2 = new ELabel(palmerstonPoint, palmerstonDiv2, null, new GSize(-102,27), 65);
        level2Labels[6] = palmerstonLabel2;
        
        var atafuDiv2 = '<div class="pbr"><div class="lbl"><nobr><b>4. Atafu</b></nobr><br><nobr>Duke of York</nobr></div></div>';
        var atafuLabel2 = new ELabel(atafuPoint, atafuDiv2, null, new GSize(-81,0), 65);
        level2Labels[7] = atafuLabel2;
        
        //level 4 labels
        var ducieDiv2 = '<div class="pbl"><div class="lbl"><b> Ducie </b></div></div>';
        var ducieLabel2 = new ELabel(duciePoint, ducieDiv2, null, null, 65);
        level4Labels[0] = ducieLabel2;
        
        var maruteaDiv2 = '<div class="pbl"><div class="lbl"><b> Marutea </b><br><nobr>Lord Hood&rsquo;s Is.</nobr></div></div>';
        var maruteaLabel2 = new ELabel(maruteaPoint, maruteaDiv2, null, null, 65);
        level4Labels[1] = maruteaLabel2;
        
        var tureiaDiv2 = '<div class="ptr"><div class="lbl"><b> Tureia </b><br><nobr>Carysfort Is.</nobr></div></div>';
        var tureiaLabel2 = new ELabel(tureiaPoint, tureiaDiv2, null, new GSize(-90,45), 65);
        level4Labels[2] = tureiaLabel2;
        
        var aitutakiDiv2 = '<div class="ptl"><div class="lbl"><b>2. Aitutaki </b><br>Whytootackee</div></div>';
        var aitutakiLabel2 = new ELabel(aitutakiPoint, aitutakiDiv2, null, new GSize(0,45), 65);
        level4Labels[3] = aitutakiLabel2;
        
        var wallisDiv2 = '<div class="ptr"><div class="lbl"><b> Uvea </b><br><nobr>Wallis Is.</nobr></div></div>';
        var wallisLabel2 = new ELabel(wallisPoint, wallisDiv2, null, new GSize(-65,45), 65);
        level4Labels[4] = wallisLabel2;
        
        var rotumaDiv2 = '<div class="pbl"><div class="lbl"><b> Rotuma </b><br><nobr>Grenville Island</nobr></div></div>';
        var rotumaLabel2 = new ELabel(rotumaPoint, rotumaDiv2, null, null, 65);
        level4Labels[5] = rotumaLabel2;
        
        var fatakaDiv2 = '<div class="ptr"><div class="lbl"><nobr><b>Fatutaka, Fataka</b><br><nobr>Mitre Island</nobr></div></div>';
        var fatakaLabel2 = new ELabel(fatakaPoint, fatakaDiv2, null, new GSize(-102,47), 65);
        level4Labels[6] = fatakaLabel2;
        
        var anutaDiv2 = '<div class="pbl"><div class="lbl"><b> Anuta </b><br><nobr>Cherry Island</nobr></div></div>';
        var anutaLabel2 = new ELabel(anutaPoint, anutaDiv2, null, new GSize(-2,0), 65);
        level4Labels[7] = anutaLabel2;
        
        var vanikoroDiv2 = '<div class="pbr"><div class="lbl"><b> Vanikoro </b><br><nobr>Pitt&rsquo;s Island</nobr></div></div>';
        var vanikoroLabel2 = new ELabel(vanikoroPoint, vanikoroDiv2, null, new GSize(-83,0), 65);
        level4Labels[8] = vanikoroLabel2;
        
        var willisDiv2 = '<div class="pbr"><div class="lbl"><nobr><b>Indispensable Reef</b></nobr><br><nobr>Wells&rsquo;s Shoal</nobr></div></div>';
        var willisLabel2 = new ELabel(willisPoint, willisDiv2, null, new GSize(-115,0), 65);
        level4Labels[9] = willisLabel2;
        
        var boraDiv2 = '<div class="pbr"><div class="lbl"><nobr><b>1. Bora Bora </b></nobr></div></div>';
        var boraLabel2 = new ELabel(boraPoint, boraDiv2, null, new GSize(-95,0), 65);
        manager.addMarker(boraLabel2, 4, 7)
        
        //level 5 labels
        var nukunonoDiv5 = '<div class="pbl"><div class="lbl"><nobr><b>5. Nukunono</b></nobr><br><nobr>Duke of Clarence</nobr></div></div>';
        var nukunonoLabel5 = new ELabel(nukunonoPoint, nukunonoDiv5, null, null, 65);
        level5Labels[0] = nukunonoLabel5;
        
        var annamookaDiv5 = '<div class="pbl"><div class="lbl"><nobr><b>8. Annamooka 19.</b></nobr></div></div>';
        var annamookaLabel5 = new ELabel(annamookaPoint, annamookaDiv5, null, null, 65);
        level5Labels[1] = annamookaLabel5;
        
        var upoluDiv5 = '<div class="pbl"><div class="lbl"><nobr><b>7. Upolu 13.</b></nobr><br>Oattooah</div></div>';
        var upoluLabel5 = new ELabel(upoluPoint, upoluDiv5, null, null, 65);
        level5Labels[2] = upoluLabel5;
        
        var niuafoDiv5 = '<div class="pbl"><div class="lbl"><nobr><b>20. Niuafo&rsquo;ou</b></nobr><br><nobr>Proby&rsquo;s Island</nobr></div></div>';
        var niuafoLabel5 = new ELabel(niuafoPoint, niuafoDiv5, null, null, 65);
        level5Labels[3] = niuafoLabel5;
        
        
        //level 6 labels
        
        var savaiiDiv6 = '<div class="pbr"><div class="lbl"><nobr><b>6. Savai&rsquo;i</b></nobr><br><nobr>Chatham Island</nobr></div></div>';
        var savaiiLabel6 = new ELabel(savaiiPoint, savaiiDiv6, null, new GSize(-110,0), 65);
        level6Labels[0] = savaiiLabel6;
        
        var tofoaDiv6 = '<div class="ptr"><div class="lbl"><nobr><b>9. Tofoa</b></nobr></div></div>';
        var tofoaLabel6 = new ELabel(tofoaPoint, tofoaDiv6, null, new GSize(-70,27), 65);
        level6Labels[1] = tofoaLabel6;
        
        var kaoDiv6 = '<div class="pbl"><div class="lbl"><nobr><b>10. Kao</b></nobr></div></div>';
        var kaoLabel6 = new ELabel(kaoPoint, kaoDiv6, null, null, 65);
        level6Labels[2] = kaoLabel6;
        
        var manuaDiv6 = '<div class="pbl"><div class="lbl"><nobr><b>11. Manua</b></nobr><br>Toomahnuah</div></div>';
        var manuaLabel6 = new ELabel(manuaPoint, manuaDiv6, null, null, 65);
        level6Labels[3] = manuaLabel6;
        
        var tutuilaDiv6 = '<div class="ptl"><div class="lbl"><nobr><b>12. Tutuila</b></nobr><br>Otootooillah</div></div>';
        var tutuilaLabel6 = new ELabel(tutuilaPoint, tutuilaDiv6, null, new GSize(0,50), 65);
        level6Labels[4] = tutuilaLabel6;
        
        var vavauDiv6 = '<div class="pbl"><div class="lbl"><nobr><b>14. Vavau</b></nobr></div></div>';
        var vavauLabel6 = new ELabel(vavauPoint, vavauDiv6, null, null, 65);
        level6Labels[5] = vavauLabel6;
        
        var tokuDiv6 = '<div class="ptr"><div class="lbl"><nobr><b>15. Toku</b></nobr></div></div>';
        var tokuLabel6 = new ELabel(tokuPoint, tokuDiv6, null, new GSize(-70,27), 65);
        level6Labels[6] = tokuLabel6;
        
        var fonualeiDiv6 = '<div class="pbl"><div class="lbl"><nobr><b>16. Fonualei</b></nobr><br><nobr>Gardener&rsquo;s Island</nobr></div></div>';
        var fonualeiLabel6 = new ELabel(fonualeiPoint, fonualeiDiv6, null, null, 65);
        level6Labels[7] = fonualeiLabel6;
        
        var falseDiv6 = '<div class="pbr"><div class="lbl"><nobr><b>17. False sighting</b></nobr></div></div>';
        var falseLabel6 = new ELabel(falsePoint, falseDiv6, null, new GSize(-127,0), 65);
        level6Labels[8] = falseLabel6;
        
        var tongatapuDiv6 = '<div class="ptl"><div class="lbl"><nobr><b>18. Tongatapu</b></nobr><br>Tongataboo</div></div>';
        var tongatapuLabel6 = new ELabel(tongatapuPoint, tongatapuDiv6, null, new GSize(-5,50), 65);
        level6Labels[9] = tongatapuLabel6;
        
        //level 8 labels
        
        var huahineDiv2 = '<div class="pbl"><div class="lbl"><b>Huahine</b><br>Huahaine</div></div>';
        var huahineLabel2 = new ELabel(huahinePoint, huahineDiv2, null, null, 65);
        level8Labels[0] = huahineLabel2;
        
        var raiateaDiv2 = '<div class="pbl"><div class="lbl"><b> Raiatea </b><br>Ulietea</div></div>';
        var raiateaLabel2 = new ELabel(raiateaPoint, raiateaDiv2, null, null, 65);
        level8Labels[1] = raiateaLabel2;
        
        var tahaaDiv2 = '<div class="ptr"><div class="lbl"><b>Tahaa</b><br>Otaka</div></div>';
        var tahaaLabel2 = new ELabel(tahaaPoint, tahaaDiv2, null, new GSize(-53,50), 65);
        level8Labels[2] = tahaaLabel2;
        
        var tupaiDiv2 = '<div class="pbl"><div class="lbl"><b> Tupai </b><br>Tubai</div></div>';
        var tupaiLabel2 = new ELabel(tupaiPoint, tupaiDiv2, null, null, 65);
        level8Labels[3] = tupaiLabel2;
        
        var mauruaDiv2 = '<div class="pbl"><div class="lbl"><b> Maurua </b></div></div>';
        var mauruaLabel2 = new ELabel(mauruaPoint, mauruaDiv2, null, null, 65);
        level8Labels[4] = mauruaLabel2;
        
        var boraDiv8 = '<div class="pbl"><div class="lbl"><nobr><b>1. Bora Bora </b></nobr><br>Bolabola</div></div>';
        var boraLabel8 = new ELabel(boraPoint, boraDiv8, null, null, 65);
        level8Labels[5] = boraLabel8;
        
        manager.addMarkers(markers, 2);
        manager.addMarkers(level2Labels, 2);
        manager.addMarkers(level4Labels, 4);
        manager.addMarkers(level5Labels, 5);
        manager.addMarkers(level6Labels, 6);
        manager.addMarkers(level8Labels, 8);
        
        var polyline = new GPolyline([
                new GLatLng(50.774075,-1.081304),
                new GLatLng(50.664959,-0.990907),
                new GLatLng(50.497531,-1.154052),
                new GLatLng(50.129125,-2.683475),
                new GLatLng(49.040994,-4.583019),
                new GLatLng(48.584973,-5.472490),
                new GLatLng(39.670528,-14.784128),
                new GLatLng(28.526747,-15.852928),
                new GLatLng(0.749438,-24.039187),
                new GLatLng(-22.516814,-40.261418),
                new GLatLng(-23.185861,-42.996262),
                new GLatLng(-31.304785,-49.358475),
                new GLatLng(-37.900380,-55.609053),
                new GLatLng(-45.719775,-63.742179),
                new GLatLng(-51.104213,-67.362347),
                new GLatLng(-54.569618,-64.825157),
                new GLatLng(-56.151885,-66.554641),
                new GLatLng(-56.352285,-72.354956),
                new GLatLng(-24.709790,-124.801574),
                new GLatLng(-21.609639,-135.566869),
                new GLatLng(-20.760956,-138.523162),
                new GLatLng(-17.504034,-149.180202),
                new GLatLng(-17.435598,-149.501341),
                new GLatLng(-17.471487,-149.525553),
                new GLatLng(-17.495592,-149.505750),
                new GLatLng(-16.845622,-150.995291),
                new GLatLng(-16.789177,-151.056130),
                new GLatLng(-16.704170,-151.383595),
                new GLatLng(-16.545953,-151.385569),
                new GLatLng(-16.565919,-151.710794),
                new GLatLng(-16.498858,-152.250900),
                new GLatLng(-18.856193,-159.726004),
                new GLatLng(-18.748849,-159.776987),
                new GLatLng(-18.018631,-163.093611),
                new GLatLng(-18.107528,-163.114827),
                new GLatLng(-18.127469,-163.193744),
                new GLatLng(-8.588374,-172.523050),
                new GLatLng(-8.879133,-172.110089),
                new GLatLng(-9.133727,-171.808559),
                new GLatLng(-13.455688,-172.703405),
                new GLatLng(-13.428034,-172.194375),
                new GLatLng(-13.926109,-171.267693),
                new GLatLng(-20.119595,-174.710923),
                new GLatLng(-20.250425,-174.732765),
                new GLatLng(-20.332265,-174.781335),
                new GLatLng(-20.300357,-174.842735),
                new GLatLng(-20.239717,-174.833746),
                new GLatLng(-20.245057,-174.803855),
                new GLatLng(-19.771907,-175.027013),
                new GLatLng(-19.725898,-175.019706),
                new GLatLng(-19.678375,-175.046461),
                new GLatLng(-19.614672,-175.059512),
                new GLatLng(-18.724150,-173.907388),
                new GLatLng(-14.230782,-169.597070),
                new GLatLng(-14.226171,-170.671552),
                new GLatLng(-14.278812,-170.770762),
                new GLatLng(-14.091617,-171.469506),
                new GLatLng(-14.060844,-171.805480),
                new GLatLng(-13.958304,-172.057694),
                new GLatLng(-18.548095,-173.985491),
                new GLatLng(-18.597647,-174.041742),
                new GLatLng(-18.629477,-174.090498),
                new GLatLng(-18.662808,-174.097756),
                new GLatLng(-18.155655,-174.170908),
                new GLatLng(-18.015533,-174.294639),
                new GLatLng(-18.002145,-174.324211),
                new GLatLng(-18.018396,-174.339810),
                new GLatLng(-17.626491,-174.936062),
                new GLatLng(-18.805052,-175.134988),
                new GLatLng(-20.226311,-175.408689),
                new GLatLng(-20.967330,-175.555108),
                new GLatLng(-21.449838,-175.426089),
                new GLatLng(-21.302454,-175.087483),
                new GLatLng(-21.075258,-174.886907),
                new GLatLng(-20.360041,-174.892709),
                new GLatLng(-20.207339,-174.901649),
                new GLatLng(-20.236348,-174.806642),
                new GLatLng(-16.340013,-174.904453),
                new GLatLng(-15.628398,-175.590673),
                new GLatLng(-15.568418,-175.623692),
                new GLatLng(-15.563562,-175.663441),
                new GLatLng(-13.274903,-176.278127),
            new GLatLng(-12.866120,-180.0)
            ], "#00ff00", 2, 1);
        var polyline2 = new GPolyline([
            new GLatLng(-12.866120,180.0),
                new GLatLng(-12.557741,177.149878),
                new GLatLng(-11.947982,170.196629),
                new GLatLng(-11.842316,169.928814),
                new GLatLng(-11.633756,169.676932),
                new GLatLng(-11.816709,166.988395),
                new GLatLng(-12.815523,162.831575),
                new GLatLng(-12.376036,160.381703),
                new GLatLng(-12.194393,159.999313),
                new GLatLng(-11.921272,153.731119),
                new GLatLng(-11.217412,144.063424),
            ], "#00ff00", 2, 1); 
        map.addOverlay(polyline);
        map.addOverlay(polyline2);
        
        manager.refresh();
      }
    }

    function reset() {
        this.map.removeControl(this.smallControl);
        this.map.removeControl(this.zoom);
        this.map.addControl(this.smallControl);
        this.map.addControl(this.zoom);
        this.map.setCenter(new GLatLng(0.4419, -115.4061), 2);
    }
    function viewOne() {
        this.map.removeControl(this.smallControl);
        this.map.removeControl(this.zoom);
        this.map.setCenter(new GLatLng(-22.350076,-136.40625), 4);
    }
    function viewTwo() {
        this.map.removeControl(this.smallControl);
        this.map.removeControl(this.zoom);
        this.map.setCenter(new GLatLng(-16.878147,-151.160887), 8);
    }
    function viewThree() {
        this.map.removeControl(this.smallControl);
        this.map.removeControl(this.zoom);
        this.map.setCenter(new GLatLng(-15.368950,-159.257813), 5);
    }
    function viewFour() {
        this.map.removeControl(this.smallControl);
        this.map.removeControl(this.zoom);
        this.map.setCenter(new GLatLng(-12.232655,-171.782227), 6);
    }
    function viewFive() {
        this.map.removeControl(this.smallControl);
        this.map.removeControl(this.zoom);
        this.map.setCenter(new GLatLng(-17.539297,-171.782266), 6);
    }
    function viewSix() {
        this.map.removeControl(this.smallControl);
        this.map.removeControl(this.zoom);
        this.map.setCenter(new GLatLng(-14.774883,170.332031), 5);
    }
    function viewSeven() {
        this.map.removeControl(this.smallControl);
        this.map.removeControl(this.zoom);
        this.map.setCenter(new GLatLng(-11.523088,156.049825), 5);
    }
