// JavaScript Document

    
<!--
//<![CDATA[
    function load() {
      if (GBrowserIsCompatible()) {

// Déclaration carte
        var map = new GMap2(document.getElementById("map"));

// Ajout des controles
	map.addControl(new GLargeMapControl());
	map.addControl(new GMapTypeControl());	
	
// Positionnement de la carte
        map.setCenter(new GLatLng(45.400235,4.782357), 10);

// Affichage bulle
	map.openInfoWindowHtml( new GLatLng(45.400235,4.782357), "<table border='0' cellspacing='0' cellpadding='0'><tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src='2011_img/googlemap.png'></td></tr></table>");

// Vue Satellite
	// map.setMapType(G_SATELLITE_MAP); // Vue satellite
	map.setMapType(G_NORMAL_MAP); // Vue carte
	//map.setMapType(G_HYBRID_MAP); // Vue mixte

//Echelle des distances
	map.addControl(new GScaleControl()) ;

/*Creation de points et de marqueurs*/

      /* Creer des points */
              //monsols
                      var point = new GLatLng(45.400235,4.782357);

/* Creer ses propres icones pour les marqueurs */

                var icon = new GIcon();
                icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
                icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
                icon.iconSize = new GSize(12, 20);
                icon.shadowSize = new GSize(22, 20);
                icon.iconAnchor = new GPoint(6, 20);
                icon.infoWindowAnchor = new GPoint(5, 1);                            

/*Afficher des marqueurs sur la carte avec les points definis*/
//                map.addOverlay(new GMarker(point), icon);

/*Gestion des marqueurs et evenements avances*/

                /*Afficher un marqueur avec une fenêtre d'information au clic (fonction a déclarer une seule fois)*/

                function createMarker(point, texte, icon)
                {
                 var marker = new GMarker(point, icon);
                 map.addOverlay(marker);
				 //map.addOverlay(new GMarker(point), icon);
                 GEvent.addListener(marker, "click", function() {
                           marker.openInfoWindowHtml(texte);
                 });
                }
        
                createMarker(point, "<table border='0' cellspacing='0' cellpadding='0'><tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src='2011_img/googlemap.png'></td></tr></table>", icon);




 
      }
    }
    //]]>

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_changeProp(objName,x,theProp,theValue) { //v6.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
}
//-->

