//<![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(38.9856945, -76.402778), 10, G_NORMAL_MAP);
var bds = new GLatLngBounds(new GLatLng(38.25228645, -77.746628), new GLatLng(39.71910255, -75.058928));
map.setZoom(map.getBoundsZoomLevel(bds));
map.addControl(new GSmallMapControl());
var point = new GLatLng(39.143997,-77.092377);
var marker = createMarker(point,"Olney","http://www.americanhomeguides.com/homes/new_communities/maryland/olney.html", 0);
map.addOverlay(marker);
var point = new GLatLng(39.238611,-77.279722);
var marker = createMarker(point,"Clarksburg","http://www.americanhomeguides.com/homes/new_communities/maryland/clarksburg.html", 1);
map.addOverlay(marker);
var point = new GLatLng(39.173056,-77.271944);
var marker = createMarker(point,"Germantown","http://www.americanhomeguides.com/homes/new_communities/maryland/germantown.html", 2);
map.addOverlay(marker);
var point = new GLatLng(39.099167,-76.848611);
var marker = createMarker(point,"Laurel","http://www.americanhomeguides.com/homes/new_communities/maryland/laurel.html", 3);
map.addOverlay(marker);
var point = new GLatLng(39.267222,-76.798611);
var marker = createMarker(point,"Ellicott City","http://www.americanhomeguides.com/homes/new_communities/maryland/ellicott_city.html", 4);
map.addOverlay(marker);
var point = new GLatLng(39.144544,-77.411014);
var marker = createMarker(point,"Poolesville","http://www.americanhomeguides.com/homes/new_communities/maryland/poolesville.html", 5);
map.addOverlay(marker);
var point = new GLatLng(39.143333,-77.201667);
var marker = createMarker(point,"Gaithersburg","http://www.americanhomeguides.com/homes/new_communities/maryland/gaithersburg.html", 6);
map.addOverlay(marker);
var point = new GLatLng(38.624444,-76.939444);
var marker = createMarker(point,"Waldorf","http://www.americanhomeguides.com/homes/new_communities/maryland/waldorf.html", 7);
map.addOverlay(marker);
var point = new GLatLng(38.687803,-76.536283);
var marker = createMarker(point,"Chesapeake Beach","http://www.americanhomeguides.com/homes/new_communities/maryland/chesapeake_beach.html", 8);
map.addOverlay(marker);
var point = new GLatLng(39.2125,-76.713889);
var marker = createMarker(point,"Elkridge","http://www.americanhomeguides.com/homes/new_communities/maryland/elkridge.html", 9);
map.addOverlay(marker);
var point = new GLatLng(38.529167,-76.975556);
var marker = createMarker(point,"La Plata","http://www.americanhomeguides.com/homes/new_communities/maryland/la_plata.html", 10);
map.addOverlay(marker);
var point = new GLatLng(39.277486,-77.20371);
var marker = createMarker(point,"Damascus","http://www.americanhomeguides.com/homes/new_communities/maryland/damascus.html", 11);
map.addOverlay(marker);
var point = new GLatLng(39.328611,-76.872222);
var marker = createMarker(point,"Woodstock","http://www.americanhomeguides.com/homes/new_communities/maryland/woodstock.html", 12);
map.addOverlay(marker);
var point = new GLatLng(39.2875,-77.028333);
var marker = createMarker(point,"Glenwood","http://www.americanhomeguides.com/homes/new_communities/maryland/glenwood.html", 13);
map.addOverlay(marker);
var point = new GLatLng(38.29332,-76.498141);
var marker = createMarker(point,"California","http://www.americanhomeguides.com/homes/new_communities/maryland/california.html", 14);
map.addOverlay(marker);
var point = new GLatLng(38.632575,-77.07185);
var marker = createMarker(point,"Bryans Road","http://www.americanhomeguides.com/homes/new_communities/maryland/bryans_road.html", 15);
map.addOverlay(marker);
var point = new GLatLng(38.266667,-76.454167);
var marker = createMarker(point,"Lexington Park","http://www.americanhomeguides.com/homes/new_communities/maryland/lexington_park.html", 16);
map.addOverlay(marker);
var point = new GLatLng(38.990556,-77.026389);
var marker = createMarker(point,"Silver Spring","http://www.americanhomeguides.com/homes/new_communities/maryland/silver_spring.html", 17);
map.addOverlay(marker);
var point = new GLatLng(39.026385,-77.200634);
var marker = createMarker(point,"Potomac","http://www.americanhomeguides.com/homes/new_communities/maryland/potomac.html", 18);
map.addOverlay(marker);
var point = new GLatLng(39.044444,-77.119167);
var marker = createMarker(point,"North Bethesda","http://www.americanhomeguides.com/homes/new_communities/maryland/north_bethesda.html", 19);
map.addOverlay(marker);
var point = new GLatLng(39.269314,-76.986342);
var marker = createMarker(point,"Glenelg","http://www.americanhomeguides.com/homes/new_communities/maryland/glenelg.html", 20);
map.addOverlay(marker);
var point = new GLatLng(39.149167,-76.775556);
var marker = createMarker(point,"Jessup","http://www.americanhomeguides.com/homes/new_communities/maryland/jessup.html", 21);
map.addOverlay(marker);
var point = new GLatLng(39.3035,-76.95595);
var marker = createMarker(point,"West Friendship","http://www.americanhomeguides.com/homes/new_communities/maryland/west_friendship.html", 22);
map.addOverlay(marker);
var point = new GLatLng(38.53948,-76.58371);
var marker = createMarker(point,"Prince Frederick","http://www.americanhomeguides.com/homes/new_communities/maryland/prince_frederick.html", 23);
map.addOverlay(marker);
var point = new GLatLng(38.6,-77.1625);
var marker = createMarker(point,"Indian Head","http://www.americanhomeguides.com/homes/new_communities/maryland/indian_head.html", 24);
map.addOverlay(marker);
var point = new GLatLng(39.240278,-76.839722);
var marker = createMarker(point,"Columbia","http://www.americanhomeguides.com/homes/new_communities/maryland/columbia.html", 25);
map.addOverlay(marker);
var point = new GLatLng(38.590278,-76.940556);
var marker = createMarker(point,"White Plains","http://www.americanhomeguides.com/homes/new_communities/maryland/white_plains.html", 26);
map.addOverlay(marker);
var point = new GLatLng(39.212072,-77.142603);
var marker = createMarker(point,"Laytonsville","http://www.americanhomeguides.com/homes/new_communities/maryland/laytonsville.html", 27);
map.addOverlay(marker);
var point = new GLatLng(39.150997,-76.922417);
var marker = createMarker(point,"Fulton","http://www.americanhomeguides.com/homes/new_communities/maryland/fulton.html", 28);
map.addOverlay(marker);
var point = new GLatLng(39.20662,-76.942847);
var marker = createMarker(point,"Clarksville","http://www.americanhomeguides.com/homes/new_communities/maryland/clarksville.html", 29);
map.addOverlay(marker);
var point = new GLatLng(38.774167,-76.076667);
var marker = createMarker(point,"Easton","http://www.americanhomeguides.com/homes/new_communities/maryland/easton.html", 30);
map.addOverlay(marker);
var point = new GLatLng(38.36573,-75.59532);
var marker = createMarker(point,"Salisbury","http://www.americanhomeguides.com/homes/new_communities/maryland/salisbury.html", 31);
map.addOverlay(marker);
var point = new GLatLng(38.336389,-75.085278);
var marker = createMarker(point,"Ocean City","http://www.americanhomeguides.com/homes/new_communities/maryland/ocean_city.html", 32);
map.addOverlay(marker);
var point = new GLatLng(38.3225,-75.218056);
var marker = createMarker(point,"Berlin","http://www.americanhomeguides.com/homes/new_communities/maryland/berlin.html", 33);
map.addOverlay(marker);
var point = new GLatLng(38.321944,-75.620556);
var marker = createMarker(point,"Fruitland","http://www.americanhomeguides.com/homes/new_communities/maryland/fruitland.html", 34);
map.addOverlay(marker);
var point = new GLatLng(39.208889,-76.066944);
var marker = createMarker(point,"Chestertown","http://www.americanhomeguides.com/homes/new_communities/maryland/chestertown.html", 35);
map.addOverlay(marker);
var point = new GLatLng(39.041667,-76.066667);
var marker = createMarker(point,"Centreville","http://www.americanhomeguides.com/homes/new_communities/maryland/centreville.html", 36);
map.addOverlay(marker);
var point = new GLatLng(38.455833,-75.577778);
var marker = createMarker(point,"Delmar","http://www.americanhomeguides.com/homes/new_communities/maryland/delmar.html", 37);
map.addOverlay(marker);
var point = new GLatLng(38.975854,-76.289648);
var marker = createMarker(point,"Chester","http://www.americanhomeguides.com/homes/new_communities/maryland/chester.html", 38);
map.addOverlay(marker);
var point = new GLatLng(38.815833,-76.75);
var marker = createMarker(point,"Upper Marlboro","http://www.americanhomeguides.com/homes/new_communities/maryland/upper_marlboro.html", 39);
map.addOverlay(marker);
var point = new GLatLng(38.93192,-76.86423);
var marker = createMarker(point,"Glenarden","http://www.americanhomeguides.com/homes/new_communities/maryland/glenarden.html", 40);
map.addOverlay(marker);
var point = new GLatLng(39.290278,-76.6125);
var marker = createMarker(point,"Baltimore","http://www.americanhomeguides.com/homes/new_communities/maryland/baltimore.html", 41);
map.addOverlay(marker);
var point = new GLatLng(38.978333,-76.4925);
var marker = createMarker(point,"Annapolis","http://www.americanhomeguides.com/homes/new_communities/maryland/annapolis.html", 42);
map.addOverlay(marker);
var point = new GLatLng(39.549167,-76.091944);
var marker = createMarker(point,"Havre De Grace","http://www.americanhomeguides.com/homes/new_communities/maryland/havre_de_grace.html", 43);
map.addOverlay(marker);
var point = new GLatLng(39.6,-75.941667);
var marker = createMarker(point,"North East","http://www.americanhomeguides.com/homes/new_communities/maryland/north_east.html", 44);
map.addOverlay(marker);
var point = new GLatLng(39.4125,-76.463889);
var marker = createMarker(point,"Perry Hall","http://www.americanhomeguides.com/homes/new_communities/maryland/perry_hall.html", 45);
map.addOverlay(marker);
var point = new GLatLng(39.419444,-76.780556);
var marker = createMarker(point,"Owings Mills","http://www.americanhomeguides.com/homes/new_communities/maryland/owings_mills.html", 46);
map.addOverlay(marker);
var point = new GLatLng(39.006667,-76.779444);
var marker = createMarker(point,"Bowie","http://www.americanhomeguides.com/homes/new_communities/maryland/bowie.html", 47);
map.addOverlay(marker);
var point = new GLatLng(38.633599,-76.836913);
var marker = createMarker(point,"West Brandywine","http://www.americanhomeguides.com/homes/new_communities/maryland/west_brandywine.html", 48);
map.addOverlay(marker);
var point = new GLatLng(39.422086,-76.29485);
var marker = createMarker(point,"Edgewood","http://www.americanhomeguides.com/homes/new_communities/maryland/edgewood.html", 49);
map.addOverlay(marker);
var point = new GLatLng(39.3837187,-76.4321837);
var marker = createMarker(point,"White Marsh","http://www.americanhomeguides.com/homes/new_communities/maryland/white_marsh.html", 50);
map.addOverlay(marker);
var point = new GLatLng(39.462222,-76.279444);
var marker = createMarker(point,"Abingdon","http://www.americanhomeguides.com/homes/new_communities/maryland/abingdon.html", 51);
map.addOverlay(marker);
var point = new GLatLng(38.798543,-76.912906);
var marker = createMarker(point,"Camp Springs","http://www.americanhomeguides.com/homes/new_communities/maryland/camp_springs.html", 52);
map.addOverlay(marker);
var point = new GLatLng(39.36389,-76.4525);
var marker = createMarker(point,"Nottingham","http://www.americanhomeguides.com/homes/new_communities/maryland/nottingham.html", 53);
map.addOverlay(marker);
var point = new GLatLng(39.158611,-76.709722);
var marker = createMarker(point,"Hanover","http://www.americanhomeguides.com/homes/new_communities/maryland/hanover.html", 54);
map.addOverlay(marker);
var point = new GLatLng(38.808709,-76.998625);
var marker = createMarker(point,"Forest Heights","http://www.americanhomeguides.com/homes/new_communities/maryland/forest_heights.html", 55);
map.addOverlay(marker);
var point = new GLatLng(39.1625,-76.625);
var marker = createMarker(point,"Glen Burnie","http://www.americanhomeguides.com/homes/new_communities/maryland/glen_burnie.html", 56);
map.addOverlay(marker);
var point = new GLatLng(39.535833,-76.348611);
var marker = createMarker(point,"Bel Air","http://www.americanhomeguides.com/homes/new_communities/maryland/bel_air.html", 57);
map.addOverlay(marker);
var point = new GLatLng(38.765,-76.898611);
var marker = createMarker(point,"Clinton","http://www.americanhomeguides.com/homes/new_communities/maryland/clinton.html", 58);
map.addOverlay(marker);
var point = new GLatLng(38.89606,-76.788859);
var marker = createMarker(point,"Kettering","http://www.americanhomeguides.com/homes/new_communities/maryland/kettering.html", 59);
map.addOverlay(marker);
var point = new GLatLng(38.743333,-77.010278);
var marker = createMarker(point,"Fort Washington","http://www.americanhomeguides.com/homes/new_communities/maryland/fort_washington.html", 60);
map.addOverlay(marker);
var point = new GLatLng(38.6675,-77.028611);
var marker = createMarker(point,"Accokeek","http://www.americanhomeguides.com/homes/new_communities/maryland/accokeek.html", 61);
map.addOverlay(marker);
var point = new GLatLng(39.433611,-76.358056);
var marker = createMarker(point,"Joppa","http://www.americanhomeguides.com/homes/new_communities/maryland/joppa.html", 62);
map.addOverlay(marker);
var point = new GLatLng(38.925,-76.743056);
var marker = createMarker(point,"Mitchellville","http://www.americanhomeguides.com/homes/new_communities/maryland/mitchellville.html", 63);
map.addOverlay(marker);
var point = new GLatLng(39.136944,-76.698611);
var marker = createMarker(point,"Severn","http://www.americanhomeguides.com/homes/new_communities/maryland/severn.html", 64);
map.addOverlay(marker);
var point = new GLatLng(39.066944,-76.665556);
var marker = createMarker(point,"Gambrills","http://www.americanhomeguides.com/homes/new_communities/maryland/gambrills.html", 65);
map.addOverlay(marker);
var point = new GLatLng(38.93615,-76.901485);
var marker = createMarker(point,"Landover","http://www.americanhomeguides.com/homes/new_communities/maryland/landover.html", 66);
map.addOverlay(marker);
var point = new GLatLng(39.514444,-76.411389);
var marker = createMarker(point,"Fallston","http://www.americanhomeguides.com/homes/new_communities/maryland/fallston.html", 67);
map.addOverlay(marker);
var point = new GLatLng(39.374167,-76.722778);
var marker = createMarker(point,"Pikesville","http://www.americanhomeguides.com/homes/new_communities/maryland/pikesville.html", 68);
map.addOverlay(marker);
var point = new GLatLng(39.083889,-76.700556);
var marker = createMarker(point,"Odenton","http://www.americanhomeguides.com/homes/new_communities/maryland/odenton.html", 69);
map.addOverlay(marker);
var point = new GLatLng(39.498396,-76.640889);
var marker = createMarker(point,"Hunt Valley","http://www.americanhomeguides.com/homes/new_communities/maryland/hunt_valley.html", 70);
map.addOverlay(marker);
var point = new GLatLng(39.51047,-76.16301);
var marker = createMarker(point,"Aberdeen","http://www.americanhomeguides.com/homes/new_communities/maryland/aberdeen.html", 71);
map.addOverlay(marker);
var point = new GLatLng(39.331797,-76.437578);
var marker = createMarker(point,"Middle River","http://www.americanhomeguides.com/homes/new_communities/maryland/middle_river.html", 72);
map.addOverlay(marker);
var point = new GLatLng(38.922778,-76.628611);
var marker = createMarker(point,"Davidsonville","http://www.americanhomeguides.com/homes/new_communities/maryland/davidsonville.html", 73);
map.addOverlay(marker);
var point = new GLatLng(39.335,-76.7625);
var marker = createMarker(point,"Windsor Mill","http://www.americanhomeguides.com/homes/new_communities/maryland/windsor_mill.html", 74);
map.addOverlay(marker);
var point = new GLatLng(39.704722,-76.684167);
var marker = createMarker(point,"Freeland","http://www.americanhomeguides.com/homes/new_communities/maryland/freeland.html", 75);
map.addOverlay(marker);
var point = new GLatLng(39.6689941,-76.3794051);
var marker = createMarker(point,"Street","http://www.americanhomeguides.com/homes/new_communities/maryland/street.html", 76);
map.addOverlay(marker);
var point = new GLatLng(39.367222,-76.795556);
var marker = createMarker(point,"Randallstown","http://www.americanhomeguides.com/homes/new_communities/maryland/randallstown.html", 77);
map.addOverlay(marker);
var point = new GLatLng(39.69808,-76.06175);
var marker = createMarker(point,"Rising Sun","http://www.americanhomeguides.com/homes/new_communities/maryland/rising_sun.html", 78);
map.addOverlay(marker);
var point = new GLatLng(39.087847,-76.582318);
var marker = createMarker(point,"Severna Park","http://www.americanhomeguides.com/homes/new_communities/maryland/severna_park.html", 79);
map.addOverlay(marker);
var point = new GLatLng(39.414167,-77.410833);
var marker = createMarker(point,"Frederick","http://www.americanhomeguides.com/homes/new_communities/maryland/frederick.html", 80);
map.addOverlay(marker);
var point = new GLatLng(39.641667,-77.720278);
var marker = createMarker(point,"Hagerstown","http://www.americanhomeguides.com/homes/new_communities/maryland/hagerstown.html", 81);
map.addOverlay(marker);
var point = new GLatLng(39.661111,-76.885278);
var marker = createMarker(point,"Manchester","http://www.americanhomeguides.com/homes/new_communities/maryland/manchester.html", 82);
map.addOverlay(marker);
var point = new GLatLng(39.575278,-76.996111);
var marker = createMarker(point,"Westminster","http://www.americanhomeguides.com/homes/new_communities/maryland/westminster.html", 83);
map.addOverlay(marker);
var point = new GLatLng(39.443611,-77.545);
var marker = createMarker(point,"Middletown","http://www.americanhomeguides.com/homes/new_communities/maryland/middletown.html", 84);
map.addOverlay(marker);
var point = new GLatLng(39.31123,-77.47506);
var marker = createMarker(point,"Adamstown","http://www.americanhomeguides.com/homes/new_communities/maryland/adamstown.html", 85);
map.addOverlay(marker);
var point = new GLatLng(39.3825,-77.269722);
var marker = createMarker(point,"New Market","http://www.americanhomeguides.com/homes/new_communities/maryland/new_market.html", 86);
map.addOverlay(marker);
var point = new GLatLng(38.563056,-76.079167);
var marker = createMarker(point,"Cambridge","http://www.americanhomeguides.com/homes/new_communities/maryland/cambridge.html", 87);
map.addOverlay(marker);
var point = new GLatLng(39.376111,-77.155);
var marker = createMarker(point,"Mount Airy","http://www.americanhomeguides.com/homes/new_communities/maryland/mount_airy.html", 88);
map.addOverlay(marker);
var point = new GLatLng(39.401958,-76.943731);
var marker = createMarker(point,"Eldersburg","http://www.americanhomeguides.com/homes/new_communities/maryland/eldersburg.html", 89);
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();
    }
}
	