//<![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.793299, -76.781111), 10, G_NORMAL_MAP);
var bds = new GLatLngBounds(new GLatLng(37.90813076, -78.51086066), new GLatLng(39.67846724, -75.05136134));
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.099167,-76.848611);
var marker = createMarker(point,"Laurel","http://www.americanhomeguides.com/homes/new_communities/maryland/laurel.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.238611,-77.279722);
var marker = createMarker(point,"Clarksburg","http://www.americanhomeguides.com/homes/new_communities/maryland/clarksburg.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.687803,-76.536283);
var marker = createMarker(point,"Chesapeake Beach","http://www.americanhomeguides.com/homes/new_communities/maryland/chesapeake_beach.html", 7);
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", 8);
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", 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.328611,-76.872222);
var marker = createMarker(point,"Woodstock","http://www.americanhomeguides.com/homes/new_communities/maryland/woodstock.html", 11);
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", 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.632575,-77.07185);
var marker = createMarker(point,"Bryans Road","http://www.americanhomeguides.com/homes/new_communities/maryland/bryans_road.html", 14);
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", 15);
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", 16);
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", 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.321944,-75.620556);
var marker = createMarker(point,"Fruitland","http://www.americanhomeguides.com/homes/new_communities/maryland/fruitland.html", 31);
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", 32);
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", 33);
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", 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(38.838889,-77.427778);
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(39.414167,-77.410833);
var marker = createMarker(point,"Frederick","http://www.americanhomeguides.com/homes/new_communities/maryland/frederick.html", 39);
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", 40);
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", 41);
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", 42);
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", 43);
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", 44);
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", 45);
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", 46);
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", 47);
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", 48);
map.addOverlay(marker);
var point = new GLatLng(38.713333,-78.159722);
var marker = createMarker(point,"Washington","http://www.americanhomeguides.com/homes/new_communities/maryland/washington.html", 49);
map.addOverlay(marker);
var point = new GLatLng(39.115556,-77.563889);
var marker = createMarker(point,"Leesburg","http://www.americanhomeguides.com/homes/new_communities/maryland/leesburg.html", 50);
map.addOverlay(marker);
var point = new GLatLng(38.704167,-77.228056);
var marker = createMarker(point,"Lorton","http://www.americanhomeguides.com/homes/new_communities/maryland/lorton.html", 51);
map.addOverlay(marker);
var point = new GLatLng(39.043611,-77.487778);
var marker = createMarker(point,"Ashburn","http://www.americanhomeguides.com/homes/new_communities/maryland/ashburn.html", 52);
map.addOverlay(marker);
var point = new GLatLng(38.795556,-77.614167);
var marker = createMarker(point,"Gainesville","http://www.americanhomeguides.com/homes/new_communities/maryland/gainesville.html", 53);
map.addOverlay(marker);
var point = new GLatLng(39.134167,-77.662778);
var marker = createMarker(point,"Hamilton","http://www.americanhomeguides.com/homes/new_communities/maryland/hamilton.html", 54);
map.addOverlay(marker);
var point = new GLatLng(38.935556,-77.380278);
var marker = createMarker(point,"Oak Hill","http://www.americanhomeguides.com/homes/new_communities/maryland/oak_hill.html", 55);
map.addOverlay(marker);
var point = new GLatLng(38.870833,-77.101389);
var marker = createMarker(point,"Arlington","http://www.americanhomeguides.com/homes/new_communities/maryland/arlington.html", 56);
map.addOverlay(marker);
var point = new GLatLng(38.5675,-77.328333);
var marker = createMarker(point,"Dumfries","http://www.americanhomeguides.com/homes/new_communities/maryland/dumfries.html", 57);
map.addOverlay(marker);
var point = new GLatLng(38.981944,-77.538889);
var marker = createMarker(point,"Brambleton","http://www.americanhomeguides.com/homes/new_communities/maryland/brambleton.html", 58);
map.addOverlay(marker);
var point = new GLatLng(38.722778,-77.536389);
var marker = createMarker(point,"Bristow","http://www.americanhomeguides.com/homes/new_communities/maryland/bristow.html", 59);
map.addOverlay(marker);
var point = new GLatLng(38.750833,-77.475556);
var marker = createMarker(point,"Manassas","http://www.americanhomeguides.com/homes/new_communities/maryland/manassas.html", 60);
map.addOverlay(marker);
var point = new GLatLng(38.658056,-77.25);
var marker = createMarker(point,"Woodbridge","http://www.americanhomeguides.com/homes/new_communities/maryland/woodbridge.html", 61);
map.addOverlay(marker);
var point = new GLatLng(38.683611,-77.260556);
var marker = createMarker(point,"Occoquan","http://www.americanhomeguides.com/homes/new_communities/maryland/occoquan.html", 62);
map.addOverlay(marker);
var point = new GLatLng(38.713333,-77.795556);
var marker = createMarker(point,"Warrenton","http://www.americanhomeguides.com/homes/new_communities/maryland/warrenton.html", 63);
map.addOverlay(marker);
var point = new GLatLng(38.894167,-77.431389);
var marker = createMarker(point,"Chantilly","http://www.americanhomeguides.com/homes/new_communities/maryland/chantilly.html", 64);
map.addOverlay(marker);
var point = new GLatLng(38.303056,-77.460833);
var marker = createMarker(point,"Fredericksburg","http://www.americanhomeguides.com/homes/new_communities/maryland/fredericksburg.html", 65);
map.addOverlay(marker);
var point = new GLatLng(39.2725,-77.636944);
var marker = createMarker(point,"Lovettsville","http://www.americanhomeguides.com/homes/new_communities/maryland/lovettsville.html", 66);
map.addOverlay(marker);
var point = new GLatLng(38.975556,-77.641667);
var marker = createMarker(point,"Aldie","http://www.americanhomeguides.com/homes/new_communities/maryland/aldie.html", 67);
map.addOverlay(marker);
var point = new GLatLng(38.029167,-78.476944);
var marker = createMarker(point,"Charlottesville","http://www.americanhomeguides.com/homes/new_communities/maryland/charlottesville.html", 68);
map.addOverlay(marker);
var point = new GLatLng(38.920833,-77.504167);
var marker = createMarker(point,"South Riding","http://www.americanhomeguides.com/homes/new_communities/maryland/south_riding.html", 69);
map.addOverlay(marker);
var point = new GLatLng(38.421944,-77.408611);
var marker = createMarker(point,"Stafford","http://www.americanhomeguides.com/homes/new_communities/maryland/stafford.html", 70);
map.addOverlay(marker);
var point = new GLatLng(38.3312,-77.465286);
var marker = createMarker(point,"Falmouth","http://www.americanhomeguides.com/homes/new_communities/maryland/falmouth.html", 71);
map.addOverlay(marker);
var point = new GLatLng(38.649816,-77.342129);
var marker = createMarker(point,"Dale City","http://www.americanhomeguides.com/homes/new_communities/maryland/dale_city.html", 72);
map.addOverlay(marker);
var point = new GLatLng(39.093056,-78.059722);
var marker = createMarker(point,"Boyce","http://www.americanhomeguides.com/homes/new_communities/maryland/boyce.html", 73);
map.addOverlay(marker);
var point = new GLatLng(39.178333,-78.166667);
var marker = createMarker(point,"Winchester","http://www.americanhomeguides.com/homes/new_communities/maryland/winchester.html", 74);
map.addOverlay(marker);
var point = new GLatLng(39.0089131,-77.4529868);
var marker = createMarker(point,"Dulles","http://www.americanhomeguides.com/homes/new_communities/maryland/dulles.html", 75);
map.addOverlay(marker);
var point = new GLatLng(39.039373,-78.151672);
var marker = createMarker(point,"Lake Frederick","http://www.americanhomeguides.com/homes/new_communities/maryland/lake_frederick.html", 76);
map.addOverlay(marker);
var point = new GLatLng(38.200833,-77.589444);
var marker = createMarker(point,"Spotsylvania","http://www.americanhomeguides.com/homes/new_communities/maryland/spotsylvania.html", 77);
map.addOverlay(marker);
var point = new GLatLng(39.237222,-78.106667);
var marker = createMarker(point,"Stephenson","http://www.americanhomeguides.com/homes/new_communities/maryland/stephenson.html", 78);
map.addOverlay(marker);
var point = new GLatLng(38.846111,-77.306667);
var marker = createMarker(point,"Fairfax","http://www.americanhomeguides.com/homes/new_communities/maryland/fairfax.html", 79);
map.addOverlay(marker);
var point = new GLatLng(38.811944,-77.636667);
var marker = createMarker(point,"Haymarket","http://www.americanhomeguides.com/homes/new_communities/maryland/haymarket.html", 80);
map.addOverlay(marker);
var point = new GLatLng(39.188347,-77.611525);
var marker = createMarker(point,"Waterford","http://www.americanhomeguides.com/homes/new_communities/maryland/waterford.html", 81);
map.addOverlay(marker);
var point = new GLatLng(38.342979,-77.796329);
var marker = createMarker(point,"Locust Grove","http://www.americanhomeguides.com/homes/new_communities/maryland/locust_grove.html", 82);
map.addOverlay(marker);
var point = new GLatLng(38.969444,-77.386389);
var marker = createMarker(point,"Herndon","http://www.americanhomeguides.com/homes/new_communities/maryland/herndon.html", 83);
map.addOverlay(marker);
var point = new GLatLng(37.925487,-78.205218);
var marker = createMarker(point,"Bybee","http://www.americanhomeguides.com/homes/new_communities/maryland/bybee.html", 84);
map.addOverlay(marker);
var point = new GLatLng(38.8669531,-77.0175832);
var marker = createMarker(point,"Fort Lesley J Mcnair","http://www.americanhomeguides.com/homes/new_communities/maryland/fort_lesley_j_mcnair.html", 85);
map.addOverlay(marker);
var point = new GLatLng(38.410131,-78.009448);
var marker = createMarker(point,"Winston","http://www.americanhomeguides.com/homes/new_communities/maryland/winston.html", 86);
map.addOverlay(marker);
var point = new GLatLng(38.473056,-77.996944);
var marker = createMarker(point,"Culpeper","http://www.americanhomeguides.com/homes/new_communities/maryland/culpeper.html", 87);
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();
    }
}
	