google.load("maps","2",{other_params:"sensor=false"});function show_person(a){var c=a[MAP_KEYS.username];a=new google.maps.LatLng(a[MAP_KEYS.latitude],a[MAP_KEYS.longitude]);var b=new google.maps.Marker(a,getMarkerOpts());gmap.addOverlay(b);google.maps.Event.addListener(b,"click",function(){$.get("/"+c+"/_user-info-map.html",function(d){b.openInfoWindow(d)})})}function show_people(a){$.each(a,function(){show_person(this)})}function hide_people(){gmap.clearOverlays()}var gmap,bounds,map_control,map_type_control;
google.setOnLoadCallback(function(){gmap=new google.maps.Map2(document.getElementById("gmap"));gmap.setMapType(G_HYBRID_MAP);map_control=new google.maps.LargeMapControl3D;map_type_control=new google.maps.MapTypeControl;gmap.addControl(map_control);gmap.addControl(map_type_control);if(typeof bbox_north!="undefined"){gmap.setCenter(new google.maps.LatLng(bbox_north,bbox_west));bounds=new google.maps.LatLngBounds;bounds.extend(new google.maps.LatLng(bbox_north,bbox_west));bounds.extend(new google.maps.LatLng(bbox_south,
bbox_east));gmap.setZoom(gmap.getBoundsZoomLevel(bounds));gmap.setCenter(bounds.getCenter())}else{var a=typeof PAGE_LATITUDE=="undefined"&&typeof PAGE_LONGITUDE=="undefined"?new google.maps.LatLng(27.97335,-15.8203):new google.maps.LatLng(PAGE_LATITUDE,PAGE_LONGITUDE);typeof ZOOM=="undefined"?gmap.setCenter(a,2):gmap.setCenter(a,ZOOM)}typeof PEOPLE!="undefined"&&show_people(PEOPLE);typeof GoogleMapsCallback!="undefined"&&GoogleMapsCallback(gmap)});
