// Load markers for shopping
if (GBrowserIsCompatible()) {
	var aLocations = [];
	
	window.onload = function loadMap() {
		var map = new GMap2(document.getElementById("map"));

        var latitude = 47.613931;
        var longitude = -122.337087;
		
		// 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 Max';
		var address_main = '620 Stewart St';
		var city_main = 'Seattle';
		var state_main = 'Washington';
		var zip_main = '98101';			
		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);
		
		
		// restaurant markers
		
		var point = new GLatLng(47.608767,-122.341175);
		var title = 'Pike Place Market';
		var address = '1501 Pike Place';
		var city = 'Seattle';
		var state = 'Washington';
		var zip = '98101';				
		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(47.612239,-122.33536);
		var title = 'Pacific Place';
		var address = '600 Pine St';
		var city = 'Seattle';
		var state = 'Washington';
		var zip = '98101';				
		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.611957,-122.337227);
		var title = 'Westlake Center';
		var address = '400 Pine Street';
		var city = 'Seattle';
		var state = 'Washington';
		var zip = '98101';				
		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.600101,-122.334051);
		var title = 'Elliot Bay';
		var address = '101 South Main Street';
		var city = 'Seattle';
		var state = 'Washington';
		var zip = '98104';				
		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.611791,-122.336476);
		var title = 'Nordstrom';
		var address = '500 Pine Street';
		var city = 'Seattle';
		var state = 'Washington';
		var zip = '98101';				
		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]);			
	}
}