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.3608,-74.6026), 10);var gLatLonBounds = new GLatLngBounds(new GLatLng(40.3608,-74.6026),new GLatLng(40.3608,-74.6026));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(15); var index;
    locations[0] = new Array(2);
    locations[0][0] = 40.3608;
    locations[0][1] = -74.6026;
    locations[0][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=177085&siteid=9194&cur=USD" rel="nofollow">Staybridge Suites PRINCETON SOUTH BRUNSWICK</a><br>4375 US ROUTE 1 SOUTH<br>Princeton, NJ 08540 US';
    locations[1] = new Array(2);
    locations[1][0] = 40.3454;
    locations[1][1] = -74.6904;
    locations[1][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=182914&siteid=9194&cur=USD" rel="nofollow">Chauncey Conference Center & Hotel</a><br>Rosedale Road and Carter Road<br>Princeton, NJ 08541 US';
    locations[2] = new Array(2);
    locations[2][0] = 40.2819;
    locations[2][1] = -74.6992;
    locations[2][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=182917&siteid=9194&cur=USD" rel="nofollow">Residence Inn by Marriott Princeton at Carnegie Center</a><br>3563 US Route 1<br>Princeton, NJ 08540 US';
    locations[3] = new Array(2);
    locations[3][0] = 40.30513;
    locations[3][1] = -74.66962;
    locations[3][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=189043&siteid=9194&cur=USD" rel="nofollow">Clarion Hotel Palmer Inn</a><br>3499 Route 1 South<br>Princeton, NJ 08540 US';
    locations[4] = new Array(2);
    locations[4][0] = 40.3612;
    locations[4][1] = -74.6021;
    locations[4][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=189682&siteid=9194&cur=USD" rel="nofollow">Hampton Inn Princeton, NJ</a><br>4385 US 1 South<br>Princeton, NJ 08540 US';
    locations[5] = new Array(2);
    locations[5][0] = 40.3235;
    locations[5][1] = -74.6447;
    locations[5][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=20580&siteid=9194&cur=USD" rel="nofollow">Hyatt Regency Princeton</a><br>102 Carnegie Center<br>Princeton, NJ 08540-6293 US';
    locations[6] = new Array(2);
    locations[6][0] = 40.30191;
    locations[6][1] = -74.67344;
    locations[6][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=39691&siteid=9194&cur=USD" rel="nofollow">ESA Princeton-West Windsor</a><br>3450 Brunswick Pike<br>Princeton, NJ 08540 US';
    locations[7] = new Array(2);
    locations[7][0] = 40.3543;
    locations[7][1] = -74.6152;
    locations[7][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=43603&siteid=9194&cur=USD" rel="nofollow">The Westin Princeton at Forrestal Village</a><br>201 Village Boulevard<br>Princeton, NJ 08540 US';
    locations[8] = new Array(2);
    locations[8][0] = 40.3621;
    locations[8][1] = -74.5947;
    locations[8][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=40435&siteid=9194&cur=USD" rel="nofollow">Holiday Inn PRINCETON</a><br>100 INDEPENDENCE WAY<br>Princeton, NJ 08540 US';
    locations[9] = new Array(2);
    locations[9][0] = 40.3161;
    locations[9][1] = -74.6569;
    locations[9][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=2119&siteid=9194&cur=USD" rel="nofollow">AmeriSuites Princeton Carnegie Center</a><br>3565 U.S. Rt. 1<br>Princeton, NJ 08540 US';
    locations[10] = new Array(2);
    locations[10][0] = 40.3486;
    locations[10][1] = -74.6594;
    locations[10][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=27617&siteid=9194&cur=USD" rel="nofollow">Residence Inn by Marriott Princeton-South Brunswick</a><br>4225 Route 1<br>Princeton, NJ 08543 US';
    locations[11] = new Array(2);
    locations[11][0] = 40.3556;
    locations[11][1] = -74.6489;
    locations[11][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=10340&siteid=9194&cur=USD" rel="nofollow">Courtyard by Marriott Princeton</a><br>US Route 1 at Mapleton Road<br>Princeton, NJ 08540 US';
    locations[12] = new Array(2);
    locations[12][0] = 40.357;
    locations[12][1] = -74.6008;
    locations[12][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=12453&siteid=9194&cur=USD" rel="nofollow">Doral Forrestal Princeton</a><br>100 College Road East<br>Princeton, NJ 08540 US';
    locations[13] = new Array(2);
    locations[13][0] = 40.3497;
    locations[13][1] = -74.6612;
    locations[13][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=43556&siteid=9194&cur=USD" rel="nofollow">Nassau Inn</a><br>10 Palmer Square<br>Princeton, NJ 08542 US';
    locations[14] = new Array(2);
    locations[14][0] = 40.3556;
    locations[14][1] = -74.6481;
    locations[14][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=44289&siteid=9194&cur=USD" rel="nofollow">Premier Hotel Princeton</a><br>4355 Route 1 at Ridge Road<br>Princeton, NJ 08540 US';
for (index=0;index<15;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));}}