var map;

function makeMap() 
{
	map = new GMap(document.getElementById("map"));
	var main_Marker = new GPoint(-78.644181, 35.774748);
	map.addControl(new GSmallZoomControl());
	map.centerAndZoom(main_Marker, 2);
	
	var marker = createMarker(main_Marker, "<b>Bailey Dixon</b><br />434 Fayetteville Street, Suite 2500<br />Raleigh, North Carolina 27601", "NO");
	map.addOverlay(marker);
	
}

function createMarker(point, html) 
{
	var icon = new GIcon();
	icon.image = "../images/marker.gif";
	icon.shadow = "";
	icon.iconSize = new GSize(20, 34);
	icon.iconAnchor = new GPoint(6, 20);
	icon.infoWindowAnchor = new GPoint(5, 1);
	
	var marker = new GMarker(point, icon);
	//var marker = new GxMarker(point, icon, hover);
	
  GEvent.addListener(marker, "click", function() 
	{
    marker.openInfoWindowHtml(html);
  });
	
  return marker;
}
