// Loader do Google Maps function load_map(){ var el = document.getElementById( "map" ) ; var map = new GMap2( el ) ; if( GBrowserIsCompatible() ){ var large_map_control = new GControlPosition( G_ANCHOR_TOP_LEFT, new GSize( 0 , 0 ) ) ; var map_type_control = new GControlPosition( G_ANCHOR_TOP_RIGHT, new GSize( 0 , 0 ) ) ; map.clearOverlays() ; map.setCenter( new GLatLng( lat , lng ) , 8 ) ; map.addOverlay( new GMarker( map.getCenter() ) , 200 ) ; map.addControl( new GLargeMapControl() , large_map_control ) ; map.addControl( new GMapTypeControl() , map_type_control ) ; } else{ el.innerHTML = "Seu navegador não suporta este recurso."; } }