var longitude = null;
var latitude = null;

Event.observe 
(
 	window,
	'load',
	function ()
	{
		var map = new GMap (document.getElementById ('search-results-map'));
		
		map.addControl (new GLargeMapControl ());
		map.addControl (new GMapTypeControl ());
		
		Lat49App.init (map);
		
		if (longitude && latitude)
		{
			var centerPoint = new GLatLng (latitude, longitude);
			var icon = new GIcon ();
			
			icon.shadow = 'http://www.google.com/mapfiles/shadow50.png';
			icon.iconSize = new GSize (20, 34);
			icon.shadowSize = new GSize (37, 34);
			icon.iconAnchor = new GPoint (9, 34);
			icon.infoWindowAnchor = new GPoint (9, 2);
			icon.infoShadowAnchor = new GPoint (18, 25);
			icon.image = "http://www.google.com/mapfiles/markerA.png";	
			
			map.setCenter (centerPoint, 17);
			
			homeMarker = new GMarker (centerPoint, icon);
		
			map.addOverlay (homeMarker);
		}
	}
);