/*
var myIcon = new GIcon();
myIcon.image = "http://www.lawrencemountainbikeclub.org/img/Gmap_Icon.gif";
myIcon.shadow = "http://www.lawrencemountainbikeclub.org/img/Gmap_Icon_shadow.png";
myIcon.iconSize = new GSize(30, 35);
myIcon.shadowSize = new GSize(30, 24);
myIcon.iconAnchor = new GPoint(15, 35);
myIcon.infoWindowAnchor = new GPoint(5, 1);

function load( aryLatLong, aryElements ) {
	if (GBrowserIsCompatible()) {
		for(var i = 0; i < aryLatLong.length; i++) {
			createMap( aryLatLong[i], aryElements[i] );
		}
	}
}

function createMap( newLatLong, newElement ) {
	var map = new GMap2(document.getElementById(newElement));
	map.addControl(new GLargeMapControl());
	map.addControl(new GMapTypeControl());
	map.addControl(new GScaleControl());
	//map.setMapType(G_SATELLITE_MAP);

	//Downtown Lawrence, zoom level = 10 (13 -> streets visible)
	//var point = new GLatLng(38.96935, -95.23598);
	map.setCenter(newLatLong, ZoomLevel);

	//use my custom icon:
	markerOptions = { icon:myIcon };

	//Add a marker and an info window:
	var marker = new GMarker(newLatLong, markerOptions);
	map.addOverlay(marker);	

}
*/
function init(latlong) {
	var opts = {
		zoom: 16,
		center: latlong,
		mapTypeId: google.maps.MapTypeId.HYBRID
	};
	var map = new google.maps.Map(document.getElementById("map_div"), opts);
	
	var img = new google.maps.MarkerImage('img/mtb_wheel.png',
				new google.maps.Size(40, 45), // marker width, heigth
				new google.maps.Point(0,0), // The origin for this image is 0,0.
				new google.maps.Point(20, 45) ); // The anchor for this image is the base of the point (half width, full height).
    var marker = new google.maps.Marker({
				position: latlong,
				map: map,
				icon: img });
}

