   function initGeoportalMap() {
    geoportalLoadMIDES("GeoportalVisuDiv", "normal");
	if (MIDES.getMap().allowedGeoportalLayers) {
	MIDES.getMap().addControl(new OpenLayers.Control.LoadingPanel());
	MIDES.getMap().addControl (new OpenLayers.Control.ScaleLine());	
	MIDES.openLayersPanel(false);
	MIDES.setLayersPanelVisibility(true);	  
	MIDES.openToolsPanel(true);
	MIDES.setInformationPanelVisibility(false);
	/*
	MIDES.getMap().events.register('mousemove',MIDES, function(evt) {
	var lonlat = this.getMap().getLonLatFromViewPortPx(evt.xy);
	var tll = lonlat.transform(MIDES.getMap().getProjection(),OpenLayers.Projection.CRS84);
	document.getElementById('dLat').innerHTML = Math.floor(tll.lat);
	document.getElementById('dLon').innerHTML = Math.floor(tll.lon);
	document.getElementById('mLat').innerHTML = ((tll.lat-Math.floor(tll.lat))*60).toFixed(3);
	document.getElementById('mLon').innerHTML = ((tll.lon-Math.floor(tll.lon))*60).toFixed(3);
	});*/
	
    MIDES.getMap().setCenterAtLonLat(2.0, 47.00, 5);	  
	//MIDES.getMap().addControl(new OpenLayers.Control.MousePosition());
    MIDES.addGeoportalLayer('ORTHOIMAGERY.ORTHOPHOTOS:WMSC',{visibility:false});			
    MIDES.addGeoportalLayer('GEOGRAPHICALGRIDSYSTEMS.MAPS:WMSC',{opacity:0.8});		
	MIDES.getMap().addLayer("KML","Nouvelles caches","/geocaching/download/last_day_geo.kml");
	var tbx= MIDES.getMap().getControlsByClass('Geoportal.Control.ToolBox')[0];
        var measurebar= new Geoportal.Control.MeasureToolbar(
          {
            div: OpenLayers.Util.getElement(tbx.id+'_measure'),
			targetElement: OpenLayers.Util.getElement(tbx.id+'_meares')
          }
        );
        MIDES.getMap().addControl(measurebar);
      }
  }
  