	var reefShopArray = Array();
	var map;
	// initialize the center point with a random value
	var centerPoint = new GLatLng(40.078071,-101.689453);
	var bounds = new GLatLngBounds();

	function doLoad() {
		if( GBrowserIsCompatible() ) {
			map = new GMap2(document.getElementById("map"));
			map.setCenter(centerPoint, 7);
			map.addControl(new GSmallMapControl());
		}
	}

	/*
	 * Processes an array that should be 7 in length:
	 * 0, 1 are the latitude, longitude
	 * 2 is the name, 3 is the ID, 4 is the PHONE, 5 is the ADDR1, 6 is the CITY
	 */
	function addReefShopMarkers() {
		if( reefShopArray.length > 0 ) {
			for( n = 0; n < reefShopArray.length ; n++ ) {
				var mData = reefShopArray[n].split(';');
				var point = new GLatLng( mData[0], mData[1] );

				bounds.extend(point);

				//				             name      id        phone     addr1     city
				var marker = createReefShopMarker( point, mData[2], mData[3], mData[4], mData[5], mData[6] );
				map.addOverlay(marker);
			}

			map.setCenter(bounds.getCenter(), map.getBoundsZoomLevel(bounds)); 
		}
	}

	function createReefShopMarker( point, name, id, phone, addr1, city ) {
		var icon = new GIcon();

		icon.image = "http://www.fellowshipofthereef.com/images/red.png";
		icon.iconSize = new GSize( 12, 20 );
		icon.iconAnchor = new GPoint( 6, 20 );
		icon.infoWindowAnchor = new GPoint( 6, 20 );

		var latlng = new GLatLng( point.y, point.x );
		var marker = new GMarker(point,{title:name,icon:icon});

		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml('<div style="width:250px;">' + name + '<hr><br />' + 
				phone + '<br />' + addr1 + '<br />' + city + '<br /><br />' + 
				'Shop Info:<a href="http://www.fellowshipofthereef.com/lfs/reefShopSearch.php?id=' + id + 
				'">Click Here!</a></div>');
		});

		return marker;
	}
