//<![CDATA[
var points = [];
var markers = [];
var counter = 0;
var icon = [];
icon[0] = new GIcon();
icon[0].image = "http://www.americanhomeguides.com/apps/googlemaps/images/mm_20_red.png";
icon[0].shadow = "http://www.americanhomeguides.com/apps/googlemaps/images/mm_20_shadow.png";
icon[0].shadowSize = new GSize(22,20);
icon[0].iconSize = new GSize(12,20);
icon[0].iconAnchor = new GPoint(0,0);
icon[0].infoWindowAnchor = new GPoint(10,10);
var map = null;
function onLoad() {
if (GBrowserIsCompatible()) {
var mapObj = document.getElementById("map");
if (mapObj != "undefined" && mapObj != null) {
map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(40.401172, -82.657062), 10, G_NORMAL_MAP);
var bds = new GLatLngBounds(new GLatLng(39.05045944, -84.49294164), new GLatLng(41.75188456, -80.82118236));
map.setZoom(map.getBoundsZoomLevel(bds));
map.addControl(new GSmallMapControl());
var point = new GLatLng(40.099167,-83.114167);
var marker = createMarker(point,"Dublin","http://www.americanhomeguides.com/homes/new_communities/ohio/dublin.html", 0);
map.addOverlay(marker);
var point = new GLatLng(39.881389,-83.093056);
var marker = createMarker(point,"Grove City","http://www.americanhomeguides.com/homes/new_communities/ohio/grove_city.html", 1);
map.addOverlay(marker);
var point = new GLatLng(40.081111,-82.808889);
var marker = createMarker(point,"New Albany","http://www.americanhomeguides.com/homes/new_communities/ohio/new_albany.html", 2);
map.addOverlay(marker);
var point = new GLatLng(39.995556,-82.674444);
var marker = createMarker(point,"Pataskala","http://www.americanhomeguides.com/homes/new_communities/ohio/pataskala.html", 3);
map.addOverlay(marker);
var point = new GLatLng(39.960929,-84.189387);
var marker = createMarker(point,"Tipp City","http://www.americanhomeguides.com/homes/new_communities/ohio/tipp_city.html", 4);
map.addOverlay(marker);
var point = new GLatLng(39.897196,-84.134759);
var marker = createMarker(point,"Phoneton","http://www.americanhomeguides.com/homes/new_communities/ohio/phoneton.html", 5);
map.addOverlay(marker);
var point = new GLatLng(39.552222,-84.233333);
var marker = createMarker(point,"Springboro","http://www.americanhomeguides.com/homes/new_communities/ohio/springboro.html", 6);
map.addOverlay(marker);
var point = new GLatLng(40.144722,-84.2425);
var marker = createMarker(point,"Piqua","http://www.americanhomeguides.com/homes/new_communities/ohio/piqua.html", 7);
map.addOverlay(marker);
var point = new GLatLng(40.2425,-82.859167);
var marker = createMarker(point,"Sunbury","http://www.americanhomeguides.com/homes/new_communities/ohio/sunbury.html", 8);
map.addOverlay(marker);
var point = new GLatLng(39.961111,-82.998889);
var marker = createMarker(point,"Columbus","http://www.americanhomeguides.com/homes/new_communities/ohio/columbus.html", 9);
map.addOverlay(marker);
var point = new GLatLng(40.126111,-82.929167);
var marker = createMarker(point,"Westerville","http://www.americanhomeguides.com/homes/new_communities/ohio/westerville.html", 10);
map.addOverlay(marker);
var point = new GLatLng(40.033333,-83.158333);
var marker = createMarker(point,"Hilliard","http://www.americanhomeguides.com/homes/new_communities/ohio/hilliard.html", 11);
map.addOverlay(marker);
var point = new GLatLng(39.809167,-82.9725);
var marker = createMarker(point,"Lockbourne","http://www.americanhomeguides.com/homes/new_communities/ohio/lockbourne.html", 12);
map.addOverlay(marker);
var point = new GLatLng(39.713611,-82.599444);
var marker = createMarker(point,"Lancaster","http://www.americanhomeguides.com/homes/new_communities/ohio/lancaster.html", 13);
map.addOverlay(marker);
var point = new GLatLng(39.995556,-82.811389);
var marker = createMarker(point,"Blacklick","http://www.americanhomeguides.com/homes/new_communities/ohio/blacklick.html", 14);
map.addOverlay(marker);
var point = new GLatLng(40.215,-82.88);
var marker = createMarker(point,"Galena","http://www.americanhomeguides.com/homes/new_communities/ohio/galena.html", 15);
map.addOverlay(marker);
var point = new GLatLng(40.198333,-83.010278);
var marker = createMarker(point,"Lewis Center","http://www.americanhomeguides.com/homes/new_communities/ohio/lewis_center.html", 16);
map.addOverlay(marker);
var point = new GLatLng(39.845833,-82.811667);
var marker = createMarker(point,"Canal Winchester","http://www.americanhomeguides.com/homes/new_communities/ohio/canal_winchester.html", 17);
map.addOverlay(marker);
var point = new GLatLng(41.370278,-82.045278);
var marker = createMarker(point,"North Ridgeville","http://www.americanhomeguides.com/homes/new_communities/ohio/north_ridgeville.html", 18);
map.addOverlay(marker);
var point = new GLatLng(41.321346,-81.452711);
var marker = createMarker(point,"Twinsburg","http://www.americanhomeguides.com/homes/new_communities/ohio/twinsburg.html", 19);
map.addOverlay(marker);
var point = new GLatLng(41.451667,-82.035556);
var marker = createMarker(point,"Avon","http://www.americanhomeguides.com/homes/new_communities/ohio/avon.html", 20);
map.addOverlay(marker);
var point = new GLatLng(41.23827,-81.83965);
var marker = createMarker(point,"Brunswick","http://www.americanhomeguides.com/homes/new_communities/ohio/brunswick.html", 21);
map.addOverlay(marker);
var point = new GLatLng(41.14032,-81.86402);
var marker = createMarker(point,"Medina","http://www.americanhomeguides.com/homes/new_communities/ohio/medina.html", 22);
map.addOverlay(marker);
var point = new GLatLng(41.372362,-81.865127);
var marker = createMarker(point,"Berea","http://www.americanhomeguides.com/homes/new_communities/ohio/berea.html", 23);
map.addOverlay(marker);
var point = new GLatLng(41.026641,-81.729649);
var marker = createMarker(point,"Wadsworth","http://www.americanhomeguides.com/homes/new_communities/ohio/wadsworth.html", 24);
map.addOverlay(marker);
var point = new GLatLng(41.313611,-81.508611);
var marker = createMarker(point,"Macedonia","http://www.americanhomeguides.com/homes/new_communities/ohio/macedonia.html", 25);
map.addOverlay(marker);
var point = new GLatLng(41.3175,-81.345556);
var marker = createMarker(point,"Aurora","http://www.americanhomeguides.com/homes/new_communities/ohio/aurora.html", 26);
map.addOverlay(marker);
var point = new GLatLng(41.081389,-81.519167);
var marker = createMarker(point,"Akron","http://www.americanhomeguides.com/homes/new_communities/ohio/akron.html", 27);
map.addOverlay(marker);
var point = new GLatLng(41.46819,-82.17814);
var marker = createMarker(point,"Lorain","http://www.americanhomeguides.com/homes/new_communities/ohio/lorain.html", 28);
map.addOverlay(marker);
var point = new GLatLng(41.166441,-81.536858);
var marker = createMarker(point,"Cuyahoga Falls","http://www.americanhomeguides.com/homes/new_communities/ohio/cuyahoga_falls.html", 29);
map.addOverlay(marker);
var point = new GLatLng(41.151194,-81.362714);
var marker = createMarker(point,"Kent","http://www.americanhomeguides.com/homes/new_communities/ohio/kent.html", 30);
map.addOverlay(marker);
var point = new GLatLng(40.875881,-81.402201);
var marker = createMarker(point,"N Canton","http://www.americanhomeguides.com/homes/new_communities/ohio/n_canton.html", 31);
map.addOverlay(marker);
var point = new GLatLng(41.012778,-81.605278);
var marker = createMarker(point,"Barberton","http://www.americanhomeguides.com/homes/new_communities/ohio/barberton.html", 32);
map.addOverlay(marker);
var point = new GLatLng(41.099276,-81.645584);
var marker = createMarker(point,"Copley","http://www.americanhomeguides.com/homes/new_communities/ohio/copley.html", 33);
map.addOverlay(marker);
var point = new GLatLng(41.7254,-81.248392);
var marker = createMarker(point,"Painesville","http://www.americanhomeguides.com/homes/new_communities/ohio/painesville.html", 34);
map.addOverlay(marker);
var point = new GLatLng(41.229456,-81.637928);
var marker = createMarker(point,"Richfield","http://www.americanhomeguides.com/homes/new_communities/ohio/richfield.html", 35);
map.addOverlay(marker);
var point = new GLatLng(40.975,-81.408333);
var marker = createMarker(point,"Uniontown","http://www.americanhomeguides.com/homes/new_communities/ohio/uniontown.html", 36);
map.addOverlay(marker);
var point = new GLatLng(39.719835,-84.172503);
var marker = createMarker(point,"Oakwood Village","http://www.americanhomeguides.com/homes/new_communities/ohio/oakwood_village.html", 37);
map.addOverlay(marker);
var point = new GLatLng(41.646886,-81.406444);
var marker = createMarker(point,"Willoughby","http://www.americanhomeguides.com/homes/new_communities/ohio/willoughby.html", 38);
map.addOverlay(marker);
var point = new GLatLng(41.559767,-81.496978);
var marker = createMarker(point,"Richmond Heights","http://www.americanhomeguides.com/homes/new_communities/ohio/richmond_heights.html", 39);
map.addOverlay(marker);
var point = new GLatLng(40.433889,-83.0725);
var marker = createMarker(point,"Norton","http://www.americanhomeguides.com/homes/new_communities/ohio/norton.html", 40);
map.addOverlay(marker);
var point = new GLatLng(41.239167,-81.346111);
var marker = createMarker(point,"Streetsboro","http://www.americanhomeguides.com/homes/new_communities/ohio/streetsboro.html", 41);
map.addOverlay(marker);
var point = new GLatLng(40.80343,-82.19528);
var marker = createMarker(point,"Jeromesville","http://www.americanhomeguides.com/homes/new_communities/ohio/jeromesville.html", 42);
map.addOverlay(marker);
var point = new GLatLng(41.13232,-80.85718);
var marker = createMarker(point,"North Jackson","http://www.americanhomeguides.com/homes/new_communities/ohio/north_jackson.html", 43);
map.addOverlay(marker);
var point = new GLatLng(41.24,-83.643333);
var marker = createMarker(point,"Cygnet","http://www.americanhomeguides.com/homes/new_communities/ohio/cygnet.html", 44);
map.addOverlay(marker);
var point = new GLatLng(40.27876,-81.59167);
var marker = createMarker(point,"Newcomerstown","http://www.americanhomeguides.com/homes/new_communities/ohio/newcomerstown.html", 45);
map.addOverlay(marker);
var point = new GLatLng(41.1575,-81.242222);
var marker = createMarker(point,"Ravenna","http://www.americanhomeguides.com/homes/new_communities/ohio/ravenna.html", 46);
map.addOverlay(marker);
var point = new GLatLng(41.296017,-82.609144);
var marker = createMarker(point,"Milan","http://www.americanhomeguides.com/homes/new_communities/ohio/milan.html", 47);
map.addOverlay(marker);
var point = new GLatLng(39.820833,-84.019444);
var marker = createMarker(point,"Fairborn","http://www.americanhomeguides.com/homes/new_communities/ohio/fairborn.html", 48);
map.addOverlay(marker);
var point = new GLatLng(39.758889,-84.191667);
var marker = createMarker(point,"Dayton","http://www.americanhomeguides.com/homes/new_communities/ohio/dayton.html", 49);
map.addOverlay(marker);
var point = new GLatLng(39.354444,-84.127222);
var marker = createMarker(point,"Morrow","http://www.americanhomeguides.com/homes/new_communities/ohio/morrow.html", 50);
map.addOverlay(marker);
var point = new GLatLng(39.23045,-84.1636);
var marker = createMarker(point,"Goshen","http://www.americanhomeguides.com/homes/new_communities/ohio/goshen.html", 51);
map.addOverlay(marker);
var point = new GLatLng(39.435278,-84.203056);
var marker = createMarker(point,"Lebanon","http://www.americanhomeguides.com/homes/new_communities/ohio/lebanon.html", 52);
map.addOverlay(marker);
var point = new GLatLng(39.2080462,-83.6135572);
var marker = createMarker(point,"Liberty Township","http://www.americanhomeguides.com/homes/new_communities/ohio/liberty_township.html", 53);
map.addOverlay(marker);
var point = new GLatLng(39.642778,-84.286667);
var marker = createMarker(point,"Miamisburg","http://www.americanhomeguides.com/homes/new_communities/ohio/miamisburg.html", 54);
map.addOverlay(marker);
var point = new GLatLng(39.72679,-84.05727);
var marker = createMarker(point,"Beavercreek","http://www.americanhomeguides.com/homes/new_communities/ohio/beavercreek.html", 55);
map.addOverlay(marker);
var point = new GLatLng(39.696426,-84.153709);
var marker = createMarker(point,"Kettering","http://www.americanhomeguides.com/homes/new_communities/ohio/kettering.html", 56);
map.addOverlay(marker);
var point = new GLatLng(39.643569,-84.141391);
var marker = createMarker(point,"Centerville","http://www.americanhomeguides.com/homes/new_communities/ohio/centerville.html", 57);
map.addOverlay(marker);
var point = new GLatLng(39.076944,-84.176944);
var marker = createMarker(point,"Batavia","http://www.americanhomeguides.com/homes/new_communities/ohio/batavia.html", 58);
map.addOverlay(marker);
var point = new GLatLng(39.315,-84.220833);
var marker = createMarker(point,"Maineville","http://www.americanhomeguides.com/homes/new_communities/ohio/maineville.html", 59);
map.addOverlay(marker);
var point = new GLatLng(39.161944,-84.456944);
var marker = createMarker(point,"Cincinnati","http://www.americanhomeguides.com/homes/new_communities/ohio/cincinnati.html", 60);
map.addOverlay(marker);
var point = new GLatLng(39.175278,-84.294444);
var marker = createMarker(point,"Milford","http://www.americanhomeguides.com/homes/new_communities/ohio/milford.html", 61);
map.addOverlay(marker);
var point = new GLatLng(39.515,-84.398333);
var marker = createMarker(point,"Middletown","http://www.americanhomeguides.com/homes/new_communities/ohio/middletown.html", 62);
map.addOverlay(marker);
}
} else {
alert("Sorry, the Google Maps API is not compatible with this browser.");
}
}
function createMarker(point, title, html, n) {
if(n >= 1) { n = 0; }
var marker = new GMarker(point,{icon: icon[n], title: title});
GEvent.addListener(marker, "click", function() {location.href = html; });
points[counter] = point;
markers[counter] = marker;
counter++;
return marker;
}
function showInfoWindow(idx,html) {
map.centerAtLatLng(points[idx]);
markers[idx].openInfoWindowHtml(html);
}
//]]>

function WindowOnload(oNewOnloadFunction) {
    var oPreviousOnloadFunction = window.onload;
    window.onload = function() {
        if (oPreviousOnloadFunction) { oPreviousOnloadFunction(); }
        oNewOnloadFunction();
    }
}
	