function load() {if (GBrowserIsCompatible()) {var map = new GMap2(document.getElementById('map'));map.enableContinuousZoom();map.addControl(new GLargeMapControl());map.addControl(new GMapTypeControl());map.setCenter(new GLatLng(39.35745,-74.4246), 10);var gLatLonBounds = new GLatLngBounds(new GLatLng(39.35745,-74.4246),new GLatLng(39.35745,-74.4246));var baseIcon = new GIcon();baseIcon.shadow = 'http://www.google.com/mapfiles/shadow50.png';baseIcon.iconSize = new GSize(20, 34);baseIcon.shadowSize = new GSize(37, 34);baseIcon.iconAnchor = new GPoint(9, 34);baseIcon.infoWindowAnchor = new GPoint(9, 2);baseIcon.infoShadowAnchor = new GPoint(18, 25);function createMarker(point, desc) {  var icon = new GIcon(baseIcon);  icon.image = 'http://www.google.com/mapfiles/marker.png';  var marker = new GMarker(point, icon);  GEvent.addListener(marker, 'click', function() {    marker.openInfoWindowHtml(desc);  });  return marker;}
function createMarkerOther(point, desc, link, shadowLink, height) {   tmpBaseIcon=baseIcon;  if (shadowLink!='') {   tmpBaseIcon.shadow=shadowLink;   tmpBaseIcon.iconSize=new GSize(30,30);  }  var icon = new GIcon(baseIcon);  icon.image = link;  var marker = new GMarker(point, icon);  GEvent.addListener(marker, 'click', function() {    marker.openInfoWindowHtml(desc);  });  return marker;}
function createMarkerDynamic(point, desc, link, height, anIndex) {   tmpBaseIcon=baseIcon;   tmpBaseIcon.iconSize=new GSize(13+(anIndex.toString().length*10),48);  var icon = new GIcon(baseIcon);  icon.image = link;  var marker = new GMarker(point, icon);  GEvent.addListener(marker, 'click', function() {    marker.openInfoWindowHtml(desc);  });  return marker;}
var locations = new Array(23); var index;
    locations[0] = new Array(2);
    locations[0][0] = 39.35745;
    locations[0][1] = -74.4246;
    locations[0][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=42316&siteid=9194&cur=USD" rel="nofollow">Super 8 Motel - Atlantic City</a><br>175 South Tennessee Avenue<br>Atlantic City, NJ 08401 US';
    locations[1] = new Array(2);
    locations[1][0] = 39.35352;
    locations[1][1] = -74.44665;
    locations[1][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=13246&siteid=9194&cur=USD" rel="nofollow">Econo Lodge Beach Block</a><br>3001 Pacific Ave.<br>Atlantic City, NJ 08401 US';
    locations[2] = new Array(2);
    locations[2][0] = 39.3841;
    locations[2][1] = -74.4267;
    locations[2][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=188855&siteid=9194&cur=USD" rel="nofollow">Harrahs Atlantic City</a><br>777 Harrah\'s Blvd<br>Atlantic City, NJ 08401 US';
    locations[3] = new Array(2);
    locations[3][0] = 39.3715;
    locations[3][1] = -74.4784;
    locations[3][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=189706&siteid=9194&cur=USD" rel="nofollow">Red Carpet Inn Atlantic City</a><br>1630 North Albany Avenue<br>Atlantic City, NJ 08401 US';
    locations[4] = new Array(2);
    locations[4][0] = 39.3648;
    locations[4][1] = -74.4392;
    locations[4][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=190650&siteid=9194&cur=USD" rel="nofollow">Days Inn Atlantic City</a><br>169 South Kentucky Avenue<br>Atlantic City, NJ 08401 US';
    locations[5] = new Array(2);
    locations[5][0] = 39.3517;
    locations[5][1] = -74.44891;
    locations[5][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=191106&siteid=9194&cur=USD" rel="nofollow">El Greco Motel</a><br>3200 Pacific Ave.<br>Atlantic City, NJ 08401 US';
    locations[6] = new Array(2);
    locations[6][0] = 39.3615;
    locations[6][1] = -74.4245;
    locations[6][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=191653&siteid=9194&cur=USD" rel="nofollow">Skyline Tower</a><br>100 S North Carolina Avenue<br>Atlantic City, NJ 08401 US';
    locations[7] = new Array(2);
    locations[7][0] = 39.36073;
    locations[7][1] = -74.42717;
    locations[7][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=18403&siteid=9194&cur=USD" rel="nofollow">Howard Johnson Inn Atlantic City</a><br>1339 Pacific Ave<br>Atlantic City, NJ 08401-7204 US';
    locations[8] = new Array(2);
    locations[8][0] = 39.3558;
    locations[8][1] = -74.431;
    locations[8][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=34172&siteid=9194&cur=USD" rel="nofollow">Ballys Park Place Casino Resort</a><br>Boardwalk and Park Place<br>Atlantic City, NJ 08401 US';
    locations[9] = new Array(2);
    locations[9][0] = 39.35682;
    locations[9][1] = -74.43588;
    locations[9][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=34350&siteid=9194&cur=USD" rel="nofollow">Caesars Atlantic City Hotel Casino</a><br>2100 Pacific Avenue<br>Atlantic City, NJ 08401 US';
    locations[10] = new Array(2);
    locations[10][0] = 39.3509;
    locations[10][1] = -74.447;
    locations[10][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=16702&siteid=9194&cur=USD" rel="nofollow">Holiday Inn ATLANTIC CITY-BOARDWALK</a><br>115 CHELSEA AVE & BOARDWALK<br>Atlantic City, NJ 08401 US';
    locations[11] = new Array(2);
    locations[11][0] = 39.36023;
    locations[11][1] = -74.4279;
    locations[11][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=3943&siteid=9194&cur=USD" rel="nofollow">Best Western Envoy Inn</a><br>1416 Pacific Avenue<br>Atlantic City, NJ 08401-8011 US';
    locations[12] = new Array(2);
    locations[12][0] = 39.35821;
    locations[12][1] = -74.4288;
    locations[12][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=9010&siteid=9194&cur=USD" rel="nofollow">Comfort Inn Atlantic City</a><br>154 S. Kentucky Ave.<br>Atlantic City, NJ 08401 US';
    locations[13] = new Array(2);
    locations[13][0] = 39.3511;
    locations[13][1] = -74.4465;
    locations[13][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=11982&siteid=9194&cur=USD" rel="nofollow">Atlantic City - Boardwalk Days Inn</a><br>Boardwalk At Morris Avenue<br>Atlantic City, NJ 08401 US';
    locations[14] = new Array(2);
    locations[14][0] = 39.35937;
    locations[14][1] = -74.42918;
    locations[14][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=13165&siteid=9194&cur=USD" rel="nofollow">Econo Lodge Boardwalk</a><br>117 S. Kentucky Ave.<br>Atlantic City, NJ 08401 US';
    locations[15] = new Array(2);
    locations[15][0] = 39.3514;
    locations[15][1] = -74.44707;
    locations[15][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=18305&siteid=9194&cur=USD" rel="nofollow">Howard Johnson Hotel - Atlantic City</a><br>105 South Chelsea Avenue<br>Atlantic City, NJ 08401 US';
    locations[16] = new Array(2);
    locations[16][0] = 39.35036;
    locations[16][1] = -74.45296;
    locations[16][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=28002&siteid=9194&cur=USD" rel="nofollow">Rodeway Inn Atlantic City</a><br>3601 Pacific Ave<br>Atlantic City, NJ 08401 US';
    locations[17] = new Array(2);
    locations[17][0] = 39.35944;
    locations[17][1] = -74.42345;
    locations[17][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=28003&siteid=9194&cur=USD" rel="nofollow">Rodeway Inn Atlantic City</a><br>124 S. North Carolina Ave<br>Atlantic City, NJ 08401 US';
    locations[18] = new Array(2);
    locations[18][0] = 39.3623;
    locations[18][1] = -74.4391;
    locations[18][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=29623&siteid=9194&cur=USD" rel="nofollow">Sheraton Atlantic City Convention Center Hotel</a><br>Two Miss America Way<br>Atlantic City, NJ 08401 US';
    locations[19] = new Array(2);
    locations[19][0] = 39.3515;
    locations[19][1] = -74.4451;
    locations[19][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=48400&siteid=9194&cur=USD" rel="nofollow">Tropicana Casino and Resort</a><br>Brighton and the Boardwalk<br>Atlantic City, NJ 08401 US';
    locations[20] = new Array(2);
    locations[20][0] = 39.35741;
    locations[20][1] = -74.45962;
    locations[20][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=176881&siteid=9194&cur=USD" rel="nofollow">Quality Inn & Suites Casino City</a><br>500 N. Albany Avenue<br>Atlantic City, NJ 08401 US';
    locations[21] = new Array(2);
    locations[21][0] = 39.3648;
    locations[21][1] = -74.4392;
    locations[21][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=178260&siteid=9194&cur=USD" rel="nofollow">Travelodge Atlantic City, NJ</a><br>1101-1109 Pacific Avenue<br>Atlantic City, NJ 08401 US';
    locations[22] = new Array(2);
    locations[22][0] = 39.3576;
    locations[22][1] = -74.422;
    locations[22][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=189816&siteid=9194&cur=USD" rel="nofollow">Resorts Atlantic City</a><br>1133 Boardwalk<br>Atlantic City, NJ 08401 US';
for (index=0;index<23;index+=1)
{
    var point = new GLatLng(locations[index][0],locations[index][1]);
    map.addOverlay(createMarker(point, locations[index][2]));
    gLatLonBounds.extend(point); 
}
map.setCenter(gLatLonBounds.getCenter(), map.getBoundsZoomLevel(gLatLonBounds));}}
