// Create a base icon for all of our markers that specifies the shadow, icon dimensions, etc.
var baseIcon = new GIcon();
baseIcon.shadow = "/img/shadow50.png";
baseIcon.iconSize = new GSize(12, 18);
baseIcon.shadowSize = new GSize(15, 20);
baseIcon.iconAnchor = new GPoint(9, 25);
baseIcon.infoWindowAnchor = new GPoint(9, 2);
baseIcon.infoShadowAnchor = new GPoint(18, 25);
function LatLong(map,Lat,Long,Company,Address,City){x++
	point = new GLatLng(Lat,Long);
	marker = createMarker(point,x,Company,Address,City);
	map.addOverlay(marker);
}
function loadMap(){
	var map = new GMap2(GetObj("map"));
	map.addControl(new GLargeMapControl());
	map.setCenter(new GLatLng(39.98, -83.0166), (17-6)); // zoom setting:0 widest, 17 closest
	var point;
	var marker;
	map_points(map);
}
// Create a marker
function createMarker(point, index,Company,Address,City) {
	var icon = new GIcon(baseIcon);
	icon.image = "/img/green_circle.png"
	var marker = new GMarker(point, icon);
	if(Company != ""){
	  var html = "<b class=green>" + Company + "</b><br>"+ Address +"";
	  GEvent.addListener(marker,'click',function(){marker.openInfoWindowHtml(html);});
	}
	return marker;
}
loadMap()
/*
function createMarker(point, index, name, address) {
	var letter = String.fromCharCode("A".charCodeAt(0) + index - 1);
	//var letter = index;
	var icon = new GIcon(baseIcon);
	//icon.image = "http://maps.google.com/mapfiles/mappointer/" + letter + ".png"; 
	//icon.image = "http://maps.google.com/mapfiles/marker.png"; //marker" + letter + ".png"
	icon.image = "/img/green_circle.png"
	var marker = new GMarker(point, icon);
	
	// Show this marker's index in the info window when it is clicked.
	//var html = "<div style='width: 190px; height: 57px'><p class='maplocationtitle'>" + name + "</p><p class='maplocationtext'>" + address + "</p></div>";
	//var html = "<DIV style='width:10px;height:10px'></DIV>";
	//GEvent.addListener(marker,'click',function(){marker.openInfoWindowHtml(html);});
	return marker;
}
*/