    //<![CDATA[

    if (GBrowserIsCompatible()) {
      var side_bar_html = "<table border=0 cellpadding=0><tr>";
      var gmarkers = [];
      var i = 0;

            var icon0 = new GIcon();
      icon0.image = "images/googlemaps/icons/airport.jpg";
      icon0.iconSize = new GSize(17, 16);
      icon0.iconAnchor = new GPoint(10, 10);
      icon0.infoWindowAnchor = new GPoint(10, 10);

      var icon1 = new GIcon();
      icon1.image = "images/googlemaps/icons/boat.jpg";
      icon1.iconSize = new GSize(17, 16);
      icon1.iconAnchor = new GPoint(10, 10);
      icon1.infoWindowAnchor = new GPoint(10, 10);

      var icon2 = new GIcon();
      icon2.image = "images/googlemaps/icons/church.jpg";
      icon2.iconSize = new GSize(17, 16);
      icon2.iconAnchor = new GPoint(10, 10);
      icon2.infoWindowAnchor = new GPoint(10, 10);

      var icon3 = new GIcon();
      icon3.image = "images/googlemaps/icons/employment.jpg";
      icon3.iconSize = new GSize(17, 16);
      icon3.iconAnchor = new GPoint(10, 10);
      icon3.infoWindowAnchor = new GPoint(10, 10);

      var icon4 = new GIcon();
      icon4.image = "images/googlemaps/icons/family.png";
      icon4.iconSize = new GSize(17, 16);
      icon4.iconAnchor = new GPoint(10, 10);
      icon4.infoWindowAnchor = new GPoint(10, 10);

      var icon5 = new GIcon();
      icon5.image = "images/googlemaps/icons/fire.jpg";
      icon5.iconSize = new GSize(17, 16);
      icon5.iconAnchor = new GPoint(10, 10);
      icon5.infoWindowAnchor = new GPoint(10, 10);

      var icon6 = new GIcon();
      icon6.image = "images/googlemaps/icons/general.png";
      icon6.iconSize = new GSize(17, 16);
      icon6.iconAnchor = new GPoint(10, 10);
      icon6.infoWindowAnchor = new GPoint(10, 10);

      var icon7 = new GIcon();
      icon7.image = "images/googlemaps/icons/golf.jpg";
      icon7.iconSize = new GSize(17, 16);
      icon7.iconAnchor = new GPoint(10, 10);
      icon7.infoWindowAnchor = new GPoint(10, 10);

      var icon8 = new GIcon();
      icon8.image = "images/googlemaps/icons/government.jpg";
      icon8.iconSize = new GSize(17, 16);
      icon8.iconAnchor = new GPoint(10, 10);
      icon8.infoWindowAnchor = new GPoint(10, 10);

      var icon9 = new GIcon();
      icon9.image = "images/googlemaps/icons/hospital.jpg";
      icon9.iconSize = new GSize(17, 16);
      icon9.iconAnchor = new GPoint(10, 10);
      icon9.infoWindowAnchor = new GPoint(10, 10);

      var icon10 = new GIcon();
      icon10.image = "images/googlemaps/icons/info.jpg";
      icon10.iconSize = new GSize(17, 16);
      icon10.iconAnchor = new GPoint(10, 10);
      icon10.infoWindowAnchor = new GPoint(10, 10);

      var icon11 = new GIcon();
      icon11.image = "images/googlemaps/icons/library.jpg";
      icon11.iconSize = new GSize(17, 16);
      icon11.iconAnchor = new GPoint(10, 10);
      icon11.infoWindowAnchor = new GPoint(10, 10);

      var icon12 = new GIcon();
      icon12.image = "images/googlemaps/icons/military.jpg";
      icon12.iconSize = new GSize(17, 16);
      icon12.iconAnchor = new GPoint(10, 10);
      icon12.infoWindowAnchor = new GPoint(10, 10);

      var icon13 = new GIcon();
      icon13.image = "images/googlemaps/icons/museum.jpg";
      icon13.iconSize = new GSize(17, 16);
      icon13.iconAnchor = new GPoint(10, 10);
      icon13.infoWindowAnchor = new GPoint(10, 10);

      var icon14 = new GIcon();
      icon14.image = "images/googlemaps/icons/park.jpg";
      icon14.iconSize = new GSize(17, 16);
      icon14.iconAnchor = new GPoint(10, 10);
      icon14.infoWindowAnchor = new GPoint(10, 10);

      var icon15 = new GIcon();
      icon15.image = "images/googlemaps/icons/police.jpg";
      icon15.iconSize = new GSize(17, 16);
      icon15.iconAnchor = new GPoint(10, 10);
      icon15.infoWindowAnchor = new GPoint(10, 10);

      var icon16 = new GIcon();
      icon16.image = "images/googlemaps/icons/school.jpg";
      icon16.iconSize = new GSize(17, 16);
      icon16.iconAnchor = new GPoint(10, 10);
      icon16.infoWindowAnchor = new GPoint(10, 10);

      var icon17 = new GIcon();
      icon17.image = "images/googlemaps/icons/service.png";
      icon17.iconSize = new GSize(17, 16);
      icon17.iconAnchor = new GPoint(10, 10);
      icon17.infoWindowAnchor = new GPoint(10, 10);

      var icon18 = new GIcon();
      icon18.image = "images/googlemaps/icons/shopping.jpg";
      icon18.iconSize = new GSize(17, 16);
      icon18.iconAnchor = new GPoint(10, 10);
      icon18.infoWindowAnchor = new GPoint(10, 10);

      var icon19 = new GIcon();
      icon19.image = "images/googlemaps/icons/wateractivities.png";
      icon19.iconSize = new GSize(17, 16);
      icon19.iconAnchor = new GPoint(10, 10);
      icon19.infoWindowAnchor = new GPoint(10, 10);

      var icon20 = new GIcon();
      icon20.image = "images/googlemaps/icons/youth.png";
      icon20.iconSize = new GSize(17, 16);
      icon20.iconAnchor = new GPoint(10, 10);
      icon20.infoWindowAnchor = new GPoint(10, 10);



      // An array of GIcons, to make the selection easier
      var icons = [];
      icons[0] = icon0;
icons[1] = icon1;
icons[2] = icon2;
icons[3] = icon3;
icons[4] = icon4;
icons[5] = icon5;
icons[6] = icon6;
icons[7] = icon7;
icons[8] = icon8;
icons[9] = icon9;
icons[10] = icon10;
icons[11] = icon11;
icons[12] = icon12;
icons[13] = icon13;
icons[14] = icon14;
icons[15] = icon15;
icons[16] = icon16;
icons[17] = icon17;
icons[18] = icon18;
icons[19] = icon19;
icons[20] = icon20;


      var tdrow = 1;
      // A function to create the marker and set up the event window
      function createMarker(point,label,html,icontype,iname) {
 
        var marker = new GMarker(point, icons[icontype]);
        GEvent.addListener(marker, "click", function() {
        marker.openInfoWindowHtml(html);
        });
        // save the info we need to use later for the side_bar
        gmarkers.push(marker)
        // add a line to the side_bar html
        side_bar_html += '<td class=cbhp width=19 valign=top align=left><img width=17 height=16 src=/images/googlemaps/icons/' + iname + '></td><td class=cbhp width=215 valign=top align=left><a href="javascript:myclick(' + (gmarkers.length-1) + ')";>' + label + '</a></td>';
        tdrow++;
        if (tdrow > 3){side_bar_html += '</tr><tr>'; tdrow =1;
         }
        return marker;
      }      
 
      function myclick(i) {
        GEvent.trigger(gmarkers[i], "click");
      }
      
      // built by script 
 
      var map = new GMap2(document.getElementById("map"),  { size: new GSize(550,450) } );
      
      map.addControl(new GLargeMapControl3D());
      map.addControl(new GMapTypeControl());
      map.setMapType(G_HYBRID_MAP);
      map.setCenter(new GLatLng(30.65799,-86.6903), 9);

            var lat = "30.40446";
      var lng = "-86.6056";
      var point = new GLatLng(lat,lng);
      var html = "<table width=300 cellspacing=0 cellpadding=3 ><tr><td colspan=2><a class=verd href=http://www.readokaloosa.org/details_fwb.html target=_blank> City of Fort Walton Beach Library</a></td></tr><tr><td width=150 valign=top><div class=img-shadow><a class=verd href=http://www.readokaloosa.org/details_fwb.html target=_blank><img border=0 width=120 height=80 src=http://www.welcometonorthwestflorida.com/images/googlemaps/thumbnails/356.jpg></a></div></td><td width=150 valign=top><span class=cbhp >The Fort Walton Beach Library, now housed in a modern 24,000-square-foot building, was first established under humble circumstances in a waterfront Masonic building by the Fort Walton Beach Women’s Club in 1927. <br><br>185 Miracle Strip Pkwy SE <br>Fort Walton Beach, FL </span></td></tr></table>";
      var label = "City of Fort Walton Beach Library";
      var icontype = '11';
      var marker = createMarker(point,label,html,icontype,'library.jpg');
      map.addOverlay(marker);
      var lat = "30.52182";
      var lng = "-86.4761";
      var point = new GLatLng(lat,lng);
      var html = "<table width=300 cellspacing=0 cellpadding=3 ><tr><td colspan=2><a class=verd href=http://www.readokaloosa.org/details_nville.html target=_blank> City of Niceville Public Library</a></td></tr><tr><td width=150 valign=top><div class=img-shadow><a class=verd href=http://www.readokaloosa.org/details_nville.html target=_blank><img border=0 width=120 height=80 src=http://www.welcometonorthwestflorida.com/images/googlemaps/thumbnails/358.jpg></a></div></td><td width=150 valign=top><span class=cbhp >The library currently houses approximately 65,000 items, including dvds, audios, videos, cds, and print materials, and subscribes to 158 periodicals for our patrons reading and listening pleasure. <br><br>206 North Partin Dr. <br>Niceville, FL </span></td></tr></table>";
      var label = "City of Niceville Public Library";
      var icontype = '11';
      var marker = createMarker(point,label,html,icontype,'library.jpg');
      map.addOverlay(marker);
      var lat = "30.37339";
      var lng = "-86.1807";
      var point = new GLatLng(lat,lng);
      var html = "<table width=300 cellspacing=0 cellpadding=3 ><tr><td colspan=2><a class=verd href=http://www.co.walton.fl.us/index.aspx?NID=464 target=_blank> Coastal Branch Library</a></td></tr><tr><td width=150 valign=top><div class=img-shadow><a class=verd href=http://www.co.walton.fl.us/index.aspx?NID=464 target=_blank><img border=0 width=120 height=80 src=http://www.welcometonorthwestflorida.com/images/googlemaps/thumbnails/360.jpg></a></div></td><td width=150 valign=top><span class=cbhp ><br><br>437 Greenway Trail <br>Santa Rosa Beach, FL </span></td></tr></table>";
      var label = "Coastal Branch Library";
      var icontype = '11';
      var marker = createMarker(point,label,html,icontype,'library.jpg');
      map.addOverlay(marker);
      var lat = "30.71839";
      var lng = "-86.1159";
      var point = new GLatLng(lat,lng);
      var html = "<table width=300 cellspacing=0 cellpadding=3 ><tr><td colspan=2><a class=verd href=http://www.co.walton.fl.us/index.aspx?NID=461 target=_blank> DeFuniak Springs Library</a></td></tr><tr><td width=150 valign=top><div class=img-shadow><a class=verd href=http://www.co.walton.fl.us/index.aspx?NID=461 target=_blank><img border=0 width=120 height=80 src=http://www.welcometonorthwestflorida.com/images/googlemaps/thumbnails/361.jpg></a></div></td><td width=150 valign=top><span class=cbhp >The Library is located in the historic district of DeFuniak Springs and has the distinction of being the oldest continuously operated library in the state of Florida.<br><br>3 Circle Drive <br>DeFuniak Springs, FL </span></td></tr></table>";
      var label = "DeFuniak Springs Library";
      var icontype = '11';
      var marker = createMarker(point,label,html,icontype,'library.jpg');
      map.addOverlay(marker);
      var lat = "30.39897";
      var lng = "-86.5080";
      var point = new GLatLng(lat,lng);
      var html = "<table width=300 cellspacing=0 cellpadding=3 ><tr><td colspan=2><a class=verd href=http://www.readokaloosa.org/details_destin.html target=_blank> Destin Library</a></td></tr><tr><td width=150 valign=top><div class=img-shadow><a class=verd href=http://www.readokaloosa.org/details_destin.html target=_blank><img border=0 width=120 height=80 src=http://www.welcometonorthwestflorida.com/images/googlemaps/thumbnails/355.jpg></a></div></td><td width=150 valign=top><span class=cbhp >The Destin Library strives to provide quality, professional information services and recreational reading materials to our expanding community.<br><br>150 Sibert Avenue <br>Destin, FL </span></td></tr></table>";
      var label = "Destin Library";
      var icontype = '11';
      var marker = createMarker(point,label,html,icontype,'library.jpg');
      map.addOverlay(marker);
      var lat = "30.49879";
      var lng = "-86.1378";
      var point = new GLatLng(lat,lng);
      var html = "<table width=300 cellspacing=0 cellpadding=3 ><tr><td colspan=2><a class=verd href=http://www.co.walton.fl.us/index.aspx?NID=465 target=_blank> Freeport Library</a></td></tr><tr><td width=150 valign=top><div class=img-shadow><a class=verd href=http://www.co.walton.fl.us/index.aspx?NID=465 target=_blank><img border=0 width=120 height=80 src=http://www.welcometonorthwestflorida.com/images/googlemaps/thumbnails/362.jpg></a></div></td><td width=150 valign=top><span class=cbhp ><br><br>76 State Highway 20 West  <br>Freeport, FL </span></td></tr></table>";
      var label = "Freeport Library";
      var icontype = '11';
      var marker = createMarker(point,label,html,icontype,'library.jpg');
      map.addOverlay(marker);
      var lat = "30.96021";
      var lng = "-86.3385";
      var point = new GLatLng(lat,lng);
      var html = "<table width=300 cellspacing=0 cellpadding=3 ><tr><td colspan=2><a class=verd href=http://www.co.walton.fl.us/index.aspx?NID=463 target=_blank> Gladys N. Milton Memorial Library</a></td></tr><tr><td width=150 valign=top><div class=img-shadow><a class=verd href=http://www.co.walton.fl.us/index.aspx?NID=463 target=_blank><img border=0 width=120 height=80 src=http://www.welcometonorthwestflorida.com/images/googlemaps/thumbnails/363.jpg></a></div></td><td width=150 valign=top><span class=cbhp ><br><br>261 Flowersview Road <br>Paxton, FL </span></td></tr></table>";
      var label = "Gladys N. Milton Memorial Library";
      var icontype = '11';
      var marker = createMarker(point,label,html,icontype,'library.jpg');
      map.addOverlay(marker);
      var lat = "30.35553";
      var lng = "-87.1712";
      var point = new GLatLng(lat,lng);
      var html = "<table width=300 cellspacing=0 cellpadding=3 ><tr><td colspan=2><a class=verd href=http://www.santarosa.fl.gov/libraries/hdifindlibraries.html target=_blank> Gulf Breeze Library </a></td></tr><tr><td width=150 valign=top><div class=img-shadow><a class=verd href=http://www.santarosa.fl.gov/libraries/hdifindlibraries.html target=_blank><img border=0 width=120 height=80 src=http://www.welcometonorthwestflorida.com/images/googlemaps/thumbnails/364.jpg></a></div></td><td width=150 valign=top><span class=cbhp ><br><br>1060 Shoreline Drive  <br>Gulf Breeze, FL </span></td></tr></table>";
      var label = "Gulf Breeze Library ";
      var icontype = '11';
      var marker = createMarker(point,label,html,icontype,'library.jpg');
      map.addOverlay(marker);
      var lat = "30.95199";
      var lng = "-87.1603";
      var point = new GLatLng(lat,lng);
      var html = "<table width=300 cellspacing=0 cellpadding=3 ><tr><td colspan=2><a class=verd href=http://www.santarosa.fl.gov/libraries/hdifindlibraries.html target=_blank> Jay Library </a></td></tr><tr><td width=150 valign=top><div class=img-shadow><a class=verd href=http://www.santarosa.fl.gov/libraries/hdifindlibraries.html target=_blank><img border=0 width=120 height=80 src=http://www.welcometonorthwestflorida.com/images/googlemaps/thumbnails/365.jpg></a></div></td><td width=150 valign=top><span class=cbhp ><br><br>5259 Booker Lane <br>Jay, FL </span></td></tr></table>";
      var label = "Jay Library ";
      var icontype = '11';
      var marker = createMarker(point,label,html,icontype,'library.jpg');
      map.addOverlay(marker);
      var lat = "30.41303";
      var lng = "-86.6636";
      var point = new GLatLng(lat,lng);
      var html = "<table width=300 cellspacing=0 cellpadding=3 ><tr><td colspan=2><a class=verd href=http://www.readokaloosa.org/details_me.html target=_blank> Mary Esther Public Library</a></td></tr><tr><td width=150 valign=top><div class=img-shadow><a class=verd href=http://www.readokaloosa.org/details_me.html target=_blank><img border=0 width=120 height=80 src=http://www.welcometonorthwestflorida.com/images/googlemaps/thumbnails/357.jpg></a></div></td><td width=150 valign=top><span class=cbhp >Opened in 1986, the Mary Esther Pulblic Library is conveniently located in the heart of the downtown business district, just minutes away from Highway 98.<br><br>100 Hollywood West <br>Mary Esther, FL </span></td></tr></table>";
      var label = "Mary Esther Public Library";
      var icontype = '11';
      var marker = createMarker(point,label,html,icontype,'library.jpg');
      map.addOverlay(marker);
      var lat = "30.63694";
      var lng = "-87.0397";
      var point = new GLatLng(lat,lng);
      var html = "<table width=300 cellspacing=0 cellpadding=3 ><tr><td colspan=2><a class=verd href=http://www.santarosa.fl.gov/libraries/hdifindlibraries.html target=_blank> Milton Library </a></td></tr><tr><td width=150 valign=top><div class=img-shadow><a class=verd href=http://www.santarosa.fl.gov/libraries/hdifindlibraries.html target=_blank><img border=0 width=120 height=80 src=http://www.welcometonorthwestflorida.com/images/googlemaps/thumbnails/366.jpg></a></div></td><td width=150 valign=top><span class=cbhp ><br><br>5541 Alabama Street  <br>Milton, FL </span></td></tr></table>";
      var label = "Milton Library ";
      var icontype = '11';
      var marker = createMarker(point,label,html,icontype,'library.jpg');
      map.addOverlay(marker);
      var lat = "30.41353";
      var lng = "-86.8679";
      var point = new GLatLng(lat,lng);
      var html = "<table width=300 cellspacing=0 cellpadding=3 ><tr><td colspan=2><a class=verd href=http://www.santarosa.fl.gov/libraries/hdifindlibraries.html target=_blank> Navarre Library </a></td></tr><tr><td width=150 valign=top><div class=img-shadow><a class=verd href=http://www.santarosa.fl.gov/libraries/hdifindlibraries.html target=_blank><img border=0 width=120 height=80 src=http://www.welcometonorthwestflorida.com/images/googlemaps/thumbnails/367.jpg></a></div></td><td width=150 valign=top><span class=cbhp ><br><br>8484 James M. Harvell Road  <br>Navarre, FL </span></td></tr></table>";
      var label = "Navarre Library ";
      var icontype = '11';
      var marker = createMarker(point,label,html,icontype,'library.jpg');
      map.addOverlay(marker);
      var lat = "30.61143";
      var lng = "-87.1568";
      var point = new GLatLng(lat,lng);
      var html = "<table width=300 cellspacing=0 cellpadding=3 ><tr><td colspan=2><a class=verd href=http://www.santarosa.fl.gov/libraries/hdifindlibraries.html target=_blank> Pace Library </a></td></tr><tr><td width=150 valign=top><div class=img-shadow><a class=verd href=http://www.santarosa.fl.gov/libraries/hdifindlibraries.html target=_blank><img border=0 width=120 height=80 src=http://www.welcometonorthwestflorida.com/images/googlemaps/thumbnails/368.jpg></a></div></td><td width=150 valign=top><span class=cbhp ><br><br>4750 Pace Patriot Blvd. <br>Pace, FL </span></td></tr></table>";
      var label = "Pace Library ";
      var icontype = '11';
      var marker = createMarker(point,label,html,icontype,'library.jpg');
      map.addOverlay(marker);
      var lat = "30.79068";
      var lng = "-86.5552";
      var point = new GLatLng(lat,lng);
      var html = "<table width=300 cellspacing=0 cellpadding=3 ><tr><td colspan=2><a class=verd href=http://www.readokaloosa.org/details_sikes.html target=_blank> Robert L.F. Sikes Library</a></td></tr><tr><td width=150 valign=top><div class=img-shadow><a class=verd href=http://www.readokaloosa.org/details_sikes.html target=_blank><img border=0 width=120 height=80 src=http://www.welcometonorthwestflorida.com/images/googlemaps/thumbnails/354.jpg></a></div></td><td width=150 valign=top><span class=cbhp >Open six days a week, Bob Sikes Library is proud to offer a variety of services to residents in and around the Crestview area. <br><br>1445 Commerce Drive <br>Crestview, FL </span></td></tr></table>";
      var label = "Robert L.F. Sikes Library";
      var icontype = '11';
      var marker = createMarker(point,label,html,icontype,'library.jpg');
      map.addOverlay(marker);
      var lat = "30.50954";
      var lng = "-86.4998";
      var point = new GLatLng(lat,lng);
      var html = "<table width=300 cellspacing=0 cellpadding=3 ><tr><td colspan=2><a class=verd href=http://www.readokaloosa.org/details_valp.html target=_blank> Valparaiso Community Library</a></td></tr><tr><td width=150 valign=top><div class=img-shadow><a class=verd href=http://www.readokaloosa.org/details_valp.html target=_blank><img border=0 width=120 height=80 src=http://www.welcometonorthwestflorida.com/images/googlemaps/thumbnails/359.jpg></a></div></td><td width=150 valign=top><span class=cbhp >A variety of special events, from story sessions for our youngest customers to the Friends of the Library group for the adult reader, entertain and enlighten throughout the year.<br><br>459 Valparaiso Parkway <br>Valparaiso, FL </span></td></tr></table>";
      var label = "Valparaiso Community Library";
      var icontype = '11';
      var marker = createMarker(point,label,html,icontype,'library.jpg');
      map.addOverlay(marker);


      // put the assembled side_bar_html contents into the side_bar div

      function legend() {
       var load = window.open('http://www.welcometonorthwestflorida.com/images/googlemaps/legend1.gif','','scrollbars=no,menubar=no,width=560,height=450,resizable=no,toolbar=no,location=no,status=no');
       }
         side_bar_html += '</tr></table><p align=center><a a href="javascript:legend()">Map Legend</a>';

         document.getElementById("side_bar").innerHTML = side_bar_html;


    }   else
     { alert("Google Maps is not compatible with this browser"); }

    //]]>

