function populateMap2() {
	var map2 = new GMap2(document.getElementById("suntwo_map"));
	map2.addMapType(G_PHYSICAL_MAP); 
	G_PHYSICAL_MAP.getMinimumResolution = function () { return 6 };
    G_NORMAL_MAP.getMinimumResolution = function () { return 6 };
    G_SATELLITE_MAP.getMinimumResolution = function () { return 6 };
    G_HYBRID_MAP.getMinimumResolution = function () { return 6 };

    G_PHYSICAL_MAP.getMaximumResolution = function () { return 9 };
    G_NORMAL_MAP.getMaximumResolution = function () { return 9 };
    G_SATELLITE_MAP.getMaximumResolution = function () { return 9 };
    G_HYBRID_MAP.getMaximumResolution = function () { return 9 }; 
	map2.setCenter(new GLatLng(39.737607118660975, -75.6024169921875), 7, G_PHYSICAL_MAP);
	map2.setUIToDefault();

    var icon2 = new GIcon();
    icon2.image = "/img/dsun-gmaps-marker.png";
    icon2.shadow = "/img/shadow-dsun-gmaps-marker.png";
    icon2.iconSize = new GSize(26.0, 43.0);
    icon2.shadowSize = new GSize(48.0, 43.0);
    icon2.iconAnchor = new GPoint(13.0, 21.0);
    icon2.infoWindowAnchor = new GPoint(13.0, 21.0);

	
		
					var points2 = new Array(20);
				points2[1] = [40.025371,-74.432373,"", ""];
		
				points2[2] = [40.603388,-74.783936,"", ""];
		
				points2[3] = [40.844844,-76.322021,"", ""];
		
				points2[4] = [40.143050,-77.244873,"", ""];
		
				points2[5] = [39.467864,-77.904053,"", ""];
		
				points2[6] = [39.416957,-76.541748,"", ""];
		
				points2[7] = [38.914402,-75.531006,"", ""];
		
				points2[8] = [38.863094,-75.640869,"", ""];
		
				points2[9] = [38.922950,-76.618652,"", ""];
		
				points2[10] = [38.948587,-76.695557,"", ""];
		
				points2[11] = [40.511572,-74.772949,"", ""];
		
				points2[12] = [40.486509,-75.421143,"", ""];
		
				points2[13] = [40.008543,-76.190186,"", ""];
		
				points2[14] = [39.221473,-77.025146,"", ""];
		
				points2[15] = [38.928363,-77.041626,"", ""];
		
				points2[16] = [38.872788,-76.970215,"", ""];
		
				points2[17] = [39.966455,-74.696045,"", ""];
		
				points2[18] = [40.344311,-75.816650,"", ""];
		
				points2[19] = [39.290663,-76.646118,"", ""];
		
				points2[20] = [39.714511,-75.569458,"", ""];
		
	

	for(var i=1; i < points2.length; i++) {
		var point2 = new GLatLng(points2[i][0],points2[i][1]);
		var windowName2 = points2[i][2];
                var windowSize2 = points2[i][3];
		map2.addOverlay(createMarker2(point2, windowName2, windowSize2, icon2));
	}
}

function createMarker2(point2, windowName2, windowSize2, icon2) {
	var marker2 = new GMarker(point2, icon2);
	/*GEvent.addListener(marker2, "click", function() {
		marker2.openInfoWindowHtml("<p><b>Name:</b> " + windowName2 + "<br/><b>Size:</b> " + windowSize2 + "</p>");
	});*/
	return marker2;
}

function addLoadEvent2(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			if (oldonload) {oldonload();}
			func();
		}
	}
}
addLoadEvent2(populateMap2);
