var geocoder;var map=[];var centre;function load(a,b){if(GBrowserIsCompatible()){map[b]=new GMap2(document.getElementById("map_"+b));map[b].setMapType(G_NORMAL_MAP);map[b].addMapType(G_PHYSICAL_MAP);var c=new GHierarchicalMapTypeControl();c.clearRelationships();c.addRelationship(G_SATELLITE_MAP,G_HYBRID_MAP,"Libell??s (Carte hybride)",false);map[b].addControl(c);geocoder=new GClientGeocoder();map[b].addControl(new GLargeMapControl3D());map[b].enableContinuousZoom();if(a){geocode(a,b)}}}function createMarker(b,a,d){var c=new GMarker(b);return c}function geocode(a,b){geocoder.getLatLng(a,function(c){if(!c){alert(a+" not found")}else{map[b].setCenter(c,14);var d=createMarker(c,a);map[b].addOverlay(d)}});return false}function map_enlarge(a){document.getElementById("map_"+a).style.height=600+"px";document.getElementById("map_enlarge_"+a).style.display="none";document.getElementById("map_reduce_"+a).style.display="block";centre=map[a].getCenter();map[a].checkResize();refreshmove(a)}function map_reduce(a){document.getElementById("map_"+a).style.height=300+"px";document.getElementById("map_enlarge_"+a).style.display="block";document.getElementById("map_reduce_"+a).style.display="none";map[a].checkResize();refreshmove(a)}function refreshmove(a){map[a].panTo(centre)}window.onunload=function(){GUnload()};
