/*
FILE ARCHIVED ON 21:11:05 Feb 13, 2013 AND RETRIEVED FROM THE
AN OPENWAYBACK INSTANCE ON 16:08:54 Sep 2, 2024.
JAVASCRIPT APPENDED BY OPENWAYBACK, COPYRIGHT INTERNET ARCHIVE.
ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
SECTION 108(a)(3)).
*/
// CFMX document that outputs all items to be listed on the tours map from the db.
function onLoad() {
//Add Menendez's office
var tour_0 = "
Robert Menendez's Office
528 Hart Senate Office Building
Washington, D.C. 20510";
var openhtml = tour_0;
if (GBrowserIsCompatible()) {
var map = new GMap(document.getElementById("map"));
map.addControl(new GSmallMapControl());
//focus on Whitehouse
map.centerAndZoom(new GPoint(-77.004062, 38.893071), 6);
function createMarker(point, string) {
var marker = new GMarker(point);
// Show this markers index in the info window when it is clicked.
var html = string;
GEvent.addListener(marker, 'click', function() {
marker.openInfoWindowHtml(html);
});
return marker;
}
/*
for(var i=1; i < mapData.length; i++) {
var point = new GPoint(mapData[i][0], mapData[i][1]);
//alert("latitude and long: " + mapData[i][0] + "," + mapData[i][1]);
var marker = createMarker(point, mapData[i][2]);
//alert("marker: " + mapData[i][2]);
map.addOverlay(marker);
//alert("added marker");
}
*/
//More Mendendez Info
var openpoint = new GPoint(-77.004062,38.893071);
var openmarker = createMarker(openpoint,openhtml)
map.addOverlay(openmarker);
GEvent.trigger(openmarker, "click")
//Mendendez info done
}
}