// Load markers for sightseeing
if (GBrowserIsCompatible()) {
	var aLocations = [];
	
	window.onload = function loadMap() {
		var map = new GMap2(document.getElementById("map"));
    var longitude = -122.439193;
		var latitude = 47.250712;
		
		// center map on default location
		map.addControl(new GSmallMapControl());
		map.setCenter(new GLatLng(latitude, longitude), 13);
		
		// default location
		var point = new GLatLng(latitude, longitude);	
		var title_main = 'Hotel Murano';
		/* NOTE!!! The main Google maps site currently can't find 'Broadway Plaza' but it can find 'Broadway',
		   so I'm leaving the string name alone here and chopping off the 'Plaza' part when we build the search link below. */
		var address_main = '1320 Broadway Plaza';
		var city_main = 'Tacoma';
		var state_main = 'Washington';
		var zip_main = '98402';					
		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.substring(0,13) + "+" + 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);
		
		
		// markers
		var point = new GLatLng(47.246221, -122.434234);
		var title = 'Museum of Glass';
		var address = '1801 Dock St';
		var city = 'Tacoma';
		var state = 'WA';
		var zip = '98402';				
		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.substring(0,13) + "+" + 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(47.246921, -122.436834);
		var title = 'Tacoma Art Museum';
		var address = '1701 Pacific Ave';
		var city = 'Tacoma';
		var state = 'WA';
		var zip = '98402';			
		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.substring(0,13) + "+" + 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(47.244815, -122.436414);
		var title = 'Washington State<br/> History Museum';
		var address = '1911 Pacific Ave';
		var city = 'Tacoma';
		var state = 'WA';
		var zip = '98402';			
		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.substring(0,13) + "+" + 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(47.300823, -122.515532);
		var title = 'Point Defiance Park';
		var address = '5400 N Pearl St';
		var city = 'Tacoma';
		var state = 'WA';
		var zip = '98407';			
		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.substring(0,13) + "+" + 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(47.255021, -122.440134);
		var title = 'The Broadway Center<br/> for the Performing Arts';
		var address = '901 Broadway';
		var city = 'Tacoma';
		var state = 'WA';
		var zip = '98402';				
		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.substring(0,13) + "+" + 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(47.200141, -122.568797);
		var title = 'Chambers Bay Golf Course';
		var address = '6320 Grandview Drive W';
		var city = 'University Place';
		var state = 'WA';
		var zip = '98467';				
		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.substring(0,13) + "+" + 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(47.594884, -122.33393);
		var title = 'Evergreen Escapes';
		var address = '900 1st Avenue South';
		var city = 'Seattle';
		var state = 'WA';
		var zip = '98134';			
		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.substring(0,13) + "+" + 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(47.315621, -122.426435);
		var title = 'Dash Point State Park';
		var address = '5700 SW Dash Point Rd';
		var city = 'Tacoma';
		var state = 'WA';
		var zip = '98023';			
		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.substring(0,13) + "+" + zip_main + "+to+" + address + "+" + zip + "\" target=\"_blank\">Get Directions<\/a><\/div>";
		aLocations.push(createMarker(point, html, 8));
		map.addOverlay(aLocations[aLocations.length-1]);		

		var point = new GLatLng(47.246607, -122.550782);
		var title = 'Titlow Beach &amp; Park';
		var address = '8425 6th Ave';
		var city = 'Tacoma';
		var state = 'WA';
		var zip = '98407';				
		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.substring(0,13) + "+" + zip_main + "+to+" + address + "+" + zip + "\" target=\"_blank\">Get Directions<\/a><\/div>";
		aLocations.push(createMarker(point, html, 9));
		map.addOverlay(aLocations[aLocations.length-1]);
		
		var point = new GLatLng(47.329309, -122.580724);
		var title = 'Town of Gig Harbor';
		var address = '';
		var city = 'Gig Harbor';
		var state = 'WA';
		var zip = '98335';				
		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.substring(0,13) + "+" + zip_main + "+to+" + address + "+" + zip + "\" target=\"_blank\">Get Directions<\/a><\/div>";
		aLocations.push(createMarker(point, html, 10));
		map.addOverlay(aLocations[aLocations.length-1]);
	}
}