function CCAdresse(intitule, adresse) {
    this._intitule = intitule;
    this._adresse = adresse;
};

CCAdresse.prototype.id = function() { return this._adresse.id(); };
CCAdresse.prototype.intitule = function() { return this._intitule; };
CCAdresse.prototype.adresse = function() { return this._adresse; };

CCAdresse.prototype.windowMap = function() {
    var div = document.createElement('div');
    div.style.padding = "1em";

    var node = document.createElement('p');
    node.innerHTML = "<strong>Adresse :</strong> "+this._adresse.adresse();
    div.appendChild(node);
    
    node = document.createElement('p');
    node.innerHTML = "<strong>Région :</strong> "+this._adresse.region();
    div.appendChild(node);

    node = document.createElement('p');
    node.innerHTML = "<strong>Département :</strong> "+this._adresse.departement();
    div.appendChild(node);

    node = document.createElement('p');
    node.innerHTML = "<strong>Commune :</strong> "+this._adresse.commune();
    div.appendChild(node);

    var s = this;

    // Bouton de suppression du marker
    var a = document.createElement('a');
    a.href = "#";
    
    a.onclick = function() {
	HEvent.trigger(s, "removeMarker");
	return false;
    };
    a.innerHTML = "Supprimer la punaise de la carte";
    div.appendChild(a);

    return new WindowMapAdresse(div);
}
