// Load markers for shopping
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.250712, -122.439193);
		var title = 'Savi Day Spa';
		var address = '1320 Broadway Plaza';
		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.255321, -122.468855);
		var title = 'Red Line Clothing';
		var address = '2503 6th 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.246477, -122.436745);
		var title = 'BKB &amp; Company';
		var address = '1744 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.222659, -122.536882);
		var title = 'Cake Apparel &amp; Home';
		var address = '3838 Bridgeport Way W';
		var city = 'University Place';
		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 + "+" + city + ", " + state + " " + zip + "\" target=\"_blank\">Get Directions<\/a><\/div>";
		aLocations.push(createMarker(point, html, 4));
		map.addOverlay(aLocations[aLocations.length-1]);	
		
		var point = new GLatLng(47.246477, -122.436745);
		var title = 'Dragonfly';
		var address = '  1744 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, 5));
		map.addOverlay(aLocations[aLocations.length-1]);
		
		var point = new GLatLng(47.256097, -122.438793);
		var title = 'Ever After';
		var address = '821 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.271740, -122.488536);
		var title = 'The Pacific Northwest Shop';
		var address = '2702 N. Proctor';
		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 + "+" + 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.217692, -122.467149);
		var title = 'Tacoma Mall';
		var address = '4502 S. Steele';
		var city = 'Tacoma';
		var state = 'WA';
		var zip = '98409';							
		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.270711, -122.488512);
		var title = 'Proctor District';
		var address = '2601 N Proctor';
		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 + "+" + 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.256991, -122.440608);
		var title = 'Antique Row';
		var address = '743 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 + "+" + zip_main + "+to+" + address + "+" + zip + "\" target=\"_blank\">Get Directions<\/a><\/div>";
		aLocations.push(createMarker(point, html, 10));
		map.addOverlay(aLocations[aLocations.length-1]);				
	
		var point = new GLatLng(47.255321, -122.468855);
		var title = 'Posh Home';
		var address = '2502 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, 11));
		map.addOverlay(aLocations[aLocations.length-1]);
		
		var point = new GLatLng(47.263945, -122.447015);
		var title = 'Calla Lily';
		var address = '7 Tacoma Ave. N';
		var city = 'Tacoma';
		var state = 'WA';
		var zip = '98403';
		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, 12));
		map.addOverlay(aLocations[aLocations.length-1]);
	}
}