var point=new GLatLng(48.849545,2.352448);var lezoom=15;var maps=Object();var map;var nb_tentative_sta=Object();function loadMap(a,b){if(GBrowserIsCompatible()){maps[a]=Object();maps[a]["points"]=Array();maps[a]["center_set"]=false;map=new GMap2(document.getElementById(a));GEvent.addDomListener(document.getElementById(a),"DOMMouseScroll",wheelZoom);GEvent.addDomListener(document.getElementById(a),"mousewheel",wheelZoom);map.addControl(new GScaleControl());map.enableDoubleClickZoom();map.enableContinuousZoom();map.clearOverlays();if(b==null){b=lezoom}map.setCenter(point,b);map.setMapType(G_NORMAL_MAP);maps[a]["gMap"]=map;nb_tentative_sta[a]=Object()}}function wheelZoom(a){map=maps[a.currentTarget.id]["gMap"];if(a.cancelable){a.preventDefault()}(a.detail||-a.wheelDelta)<0?map.zoomIn("",false,true):map.zoomOut("",true);return(false)}function myzoom(b,a){map=maps[a]["gMap"];b>0?map.zoomIn("",false,true):map.zoomOut("",true)}function mymove(d,c,e){map=maps[e]["gMap"];map.panDirection(d,c)}function changeType(b,a){map=maps[a]["gMap"];if(b=="satellite"){map.setMapType(G_SATELLITE_MAP)}if(b=="map"){map.setMapType(G_NORMAL_MAP)}if(b=="hybrid"){map.setMapType(G_HYBRID_MAP)}}var markers=Object();function createMarker(i,d,c,b,e,a,h,j){if(nb_tentative_sta[c]!=null){lepoint=null;if((b!=null)&&(e!=null)){if((b!=0)||(e!=0)){lepoint=new GLatLng(e,b);nb_tentative_sta[c][a]=0}}if(lepoint==null){var g=new GClientGeocoder();nb_tentative_sta[c][a]=0;g.getLatLng(i,f)}else{f(lepoint)}}function f(k){if(maps[c]!=null){map=maps[c]["gMap"];if(k==null){if(nb_tentative_sta[c][a]<=1){var m=new GClientGeocoder();nb_tentative_sta[c][a]++;m.getLatLng(a,f)}else{if(nb_tentative_sta[c][a]<=2){var m=new GClientGeocoder();nb_tentative_sta[c][a]++;j=5;m.getLatLng(h,f)}else{}}}else{var l=new GMarker(k);GEvent.addListener(l,"mouseover",function(){l.openInfoWindowHtml(d)});GEvent.addListener(l,"click",function(){l.openInfoWindowHtml(d)});map.addOverlay(l);if(!maps[c]["center_set"]){if(j==null){j=lezoom}map.setCenter(k,j);l.openInfoWindowHtml(d);maps[c]["center_set"]=true}}}}};
