
function courrielEVA(usager)
{ 
  c = usager + "@eglisevieabondante.com"; 
  document.write("<a href='mailto:" + c + "'>" + c + "</a>");
}

function courrielCOM(domaine, usager)
{ 
  c = usager + "@" + domaine + ".com"; 
  document.write("<a href='mailto:" + c + "'>" + c + "</a>");
}

function courrielCA(domaine, usager)
{ 
  c = usager + "@" + domaine + ".ca"; 
  document.write("<a href='mailto:" + c + "'>" + c + "</a>");
}

function courrielNET(domaine, usager)
{ 
  c = usager + "@" + domaine + ".net"; 
  document.write("<a href='mailto:" + c + "'>" + c + "</a>");
}

function courrielFR(domaine, usager)
{ 
  c = usager + "@" + domaine + ".fr"; 
  document.write("<a href='mailto:" + c + "'>" + c + "</a>");
}


function initialize()
{
  if(document.getElementById("map_canvas") != null)
  {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map_canvas"));
        map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl());
        map.setCenter(new GLatLng(46.764313, -71.3029275), 14);

        var baseIcon = new GIcon(G_DEFAULT_ICON);
        baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
        baseIcon.iconSize = new GSize(20, 34);
        baseIcon.shadowSize = new GSize(37, 34);
        baseIcon.iconAnchor = new GPoint(9, 34);
        baseIcon.infoWindowAnchor = new GPoint(9, 2);

        function createMarker(point, index, texte) {
          
          var letter = String.fromCharCode("A".charCodeAt(0) + index);
          var letteredIcon = new GIcon(baseIcon);
          letteredIcon.image = "http://www.google.com/mapfiles/marker" + letter + ".png";
          
          markerOptions = { icon:letteredIcon };
          
          var marker = new GMarker(point, markerOptions);
          GEvent.addListener(marker, "click", function() {
            marker.openInfoWindowHtml(texte);
          });
          return marker;
        }

        map.addOverlay(createMarker(new GLatLng(46.758437, -71.286829), 0, "Lieu de rassemblement du dimanche: <br>3005 William Stuart (angle chemin St-Louis), Sainte-Foy"));
        map.addOverlay(createMarker(new GLatLng(46.770189, -71.319026), 1, "Bureaux et lieu de rassemblement en semaine: <br>3291 Chemin Ste-Foy, Local 109<br>Québec, Qc. G1X 3V2"));
        map.setUIToDefault();
      }
    }
}

