// Load markers for sightseeing
if (GBrowserIsCompatible()) {
	var aLocations = [];
	
	window.onload = function loadMap() {
		var map = new GMap2(document.getElementById("map"));

        var longitude = -86.699432;
        var latitude = 36.141421;
		
		// center map on default location
		map.addControl(new GSmallMapControl());
		map.setCenter(new GLatLng(latitude, longitude), 10);
		
		// default location
		var point = new GLatLng(latitude, longitude);	
		var title_main = 'Hotel Preston';
		var address_main = '733 Briley Parkway ';
		var city_main = 'Nashville';
		var state_main = 'Tennesseee';
		var zip_main = '37217';		
		var html = 	"<div class=\"bubble\"><h2>" + title_main + "</h2><p>" + address_main + 
						"<br \/>" + city_main + ", " + state_main + " " + zip_main + "<\/p><a href=\"http://maps.google.com/maps?f=q&amp;hl=en&amp;q=" + address_main + "+" + zip_main + "\" target=\"_blank\">Get Directions<\/a><\/div>";
	    marker = createMarker(point, html, 'custom');
	    aLocations.push( marker );
	    map.addOverlay(aLocations[aLocations.length-1]);
	    // open the hotel preston bubble on load
	    marker.openInfoWindowHtml(html);
		
		
		// Sightseeing markers
		
		var point = new GLatLng(36.102004,-86.817623);
		var title = 'Bluebird Caf&#233;';
		var address = '4104 Hillsboro Road';
		var city = 'Nashville';
		var state = 'Tennessee';
		var zip = '37215';				
		var html = 	"<div class=\"bubble\"><h2>" + title + "</h2><p>" + address + 
						"<br \/>" + city + ", " + state + " " + zip + "<\/p><a href=\"http://maps.google.com/maps?f=q&amp;hl=en&amp;q="+ address_main + "+" + zip_main + "+to+" + address + "+" + zip + "\" target=\"_blank\">Get Directions<\/a><\/div>";
		aLocations.push(createMarker(point, html, 1));
		map.addOverlay(aLocations[aLocations.length-1]);	
		
		var point = new GLatLng(36.158182,-86.776875);
		var title = 'Country Music Hall of Fame';
		var address = '222 Fifth Avenue South';
		var city = 'Nashville';
		var state = 'Tennessee';
		var zip = '37203';				
		var html = 	"<div class=\"bubble\"><h2>" + title + "</h2><p>" + address + 
						"<br \/>" + city + ", " + state + " " + zip + "<\/p><a href=\"http://maps.google.com/maps?f=q&amp;hl=en&amp;q="+ address_main + "+" + zip_main + "+to+" + address + "+" + zip + "\" target=\"_blank\">Get Directions<\/a><\/div>";
		aLocations.push(createMarker(point, html, 2));
		map.addOverlay(aLocations[aLocations.length-1]);		
		
		var point = new GLatLng(36.210641,-86.696645);
		var title = 'Grand Ole Opry';
		var address = '2802 Opryland Drive';
		var city = 'Nashville';
		var state = 'Tennessee';
		var zip = '37214';				
		var html = 	"<div class=\"bubble\"><h2>" + title + "</h2><p>" + address + 
						"<br \/>" + city + ", " + state + " " + zip + "<\/p><a href=\"http://maps.google.com/maps?f=q&amp;hl=en&amp;q="+ address_main + "+" + zip_main + "+to+" + address + "+" + zip + "\" target=\"_blank\">Get Directions<\/a><\/div>";
		aLocations.push(createMarker(point, html, 3));
		map.addOverlay(aLocations[aLocations.length-1]);
		
		var point = new GLatLng(36.148843,-86.809405);
		var title = 'Parthenon in Centennial Park';
		var address = '222 25th Ave N';
		var city = 'Nashville';
		var state = 'Tennessee';
		var zip = '37203';				
		var html = 	"<div class=\"bubble\"><h2>" + title + "</h2><p>" + address + 
						"<br \/>" + city + ", " + state + " " + zip + "<\/p><a href=\"http://maps.google.com/maps?f=q&amp;hl=en&amp;q="+ address_main + "+" + zip_main + "+to+" + address + "+" + zip + "\" target=\"_blank\">Get Directions<\/a><\/div>";
		aLocations.push(createMarker(point, html, 4));
		map.addOverlay(aLocations[aLocations.length-1]);
		
		var point = new GLatLng(36.142718,-86.807774);
		var title = 'Vanderbilt Stadium';
		var address = '2601 Jess Neely Drive';
		var city = 'Nashville';
		var state = 'Tennessee';
		var zip = '37212';				
		var html = 	"<div class=\"bubble\"><h2>" + title + "</h2><p>" + address + 
						"<br \/>" + city + ", " + state + " " + zip + "<\/p><a href=\"http://maps.google.com/maps?f=q&amp;hl=en&amp;q="+ address_main + "+" + zip_main + "+to+" + address + "+" + zip + "\" target=\"_blank\">Get Directions<\/a><\/div>";
		aLocations.push(createMarker(point, html, 5));
		map.addOverlay(aLocations[aLocations.length-1]);
		
		var point = new GLatLng(36.047503,-86.417513);
		var title = 'Nashville Superspeedway';
		var address = '4847-F McCrary Road';
		var city = 'Lebanon';
		var state = 'Tennessee';
		var zip = '37090';				
		var html = 	"<div class=\"bubble\"><h2>" + title + "</h2><p>" + address + 
						"<br \/>" + city + ", " + state + " " + zip + "<\/p><a href=\"http://maps.google.com/maps?f=q&amp;hl=en&amp;q="+ address_main + "+" + zip_main + "+to+" + address + "+" + zip + "\" target=\"_blank\">Get Directions<\/a><\/div>";
		aLocations.push(createMarker(point, html, 6));
		map.addOverlay(aLocations[aLocations.length-1]);
		
		var point = new GLatLng(36.041118,-86.60486);
		var title = 'Starwood Amphitheater';
		var address = '3839 Murfreesboro Road';
		var city = 'Antioch';
		var state = 'Tennessee';
		var zip = '37013';				
		var html = 	"<div class=\"bubble\"><h2>" + title + "</h2><p>" + address + 
						"<br \/>" + city + ", " + state + " " + zip + "<\/p><a href=\"http://maps.google.com/maps?f=q&amp;hl=en&amp;q="+ address_main + "+" + zip_main + "+to+" + address + "+" + zip + "\" target=\"_blank\">Get Directions<\/a><\/div>";
		aLocations.push(createMarker(point, html, 7));
		map.addOverlay(aLocations[aLocations.length-1]);				

		var point = new GLatLng(36.164154, -86.772073);
		var title = 'LP Field';
		var address = 'One Titans Way';
		var city = 'Nashville';
		var state = 'Tennessee';
		var zip = '37213';				
		var html = 	"<div class=\"bubble\"><h2>" + title + "</h2><p>" + address + 
						"<br \/>" + city + ", " + state + " " + zip + "<\/p><a href=\"http://maps.google.com/maps?f=q&amp;hl=en&amp;q="+ address_main + "+" + zip_main + "+to+" + address + "+" + zip + "\" target=\"_blank\">Get Directions<\/a><\/div>";
		aLocations.push(createMarker(point, html, 8));
		map.addOverlay(aLocations[aLocations.length-1]);				

	}
}