    function initialize() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map_canvas"));
		var geocoder = new GClientGeocoder();
        map.setCenter(new GLatLng(39.94598634099171, -75.18465757369995), 14);
        map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl());       
        //map.setMapType(G_SATELLITE_MAP);

		

        // Add an encoded polyline.
        var encodedPoints = "ycvrFvl~iMmDn@}Jk@mGa@eJwBqKiC_M}CeJaEoAj@mAxEiErBqBcAeAoDeJaX_BY";
        var encodedLevels = "BBBBBBBBBBBBBBB";
 
        var encodedPolyline = new GPolyline.fromEncoded({
		color: "green",
		weight: 5,
		opacity: 0.80,
		points: encodedPoints,
		levels: encodedLevels,
		zoomFactor: 22,
		numLevels: 4
	});
		var gmarkers = []; 
		var htmls = []; 
		var i = 0; 
		var encodedPoints2 = "ue{rFxsziMtNtCrKrD|JrDrDhCnChDnD~I|ChGnF`IdIrK`IhI|@hES~EcCrFaBpGkAbByC~@yBoBiKe[mBq@";
        var encodedLevels2 = "BBBBBBBBBBBBBBBBBBBB";
 
        var encodedPolyline2 = new GPolyline.fromEncoded({
		color: "red",
		weight: 5,
		opacity: 0.60,
		points: encodedPoints2,
		levels: encodedLevels2,
		zoomFactor: 22,
		numLevels: 4
	});
	var startIcon = new GIcon();
		startIcon.image = "http://www.google.com/mapfiles/dd-end.png";
		startIcon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
		startIcon.iconSize = new GSize(20, 33);
		startIcon.shadowSize = new GSize(32, 35);
		startIcon.iconAnchor = new GPoint(10,34);
		startIcon.infoWindowAnchor = new GPoint(8, 4);
		
	var startIcon2 = new GIcon();
		startIcon2.image = "http://www.google.com/mapfiles/dd-start.png";
		startIcon2.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
		startIcon2.iconSize = new GSize(20, 33);
		startIcon2.shadowSize = new GSize(32, 35);
		startIcon2.iconAnchor = new GPoint(10,34);
		startIcon2.infoWindowAnchor = new GPoint(8, 4);		
		// Set up our GMarkerOptions object literal
		
		 function createMarker(point,name,html,iconObj) { 
        var marker = new GMarker(point,iconObj); 
        GEvent.addListener(marker, "click", function() { 
          marker.openInfoWindowHtml(html); 
        }); 
        // save the info we need to use later for the side_bar 
        gmarkers[i] = marker; 
        htmls[i] = html; 
        // add a line to the side_bar html 
        /*side_bar_html += '<a href="javascript:myclick(' + i + ')">' + 
name + '</a><br>'; */
        i++; 
        return marker; 
      } 
		
	markerOptions = { icon:startIcon };
	var point = new GLatLng(39.948601924593554, -75.19296169281006);
	var marker = createMarker(point, "", "<b>END - Hospital of the University of Pennsylvania (HUP)&nbsp;&nbsp;</b><br/><br/>3400 Spruce Street<br/>Philadelphia, PA 19104<br/>1-800-789-PENN<br/><br/><a href='http://pennhealth.com' title='http://pennhealth.com' target='_blank'>Hospital Website</a>", markerOptions)
	map.addOverlay(encodedPolyline);
	map.addOverlay(marker);
	
	markerOptions = { icon:startIcon2 };
	var point = new GLatLng(39.95755008315081, -75.18028020858765);
	var marker = createMarker(point, "", "<b>START - Heading East on Route 76</b>&nbsp;&nbsp;&nbsp;<ul><li>Head southeast on I-76 E <font style='color:red'>Toll road</font> - <i>1.4 mi</i><li>Take exit 346B for University Ave toward Grays Ferry Ave - <i>0.2 mi</i><li>Keep right at the fork to continue toward University Ave and<br/> merge onto University Ave - <i>0.2 mi</i><li>Turn right at Civic Center Blvd - <i>0.4 mi</i><li>Turn right at Civic Center Blvd - <i>0.3 mi</i><li>Continue on S 34th St - <i>276 ft</i></ul>", markerOptions)
	map.addOverlay(encodedPolyline2);
	map.addOverlay(marker);
	
	markerOptions = { icon:startIcon2 };
	var point = new GLatLng(39.9316564325941, -75.19963502883911);
	var marker = createMarker(point, "", "<b>START - Heading West on Route 76</b>&nbsp;&nbsp;&nbsp;<ul><li>Head northwest on I-76 W toward Exit 346B <font style='color:red'>Toll road</font> - <i>407 ft</i><li>Take exit 346B for University Ave - <i>0.3 mi</i><li>Merge onto S 34th St - <i>0.5 mi</i><li>Slight left at University Ave - <i>0.2 mi</i><li>Turn right at Civic Center Blvd - <i>0.3 mi</i><li>Continue on S 34th St - <i>276 ft</i></ul>", markerOptions)
	map.addOverlay(marker);
	



var hospitalIcon2 = new GIcon(G_DEFAULT_ICON);
hospitalIcon2.image = "http://www.pennhealth.com/images/hospital.jpg";	
hospitalIcon2.iconSize = new GSize(15, 15);
hospitalIcon2.shadowSize = new GSize(0, 0);
hospitalIcon2.iconAnchor = new GPoint(25,-15);
markerOptions2 = { icon:hospitalIcon2 };

	geocoder.getLatLng("3400 Spruce St Philadelphia pa 19104", function(point) { 
				var marker = createMarker(point, "", "<b>Hospital of the University of Pennsylvania (HUP)&nbsp;&nbsp;</b><br/><br/>3400 Spruce Street<br/>Philadelphia, PA 19104<br/>1-800-789-PENN<br/><br/><a href='http://pennhealth.com' title='http://pennhealth.com' target='_blank'>Hospital Website</a>", markerOptions2)
				map.addOverlay(marker); //this actually puts the marker on the map 
	}); 
var hospitalIcon = new GIcon(G_DEFAULT_ICON);
hospitalIcon.image = "http://www.pennhealth.com/images/hospital.jpg";	
hospitalIcon.iconSize = new GSize(15, 15);
hospitalIcon.shadowSize = new GSize(0, 0);
hospitalIcon.iconAnchor = new GPoint(5,5);
markerOptions = { icon:hospitalIcon };

	geocoder.getLatLng("3400 Civic Center Boulevard Philadelphia pa 19104", function(point) { 
				var marker = createMarker(point, "", "<b>Perelman Center for Advanced Medicine&nbsp;&nbsp;</b><br/><br/>3400 Civic Center Boulevard<br/>Philadelphia, PA 19104<br/>1-800-789-PENN<br/><br/><a href='http://pennhealth.com' title='http://pennhealth.com/perelman/' target='_blank'>Hospital Website</a>", markerOptions)
				map.addOverlay(marker); //this actually puts the marker on the map 
	}); 
	geocoder.getLatLng("51 N. 39th Street Philadelphia pa 19104", function(point) { 
				var marker = createMarker(point, "", "<b>Penn Presbyterian Medical Center&nbsp;&nbsp;</b><br/><br/>51 N. 39th Street<br/>Philadelphia, PA 19104<br/>1-800-789-PENN<br/><br/><a href='http://pennhealth.com' title='http://pennhealth.com/presby/' target='_blank'>Hospital Website</a>", markerOptions)
				map.addOverlay(marker); //this actually puts the marker on the map 
	}); 
	geocoder.getLatLng("1800 Lombard Street Philadelphia pa 19146", function(point) { 
				var marker = createMarker(point, "", "<b>Penn Medicine at Rittenhouse&nbsp;&nbsp;</b><br/><br/>1800 Lombard Street<br/>Philadelphia, PA 19146<br/><br/><a href='http://pennhealth.com' title='http://pennhealth.com/rittenhouse/' target='_blank'>Hospital Website</a>", markerOptions)
				map.addOverlay(marker); //this actually puts the marker on the map 
	}); 
	//map.addOverlay(new GMarker(point, markerOptions));
      }
    }
