function GM_Load() { if(el = document.getElementById("community_google_map")) { map = new GMap2(el) map.addControl(new GLargeMapControl()); var center = new GLatLng(42.4921994909,-83.3480219); map.setCenter(center,12); var gmIcon_sign_a = new GIcon(); gmIcon_sign_a.image = "http://www.bayberrycondo.com/img/communities/map-icon/map-a.png"; gmIcon_sign_a.iconSize = new GSize(20,23); gmIcon_sign_a.iconAnchor = new GPoint(10,17); gmIcon_sign_a.infoWindowAnchor = new GPoint(10,2); var gmIcon_sign_b = new GIcon(); gmIcon_sign_b.image = "http://www.bayberrycondo.com/img/communities/map-icon/map-b.png"; gmIcon_sign_b.iconSize = new GSize(20,23); gmIcon_sign_b.iconAnchor = new GPoint(10,17); gmIcon_sign_b.infoWindowAnchor = new GPoint(10,2); var gmIcon_sign_c = new GIcon(); gmIcon_sign_c.image = "http://www.bayberrycondo.com/img/communities/map-icon/map-c.png"; gmIcon_sign_c.iconSize = new GSize(20,23); gmIcon_sign_c.iconAnchor = new GPoint(10,17); gmIcon_sign_c.infoWindowAnchor = new GPoint(10,2); var gmIcon_sign_d = new GIcon(); gmIcon_sign_d.image = "http://www.bayberrycondo.com/img/communities/map-icon/map-d.png"; gmIcon_sign_d.iconSize = new GSize(20,23); gmIcon_sign_d.iconAnchor = new GPoint(10,17); gmIcon_sign_d.infoWindowAnchor = new GPoint(10,2); var gmIcon_sign_e = new GIcon(); gmIcon_sign_e.image = "http://www.bayberrycondo.com/img/communities/map-icon/map-e.png"; gmIcon_sign_e.iconSize = new GSize(20,23); gmIcon_sign_e.iconAnchor = new GPoint(10,17); gmIcon_sign_e.infoWindowAnchor = new GPoint(10,2); var gmIcon_sign_f = new GIcon(); gmIcon_sign_f.image = "http://www.bayberrycondo.com/img/communities/map-icon/map-f.png"; gmIcon_sign_f.iconSize = new GSize(20,23); gmIcon_sign_f.iconAnchor = new GPoint(10,17); gmIcon_sign_f.infoWindowAnchor = new GPoint(10,2); var gmIcon_sign_g = new GIcon(); gmIcon_sign_g.image = "http://www.bayberrycondo.com/img/communities/map-icon/map-g.png"; gmIcon_sign_g.iconSize = new GSize(20,23); gmIcon_sign_g.iconAnchor = new GPoint(10,17); gmIcon_sign_g.infoWindowAnchor = new GPoint(10,2); var gmIcon_sign_h = new GIcon(); gmIcon_sign_h.image = "http://www.bayberrycondo.com/img/communities/map-icon/map-h.png"; gmIcon_sign_h.iconSize = new GSize(20,23); gmIcon_sign_h.iconAnchor = new GPoint(10,17); gmIcon_sign_h.infoWindowAnchor = new GPoint(10,2); var gmIcon_sign_i = new GIcon(); gmIcon_sign_i.image = "http://www.bayberrycondo.com/img/communities/map-icon/map-i.png"; gmIcon_sign_i.iconSize = new GSize(20,23); gmIcon_sign_i.iconAnchor = new GPoint(10,17); gmIcon_sign_i.infoWindowAnchor = new GPoint(10,2); var gmIcon_sign_j = new GIcon(); gmIcon_sign_j.image = "http://www.bayberrycondo.com/img/communities/map-icon/map-j.png"; gmIcon_sign_j.iconSize = new GSize(20,23); gmIcon_sign_j.iconAnchor = new GPoint(10,17); gmIcon_sign_j.infoWindowAnchor = new GPoint(10,2); var gmIcon_sign_k = new GIcon(); gmIcon_sign_k.image = "http://www.bayberrycondo.com/img/communities/map-icon/map-k.png"; gmIcon_sign_k.iconSize = new GSize(20,23); gmIcon_sign_k.iconAnchor = new GPoint(10,17); gmIcon_sign_k.infoWindowAnchor = new GPoint(10,2); var gmIcon_sign_l = new GIcon(); gmIcon_sign_l.image = "http://www.bayberrycondo.com/img/communities/map-icon/map-l.png"; gmIcon_sign_l.iconSize = new GSize(20,23); gmIcon_sign_l.iconAnchor = new GPoint(10,17); gmIcon_sign_l.infoWindowAnchor = new GPoint(10,2); map.enableScrollWheelZoom(); var point = new GLatLng('42.6841300','-83.2205150'); This0_HTML = '
Knollwood Place
Knollwood Place
Spacious 1 & 2 BR apts. near Oakland University at the corner of Walton & Squirrel Roads in Auburn Hills. Clubhouse, pool & fitness center.
(248) 795-1491
Details
'; This0 = GM_createMarker(point,'This0',This0_HTML,gmIcon_sign_a,false); map.addOverlay(This0); var point = new GLatLng('42.681454','-83.212702'); This1_HTML = '
The Boulevard Apartments
The Boulevard Apartments
Luxurious, spacious 1 & 2 Bedroom residences in Auburn Hills. Clubhouse, pool & spa, fitness center, tennis court. Very conveniently located.
(248) 716-5365
Details
'; This1 = GM_createMarker(point,'This1',This1_HTML,gmIcon_sign_b,false); map.addOverlay(This1); var point = new GLatLng('42.4934727','-83.1821478'); This2_HTML = '
Oxford Park Towers
Oxford Park Towers
Comfort & convenince for those 50 yrs. old and better in Berkley. 1 & 2 BR apts. Friendly neighbors, fitness ctr., movie/social room, chapel, library, many amenities.
(248) 504-4431
Details
'; This2 = GM_createMarker(point,'This2',This2_HTML,gmIcon_sign_c,false); map.addOverlay(This2); var point = new GLatLng('42.3341751','-83.4614782'); This3_HTML = '
Bainbridge Park
Bainbridge Park
2 BR apartments in Canton. Clubhouse, pool, fitness center. Everything you would want is only minutes away.
(734) 259-4688
Details
'; This3 = GM_createMarker(point,'This3',This3_HTML,gmIcon_sign_d,false); map.addOverlay(This3); var point = new GLatLng('42.2964583','-83.4468713'); This4_HTML = '
Meadowood Townhomes
Meadowood Townhomes
Great 2 & 3 BR Townhomes & 1 BR apts. in Canton. New Clubhouse & fitness center. Near to I-275, M-14, I-96, I-94
(734) 629-4572
Details
'; This4 = GM_createMarker(point,'This4',This4_HTML,gmIcon_sign_e,false); map.addOverlay(This4); var point = new GLatLng('42.1079352','-83.2835038'); This5_HTML = '
Waters Edge
Waters Edge
Affordable Housing in Flatrock
(734) 782-4385
Details
'; This5 = GM_createMarker(point,'This5',This5_HTML,gmIcon_sign_f,false); map.addOverlay(This5); var point = new GLatLng('42.8055440','-83.629806'); This6_HTML = '
Holly Ridge
Holly Ridge
Charming 1 & 2 Bedroom Apts. in Holly
(248) 266-2511
Details
'; This6 = GM_createMarker(point,'This6',This6_HTML,gmIcon_sign_g,false); map.addOverlay(This6); var point = new GLatLng('42.461921','-83.464243'); This7_HTML = '
Novi Ridge
Novi Ridge
2 & 3 BR townhomes, 1 & 2 BR apts. in fabulous Novi. Clubhouse, pool, fitness ctr.
(248) 721-4781
Details
'; This7 = GM_createMarker(point,'This7',This7_HTML,gmIcon_sign_h,false); map.addOverlay(This7); var point = new GLatLng('42.6268544','-83.095521'); This8_HTML = '
Whispering Winds of Rochester Hills
Whispering Winds of Rochester Hills
From M-59, go north on Dequindre Road. Melville Drive is almost immediately on the left (west) side, at the Audi dealership.
(248) 853-7377
Details
'; This8 = GM_createMarker(point,'This8',This8_HTML,gmIcon_sign_i,false); map.addOverlay(This8); var point = new GLatLng('42.5504002','-83.1831268'); This9_HTML = '
Bayberry Place
Bayberry Place
1 & 2 BR apts. in Troy. The perfect choice for sophisticated renters. Clubhouse, pool, fitness center.
(248) 282-7294
Details
'; This9 = GM_createMarker(point,'This9',This9_HTML,gmIcon_sign_j,false); map.addOverlay(This9); var point = new GLatLng('42.6636299','-83.352745'); This10_HTML = '
Heritage Park
Heritage Park
1 & 2 BR apartments in Waterford. Pool and club room. Near to parks, lakes, shopping and major employers.
(248) 461-3007
Details
'; This10 = GM_createMarker(point,'This10',This10_HTML,gmIcon_sign_k,false); map.addOverlay(This10); var point = new GLatLng('42.3350740','-83.3911020'); This11_HTML = '
Hickory Green
Hickory Green
Nicely Appointed 1 & 2 BR Apartments in Westland. Conveniently located.
(734) 423-1016
Details
'; This11 = GM_createMarker(point,'This11',This11_HTML,gmIcon_sign_l,false); map.addOverlay(This11); var latitude_max = 42.805544; var latitude_min = 42.1079352; var longitude_max = -83.095521; var longitude_min = -83.629806; if(typeof(cityStateObj) != 'undefined' && cityStateObj != '') { var cityStateObjIcon = new GIcon(); cityStateObjIcon.image = "http://www.bayberrycondo.com/img/green-marker.png"; cityStateObjIcon.iconAnchor = new GPoint(10,34); cityStateObjIcon.infoWindowAnchor = new GPoint(10,2); cityStateObjIcon.iconSize = new GSize(20, 34); var point = new GLatLng(cityStateObj.lat,cityStateObj.lon); This_HTML = '
' + cityStateObj.city + ', ' + cityStateObj.state_name + '
'; This = GM_createMarker(point,'This',This_HTML,cityStateObjIcon,false); map.addOverlay(This); if(cityStateObj.lat > latitude_max) latitude_max = cityStateObj.lat; if(cityStateObj.lat < latitude_min) latitude_min = cityStateObj.lat; if(cityStateObj.lon > longitude_max) longitude_max = cityStateObj.lon; if(cityStateObj.lon < longitude_min) longitude_min = cityStateObj.lon; } var fitBounds = new GLatLngBounds(new GLatLng(latitude_min,longitude_min), new GLatLng(latitude_max,longitude_max)); var zoomLevel = map.getBoundsZoomLevel(fitBounds); var newCenter = fitBounds.getCenter(); map.setCenter(newCenter,zoomLevel,map.getCurrentMapType()); } }