// CFMX document that outputs all items to be listed on the tours map from the db.
//The Library of Congress
Library of Congress
Visit the web site
";
mapData[1] = [-77.005921, 38.887556, tour_1];
var tour_2 = "The White House
The White House
Visit the web site
";
mapData[2] = [-77.037223, 38.898563, tour_2];
var tour_3 = "The Supreme Court
The Supreme Court
Visit the web site
";
mapData[3] = [-77.005736, 38.889949, tour_3];
var tour_4 = "The Bureau of Engraving and Printing
Bureau of Engraving and Printing
Visit the web site
";
mapData[4] = [-77.0319000, 38.8860000, tour_4];
var tour_5 = "The Newseum
The Newseum
Visit the web site
";
mapData[5] = [-77.019218, 38.892772, tour_5];
var tour_6 = "The Capitol Building
The Capitol Building
Visit the web site
";
mapData[6] = [-77.013222, 38.913611, tour_6];
if (GBrowserIsCompatible()) {
var map = new GMap(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.centerAndZoom(new GPoint(-77.005905, 38.892012), 5);
function createMarker(point, string) {
var marker = new GMarker(point);
// Show this marker's 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