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.7389,-74.1689), 10);var gLatLonBounds = new GLatLngBounds(new GLatLng(40.7389,-74.1689),new GLatLng(40.7389,-74.1689));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(14); var index;
    locations[0] = new Array(2);
    locations[0][0] = 40.7389;
    locations[0][1] = -74.1689;
    locations[0][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=35919&siteid=9194&cur=USD" rel="nofollow">Robert Treat Hotel</a><br>50 Park Place<br>Newark, NJ 07102 US';
    locations[1] = new Array(2);
    locations[1][0] = 40.7347;
    locations[1][1] = -74.1659;
    locations[1][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=16501&siteid=9194&cur=USD" rel="nofollow">Hilton Newark Penn Station</a><br>Gateway Center- Raymond Boulevard<br>Newark, NJ 07102-5107 US';
    locations[2] = new Array(2);
    locations[2][0] = 40.712;
    locations[2][1] = -74.1669;
    locations[2][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=17339&siteid=9194&cur=USD" rel="nofollow">Holiday Inn NEWARK INTERNATIONAL AIRPORT</a><br>160 FRONTAGE ROAD<br>Newark, NJ 07114 US';
    locations[3] = new Array(2);
    locations[3][0] = 40.6896;
    locations[3][1] = -74.1922;
    locations[3][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=182912&siteid=9194&cur=USD" rel="nofollow">SpringHill Suites by Marriott Newark Liberty International Airport</a><br>Routes 1 and 9 South<br>Newark, NJ 07114 US';
    locations[4] = new Array(2);
    locations[4][0] = 40.7381;
    locations[4][1] = -74.1671;
    locations[4][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=188976&siteid=9194&cur=USD" rel="nofollow">Days Inn Newark</a><br>1 Newark Way<br>Newark, NJ 16575 US';
    locations[5] = new Array(2);
    locations[5][0] = 40.7041;
    locations[5][1] = -74.1776;
    locations[5][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=10106&siteid=9194&cur=USD" rel="nofollow">Courtyard by Marriott Newark Liberty International Airport</a><br>Route 1 & 9 South at Route 78<br>Newark, NJ 07114 US';
    locations[6] = new Array(2);
    locations[6][0] = 40.7047;
    locations[6][1] = -74.1855;
    locations[6][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=3827&siteid=9194&cur=USD" rel="nofollow">Best Western Newark Airport West</a><br>101 International Way<br>Newark, NJ 07114 US';
    locations[7] = new Array(2);
    locations[7][0] = 40.712;
    locations[7][1] = -74.1651;
    locations[7][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=29774&siteid=9194&cur=USD" rel="nofollow">Sheraton Newark Airport Hotel</a><br>128 Frontage Road<br>Newark, NJ 07114 US';
    locations[8] = new Array(2);
    locations[8][0] = 40.7055;
    locations[8][1] = -74.1739;
    locations[8][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=37710&siteid=9194&cur=USD" rel="nofollow">Fairfield Inn and Suites by Marriott Newark Liberty International Airport</a><br>618 Routes 1/9 South<br>Newark, NJ 07114 US';
    locations[9] = new Array(2);
    locations[9][0] = 40.705;
    locations[9][1] = -74.1748;
    locations[9][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=24429&siteid=9194&cur=USD" rel="nofollow">Marriott Newark Liberty International Airport</a><br>Newark Liberty International Airport<br>Newark, NJ 07114 US';
    locations[10] = new Array(2);
    locations[10][0] = 40.6989;
    locations[10][1] = -74.1875;
    locations[10][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=12094&siteid=9194&cur=USD" rel="nofollow">Days Hotel Newark Airport</a><br>450 US Route 1 and 9 South<br>Newark, NJ 07114 US';
    locations[11] = new Array(2);
    locations[11][0] = 40.7115;
    locations[11][1] = -74.17486;
    locations[11][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=18460&siteid=9194&cur=USD" rel="nofollow">Howard Johnson Hotel - Newark</a><br>20 Frontage Road<br>Newark, NJ 07114 US';
    locations[12] = new Array(2);
    locations[12][0] = 40.75402;
    locations[12][1] = -74.16717;
    locations[12][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=48370&siteid=9194&cur=USD" rel="nofollow">Comfort Suites Newark</a><br>1348 McCarter Hwy<br>Newark, NJ 07102 US';
    locations[13] = new Array(2);
    locations[13][0] = 40.7044;
    locations[13][1] = -74.18431;
    locations[13][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=49593&siteid=9194&cur=USD" rel="nofollow">Ramada Inn Newark International Airport</a><br>550 Route One and Nine South<br>Newark, NJ 07114 US';
for (index=0;index<14;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));}}