// Google Map - Places to See
var aLocations = new Array(); 

function loadMap() {
    
	if (GBrowserIsCompatible()) {
		
		// Display the map, with some controls and set the start location
		var map = new GMap(document.getElementById("map"));
		var longitude = -122.686921;
		var latitude = 45.521040;
		var point = new GPoint(longitude, latitude);
		map.addControl(new GSmallMapControl());
		map.centerAndZoom(point, 3);			
			
			
		// Load Markers
		
		// start location
		var point = new GPoint(longitude, latitude);
		var title_main = 'Hotel deLuxe';
		var address_main = '729 SW 15th Avenue';
		var city_main = 'Portland';
		var state_main = 'Oregon';
		var zip_main = '97205';				
		var html = 	"<div style='width: 13em;'><h2>" + title_main + "</h2><p>" + address_main + 
						"<br \/>" + city_main + ", " + state_main + " " + zip_main + "<\/p><a href='http://maps.google.com/maps?f=q&hl=en&q=" + address_main + "+" + zip_main + "' target='_blank'>Get Directions<\/a><\/div>";				
		aLocations.push(createMarkerWithMsg(point, html, 'custom'));
		map.addOverlay(aLocations[aLocations.length-1]);
		//aLocations[0].openInfoWindowHtml(html);
						
		
		// load markers for all attractions
		var point = new GPoint(-122.677207,	45.518640);
		var title = 'Pioneer Place';
		var address = '700 SW 5th Avenue';
		var city = 'Portland';
		var state = 'Oregon';
		var zip = '97204';				
		var html = 	"<div style='width: 13em;'><h2>" + title + "</h2><p>" + address + 
						"<br \/>" + city + ", " + state + " " + zip + "<\/p><a href='http://maps.google.com/maps?f=q&hl=en&q="+ address_main + "+" + zip_main + "+to+" + address + "+" + zip + "' target='_blank'>Get Directions<\/a><\/div>";
		aLocations.push(createMarkerWithMsg(point, html, 1));
		map.addOverlay(aLocations[aLocations.length-1]);	
		
		var point = new GPoint(-122.679207,	45.519140);
		var title = 'Nordstrom';
		var address = '701 SW Broadway';
		var city = 'Portland';
		var state = 'Oregon';
		var zip = '97205';				
		var html = 	"<div style='width: 13em;'><h2>" + title + "</h2><p>" + address + 
						"<br \/>" + city + ", " + state + " " + zip + "<\/p><a href='http://maps.google.com/maps?f=q&hl=en&q="+ address_main + "+" + zip_main + "+to+" + address + "+" + zip + "' target='_blank'>Get Directions<\/a><\/div>";
		aLocations.push(createMarkerWithMsg(point, html, 2));
		map.addOverlay(aLocations[aLocations.length-1]);	
		
		
		var point = new GPoint(-122.676889,	45.519197);
		var title = 'Macy\'s';
		var address = '621 SW 5th Avenue';
		var city = 'Portland';
		var state = 'Oregon';
		var zip = '97205';				
		var html = 	"<div style='width: 13em;'><h2>" + title + "</h2><p>" + address + 
						"<br \/>" + city + ", " + state + " " + zip + "<\/p><a href='http://maps.google.com/maps?f=q&hl=en&q="+ address_main + "+" + zip_main + "+to+" + address + "+" + zip + "' target='_blank'>Get Directions<\/a><\/div>";
		aLocations.push(createMarkerWithMsg(point, html, 3));
		map.addOverlay(aLocations[aLocations.length-1]);									
	
	
		var point = new GPoint(-122.677760, 45.517634);
		var title = 'Saks Fifth Avenue';
		var address = '850 SW 5th Avenue';
		var city = 'Portland';
		var state = 'Oregon';
		var zip = '97204';
		var html = 	"<div style='width: 13em;'><h2>" + title + "</h2><p>" + address + 
						"<br \/>" + city + ", " + state + " " + zip + "<\/p><a href='http://maps.google.com/maps?f=q&hl=en&q="+ address_main + "+" + zip_main + "+to+" + address + "+" + zip + "' target='_blank'>Get Directions<\/a><\/div>";
		aLocations.push(createMarkerWithMsg(point, html, 4));
		map.addOverlay(aLocations[aLocations.length-1]);				
		
		
		var point = new GPoint(-122.679948,	45.517779);
		var title = 'Columbia Sportswear';
		var address = '911 SW Broadway';
		var city = 'Portland';
		var state = 'Oregon';
		var zip = '97205';
		var html = 	"<div style='width: 13em;'><h2>" + title + "</h2><p>" + address + 
						"<br \/>" + city + ", " + state + " " + zip + "<\/p><a href='http://maps.google.com/maps?f=q&hl=en&q="+ address_main + "+" + zip_main + "+to+" + address + "+" + zip + "' target='_blank'>Get Directions<\/a><\/div>";
		aLocations.push(createMarkerWithMsg(point, html, 5));
		map.addOverlay(aLocations[aLocations.length-1]);
		
		
		var point = new GPoint(-122.680849,	45.522840);
		var title = 'Powell&prime;s Books';
		var address = '1005 W Burnside'
		var city = 'Portland';
		var state = 'Oregon';
		var zip = '97209';				
		var html = 	"<div style='width: 13em;'><h2>" + title + "</h2><p>" + address + 
						"<br \/>" + city + ", " + state + " " + zip + "<\/p><a href='http://maps.google.com/maps?f=q&hl=en&q="+ address_main + "+" + zip_main + "+to+" + address + "+" + zip + "' target='_blank'>Get Directions<\/a><\/div>";
		aLocations.push(createMarkerWithMsg(point, html, 6));
		map.addOverlay(aLocations[aLocations.length-1]);
		
		
		var point = new GPoint(-122.682036,	45.523540);
		var title = 'Anthropologie';
		var address = '1115 NW Couch Street';
		var city = 'Portland';
		var state = 'Oregon';
		var zip = '97209';				
		var html = 	"<div style='width: 13em;'><h2>" + title + "</h2><p>" + address + 
						"<br \/>" + city + ", " + state + " " + zip + "<\/p><a href='http://maps.google.com/maps?f=q&hl=en&q="+ address_main + "+" + zip_main + "+to+" + address + "+" + zip + "' target='_blank'>Get Directions<\/a><\/div>";
		aLocations.push(createMarkerWithMsg(point, html, 7));
		map.addOverlay(aLocations[aLocations.length-1]);
		
		
		var point = new GPoint(-122.681295,	45.523540);
		var title = 'Adidas';
		var address = '1039 NW Couch Street';
		var city = 'Portland';
		var state = 'Oregon';
		var zip = '97209';				
		var html = 	"<div style='width: 13em;'><h2>" + title + "</h2><p>" + address + 
						"<br \/>" + city + ", " + state + " " + zip + "<\/p><a href='http://maps.google.com/maps?f=q&hl=en&q="+ address_main + "+" + zip_main + "+to+" + address + "+" + zip + "' target='_blank'>Get Directions<\/a><\/div>";
		aLocations.push(createMarkerWithMsg(point, html, 8));
		map.addOverlay(aLocations[aLocations.length-1]);	
		
		
		var point = new GPoint(-122.678989,	45.517497);
		var title = 'Niketown';
		var address = '920 SW 6th Avenue';
		var city = 'Portland';
		var state = 'Oregon';
		var zip = '97204';				
		var html = 	"<div style='width: 13em;'><h2>" + title + "</h2><p>" + address + 
						"<br \/>" + city + ", " + state + " " + zip + "<\/p><a href='http://maps.google.com/maps?f=q&hl=en&q="+ address_main + "+" + zip_main + "+to+" + address + "+" + zip + "' target='_blank'>Get Directions<\/a><\/div>";
		aLocations.push(createMarkerWithMsg(point, html, 9));
		map.addOverlay(aLocations[aLocations.length-1]);
		
		
		var point = new GPoint(-122.677207, 45.518640);
		var title = 'Louis Vuitton';
		var address = '700 SW 5th Avenue';
		var city = 'Portland';
		var state = 'Oregon';
		var zip = '97204';
		var html = 	"<div style='width: 13em;'><h2>" + title + "</h2><p>" + address + 
						"<br \/>" + city + ", " + state + " " + zip + "<\/p><a href='http://maps.google.com/maps?f=q&hl=en&q="+ address_main + "+" + zip_main + "+to+" + address + "+" + zip + "' target='_blank'>Get Directions<\/a><\/div>";
		aLocations.push(createMarkerWithMsg(point, html, 10));
		map.addOverlay(aLocations[aLocations.length-1]);
		
		
		var point = new GPoint(-122.681180,	45.525820);
		var title = 'Pearl District';
		var address = 'NW Flanders St &amp; NW 10th Ave';
		var city = 'Portland';
		var state = 'Oregon';
		var zip = '97205';				
		var html = 	"<div style='width: 13em;'><h2>" + title + "</h2><p>" + address + 
						"<br \/>" + city + ", " + state + " " + zip + "<\/p><a href='http://maps.google.com/maps?f=q&hl=en&q="+ address_main + "+" + zip_main + "+to+" + address + "+" + zip + "' target='_blank'>Get Directions<\/a><\/div>";
		aLocations.push(createMarkerWithMsg(point, html, 11));
		map.addOverlay(aLocations[aLocations.length-1]);
		
		
		var point = new GPoint(-122.698480,	45.526240);
		var title = 'Nob Hill / NW 23rd';
		var address = 'NW Glisan St &amp; NW 23rd Ave';
		var city = 'Portland';
		var state = 'Oregon';
		var zip = '97209';				
		var html = 	"<div style='width: 13em;'><h2>" + title + "</h2><p>" + address + 
						"<br \/>" + city + ", " + state + " " + zip + "<\/p><a href='http://maps.google.com/maps?f=q&hl=en&q="+ address_main + "+" + zip_main + "+to+" + address + "+" + zip + "' target='_blank'>Get Directions<\/a><\/div>";
		aLocations.push(createMarkerWithMsg(point, html, 12));
		map.addOverlay(aLocations[aLocations.length-1]);
																																																																						
	}
}

loadMap(); 
