// GoogleMap JavaScript Code
// James Dean's Last Drive
// <![CDATA[
//  Start MAP creation
    var timeoutID = 0;
    var map;
    var zoom = 7;                           // 1 WORLD - 15 STREET
    var center_lat = 34.77448;
    var center_lon = -118.88337;
    var iWidthOV = 150;                      // Changes the Width and Height of the OverView map in the LR corner,
    var iHeightOV = 120;                     // (cont'd) should be smaller and proportional
    var iRightLogo = iWidthOV + 20;          // This changes the absolute right position of the Ridgerider Logo, based on iWidth
    var iRightGSC = iRightLogo + iWidthOV;   //   " " of the ScaleControl, based on iRightLogo, and the width of the logo (150)
    var ICO                                  // Just a holder for a variable when no color is entered for a Header

    // --------------------------------------------------------------

    map = new GMap2(document.getElementById("map"));
    map.enableDoubleClickZoom();
    map.enableScrollWheelZoom();
    map.addControl(new GLargeMapControl());
    map.addControl(new GMapTypeControl());
    map.setCenter(new GLatLng(center_lat, center_lon), zoom, G_HYBRID_MAP);
    map.addControl(new GOverviewMapControl(new GSize(iWidthOV,iHeightOV)));
    map.addControl(new GScaleControl(), new GControlPosition(G_ANCHOR_BOTTOM_RIGHT, new GSize(iRightGSC, 20)));

    ICOred  =  new GIcon();
    ICOred.image  =  "http://labs.google.com/ridefinder/images/mm_20_red.png";
    ICOred.shadow  =  "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
    ICOred.iconSize  =  new GSize(12, 20);
    ICOred.shadowSize  =  new GSize(22, 20);
    ICOred.iconAnchor  =  new GPoint(6, 20);
    ICOred.infoWindowAnchor  =  new GPoint(5, 1);

    ICOgreen  =  new GIcon();
    ICOgreen.image  =  "http://labs.google.com/ridefinder/images/mm_20_green.png";
    ICOgreen.shadow  =  "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
    ICOgreen.iconSize  =  new GSize(12, 20);
    ICOgreen.shadowSize  =  new GSize(22, 20);
    ICOgreen.iconAnchor  =  new GPoint(6, 20);
    ICOgreen.infoWindowAnchor  =  new GPoint(5, 1);

    ICOblue  =  new GIcon();
    ICOblue.image  =  "http://labs.google.com/ridefinder/images/mm_20_blue.png";
    ICOblue.shadow  =  "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
    ICOblue.iconSize  =  new GSize(12, 20);
    ICOblue.shadowSize  =  new GSize(22, 20);
    ICOblue.iconAnchor  =  new GPoint(6, 20);
    ICOblue.infoWindowAnchor  =  new GPoint(5, 1);

    ICOwhite  =  new GIcon();
    ICOwhite.image  =  "http://labs.google.com/ridefinder/images/mm_20_white.png";
    ICOwhite.shadow  =  "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
    ICOwhite.iconSize  =  new GSize(12, 20);
    ICOwhite.shadowSize  =  new GSize(22, 20);
    ICOwhite.iconAnchor  =  new GPoint(6, 20);
    ICOwhite.infoWindowAnchor  =  new GPoint(5, 1);

//Start of Marker Delimination

// this variable will collect the html which will eventually be placed in the side_bar
    var vzMapList = "";
// arrays to hold copies of the markers and html used by the side_bar
// because the function closure trick doesnt work there
    var gzMarkers = [];
    var i = 0;
// A function to create the marker and set up the event window
    function createMarker(szPtTitle, iType, bTab, sgLat, sgLong, szPtOL, szPtInfoHTML, szColor, szIcon) {
        var gzMarker = new GMarker(new GLatLng(sgLat, sgLong), szIcon);
        GEvent.addListener(gzMarker, "click", function() {
// If no image is available, then create balloon without TAB structure
    if (bTab)
        {gzMarker.openInfoWindowTabsHtml(szPtInfoHTML);}
    else
        {gzMarker.openInfoWindowHtml(szPtInfoHTML);}
    });
// save the info we need to use later for the side_bar
    gzMarkers[i] = gzMarker;
//  0: nothing, 1: header, 2: link, 3: ICO
    if (iType == 1)             // 1: a Header for RideList
    {
        vzMapList += '<p class="rl_hdr">&nbsp;' + szPtTitle + '</p>';
        i++;
    }
    else if (iType == 2)        // 2: an actual list item
    {
        var szMouseOver = "onMouseOver=\"return overlib('" + szPtOL + "');\" onMouseOut=\"return nd();\" "
        vzMapList += "<a class='rl' href='javascript:fxMyClick(" + i + ");' " + szMouseOver + "/>&nbsp;&nbsp;&nbsp;&nbsp;&bull;&nbsp;&nbsp;" + szPtTitle + "</a>";
        i++;
    }
    else if (iType == 3)        //  Create the Legend Info
    {
        var szMouseOver = "onMouseOver=\"return overlib('" + szPtOL + "');\" onMouseOut=\"return nd();\" "
        var szImg = '&nbsp;&nbsp;&nbsp;&nbsp;<img src="http://labs.google.com/ridefinder/images/mm_20_' + szColor + '.png"' + szMouseOver + 'border="0">&nbsp;&ndash;&nbsp;'
        szImg = '<a class="rl" href="javascript:fxMyClick(' + i + ')"' + szMouseOver + '>' + szImg + szPtTitle + '</a>'
        vzMapList += szImg
        i++;
    }
    else                        // else 0
    {
// do nothing
    }
    return gzMarker;
    }
// This function picks up the click and opens the corresponding info window
    function fxMyClick(i) {
        GEvent.trigger(gzMarkers[i], "click");
    }
//  ---------------------- Add Locations ---------------------- //

    // ------------------------------  Marker Number 1:    The Last Drive ------------------------------  //
    var gzMarker = createMarker('The Last Drive', 1, '', '', '', '', '', '', '');
    map.addOverlay(gzMarker);

    // ------------------------------  Marker Number 2:    Hollywood ------------------------------  //
    var szMarkerTitle = "Hollywood";
    var szMarkerInfo = "Competition Motors";
    var szMarkerHTML = "<p class='gm_hdr'>Competition Motors</p><p class='gm_txt'><div><span class='addHdr'>Phone:</span><span class='addInfo'>1219 Vine Street</span></div><br /><div><span class='addHdr'>Address:</span><span class='addInfo'>Late Morning</span></div><br /><div><p class='gm_txt_just'>The former auto shop Competition Motors, now called Vine Auto Body Shop, is the site of Dean and mechanic Rolf Wutterich set out toward Salinas.</p></div><p class=\"gm_txt_just\">&nbsp;<br /><a class=\"gm\" href=\"javascript:PopupPic(\'/gmaps/images/fr_compmotors.jpg\')\">Image</a></p>";
    var vzTextTab = new GInfoWindowTab(szMarkerTitle,szMarkerHTML);
    var szImageInfo = '<p class="gm_hdr">Competition Motors</p><a href="javascript:PopupPic(\'/gmaps/images/fr_compmotors.jpg\')"><img src="/gmaps/images/thumb/fr_compmotors.jpg" alt="Competition Motors - Image"></a>';
    var vzImgTab = new GInfoWindowTab("Photo", szImageInfo);
    var vzTabInfo = [vzTextTab,vzImgTab];
    var gzMarker = createMarker(szMarkerTitle, 2, true, 34.09309513, -118.32680941, 'Competition Motors', vzTabInfo, 'green', ICOgreen);
    map.addOverlay(gzMarker);

    // ------------------------------  Marker Number 3:    Quick Stop ------------------------------  //
    var szMarkerTitle = "Quick Stop";
    var szMarkerInfo = "Castaic Junction";
    var szMarkerHTML = "<p class='gm_hdr'>Castaic Junction</p><p class='gm_txt'><div><span class='addHdr'>Phone:</span><span class='addInfo'>Hwy 99 and 126</span></div><br /><div><span class='addHdr'>Address:</span><span class='addInfo'>2:00PM</span></div><br /><div><p class='gm_txt_just'>At approximately 2:00 PM Dean and Wutterich stopped at Castaic Junction,  Dean had a Coca-Cola and a sandwich at Tips Diner.</p></div><p class=\"gm_txt_just\">&nbsp;<br /><a class=\"gm\" href=\"javascript:PopupPic(\'/gmaps/images/fr_tips.jpg\')\">Image</a></p>";
    var vzTextTab = new GInfoWindowTab(szMarkerTitle,szMarkerHTML);
    var szImageInfo = '<p class="gm_hdr">Castaic Junction</p><a href="javascript:PopupPic(\'/gmaps/images/fr_tips.jpg\')"><img src="/gmaps/images/thumb/fr_tips.jpg" alt="Castaic Junction - Image"></a>';
    var vzImgTab = new GInfoWindowTab("Photo", szImageInfo);
    var vzTabInfo = [vzTextTab,vzImgTab];
    var gzMarker = createMarker(szMarkerTitle, 2, true, 34.441955, -118.607712, 'Castaic Junction', vzTabInfo, 'white', ICOwhite);
    map.addOverlay(gzMarker);

    // ------------------------------  Marker Number 4:    Mettler Station ------------------------------  //
    var szMarkerTitle = "Mettler Station";
    var szMarkerInfo = "Speeding Ticket";
    var szMarkerHTML = "<p class='gm_hdr'>Speeding Ticket</p><p class='gm_txt'><div><span class='addHdr'>Phone:</span><span class='addInfo'>Outside of Bakersfield</span></div><br /><div><span class='addHdr'>Address:</span><span class='addInfo'>3:30PM</span></div><br /><div><p class='gm_txt_just'>While en route on Hwy 99, Dean was issued a traffic warrant for excessive speed.  The ticket reports his speed as 65MPH and the posted speed</p></div><p class=\"gm_txt_just\">&nbsp;<br /><a class=\"gm\" href=\"javascript:PopupPic(\'/gmaps/images/fr_ticket.jpg\')\">Image</a></p>";
    var vzTextTab = new GInfoWindowTab(szMarkerTitle,szMarkerHTML);
    var szImageInfo = '<p class="gm_hdr">Speeding Ticket</p><a href="javascript:PopupPic(\'/gmaps/images/fr_ticket.jpg\')"><img src="/gmaps/images/thumb/fr_ticket.jpg" alt="Speeding Ticket - Image"></a>';
    var vzImgTab = new GInfoWindowTab("Photo", szImageInfo);
    var vzTabInfo = [vzTextTab,vzImgTab];
    var gzMarker = createMarker(szMarkerTitle, 2, true, 35.061, -118.969, 'Speeding Ticket', vzTabInfo, 'white', ICOwhite);
    map.addOverlay(gzMarker);

    // ------------------------------  Marker Number 5:    Apples ------------------------------  //
    var szMarkerTitle = "Apples";
    var szMarkerInfo = "Blackwells Corner";
    var szMarkerHTML = "<p class='gm_hdr'>Blackwells Corner</p><p class='gm_txt'><div><span class='addHdr'>Phone:</span><span class='addInfo'>Blackwell\'s Corner</span></div><br /><div><span class='addHdr'>Address:</span><span class='addInfo'>5:00PM</span></div><br /><div><p class='gm_txt_just'>The Worlds Largest Parking Lot!  Around 5:00PM, the men stopped here where Dean purchased some apples and stretched his legs before the next leg of their trip which would take them to Paso Robles.</p></div><p class=\"gm_txt_just\">&nbsp;<br /><a class=\"gm\" href=\"javascript:PopupPic(\'/gmaps/images/fr_blackwell.jpg\')\">Image</a></p>";
    var vzTextTab = new GInfoWindowTab(szMarkerTitle,szMarkerHTML);
    var szImageInfo = '<p class="gm_hdr">Blackwells Corner</p><a href="javascript:PopupPic(\'/gmaps/images/fr_blackwell.jpg\')"><img src="/gmaps/images/thumb/fr_blackwell.jpg" alt="Blackwells Corner - Image"></a>';
    var vzImgTab = new GInfoWindowTab("Photo", szImageInfo);
    var vzTabInfo = [vzTextTab,vzImgTab];
    var gzMarker = createMarker(szMarkerTitle, 2, true, 35.614901, -119.867557, 'Blackwells Corner', vzTabInfo, 'white', ICOwhite);
    map.addOverlay(gzMarker);

    // ------------------------------  Marker Number 6:    Accident ------------------------------  //
    var szMarkerTitle = "Accident";
    var szMarkerInfo = "James Dean Memorial Intersection";
    var szMarkerHTML = "<p class='gm_hdr'>James Dean Memorial Intersection</p><p class='gm_txt'><div><span class='addHdr'>Phone:</span><span class='addInfo'>Intersection 466 and 41</span></div><br /><div><span class='addHdr'>Address:</span><span class='addInfo'>5:45PM</span></div><br /><div><p class='gm_txt_just'>Approximate site of the accident which occurred around 5:45PM at the intersection of Hwy 46 and Hwy 41.  Major changes to the highway and the intersection were doe in 1973.</p></div>";
    var vzTextTab = new GInfoWindowTab(szMarkerTitle,szMarkerHTML);
    var szImageInfo = '';
    var vzImgTab = new GInfoWindowTab("Photo", szImageInfo);
    var vzTabInfo = "<p class='gm_hdr'>James Dean Memorial Intersection</p><p class='gm_txt'><div><span class='addHdr'>Phone:</span><span class='addInfo'>Intersection 466 and 41</span></div><br /><div><span class='addHdr'>Address:</span><span class='addInfo'>5:45PM</span></div><br /><div><p class='gm_txt_just'>Approximate site of the accident which occurred around 5:45PM at the intersection of Hwy 46 and Hwy 41.  Major changes to the highway and the intersection were doe in 1973.</p></div>";
    var gzMarker = createMarker(szMarkerTitle, 2, false, 35.734639, -120.284661, 'James Dean Memorial Intersection', vzTabInfo, 'white', ICOwhite);
    map.addOverlay(gzMarker);

    // ------------------------------  Marker Number 7:    Cholame ------------------------------  //
    var szMarkerTitle = "Cholame";
    var szMarkerInfo = "Memorial";
    var szMarkerHTML = "<p class='gm_hdr'>Memorial</p><p class='gm_txt'><div><span class='addHdr'>Phone:</span><span class='addInfo'>Cholame Memorial</span></div><br /><div><p class='gm_txt_just'>A memorial to James Dean stand here.</p></div><p class=\"gm_txt_just\">&nbsp;<br /><a class=\"gm\" href=\"javascript:PopupPic(\'/gmaps/images/fr_cholame.jpg\')\">Image</a></p>";
    var vzTextTab = new GInfoWindowTab(szMarkerTitle,szMarkerHTML);
    var szImageInfo = '<p class="gm_hdr">Memorial</p><a href="javascript:PopupPic(\'/gmaps/images/fr_cholame.jpg\')"><img src="/gmaps/images/thumb/fr_cholame.jpg" alt="Memorial - Image"></a>';
    var vzImgTab = new GInfoWindowTab("Photo", szImageInfo);
    var vzTabInfo = [vzTextTab,vzImgTab];
    var gzMarker = createMarker(szMarkerTitle, 2, true, 35.723495, -120.297385, 'Memorial', vzTabInfo, 'blue', ICOblue);
    map.addOverlay(gzMarker);

    // ------------------------------  Marker Number 8:    Home ------------------------------  //
    var szMarkerTitle = "Home";
    var szMarkerInfo = "License listed address";
    var szMarkerHTML = "<p class='gm_hdr'>License listed address</p><p class='gm_txt'><div><span class='addHdr'>Phone:</span><span class='addInfo'>14611 Sutton Street</span></div><br /><div><p class='gm_txt_just'>The address listed on Dean\'s speeding ticket as his home.</p></div>";
    var vzTextTab = new GInfoWindowTab(szMarkerTitle,szMarkerHTML);
    var szImageInfo = '';
    var vzImgTab = new GInfoWindowTab("Photo", szImageInfo);
    var vzTabInfo = "<p class='gm_hdr'>License listed address</p><p class='gm_txt'><div><span class='addHdr'>Phone:</span><span class='addInfo'>14611 Sutton Street</span></div><br /><div><p class='gm_txt_just'>The address listed on Dean\'s speeding ticket as his home.</p></div>";
    var gzMarker = createMarker(szMarkerTitle, 2, false, 34.14795, -118.452917, 'License listed address', vzTabInfo, 'blue', ICOblue);
    map.addOverlay(gzMarker);

    // ------------------------------  Marker Number 9:    Tulare ------------------------------  //
    var szMarkerTitle = "Tulare";
    var szMarkerInfo = "Heading Home";
    var szMarkerHTML = "<p class='gm_hdr'>Heading Home</p><p class='gm_txt'><div><span class='addHdr'>Phone:</span><span class='addInfo'>Tulare</span></div><br /><div><p class='gm_txt_just'>The home of Donald Turnipseed\'s parents and where he was heading in his black and white 1950 Ford Sedan when he tragically turned onto Hwy 41.</p></div>";
    var vzTextTab = new GInfoWindowTab(szMarkerTitle,szMarkerHTML);
    var szImageInfo = '';
    var vzImgTab = new GInfoWindowTab("Photo", szImageInfo);
    var vzTabInfo = "<p class='gm_hdr'>Heading Home</p><p class='gm_txt'><div><span class='addHdr'>Phone:</span><span class='addInfo'>Tulare</span></div><br /><div><p class='gm_txt_just'>The home of Donald Turnipseed\'s parents and where he was heading in his black and white 1950 Ford Sedan when he tragically turned onto Hwy 41.</p></div>";
    var gzMarker = createMarker(szMarkerTitle, 2, false, 36.196079, -119.345169, 'Heading Home', vzTabInfo, 'blue', ICOblue);
    map.addOverlay(gzMarker);

    // ------------------------------  Marker Number 10:    Salinas ------------------------------  //
    var szMarkerTitle = "Salinas";
    var szMarkerInfo = "Raceway";
    var szMarkerHTML = "<p class='gm_hdr'>Raceway</p><p class='gm_txt'><div><span class='addHdr'>Phone:</span><span class='addInfo'>Raceways at Salinas</span></div><br /><div><p class='gm_txt_just'>The day\'s final destination for races the next day, October 1, 1955.</p></div>";
    var vzTextTab = new GInfoWindowTab(szMarkerTitle,szMarkerHTML);
    var szImageInfo = '';
    var vzImgTab = new GInfoWindowTab("Photo", szImageInfo);
    var vzTabInfo = "<p class='gm_hdr'>Raceway</p><p class='gm_txt'><div><span class='addHdr'>Phone:</span><span class='addInfo'>Raceways at Salinas</span></div><br /><div><p class='gm_txt_just'>The day\'s final destination for races the next day, October 1, 1955.</p></div>";
    var gzMarker = createMarker(szMarkerTitle, 2, false, 36.679709, -121.656075, 'Raceway', vzTabInfo, 'blue', ICOblue);
    map.addOverlay(gzMarker);

    // ------------------------------  Marker Number 11:    Porsche ------------------------------  //
    var szMarkerTitle = "Porsche";
    var szMarkerInfo = "Final site";
    var szMarkerHTML = "<p class='gm_hdr'>Final site</p><p class='gm_txt'><div><span class='addHdr'>Phone:</span><span class='addInfo'>Intersection 466 and 41</span></div><br /><div><p class='gm_txt_just'>Dean\'s Porche came to rest on the northwest corner of the intersection, against some fencing, severely damaged from the collision.</p></div>";
    var vzTextTab = new GInfoWindowTab(szMarkerTitle,szMarkerHTML);
    var szImageInfo = '<p class="gm_hdr">Final site</p><img src="/gmaps/images/thumb/fr_porshe.jpg" alt="Final site"></a>';
    var vzImgTab = new GInfoWindowTab("Photo", szImageInfo);
    var vzTabInfo = [vzTextTab,vzImgTab];
    var gzMarker = createMarker(szMarkerTitle, 2, true, 35.734469, -120.284892, 'Final site', vzTabInfo, 'red', ICOred);
    map.addOverlay(gzMarker);

    // ------------------------------  Marker Number 12:    Sedan ------------------------------  //
    var szMarkerTitle = "Sedan";
    var szMarkerInfo = "Final site";
    var szMarkerHTML = "<p class='gm_hdr'>Final site</p><p class='gm_txt'><div><span class='addHdr'>Phone:</span><span class='addInfo'>Intersection 466 and 41</span></div><br /><div><p class='gm_txt_just'>Turnipseed Ford Tudor stopped in the intersection, having not traveled more then a dozen or so feet after the collision.</p></div><p class=\"gm_txt_just\">&nbsp;<br /><a class=\"gm\" href=\"javascript:PopupPic(\'/gmaps/images/fr_tudor.jpg\')\">Image</a></p>";
    var vzTextTab = new GInfoWindowTab(szMarkerTitle,szMarkerHTML);
    var szImageInfo = '<p class="gm_hdr">Final site</p><a href="javascript:PopupPic(\'/gmaps/images/fr_tudor.jpg\')"><img src="/gmaps/images/thumb/fr_tudor.jpg" alt="Final site - Image"></a>';
    var vzImgTab = new GInfoWindowTab("Photo", szImageInfo);
    var vzTabInfo = [vzTextTab,vzImgTab];
    var gzMarker = createMarker(szMarkerTitle, 2, true, 35.734438, -120.284747, 'Final site', vzTabInfo, 'red', ICOred);
    map.addOverlay(gzMarker);

    // ------------------------------  Marker Number 13:    Point on Route ------------------------------  //
    var szMarkerTitle = "Point on Route";
    var szMarkerInfo = "This white marker, denotes a point along the route.";
    var szMarkerHTML = "<p class='gm_hdr'>Point on Route</p><p class='gm_txt'>This white marker, denotes a point along the route.</p>";
    var vzTextTab = new GInfoWindowTab(szMarkerTitle,szMarkerHTML);
    var szImageInfo = '';
    var vzImgTab = new GInfoWindowTab("Photo", szImageInfo);
    var vzTabInfo = "<p class='gm_hdr'>Point on Route</p><p class='gm_txt'>This white marker, denotes a point along the route.</p>";
    var gzMarker = createMarker('Point on Route', 3, false, 34.09309513, -121.656075, 'This white marker, denotes a point along the route.', vzTabInfo, 'white', ICOwhite);
    map.addOverlay(gzMarker);

    // ------------------------------  Marker Number 14:    Misc Locals ------------------------------  //
    var szMarkerTitle = "Misc Locals";
    var szMarkerInfo = "This blue marker, denotes a miscellaneous location.";
    var szMarkerHTML = "<p class='gm_hdr'>Misc Locals</p><p class='gm_txt'>This blue marker, denotes a miscellaneous location.</p>";
    var vzTextTab = new GInfoWindowTab(szMarkerTitle,szMarkerHTML);
    var szImageInfo = '';
    var vzImgTab = new GInfoWindowTab("Photo", szImageInfo);
    var vzTabInfo = "<p class='gm_hdr'>Misc Locals</p><p class='gm_txt'>This blue marker, denotes a miscellaneous location.</p>";
    var gzMarker = createMarker('Misc Locals', 3, false, 34.09309513, -121.556075, 'This blue marker, denotes a miscellaneous location.', vzTabInfo, 'blue', ICOblue);
    map.addOverlay(gzMarker);

    // ------------------------------  Marker Number 15:    Accident Locations ------------------------------  //
    var szMarkerTitle = "Accident Locations";
    var szMarkerInfo = "This red marker, denotes the location of the cars after the accident.";
    var szMarkerHTML = "<p class='gm_hdr'>Accident Locations</p><p class='gm_txt'>This red marker, denotes the location of the cars after the accident.</p>";
    var vzTextTab = new GInfoWindowTab(szMarkerTitle,szMarkerHTML);
    var szImageInfo = '';
    var vzImgTab = new GInfoWindowTab("Photo", szImageInfo);
    var vzTabInfo = "<p class='gm_hdr'>Accident Locations</p><p class='gm_txt'>This red marker, denotes the location of the cars after the accident.</p>";
    var gzMarker = createMarker('Accident Locations', 3, false, 34.09309513, -121.456075, 'This red marker, denotes the location of the cars after the accident.', vzTabInfo, 'red', ICOred);
    map.addOverlay(gzMarker);

var plLastRide = new GPolyline.fromEncoded({
  color: "#cc0000",
  weight: 2,
  opacity: 0.7,
  points: "yxaoEpueqU?a@eRBmJAyUFJzP{J@{AX??aGrC{Ah@cAFkFBaFj@}DX??aAX}A|@qDbEi@z@ErA??KrCCj@i@nBs@dA??g@Z}ItBcEVsCv@??yAh@sANaH`BaDdAeJdF}C`CkDbDuGxHmGjIqCbCwFlC{A|@qJxJbBpBqJbPeIbOy@fCwBtOgAhDiBbDq@~BeCtLk@xCwRpQ{AnFeStq@?fF??dAvBfCvBhBfF~BdTq@nQ??iHzZ{M~_@Gz@tEvhA[dE??qBpGcF|Hq@pCFbH_]nsDwDlb@[p@qBdPiPzkB}}Ja@gM`@yKzCqFxCstGgBsMOkKQyfAzKyc@sHwLeAeIr@sIfBu\\d_@ucArcAmGnFySrOwg@x`@c]ps@g{@|Z}^naAcMzZy@xg@c]vX{^rrAed@nr@sp@dPerAxv@{qDnaAmgBjp@s`@bPe{@paAwn@byA}e@~\\_m@cA}e@cAir@eAmi@mEeTlEycBbjAkKbA{^lEcpB~vAgr@vIebAh_Ayu@zcBcbAxtAek@d_@}Uxv@{|@xeAs|ApGi`AdAyzArt@mR`]_]zZ{GzZiKre@qBrVuWnc@??q~@zZck@bA{NvIy^vg@o`@dP}UxeA??yaBnaAkjCnaAye@hCqg@bAsvCqVuu@bA??m~@ha@qg@`l@we@tcA}aAbhBkKnr@qIztAoBrcAqsAf{AmYdA{dC{aCkRmEuWzKwnEdsD{Uja@??we@pV}c@lnAar@dn@a`AlEip@?ay@{K??uxAnr@cnKdfCcjPxlDcsN|_DcsEd_@iuD~\\_wDfn@irJxcBwUdA??wsCbA_w@cAohAd_@epCbAo^tAaIzDo}@zfAoPhJkJxCeYpGmMrOmFfQmM|SqZtWao@|x@qLnU_Plb@y`CxlDiqCr`Egc@xo@_TlTwJvPoIhRyaAtdAum@x`@ml@hR_FdAuU`O??meCha@uUcAaZ|LwiCd_@}Sa@qObAgKxJiQhRke@xJZdrDZrlC??nBtdo@ZbbJw@b^??_FlTofAxsAcL|j@?tWzFz}}@ZrsFZ|Lw@rGqcQp~d@yM|[oVre@srAz~CuGlTiQdm@sAlBeFrGeFrDsFnB??aL~B{NpC??qHlEqCdE{AhG[pCkF|x@?pCTfCXhGpErmApHruAfBjOfD|TfNj{@dDdTp@lElK~dA",
  levels: "P?FGFHEF?ECGEFD?ECICD?EBDF?BEGD?ECFDHDEFGJECFDGHDFDGDFDIDGH?DEFGJ?FKBHD?EFGEJGBFILFGEJFEHKFEGHIEGJGMHFIGJHGIKIGJLGHIGHJIEGKGIJHNGIHJHIGKGFH?IGHJGH?LIGJIG?KHIJGIHMFIFJJK?GIHJGH?ILOKILIKF?IJMIGEJFGHFGIGKFHJLGHFIHJGHF?KFGIFJFGHIM?NJF?GIKFMIEFOGHJFPDFEG?EH?EFEDIDEFHJEGHFDP",
  zoomFactor: 2,
  numLevels: 18
});
  map.addOverlay(plLastRide);

//  --------------------- Add points to vzMapList ---------------------- //
// put the assembled List contents into the side_bar div
    document.getElementById("MapList").innerHTML = vzMapList;
   //]]>
