// Load markers for restaurants
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 + "+" + 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.250712,-122.439193);
		var title = 'Bite';
		var address = '1320 Broadway Plaza';
		var city = 'Tacoma';
		var state = 'WA';
		var zip = '98402';
		var bite = '(Located in the Hotel Murano)'			
		var html = 	"<div class=\"bubble\"><h2>" + title + "</h2><p>" + address + 
						"<br \/>" + city + ", " + state + " " + zip + "<br \/><\/p>" + bite + "<\/div>";
		aLocations.push(createMarker(point, html, 1));
		map.addOverlay(aLocations[aLocations.length-1]);		
		
		var point = new GLatLng(47.242619,-122.435979);
		var title = 'El Gaucho';
		var address = '2119 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 + "+" + 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.248979,-122.437324);
		var title = 'Pacific Grill';
		var address = '1502 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 + "+" + 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.279753,-122.476081);
		var title = 'C.I. Shenanigan\'s';
		var address = '3017 Ruston Way';
		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 + "+" + 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.247110,-122.437641);
		var title = 'TWOKOI';
		var address = '1552 Jefferson Ave Suite 100';
		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 + "+" + 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.244666,-122.436386);
		var title = 'Indochine';
		var address = '1924 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 + "+" + 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.256878,-122.438993);
		var title = 'Matador';
		var address = '721 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 + "+" + 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.255311, -122.472347);
		var title = 'Asado';
		var address = '2810 6th Ave';
		var city = 'Tacoma';
		var state = 'WA';
		var zip = '98406';				
		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]);
		
				var point = new GLatLng(47.260126,-122.435074);
		var title = 'Mad Hat Tea Company';
		var address = '1130 Commerce Street';
		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 + "+" + zip_main + "+to+" + address + "+" + zip + "\" target=\"_blank\">Get Directions<\/a><\/div>";
		aLocations.push(createMarker(point, html, 9));
		map.addOverlay(aLocations[aLocations.length-1]);
	}
}