function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i=0;i"; // ========================================================== i++; return marker; } // ======= This function handles selections from the select box ==== // === If the dummy entry is selected, the info window is closed == function handleSelected(opt) { var i = opt.selectedIndex - 1; if (i > -1) { GEvent.trigger(gmarkers[i],"click"); } else { map.closeInfoWindow(); } } var select_html = ""; if(document.getElementById("selection")) { document.getElementById("selection").innerHTML = select_html; } if(document.getElementById("categoryselection")) { document.getElementById("categoryselection").innerHTML = "
"; } if(selectedMarker != -1) { gmarkers[selectedMarker].openInfoWindowHtml(markers[selectedMarker].getAttribute("html")); map.setCenter(new GLatLng(parseFloat(markers[selectedMarker].getAttribute("lat")), parseFloat(markers[selectedMarker].getAttribute("lng"))), 15); //document.getElementById("placeSelect").selectedIndex = selectedMarker+1; } }); } else { alert("Sorry, the Google Maps API is not compatible with this browser"); } // This Javascript is based on code provided by the // Blackpool Community Church Javascript Team // http://www.commchurch.freeserve.co.uk/ // http://www.econym.demon.co.uk/googlemaps/ return; }