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(40.72774,-74.03165), 10);var gLatLonBounds = new GLatLngBounds(new GLatLng(40.72774,-74.03165),new GLatLng(40.72774,-74.03165));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(8); var index;
    locations[0] = new Array(2);
    locations[0][0] = 40.72774;
    locations[0][1] = -74.03165;
    locations[0][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=40592&siteid=9194&cur=USD" rel="nofollow">Oakwood at Newport</a><br>20 River Court<br>Jersey City, NJ 07310 US';
    locations[1] = new Array(2);
    locations[1][0] = 40.7287;
    locations[1][1] = -74.0348;
    locations[1][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=12650&siteid=9194&cur=USD" rel="nofollow">DoubletreeŽ Club Suites Jersey City</a><br>455 Washington Boulevard<br>Jersey City, NJ 07310 US';
    locations[2] = new Array(2);
    locations[2][0] = 40.7472;
    locations[2][1] = -74.0618;
    locations[2][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=208998&siteid=9194&cur=USD" rel="nofollow">Red Carpet Inn Jersey City</a><br>459 Tonnelle Avenue<br>Jersey City, NJ 07307 US';
    locations[3] = new Array(2);
    locations[3][0] = 40.722;
    locations[3][1] = -74.0376;
    locations[3][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=179539&siteid=9194&cur=USD" rel="nofollow">Candlewood Suites JERSEY CITY</a><br>21 SECOND STREET<br>Jersey City, NJ 07302 US';
    locations[4] = new Array(2);
    locations[4][0] = 40.7162;
    locations[4][1] = -74.033;
    locations[4][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=40776&siteid=9194&cur=USD" rel="nofollow">HYATT REGENCY JERSEY CITY ON THE HUDSON</a><br>2 EXCHANGE PLACE<br>Jersey City, NJ 07302 US';
    locations[5] = new Array(2);
    locations[5][0] = 40.729;
    locations[5][1] = -74.0348;
    locations[5][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=10109&siteid=9194&cur=USD" rel="nofollow">Courtyard by Marriott Jersey City</a><br>540 Washington Boulevard<br>Jersey City, NJ 07310 US';
    locations[6] = new Array(2);
    locations[6][0] = 40.75476;
    locations[6][1] = -74.05621;
    locations[6][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=13169&siteid=9194&cur=USD" rel="nofollow">Econo Lodge Jersey City</a><br>750 Tonnelle  Ave.<br>Jersey City, NJ 07307 US';
    locations[7] = new Array(2);
    locations[7][0] = 40.7328;
    locations[7][1] = -74.06738;
    locations[7][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=41720&siteid=9194&cur=USD" rel="nofollow">Ramada Limited Jersey City</a><br>65 Tonnelle Ave.<br>Jersey City, NJ 07306 US';
for (index=0;index<8;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));}}
