/* This is JavaScript for the www.alamomasternaturalist.org Web site map. */
// Map design from http://www.mapbuilder.net/index.php
// Global Variables
// set map variable
var map = null;
//set up array of locations
var aLocations = new Array;
/*************************** Configuration Options ***************************/
/*PDMarker is used to display tooltips when the user hovers over the markers.
 * PDMarker is a LGPL library provided by Peter Jones. 
 * For details see http://wwww.pixeldevelopment.com/pdmarker.asp*/
var usePDMarker = true;
// Create a base "tiny" red icon that specifies the shadow, icon dimensions, etc.
var iconsm = new GIcon();
    iconsm.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
    iconsm.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
    iconsm.iconSize = new GSize(12, 20);
    iconsm.shadowSize = new GSize(20, 18);
    iconsm.iconAnchor = new GPoint(6, 20);
    iconsm.infoWindowAnchor = new GPoint(5, 1);
// Create a base "large" red icon that specifies the shadow, icon dimensions, etc.
var iconbig = new GIcon();
    iconbig.image = "http://www.google.com/mapfiles/marker.png";
    iconbig.shadow = "http://www.google.com/mapfiles/shadow50.png";
    iconbig.iconSize = new GSize(20, 34);
    iconbig.shadowSize = new GSize(37, 34);
    iconbig.iconAnchor = new GPoint(6, 34);
    iconbig.infoWindowAnchor = new GPoint(5, 1);
// Custom Icon
var iconcustom = new GIcon(iconbig);
    iconcustom.shadow = '';
function onLoad() {
if (!GBrowserIsCompatible()) 
{
document.getElementById("MapBuilderMap").innerHTML = "Unfortunately, your browser doesn't support Google Maps.<br /> To check browser compatibility visit the following <a href=\"http://local.google.com/support/bin/answer.py?answer=16532&topic=1499\">link</a>.";
return;
}
map = new GMap2(document.getElementById("MapBuilderMap"));
var MB = new MapBuilder(map);
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
// Center the map to the default location and set map type
map.setCenter(new GLatLng(29.578234494739206, -98.49929809570312), 10, map.getMapTypes()[2]);
// Initialize variables
var point = null;
var footerHtml = null;
var InfoHTML = null;
var marker = null;
/* Options used for PDMarker initialization:
 * label: tooltip text
 * opacity: tooltip opacity*/
var options = {};
// Add locations
point = new GLatLng(29.862511377396252, -98.18711042404175);
footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo(0)\">Zoom To</a></div></div>";
// Define Marker
options = {opacity: 100, label:'Canyon Lake Gorge'};
InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Canyon Lake Gorge</div><div class=\"IWContent\"><P>Gorge Preservation Society<BR>PMB 1075<BR>1642 FM 2673 #10<BR>Canyon Lake TX 78133&nbsp;</P><P>Note: The Canyon Lake Gorge is on US Federal property currently leased to Guadalupe-Blanco River Authority (GBRA) and is NOT open to the public. You must call GBRA ((800)413-5822 or (830)379-5822) to schedule a tour or to request a temporary permit. Contact Gorge Preservation Society for further information.</P><P>Guadalupe-Blanco River Authority</P></div>" + footerHtml + "</div>";
iconbig.image = "../img/map/marker_green.png";
marker = createMarker(point, InfoHTML, iconbig, options, 0);
map.addOverlay(marker);
aLocations[0] = new Array(marker, "Canyon Lake Gorge", InfoHTML, point);
//point = new GLatLng(29.472313117105336, -98.46800744533539);
//footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo(1)\">Zoom To</a></div></div>";
// Define Marker
//options = {opacity: 100, label:'Cathedral Park'};
//InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Cathedral Park</div><div class=\"IWContent\"><P>111 Torcido Drive<BR>San Antonio TX<BR>78209&nbsp;</P></div>" + footerHtml + "</div>";
//iconbig.image = "../img/map/marker_blue.png";
//marker = createMarker(point, InfoHTML, iconbig, options, 1);
//map.addOverlay(marker);
//aLocations[1] = new Array(marker, "Cathedral Park", InfoHTML, point);
point = new GLatLng(29.78232274045588, -98.70943307876587);
footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo(1)\">Zoom To</a></div></div>";
// Define Marker
options = {opacity: 100, label:'Cibolo Nature Center'};
InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Cibolo Nature Center</div><div class=\"IWContent\"><P>140&nbsp;City Park Road<BR>Boerne TX<BR>78006<BR>(830)249-4616</P></div>" + footerHtml + "</div>";
iconbig.image = "../img/map/marker_blue.png";
marker = createMarker(point, InfoHTML, iconbig, options, 1);
map.addOverlay(marker);
aLocations[1] = new Array(marker, "Cibolo Nature Center", InfoHTML, point);
point = new GLatLng(29.615904751641, -98.63055467605591);
footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo(2)\">Zoom To</a></div></div>";
// Define Marker
options = {opacity: 100, label:'Crownridge Canyon Natural Area'}; 
InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Crownridge Canyon Natural Area</div><div class=\"IWContent\"><P>7222 Luskey Boulevard<BR>San Antonio TX<BR>78256</P><P>San Antonio Parks &amp; Recreation Department<BR>San Antonio Natural Area</P></div>" + footerHtml + "</div>";
iconbig.image = "../img/map/marker_red.png";
marker = createMarker(point, InfoHTML, iconbig, options, 2);
map.addOverlay(marker);
aLocations[2] = new Array(marker, "Crownridge Canyon Natural Area", InfoHTML, point);
point = new GLatLng(29.622582803532225, -98.57319831848144);
footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo(3)\">Zoom To</a></div></div>";
// Define Marker
options = {opacity: 100, label:'Dwight Eisenhower Park'}; 
InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Dwight Eisenhower Park</div><div class=\"IWContent\"><P>19399 Northwest Military Highway<BR>San Antonio TX<BR>78257</P><P>San Antonio Parks &amp; Recreation Department<BR>San Antonio Natural Area</P></div>" + footerHtml + "</div>";
iconbig.image = "../img/map/marker_red.png";
marker = createMarker(point, InfoHTML, iconbig, options, 3);
map.addOverlay(marker);
aLocations[3] = new Array(marker, "Dwight Eisenhower Park", InfoHTML, point);
point = new GLatLng(29.423422735343042, -98.46946120262146);
footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo(4)\">Zoom To</a></div></div>";
// Define Marker
options = {opacity: 100, label:'Euretta Fairchild Park'}; 
InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Euretta Fairchild Park</div><div class=\"IWContent\"><P>1214 East Crockett Street<BR>San Antonio TX<BR>78202</P><P>San&nbsp;Antonio Parks &amp; Recreation Department</P></div>" + footerHtml + "</div>";
iconbig.image = "../img/map/marker_red.png";
marker = createMarker(point, InfoHTML, iconbig, options, 4);
map.addOverlay(marker);
aLocations[4] = new Array(marker, "Euretta Fairchild Park", InfoHTML, point);
point = new GLatLng(29.64109436214087, -98.62550139427185);
footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo(5)\">Zoom To</a></div></div>";
// Define Marker
options = {opacity: 100, label:'Friedrich Wilderness Park'}; 
InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Friedrich Wilderness Park</div><div class=\"IWContent\"><P>21395 Milsa Road<BR>San Antonio TX<BR>78256</P><P>San Antonio Parks &amp; Recreation Department<BR>San Antonio Natural Area</P></div>" + footerHtml + "</div>";
iconbig.image = "../img/map/marker_red.png";
marker = createMarker(point, InfoHTML, iconbig, options, 5);
map.addOverlay(marker);
aLocations[5] = new Array(marker, "Friedrich Wilderness Park", InfoHTML, point);
point = new GLatLng(29.536937790085247, -98.74750971794128);
footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo(6)\">Zoom To</a></div></div>";
// Define Marker
options = {opacity: 100, label:'Government Canyon State Natural Area'}; 
InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Government Canyon State Natural Area</div><div class=\"IWContent\"><P>12861 Galm Road<BR>San Antonio TX<BR>78254</P><P>Texas Parks &amp; Wildlife Department</P></div>" + footerHtml + "</div>";
iconbig.image = "../img/map/marker_green.png";
marker = createMarker(point, InfoHTML, iconbig, options, 6);
map.addOverlay(marker);
aLocations[6] = new Array(marker, "Government Canyon State Natural Area", InfoHTML, point);
point = new GLatLng(29.80565528577286, -98.50088596343994);
footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo(7)\">Zoom To</a></div></div>";
// Define Marker
options = {opacity: 100, label:'Honey Creek State Natural Area'}; 
InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Honey Creek State Natural Area</div><div class=\"IWContent\"><P>3350 Park Road 31<BR>Spring Branch TX<BR>78070</P><P>Texas Parks &amp; Wildlife Department</P></div>" + footerHtml + "</div>";
iconbig.image = "../img/map/marker_green.png";
marker = createMarker(point, InfoHTML, iconbig, options, 7);
map.addOverlay(marker);
aLocations[7] = new Array(marker, "Honey Creek State Natural Area", InfoHTML, point);
point = new GLatLng(29.492916067644163, -98.74603986740112);
footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo(8)\">Zoom To</a></div></div>";
// Define Marker
options = {opacity: 100, label:'Hunter Education Certification'}; 
InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Hunter Education Certification</div><div class=\"IWContent\"><P>National Shooting Complex<BR>5931 Roft Road<BR>San Antonio TX<BR>78253</P><P>Texas Parks &amp; Wildlife Department<BR>Hunter Education Certification</P></div>" + footerHtml + "</div>";
iconbig.image = "../img/map/marker_green.png";
marker = createMarker(point, InfoHTML, iconbig, options, 8);
map.addOverlay(marker);
aLocations[8] = new Array(marker, "Hunter Education Certification", InfoHTML, point);
point = new GLatLng(28.511614672975703, -98.45378637313843);
footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo(9)\">Zoom To</a></div></div>";
// Define Marker
options = {opacity: 100, label:'James E Daughtrey Wildlife Management Area'}; 
InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">James E Daughtrey Wildlife Management Area</div><div class=\"IWContent\"><P>64 Chaparral WMA Drive<BR>Cotulla TX<BR>78014</P><P>Texas Parks &amp; Wildlife Department</P></div>" + footerHtml + "</div>";
iconbig.image = "../img/map/marker_green.png";
marker = createMarker(point, InfoHTML, iconbig, options, 9);
map.addOverlay(marker);
aLocations[9] = new Array(marker, "James E Daughtrey Wildlife Management Area", InfoHTML, point);
//point = new GLatLng(29.60583087541082, -98.53440284729004);
//footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo(10)\">Zoom To</a></div></div>";
// Define Marker
//options = {opacity: 100, label:'Montessori School of San Antonio'}; 
//InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Montessori School of San Antonio</div><div class=\"IWContent\"><P>17722 Rogers Ranch Parkway<BR>San Antonio TX<BR>78258</P></div>" + footerHtml + "</div>";
//iconbig.image = "../img/map/marker_brown.png";
//marker = createMarker(point, InfoHTML, iconbig, options, 10);
//map.addOverlay(marker);
//aLocations[10] = new Array(marker, "Montessori School of San Antonio", InfoHTML, point);
point = new GLatLng(29.264439079126482, -98.57883632183075);
footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo(10)\">Zoom To</a></div></div>";
// Define Marker
options = {opacity: 100, label:'Medina River Natural Area'}; 
InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Medina River Natural Area</div><div class=\"IWContent\"><P>15890 Highway 16 South<BR>San Antonio TX<BR>78264</P><P>San Antonio Parks &amp; Recreation Department<BR>San Antonio Natural Area</P></div>" + footerHtml + "</div>";
iconbig.image = "../img/map/marker_red.png";
marker = createMarker(point, InfoHTML, iconbig, options, 10);
map.addOverlay(marker);
aLocations[10] = new Array(marker, "Medina River Natural Area", InfoHTML, point);
point = new GLatLng(29.310968822303426, -98.50047826766968);
footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo(11)\">Zoom To</a></div></div>";
// Define Marker
options = {opacity: 100, label:'Mitchell Lake Audubon Center'}; 
InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Mitchell Lake Audubon Center</div><div class=\"IWContent\"><P>10750 Pleasanton Road<BR>San Antonio TX<BR>78221</P></div>" + footerHtml + "</div>";
iconbig.image = "../img/map/marker_blue.png";
marker = createMarker(point, InfoHTML, iconbig, options, 11);
map.addOverlay(marker);
aLocations[11] = new Array(marker, "Mitchell Lake Audubon Center", InfoHTML, point);
point = new GLatLng(29.60583087541082, -98.53440284729004);
footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo(12)\">Zoom To</a></div></div>";
// Define Marker
options = {opacity: 100, label:'Montessori School of San Antonio'}; 
InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Montessori School of San Antonio</div><div class=\"IWContent\"><P>17722 Rogers Ranch Parkway<BR>San Antonio TX<BR>78258</P></div>" + footerHtml + "</div>";
iconbig.image = "../img/map/marker_brown.png";
marker = createMarker(point, InfoHTML, iconbig, options, 12);
map.addOverlay(marker);
aLocations[12] = new Array(marker, "Montessori School of San Antonio", InfoHTML, point);
point = new GLatLng(29.472014222090727, -98.70735168457031);
footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo(13)\">Zoom To</a></div></div>";
// Define Marker
options = {opacity: 100, label:'Northwest Vista College'}; 
InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Northwest Vista College</div><div class=\"IWContent\"><P>3535 North Ellison Drive<BR>San Antonio TX<BR>78251</P></div>" + footerHtml + "</div>";
iconbig.image = "../img/map/marker_brown.png";
marker = createMarker(point, InfoHTML, iconbig, options, 13);
map.addOverlay(marker);
aLocations[13] = new Array(marker, "Northwest Vista College", InfoHTML, point);
point = new GLatLng(29.45837619988836, -98.45860362052917);
footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo(14)\">Zoom To</a></div></div>";
// Define Marker
options = {opacity: 100, label:'San Antonio Botanical Garden'}; 
InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">San Antonio Botanical Garden</div><div class=\"IWContent\"><P>555 Funston Avenue<BR>San Antonio TX<BR>78209</P><P>San Antonio Parks &amp; Recreation Department</P></div>" + footerHtml + "</div>";
iconbig.image = "../img/map/marker_red.png";
marker = createMarker(point, InfoHTML, iconbig, options, 14);
map.addOverlay(marker);
aLocations[14] = new Array(marker, "San Antonio Botanical Garden", InfoHTML, point);
point = new GLatLng(29.419021165589445, -98.49280714988708);
footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo(15)\">Zoom To</a></div></div>";
// Define Marker
options = {opacity: 100, label:'San Antonio Riverwalk Demonstration Garden'}; 
InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">San Antonio Riverwalk Demonstration Garden</div><div class=\"IWContent\"><P>Near The Riverwalk at the corner of Aubrey and Old Guilbeau<BR>(north&nbsp;of Durango, on the west side of the San Antonio River)</P><P>Note: This garden is maintained by our Alamo Area Master Naturalist Chapter. Check our chapter newsletter for scheduled workdays.</P></div>" + footerHtml + "</div>";
iconbig.image = "../img/map/marker_red.png";
marker = createMarker(point, InfoHTML, iconbig, options, 15);
map.addOverlay(marker);
aLocations[15] = new Array(marker, "San Antonio Riverwalk Demonstration Garden", InfoHTML, point);
point = new GLatLng(29.42685227640142, -98.43552589416504);
footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo(16)\">Zoom To</a></div></div>";
// Define Marker
options = {opacity: 100, label:'San Antonio Stock Show & Rodeo'}; 
InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">San Antonio Stock Show &amp; Rodeo</div><div class=\"IWContent\"><P>1 AT&amp;T Center Parkway<BR>San Antonio TX<BR>78219</P></div>" + footerHtml + "</div>";
iconbig.image = "../img/map/marker_red.png";
marker = createMarker(point, InfoHTML, iconbig, options, 16);
map.addOverlay(marker);
aLocations[16] = new Array(marker, "San Antonio Stock Show &amp; Rodeo", InfoHTML, point);
point = new GLatLng(29.585558813600247, -98.55485200881958);
footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo(17)\">Zoom To</a></div></div>";
// Define Marker
options = {opacity: 100, label:'Shavano Park Butterfly Hummingbird Garden'}; 
InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Shavano Park Butterfly Hummingbird Garden</div><div class=\"IWContent\"><P>900 Saddletree Court<BR>Shavano Park TX<BR>78231</P></div>" + footerHtml + "</div>";
iconbig.image = "../img/map/marker_blue.png";
marker = createMarker(point, InfoHTML, iconbig, options, 17);
map.addOverlay(marker);
aLocations[17] = new Array(marker, "Shavano Park Butterfly Hummingbird Garden", InfoHTML, point);
point = new GLatLng(29.508509, -98.547974);
footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo(18)\">Zoom To</a></div></div>";
// Define Marker
options = {opacity: 100, label:'Texas AgriLife Extension Service'}; 
InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Texas AgriLife Extension Service</div><div class=\"IWContent\"><P>3355 Cherry Ridge Ste. 212<BR>San Antonio TX<BR>78230</P><P>Texas AgriLife Extension Service</P></div>" + footerHtml + "</div>";
iconbig.image = "../img/map/marker_green.png";
marker = createMarker(point, InfoHTML, iconbig, options, 18);
map.addOverlay(marker);
aLocations[18] = new Array(marker, "Texas AgriLife Extension Service", InfoHTML, point);
point = new GLatLng(29.485818515936476, -98.65825653076172);
footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo(19)\">Zoom To</a></div></div>";
// Define Marker
options = {opacity: 100, label:'Timberwilde Elementary School'}; 
InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Timberwilde Elementary School</div><div class=\"IWContent\"><P>8838 Timberwilde Street<BR>San Antonio TX<BR>78250</P><P>Young Naturalist Program<BR>Northside Independent School District</P></div>" + footerHtml + "</div>";
iconbig.image = "../img/map/marker_brown.png";
marker = createMarker(point, InfoHTML, iconbig, options, 19);
map.addOverlay(marker);
aLocations[19] = new Array(marker, "Timberwilde Elementary School", InfoHTML, point);
point = new GLatLng(29.556127691693312, -98.49980771541595);
footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo(20)\">Zoom To</a></div></div>";
// Define Marker
options = {opacity: 100, label:'Walker Ranch Historic Landmark Park'}; 
InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Walker Ranch Historic Landmark Park</div><div class=\"IWContent\"><P>12603 West Avenue<BR>San Antonio TX<BR>78216</P><P>San Antonio Parks &amp; Recreation Department<BR>San Antonio Natural Area</P></div>" + footerHtml + "</div>";
iconbig.image = "../img/map/marker_red.png";
marker = createMarker(point, InfoHTML, iconbig, options, 20);
map.addOverlay(marker);
aLocations[20] = new Array(marker, "Walker Ranch Historic Landmark Park", InfoHTML, point);
// And, finally, create sidebar
createSideBar();
}