$(document).ready(function() {
	initialize();
});

$('body').unload(function() {
	GUnload();
});

function initialize() {
	if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("map"));
		map.setCenter(new GLatLng(center.latitude, center.longtitude), 14);
		map.setUIToDefault();
		map.setMapType(G_HYBRID_MAP);
		
		var marker_1 = new GMarker(new GLatLng(marker.latitude, marker.longtitude));
		
		GEvent.addListener(marker_1, 'click', function() {
			marker_1.openInfoWindowHtml(html);
		});
		
		map.addOverlay(marker_1);
		marker_1.openInfoWindowHtml(html);
	}
}

