function createMarker(point,html) {
        var marker = new GMarker(point);
        GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(html);
        });
        return marker;
      }

function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        map.setCenter(new GLatLng(48.845288, -121.758041), 11);
        map.setMapType(G_PHYSICAL_MAP);
        map.addControl(new GSmallMapControl()); 
		
				
		var point = new GLatLng(48.893915, -121.922595);
        var marker = createMarker(point,'<img src="http://mtbakerconnection.com/wp-content/themes/fluidity/fluidity/images/snowline-mt-baker.jpg" width=100 height=75> <a href="http://www.mtbakerconnection.com/real-estate/snowline-community-club/">Snowline Community Club</a><br>Gated Community with pool, club house, river access, tennis courts, and more.')
        map.addOverlay(marker);

		var point = new GLatLng(48.884557, -121.923654);
        var marker = createMarker(point,'<img src="http://mtbakerconnection.com/wp-content/themes/fluidity/fluidity/images/mt-baker-rim.jpg" width=47 height=100> The Mount Baker Rim<br>Gated Community with pool, club house, river access, tennis courts, and more.')
        map.addOverlay(marker);

		var point = new GLatLng(48.888713,-121.940102);
        var marker = createMarker(point,'Mt Baker Ranger Service')
        map.addOverlay(marker);

		var point = new GLatLng(48.864000,-121.663500);
        var marker = createMarker(point,'<img src="http://mtbakerconnection.com/wp-content/themes/fluidity/fluidity/images/mt-baker-ski-area.jpg" width=100 height=65> Mt Baker Ski Area<br>White Salmon Day Lodge')
        map.addOverlay(marker);
	
		var point = new GLatLng(48.861500,-121.678500);
        var marker = createMarker(point,'<img src="http://mtbakerconnection.com/wp-content/themes/fluidity/fluidity/images/mt-baker-ski-area.jpg" width=100 height=65> Mt Baker Ski Area<br>Heather Meadows Lodge')
        map.addOverlay(marker);

		var point = new GLatLng(48.853000,-121.678500);
        var marker = createMarker(point,'<img src="http://mtbakerconnection.com/wp-content/themes/fluidity/fluidity/images/panarama-dome.jpg" width=100 height=69> Mount Baker Backcountry<br>Panorama Dome')
        map.addOverlay(marker);

		var point = new GLatLng(48.848500,-121.702000);
        var marker = createMarker(point,'<img src="http://mtbakerconnection.com/wp-content/themes/fluidity/fluidity/images/mt-baker-ski-area.jpg" width=100 height=65> Mount Baker Backcountry<br>Table Mountain')
        map.addOverlay(marker);

		

	
        }
    }


