// CFMX document that outputs all items to be listed on the tours map from the db.
//The Kennedy Center
Visit the web site";
mapData[1] = [-77.05553, 38.89595, tour_1];
var tour_2 = "
The Bureau of Engraving and Printing
Visit the web site";
mapData[2] = [-77.031866, 38.885995, tour_2];
var tour_3 = "The Capitol Building
U.S. Capitol
Visit the web site";
mapData[3] = [-77.00936, 38.889682, tour_3];
var tour_4 = "The Library of Congress
Library of Congress
Visit the web site";
mapData[4] = [-77.005897, 38.887612, tour_4];
var tour_5 = "The United States Supreme Court
Visit the web site";
mapData[5] = [-77.004444, 38.890516, tour_5];
var tour_6 = "The White House (6 Months Notice Required)
Visit the web site";
mapData[6] = [-77.036561, 38.897614, tour_6];
var tour_7 = "The Pentagon
Visit the web site";
mapData[7] = [-77.0552551, 38.8709455, tour_7];
//Add Whitehouse's office
var tour_8 = "Sheldon Whitehouse's Office
717 Hart Senate Office Building
Washington, D.C. 20510";
var openhtml = tour_8;
if (GBrowserIsCompatible()) {
var map = new GMap(document.getElementById("map"));
map.addControl(new GSmallMapControl());
//focus on Whitehouse
map.centerAndZoom(new GPoint(-77.004062, 38.893071), 4);
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