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.7981,-74.481), 10);var gLatLonBounds = new GLatLngBounds(new GLatLng(40.7981,-74.481),new GLatLng(40.7981,-74.481));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(5); var index;
    locations[0] = new Array(2);
    locations[0][0] = 40.7981;
    locations[0][1] = -74.481;
    locations[0][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=209001&siteid=9194&cur=USD" rel="nofollow">Hyatt Morristown</a><br>3 Speedwell Ave<br>Morristown, NJ 07960 US';
    locations[1] = new Array(2);
    locations[1][0] = 40.79;
    locations[1][1] = -74.4889;
    locations[1][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=28316&siteid=9194&cur=USD" rel="nofollow">Madison Hotel</a><br>One Convent Road<br>Morristown, NJ 07960 US';
    locations[2] = new Array(2);
    locations[2][0] = 40.8083;
    locations[2][1] = -74.441;
    locations[2][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=36056&siteid=9194&cur=USD" rel="nofollow">Summerfield Suites Morristown</a><br>194 Park Avenue<br>Morristown, NJ 07960 US';
    locations[3] = new Array(2);
    locations[3][0] = 40.7988;
    locations[3][1] = -74.453;
    locations[3][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=35506&siteid=9194&cur=USD" rel="nofollow">The Westin Governor Morris, Morristown</a><br>2 Whippany Road<br>Morristown, NJ 07960 US';
    locations[4] = new Array(2);
    locations[4][0] = 40.78835;
    locations[4][1] = -74.47253;
    locations[4][2] = '<a href="http://hotelsearch.newjerseyhotelservice.com/v5/redir.aspx?type=property&pid=3937&siteid=9194&cur=USD" rel="nofollow">Best Western Morristown Inn</a><br>270 South Street<br>Morristown, NJ 07960-6019 US';
for (index=0;index<5;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));}}
