//<![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(39.1691605, -76.485139), 10, G_NORMAL_MAP);
var bds = new GLatLngBounds(new GLatLng(38.62288777, -77.03948044), new GLatLng(39.71543323, -75.93079756));
map.setZoom(map.getBoundsZoomLevel(bds));
map.addControl(new GSmallMapControl());
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", 0);
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", 1);
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", 2);
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", 3);
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", 4);
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", 5);
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", 6);
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", 7);
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", 8);
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", 9);
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", 10);
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", 11);
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", 12);
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", 13);
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", 14);
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", 15);
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", 16);
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", 17);
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", 18);
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", 19);
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", 20);
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", 21);
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", 22);
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", 23);
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", 24);
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", 25);
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", 26);
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", 27);
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", 28);
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", 29);
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", 30);
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", 31);
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", 32);
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", 33);
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", 34);
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", 35);
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", 36);
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", 37);
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", 38);
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", 39);
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", 40);
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", 41);
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();
    }
}
	