function vvi22 (a_page_id) {

	this.annee_en_cours = "2012";
	this.mois_en_cours = "fevrier";
	var copyright = this.annee_en_cours;
	this.derniere_mise_a_jour = "01/" + this.mois_en_cours + "/" + this.annee_en_cours;
	this.mois_en_cours_calendrier = this.mois_en_cours;
	this.annee_en_cours_photos = "2011"; // this.annee_en_cours;
	this.annee_en_cours_photos_membres = "2011"; // this.annee_en_cours;
	this.annee_en_cours_presse = "2011"; // this.annee_en_cours;

	var page_id = a_page_id;
	var depth = a_page_id.split ("/").length - 1;
	this.flickr_utilisateur = "27257100%40N06";
	this.contenu_marge_horizontale = "10";
	this.contenu_marge_verticale = "0";


//
// Debug
//

	var debug_mode = "non";
	if (debug_mode == "oui") {
		var border = "1";
	} else {
		var border = "0";
	}


//
// Page
//

	this.page_avant_contenu = function () {
		this.head ();
		this.body_avant_contenu ();
	}

	this.page_apres_contenu = function () {
		this.body_apres_contenu ();
	}

	this.head = function () {
		document.write ("<head>");
		this.head_title ();
		if (page_id == "index") {
			document.write ("<meta http-equiv='Refresh' content='0;URL=./actualites/index.shtml'>");
		}
		document.write ("</head>");
	}

	this.head_title = function () {
		document.write ("	<title>Les V&eacute;los Verts de l'Ic - Club VTT d'&Eacute;tables-sur-Mer</title>");
	}

	this.body_avant_contenu = function () {
		document.write ("<body bgcolor='black'>");
		document.write ("	<a name='haut_page'></a>");
		document.write ("	<table border='" + border + "' cellspacing='0' cellpadding='0' alt='' title='' width='100%' height='100%'>");
		this.barre_de_presentation ();
		document.write ("		<tr>");
		this.menu ();
		document.write ("			<td width='100%' bgcolor='white' valign='top' align='center'>");
		document.write ("				<table border='" + border + "' cellspacing='0' cellpadding='0' alt='' title='' width='100%' height='100%'>");
		if (this.contenu_marge_verticale > 0) {
			document.write ("					<tr height='" + this.contenu_marge_verticale + "'>");
			document.write ("						<td></td>");
			document.write ("					</tr>");
		}
		document.write ("					<tr>");
		if (this.contenu_marge_horizontale > 0) {
			document.write ("						<td width='" + this.contenu_marge_horizontale + "'>");
			document.write ("						</td>");
		}
		document.write ("						<td valign='top'>");
	}

	this.body_apres_contenu = function () {
		document.write ("						</td>");
		if (this.contenu_marge_horizontale > 0) {
			document.write ("						<td width='" + this.contenu_marge_horizontale + "'>");
			document.write ("						</td>");
		}
		document.write ("					</tr>");
		if (this.contenu_marge_verticale > 0) {
			document.write ("					<tr height='" + this.contenu_marge_verticale + "'>");
			document.write ("						<td></td>");
			document.write ("					</tr>");
		}
		document.write ("				</table>");
		document.write ("			</td>");
		document.write ("		</tr>");
		this.bas_de_page ();
		if (page_id != "actualites/index") {
			document.write ("	</table>");
			document.write ("</body>");
		}
	}

	this.barre_de_presentation = function () {
		document.write ("<tr height='125'>");
		document.write ("	<td align='center' width='185'>");
		this.image ("images/commun/logo.jpg", {alt: "Logo V&eacute;los Verts de l'Ic"});
		document.write ("	</td>");
		document.write ("	<td align='center' valign='center' width='100%'>");
		document.write ("		<table border='" + border + "' cellspacing='0' cellpadding='0' alt='' title='' width='100%' height='100%'>");
		document.write ("			<tr height='100%'>");
		document.write ("				<td align='center' valign='center' width='100%'>");
		this.image_centree ("images/commun/titre.jpg", {alt: "Les V&eacute;los Verts de l'Ic"});
		document.write ("				</td>");
		document.write ("				<td align='center' valign='center'>");
		this.image ("images/commun/photo_barre_titre.jpg", {alt: "Membres du club"});
		document.write ("				</td>");
		document.write ("			</tr>");
		document.write ("		</table>");
		document.write ("	</td>");
		document.write ("</tr>");
	}

	this.bas_de_page = function () {
		document.write ("	<!-- Fin de page : Bouton de navigation, date de derniere mise a jour, copyright -->");
		document.write ("<tr height='40'>");
		document.write ("		<!-- Bouton de navigation vers le haut de la page -->");
		document.write ("	<td align='center' valign='center'>");
		this.image ("images/commun/haut_de_page.jpg", {lien: "#haut_page", bordure: 0, alt: "Haut de page"});
		document.write ("	</td>");
		document.write ("		<!-- Date de derniere mise a jour, copyright -->");
		document.write ("	<td align='center' valign='center' width='100%'>");
		document.write ("		<table border='" + border + "' cellspacing='0' cellpadding='0' alt='' title='' width='100%' height='100%'>");
		document.write ("			<tr height='100%'>");
		document.write ("				<td align='center' valign='center' width='100%'>");
		document.write ("					<font size='1' face='Comic Sans MS' color='white'>");
		document.write ("						<b>Derni&egrave;re mise &agrave; jour le " + this.derniere_mise_a_jour + "<br>");
		document.write ("						Copyright &copy; " + copyright + " Les V&eacute;los Verts de l'Ic. All rights reserved.</b>");
		document.write ("					</font>");
		document.write ("				</td>");
		if (page_id == "actualites/index") {
			document.write ("				<!-- Compteur de visiteurs -->");
			document.write ("				<td align='center' valign='center'>");
			document.write ("<font size='1' face='Comic Sans MS' color='white'>");
			document.write ("<b>Nombre&nbsp;de&nbsp;visiteurs&nbsp;</b>");
			document.write ("</font>");
			document.write ("<br>");
		} else {
			document.write ("			</tr>");
			document.write ("		</table>");
			document.write ("	</td>");
			document.write ("</tr>");
		}
	}


//
// Flickr
//

	this.page_diaporama_flickr = function (a_photoset_id, a_copyright_text) {
		var old_marge_horizontale = this.contenu_marge_horizontale;
		var old_marge_verticale = this.contenu_marge_verticale;
		this.contenu_marge_horizontale = "0";
		this.contenu_marge_verticale = "0";
		this.page_avant_contenu ();
		this.contenu_diaporama_flickr (a_photoset_id, a_copyright_text);
		this.page_apres_contenu ();
		this.contenu_marge_horizontale = old_marge_horizontale;
		this.contenu_marge_verticale = old_marge_verticale;
	}

	this.body_diaporama_flickr = function (a_photoset_id, a_copyright_text) {
		var old_marge_horizontale = this.contenu_marge_horizontale;
		var old_marge_verticale = this.contenu_marge_verticale;
		this.contenu_marge_horizontale = "0";
		this.contenu_marge_verticale = "0";
		this.body_avant_contenu ();
		this.contenu_diaporama_flickr (a_photoset_id, a_copyright_text);
		this.body_apres_contenu ();
		this.contenu_marge_horizontale = old_marge_horizontale;
		this.contenu_marge_verticale = old_marge_verticale;
	}

	this.contenu_diaporama_flickr = function (a_photoset_id, a_copyright_text) {
		var a_user_id = this.flickr_utilisateur;
		document.write ("<table border='" + border + "' cellspacing='0' cellpadding='0' width='100%' height='100%' bgcolor='black'>");
		document.write ("	<tr width='100%' height='100%'>");
		document.write ("		<td width='100%' height='100%'>");
		document.write ("<object width='100%' height='100%'>");
		document.write ("<param name=\"flashvars\" value=\"offsite=true&lang=en-us&page_show_url=%2Fphotos%2F" + a_user_id + "%2Fsets%2F" + a_photoset_id + "%2Fshow%2F&page_show_back_url=%2Fphotos%2F" + a_user_id + "%2Fsets%2F" + a_photoset_id + "%2F&set_id=" + a_photoset_id + "&jump_to=\"></param>");
		document.write ("<param name=\"movie\" value=\"http://www.flickr.com/apps/slideshow/show.swf?v=71649\"></param>");
		document.write ("<param name=\"allowFullScreen\" value=\"true\"></param>");
		document.write ("<embed type=\"application/x-shockwave-flash\" src=\"http://www.flickr.com/apps/slideshow/show.swf?v=71649\" allowFullScreen=\"true\" flashvars=\"offsite=true&lang=en-us&page_show_url=%2Fphotos%2F" + a_user_id + "%2Fsets%2F" + a_photoset_id + "%2Fshow%2F&page_show_back_url=%2Fphotos%2F" + a_user_id + "%2Fsets%2F" + a_photoset_id + "%2F&set_id=" + a_photoset_id + "&jump_to=\" width='100%' height='100%'></embed>");
		document.write ("</object>");
		document.write ("		</td>");
		document.write ("	</tr>");
		if (typeof a_copyright_text != "undefined") {
			document.write ("	<tr>");
			document.write ("		<td>");
			document.write ("			<font size='1' face='Comic Sans MS' color='white'>");
			document.write ("				<center>");
			document.write ("<b>Copyright &copy; " + copyright + " " + a_copyright_text + "</b>");
			document.write ("			</center>");
			document.write ("		</font>");
			document.write ("		</td>");
			document.write ("	</tr>");
		}
		document.write ("</table>");
	}

	this.page_diaporama_flickr_membres = function (a_photoset_id) {
		this.head_diaporama_flickr_membres (a_photoset_id);
		this.body_diaporama_flickr_membres ();
	}

	this.head_diaporama_flickr_membres = function (a_photoset_id) {
//
// Cette fonction ne marche pas pour deux raisons:
// . l'astuce pour inserer un fichier javascript dans un autre n'a pas l'air de marcher.
// . il y a l'air d'y avoir une incompatibiliter entre flickr.js et mootools.js.
//
//		document.write ("<head>");
//		this.head_title ();
//		document.write ("	<link rel='stylesheet' type='text/css' href='/membres/flickr/slideshow/css/slideshow.css' media='screen'/>");
//
//		var data = {};
//		document.write ("<scr" + "ipt type='text/javascript' src='/membres/flickr/jsFlickr/flickr.js'></scr" + "ipt>");
//		var flickr = new FlickrAPI (flickr_key, flickr_secret, flickr_token);
//		var photos = flickr.getPhotos (a_photoset_id);
//		var first_photo = flickr.getPhotoURL (photos[0]);
//		for (var i = 0; i < photos.length; i++){
//				var pn = flickr.getPhotoURL (photos[i]);
//				data[pn] = { };
//			}
//		document.write ("<scr" + "ipt type='text/javascript' src='/membres/flickr/slideshow/js/mootools.js'></scr" + "ipt>");
//		document.write ("<scr" + "ipt type='text/javascript' src='/membres/flickr/slideshow/js/slideshow.js'></scr" + "ipt>");
//		window.addEvent('domready', function () {
//			var myShow = new Slideshow ('show', data, {controller: true, resize: 'length', replace: [/(\\.jpg)$/, '_s.jpg'], thumbnails: true});
//		});
//		document.write ("</head>");
	}

	this.body_diaporama_flickr_membres = function () {
		var old_marge_horizontale = this.contenu_marge_horizontale;
		var old_marge_verticale = this.contenu_marge_verticale;
		this.contenu_marge_horizontale = "0";
		this.contenu_marge_verticale = "0";
		this.body_avant_contenu ();
		this.contenu_diaporama_flickr_membres ();
		this.body_apres_contenu ();
		this.contenu_marge_horizontale = old_marge_horizontale;
		this.contenu_marge_verticale = old_marge_verticale;
	}

	this.contenu_diaporama_flickr_membres = function () {
		document.write ("<table bgcolor='black' width='100%' height='100%'><tr><td valign='top' align='center'>");
		document.write ("<div id='show' class='slideshow'>");
		document.write ("	<img src='" + first_photo + "'/>");
		document.write ("</div>");
		document.write ("</td></tr></table><br>");
	}


//
// Menu
//

	this.menu = function () {
		document.write ("<td align='center' valign='top'>");
		document.write ("	<table bgcolor='black' border='" + border + "' cellspacing='0' cellpadding='0' alt='' title='' width='140'>");
		this.espace_entre_menus ();
		this.menu_actualites ();
		this.espace_entre_menus ();
		this.menu_club ();
		this.espace_entre_menus ();
		this.menu_station_vtt ();
		this.espace_entre_menus ();
		this.menu_tagarine ();
		this.espace_entre_menus ();
		this.menu_evenements ();
		this.espace_entre_menus ();
		this.menu_calendrier ();
		this.espace_entre_menus ();
		this.menu_photos ();
		this.espace_entre_menus ();
		this.menu_presse ();
		this.espace_entre_menus ();
		this.menu_liens ();
		this.espace_entre_menus ();
		this.menu_membres ();
		this.espace_entre_menus ();
		document.write ("	</table>");
		document.write ("</td>");
	}

	this.menu_actualites = function () {
		var selectionne = "";
		if (page_id == "actualites/index") {
			selectionne = "_selectionne";
		}
		document.write ("<tr>");
		document.write ("<td align='center'>");
		this.image ("images/actualites/menu/actualites" + selectionne + ".jpg", {lien: "actualites/index.shtml", bordure: 0, alt: "Actualit&eacute;s"});
		document.write ("</td>");
		document.write ("</tr>");
	}

	this.menu_club = function () {
		var selectionne = "";
		var deja_selectionne = false;
		if (page_id == "club/index") {
			selectionne = "_selectionne";
			deja_selectionne = true;
		}
		document.write ("<tr>");
		document.write ("<td align='center'>");
		this.image ("images/club/menu/club" + selectionne + ".jpg", {lien: "club/index.html", bordure: 0, alt: "Le Club"});
		document.write ("</td>");
		document.write ("</tr>");

		if (page_id.substring (0, 4) == "club") {
			this.espace_entre_sous_menus ();
			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 18) == "club/mot_president") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/club/menu/mot_president" + selectionne + ".jpg", {lien: "club/mot_president.html", bordure: 0, alt: "Mot du Pr&eacute;sident"});
			document.write ("</td>");
			document.write ("</tr>");
			this.espace_entre_sous_menus ();

			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 15) == "club/historique") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/club/menu/historique" + selectionne + ".jpg", {lien: "club/historique.html", bordure: 0, alt: "Historique"});
			document.write ("</td>");
			document.write ("</tr>");
			this.espace_entre_sous_menus ();

			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 12) == "club/membres") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/club/menu/membres" + selectionne + ".jpg", {lien: "club/membres.html", bordure: 0, alt: "Membres"});
			document.write ("</td>");
			document.write ("</tr>");
			this.espace_entre_sous_menus ();

			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 13) == "club/adhesion") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/club/menu/adhesion" + selectionne + ".jpg", {lien: "club/adhesion.html", bordure: 0, alt: "Adh&eacute;sion"});
			document.write ("</td>");
			document.write ("</tr>");
			this.espace_entre_sous_menus ();

			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 12) == "club/licence") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/club/menu/licence" + selectionne + ".jpg", {lien: "club/licence.html", bordure: 0, alt: "Licence"});
			document.write ("</td>");
			document.write ("</tr>");
			this.espace_entre_sous_menus ();

			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 16) == "club/partenaires") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/club/menu/partenaires" + selectionne + ".jpg", {lien: "club/partenaires.html", bordure: 0, alt: "Partenaires"});
			document.write ("</td>");
			document.write ("</tr>");
			this.espace_entre_sous_menus ();

			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 12) == "club/contact") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/club/menu/contact" + selectionne + ".jpg", {lien: "club/contact.html", bordure: 0, alt: "Nous contacter"});
			document.write ("</td>");
			document.write ("</tr>");
		}
	}

	this.menu_tagarine = function () {
		var selectionne = "";
		var deja_selectionne = false;
		if (page_id == "tagarine/index") {
			selectionne = "_selectionne";
			deja_selectionne = true;
		}
		document.write ("<tr>");
		document.write ("<td align='center'>");
		this.image ("images/tagarine/menu/tagarine" + selectionne + ".jpg", {lien: "tagarine/index.html", bordure: 0, alt: "La Tagarine"});
		document.write ("</td>");
		document.write ("</tr>");

		if (page_id.substring (0, 8) == "tagarine") {
			this.espace_entre_sous_menus ();
			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 17) == "tagarine/parcours") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/tagarine/menu/parcours" + selectionne + ".jpg", {lien: "tagarine/parcours.html", bordure: 0, alt: "Parcours"});
			document.write ("</td>");
			document.write ("</tr>");
			this.espace_entre_sous_menus ();

			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 19) == "tagarine/parrainage") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/tagarine/menu/parrainage" + selectionne + ".jpg", {lien: "tagarine/parrainage.html", bordure: 0, alt: "Parrainage"});
			document.write ("</td>");
			document.write ("</tr>");
			this.espace_entre_sous_menus ();

			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 15) == "tagarine/photos") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/tagarine/menu/photos" + selectionne + ".jpg", {lien: "tagarine/photos.html", bordure: 0, alt: "Photos"});
			document.write ("</td>");
			document.write ("</tr>");
			this.espace_entre_sous_menus ();

			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 15) == "tagarine/presse") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/tagarine/menu/presse" + selectionne + ".jpg", {lien: "tagarine/presse.html", bordure: 0, alt: "Articles de Presse"});
			document.write ("</td>");
			document.write ("</tr>");
			this.espace_entre_sous_menus ();

			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 18) == "tagarine/benevoles") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/tagarine/menu/benevoles" + selectionne + ".jpg", {lien: "tagarine/benevoles.html", bordure: 0, alt: "B&eacute;n&eacute;voles"});
			document.write ("</td>");
			document.write ("</tr>");
			this.espace_entre_sous_menus ();

			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 20) == "tagarine/partenaires") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/tagarine/menu/partenaires" + selectionne + ".jpg", {lien: "tagarine/partenaires.html", bordure: 0, alt: "Partenaires"});
			document.write ("</td>");
			document.write ("</tr>");
			this.espace_entre_sous_menus ();

			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (!deja_selectionne) {
				selectionne = "_selectionne";
			}
			this.image ("images/tagarine/menu/autres_editions" + selectionne + ".jpg", {lien: "tagarine/autres_editions.html", bordure: 0, alt: "Autres &eacute;ditions"});
			document.write ("</td>");
			document.write ("</tr>");
		}
	}

	this.menu_station_vtt = function () {
		var selectionne = "";
		var deja_selectionne = false;
		if (page_id == "station_vtt/index") {
			selectionne = "_selectionne";
			deja_selectionne = true;
		}
		document.write ("<tr>");
		document.write ("<td align='center'>");
		this.image ("images/station_vtt/menu/station_vtt" + selectionne + ".jpg", {lien: "station_vtt/index.html", bordure: 0, alt: "Station VTT"});
		document.write ("</td>");
		document.write ("</tr>");

		if (page_id.substring (0, 11) == "station_vtt") {
			this.espace_entre_sous_menus ();
			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 20) == "station_vtt/parcours") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/station_vtt/menu/parcours" + selectionne + ".jpg", {lien: "station_vtt/parcours.html", bordure: 0, alt: "Parcours"});
			document.write ("</td>");
			document.write ("</tr>");
			this.espace_entre_sous_menus ();

			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 18) == "station_vtt/presse") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/station_vtt/menu/presse" + selectionne + ".jpg", {lien: "station_vtt/presse.html", bordure: 0, alt: "Articles de Presse"});
			document.write ("</td>");
			document.write ("</tr>");
			this.espace_entre_sous_menus ();
		}
	}
	
	this.menu_evenements = function () {
		var selectionne = "";
		if (page_id == "evenements/index") {
			selectionne = "_selectionne";
		}
		document.write ("<tr>");
		document.write ("<td align='center'>");
		this.image ("images/evenements/menu/evenements" + selectionne + ".jpg", {lien: "evenements/index.html", bordure: 0, alt: "&Eacute;v&egrave;nements"});
		document.write ("</td>");
		document.write ("</tr>");

		if (page_id.substring (0, 10) == "evenements") {
			this.espace_entre_sous_menus ();
			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 17) == "evenements/oleron") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/evenements/menu/oleron" + selectionne + ".jpg", {lien: "evenements/oleron.html", bordure: 0, alt: "Ol&eacute;ron"});
			document.write ("</td>");
			document.write ("</tr>");
			this.espace_entre_sous_menus ();

			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 24) == "evenements/repas_famille") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/evenements/menu/repas_famille" + selectionne + ".jpg", {lien: "evenements/repas_famille.html", bordure: 0, alt: "Repas famille"});
			document.write ("</td>");
			document.write ("</tr>");
			this.espace_entre_sous_menus ();

			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 27) == "evenements/week_end_famille") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/evenements/menu/week_end_famille" + selectionne + ".jpg", {lien: "evenements/week_end_famille.html", bordure: 0, alt: "Week-end famille"});
			document.write ("</td>");
			document.write ("</tr>");
			this.espace_entre_sous_menus ();

			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 21) == "evenements/maxi_verte") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/evenements/menu/maxi_verte" + selectionne + ".jpg", {lien: "evenements/maxi_verte.html", bordure: 0, alt: "La Maxi Verte"});
			document.write ("</td>");
			document.write ("</tr>");
			this.espace_entre_sous_menus ();

			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 19) == "evenements/tagarine") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/evenements/menu/tagarine" + selectionne + ".jpg", {lien: "tagarine/index.html", bordure: 0, alt: "La Tagarine"});
			document.write ("</td>");
			document.write ("</tr>");
		}
	}

	this.menu_calendrier = function () {
		var selectionne = "";
		var deja_selectionne = false;
		if (page_id == "calendrier/index") {
			selectionne = "_selectionne";
			deja_selectionne = true;
		}
		document.write ("<tr>");
		document.write ("<td align='center'>");
		this.image ("images/calendrier/menu/calendrier" + selectionne + ".jpg", {lien: "calendrier/index.html", bordure: 0, alt: "Calendrier"});
		document.write ("</td>");
		document.write ("</tr>");

		if (page_id.substring (0, 10) == "calendrier") {
			this.espace_entre_sous_menus ();
			var mois = ["janvier"];
			if (this.mois_en_cours_calendrier == "fevrier") {
				mois = ["fevrier", "janvier"];
			} else if (this.mois_en_cours_calendrier == "mars") {
				mois = ["mars", "fevrier", "janvier"];
			} else if (this.mois_en_cours_calendrier == "avril") {
				mois = ["avril", "mars", "fevrier", "janvier"];
			} else if (this.mois_en_cours_calendrier == "mai") {
				mois = ["mai", "avril", "mars", "fevrier", "janvier"];
			} else if (this.mois_en_cours_calendrier == "juin") {
				mois = ["juin", "mai", "avril", "mars", "fevrier", "janvier"];
			} else if (this.mois_en_cours_calendrier == "juillet") {
				mois = ["juillet", "juin", "mai", "avril", "mars", "fevrier", "janvier"];
			} else if (this.mois_en_cours_calendrier == "aout") {
				mois = ["aout", "juillet", "juin", "mai", "avril", "mars", "fevrier", "janvier"];
			} else if (this.mois_en_cours_calendrier == "septembre") {
				mois = ["septembre", "aout", "juillet", "juin", "mai", "avril", "mars", "fevrier", "janvier"];
			} else if (this.mois_en_cours_calendrier == "octobre") {
				mois = ["octobre", "septembre", "aout", "juillet", "juin", "mai", "avril", "mars", "fevrier", "janvier"];
			} else if (this.mois_en_cours_calendrier == "novembre") {
				mois = ["novembre", "octobre", "septembre", "aout", "juillet", "juin", "mai", "avril", "mars", "fevrier", "janvier"];
			} else if (this.mois_en_cours_calendrier == "decembre") {
				mois = ["decembre", "novembre", "octobre", "septembre", "aout", "juillet", "juin", "mai", "avril", "mars", "fevrier", "janvier"];
			}
			for (var i = 0; i < mois.length; i++) {
				document.write ("<tr>");
				document.write ("<td align='right'>");
				selectionne = "";
				if (page_id == "calendrier/" + this.annee_en_cours + "/" + mois[i]) {
					selectionne = "_selectionne";
					deja_selectionne = true;
				}
				this.image ("images/calendrier/menu/" + mois[i] + selectionne + ".jpg", {lien: "calendrier/" + this.annee_en_cours + "/" + mois[i] + ".html", bordure: 0, alt: mois[i]});
				document.write ("</td>");
				document.write ("</tr>");
				this.espace_entre_sous_menus ();
			}

			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (!deja_selectionne) {
				selectionne = "_selectionne";
			}
			this.image ("images/calendrier/menu/archive" + selectionne + ".jpg", {lien: "calendrier/archive.html", bordure: 0, alt: "Archive"});
			document.write ("</td>");
			document.write ("</tr>");
		}
	}

	this.menu_photos = function () {
		var selectionne = "";
		var deja_selectionne = false;
		if (page_id == "photos/index") {
			selectionne = "_selectionne";
			deja_selectionne = true;
		}
		document.write ("<tr>");
		document.write ("<td align='center'>");
		this.image ("images/photos/menu/photos" + selectionne + ".jpg", {lien: "photos/index.html", bordure: 0, alt: "Photos"});
		document.write ("</td>");
		document.write ("</tr>");

		if (page_id.substring(0, 6) == "photos") {
			this.espace_entre_sous_menus ();
			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 7 + this.annee_en_cours_photos.length) == "photos/" + this.annee_en_cours_photos) {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/photos/menu/" + this.annee_en_cours_photos + selectionne + ".jpg", {lien: "photos/" + this.annee_en_cours_photos + "/index.html", bordure: 0, alt: this.annee_en_cours_photos});
			document.write ("</td>");
			document.write ("</tr>");
			this.espace_entre_sous_menus ();

			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (!deja_selectionne) {
				selectionne = "_selectionne";
			}
			this.image ("images/photos/menu/archive" + selectionne + ".jpg", {lien: "photos/archive.html", bordure: 0, alt: "Archive"});
			document.write ("</td>");
			document.write ("</tr>");
		}
	}

	this.menu_presse = function () {
		var selectionne = "";
		var deja_selectionne = false;
		if (page_id == "presse/index") {
			selectionne = "_selectionne";
			deja_selectionne = true;
		}
		document.write ("<tr>");
		document.write ("<td align='center'>");
		this.image ("images/presse/menu/presse" + selectionne + ".jpg", {lien: "presse/index.html", bordure: 0, alt: "Photos"});
		document.write ("</td>");
		document.write ("</tr>");

		if (page_id.substring (0, 6) == "presse") {
			this.espace_entre_sous_menus ();
			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 7 + this.annee_en_cours_presse.length) == "presse/" + this.annee_en_cours_presse) {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/presse/menu/" + this.annee_en_cours_presse + selectionne + ".jpg", {lien: "presse/" + this.annee_en_cours_presse + "/index.html", bordure: 0, alt: this.annee_en_cours_presse});
			document.write ("</td>");
			document.write ("</tr>");
			this.espace_entre_sous_menus ();

			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (!deja_selectionne) {
				selectionne = "_selectionne";
			}
			this.image ("images/presse/menu/archive" + selectionne + ".jpg", {lien: "presse/archive.html", bordure: 0, alt: "Archive"});
			document.write ("</td>");
			document.write ("</tr>");
		}
	}

	this.menu_liens = function () {
		var selectionne = "";
		if (page_id == "liens/index") {
			selectionne = "_selectionne";
		}
		document.write ("<tr>");
		document.write ("<td align='center'>");
		this.image ("images/liens/menu/liens" + selectionne + ".jpg", {lien: "liens/index.html", bordure: 0, alt: "Liens utiles"});
		document.write ("</td>");
		document.write ("</tr>");

		if (page_id.substring (0, 5) == "liens") {
			this.espace_entre_sous_menus ();
			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 13) == "liens/etables") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/liens/menu/etables" + selectionne + ".jpg", {lien: "liens/etables.html", bordure: 0, alt: "&Eacute;tables-sur-Mer"});
			document.write ("</td>");
			document.write ("</tr>");
			this.espace_entre_sous_menus ();

			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 14) == "liens/environs") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/liens/menu/environs" + selectionne + ".jpg", {lien: "liens/environs.html", bordure: 0, alt: "Les Environs"});
			document.write ("</td>");
			document.write ("</tr>");
			this.espace_entre_sous_menus ();

			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 11) == "liens/meteo") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/liens/menu/meteo" + selectionne + ".jpg", {lien: "liens/meteo.html", bordure: 0, alt: "M&eacute;t&eacute;o"});
			document.write ("</td>");
			document.write ("</tr>");
			this.espace_entre_sous_menus ();

			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 23) == "liens/clubs_partenaires") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/liens/menu/clubs_partenaires" + selectionne + ".jpg", {lien: "liens/clubs_partenaires.html", bordure: 0, alt: "Clubs Partenaires"});
			document.write ("</td>");
			document.write ("</tr>");
		}
	}

	this.menu_membres = function () {
		var selectionne = "";
		if (page_id == "membres/index") {
			selectionne = "_selectionne";
		}
		document.write ("<tr>");
		document.write ("<td align='center'>");
		this.image ("images/membres/menu/membres" + selectionne + ".jpg", {lien: "membres/index.html", bordure: 0, alt: "Espace Membres"});
		document.write ("</td>");
		document.write ("</tr>");

		if (page_id.substring (0, 7) == "membres") {
			this.espace_entre_sous_menus ();
			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 17) == "membres/adherents") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/membres/menu/adherents" + selectionne + ".jpg", {lien: "membres/adherents.html", bordure: 0, alt: "Adh&eacute;rents"});
			document.write ("</td>");
			document.write ("</tr>");
			this.espace_entre_sous_menus ();

			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 14) == "membres/photos") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/membres/menu/photos" + selectionne + ".jpg", {lien: "membres/photos/index.html", bordure: 0, alt: "Photos"});
			document.write ("</td>");
			document.write ("</tr>");
			this.espace_entre_sous_menus ();

			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 15) == "membres/statuts") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/membres/menu/statuts" + selectionne + ".jpg", {lien: "membres/statuts.html", bordure: 0, alt: "Statuts du Club"});
			document.write ("</td>");
			document.write ("</tr>");
		}
	}

	this.espace_entre_menus = function () {
		document.write ("<tr height='10'>");
		document.write ("	<td></td><!-- Espace entre entrees du menu -->");
		document.write ("</tr>");
	}

	this.espace_entre_sous_menus = function () {
		document.write ("<tr height='2'>");
		document.write ("	<td></td><!-- Espace entre entrees du sous-menu -->");
		document.write ("</tr>");
	}


//
// Image
//

	this.image = function (a_path, a_options) {
			// options:
			//     lien: pathname
			//     bordure: nombre
			//     largeur: nombre
			//     hauteur: nombre
			//     alt: texte
			//     tooltip: texte
			//     centre: oui/non
		if (typeof a_options == "undefined") {
			document.write ("<img src='" + this.relative_path (a_path) + "'/>");
		} else {
			if (typeof a_options['centre'] != "undefined" && a_options['centre'] == "oui") {
				this.centre ();
			}
			if (typeof a_options['lien'] != "undefined") {
				this.lien (a_options['lien']);
			}
			document.write ("<img src='" + this.relative_path (a_path) + "'");
			if (typeof a_options['bordure'] != "undefined") {
				document.write (" border='" + a_options['bordure'] + "'");
			} else if (typeof a_options['lien'] != "undefined") {
				document.write (" border='5'");
			}
			if (typeof a_options['largeur'] != "undefined") {
				document.write (" width='" + a_options['largeur'] + "'");
			}
			if (typeof a_options['hauteur'] != "undefined") {
				document.write (" height='" + a_options['hauteur'] + "'");
			}
			if (typeof a_options['alt'] != "undefined") {
				document.write (" alt=\"" + a_options['alt'] + "\"");
			} else {
				document.write (" alt=''");
			}
			if (typeof a_options['tooltip'] != "undefined") {
				document.write (" title=\"" + a_options['tooltip'] + "\"");
			} else {
				document.write (" title=''");
			}
			document.write ("/>");
			if (typeof a_options['lien'] != "undefined") {
				this.fin_lien ();
			}
			if (typeof a_options['centre'] != "undefined" && a_options['centre'] == "oui") {
				this.fin_centre ();
			}
		}
	}

	this.image_centree = function (a_path, a_options) {
			// options:
			//     lien: pathname
			//     bordure: nombre
			//     largeur: nombre
			//     hauteur: nombre
			//     alt: texte
			//     tooltip: texte
		if (typeof a_options == "undefined") {
			this.image (a_path, {centre: "oui"});
		} else {
			a_options['centre'] = "oui";
			this.image (a_path, a_options);
		}
	}

	this.image_avec_legende = function (a_image, a_legende, a_options) {
			// options:
			//     centre: oui/non
			//     lien: pathname
			// options image:
			//     bordure: nombre
			//     largeur: nombre
			//     hauteur: nombre
			//     alt: texte
			//     tooltip: texte
			//     lien_image: pathname
			// options legende:
			//     taille: nombre
			//     couleur: texte
			//     police: texte
			//     souligne: oui/non
			//     gras: oui/non
			//     italique: oui/non
			//     diaporama: oui/non
			//     lien_legende: pathname
		var l_centre = false;
		if (typeof a_options != "undefined" && typeof a_options['centre'] != "undefined" && a_options['centre'] == "oui") {
			l_centre = true;
			a_options['centre'] = "non";
			this.centre ();
		}
		document.write ("<table border='" + border + "' cellspacing='0' cellpadding='0'>");
		document.write (	"<tr>");
		document.write (		"<td align='center' valign='top'>");
		if (typeof a_options == "undefined" || typeof a_options['lien_image'] == "undefined") {
			this.image (a_image, a_options);
		} else if (a_options['lien'] == "undefined") {
			a_options['lien'] = a_options['lien_image'];
			this.image (a_image, a_options);
			delete a_options['lien'];
		} else {
			var l_old_lien = a_options['lien'];
			a_options['lien'] = a_options['lien_image'];
			this.image (a_image, a_options);
			a_options['lien'] = l_old_lien;
		}
		document.write (		"</td>");
		document.write (	"</tr>");
		document.write (	"<tr>");
		document.write (		"<td align='center' valign='top'>");
		if (typeof a_options == "undefined" || typeof a_options['lien_legende'] == "undefined") {
			this.legende (a_legende, a_options);
		} else if (a_options['lien'] == "undefined") {
			a_options['lien'] = a_options['lien_legende'];
			this.legende (a_legende, a_options);
			delete a_options['lien'];
		} else {
			var l_old_lien = a_options['lien'];
			a_options['lien'] = a_options['lien_legende'];
			this.legende (a_legende, a_options);
			a_options['lien'] = l_old_lien;
		}
		document.write (		"</td>");
		document.write (	"</tr>");
		document.write ("</table>");
		if (l_centre == true) {
			a_options['centre'] = "oui";
			this.fin_centre ();
		}
	}

	this.image_centree_avec_legende = function (a_image, a_legende, a_options) {
			// options:
			//     lien: pathname
			// options image:
			//     bordure: nombre
			//     largeur: nombre
			//     hauteur: nombre
			//     alt: texte
			//     tooltip: texte
			//     lien_image: pathname
			// options legende:
			//     taille: nombre
			//     couleur: texte
			//     police: texte
			//     souligne: oui/non
			//     gras: oui/non
			//     italique: oui/non
			//     diaporama: oui/non
			//     lien_legende: pathname
		if (typeof a_options == "undefined") {
			this.image_avec_legende (a_image, a_legende, {centre: "oui"});
		} else {
			a_options['centre'] = "oui";
			this.image_avec_legende (a_image, a_legende, a_options);
		}
	}

	this.voir_diaporama = function (a_image, a_lien, a_options) {
			// options:
			//     centre: oui/non
			// options image:
			//     bordure: nombre
			//     largeur: nombre
			//     hauteur: nombre
			//     alt: texte
			//     tooltip: texte
			// options legende:
			//     taille: nombre
			//     couleur: texte
			//     police: texte
			//     souligne: oui/non
			//     gras: oui/non
			//     italique: oui/non
		if (typeof a_options == "undefined") {
			this.image_avec_legende (a_image, "Voir le Diaporama", {lien: a_lien, diaporama: "oui"});
		} else {
			a_options['lien'] = a_lien;
			a_options['diaporama'] = "oui";
			this.image_avec_legende (a_image, "Voir le Diaporama", a_options);
		}
	}

	this.voir_diaporama_centre = function (a_image, a_lien, a_options) {
			// options image:
			//     bordure: nombre
			//     largeur: nombre
			//     hauteur: nombre
			//     alt: texte
			//     tooltip: texte
			// options legende:
			//     taille: nombre
			//     couleur: texte
			//     police: texte
			//     souligne: oui/non
			//     gras: oui/non
			//     italique: oui/non
		if (typeof a_options == "undefined") {
			this.voir_diaporama (a_image, a_lien, {centre: "oui"});
		} else {
			a_options['centre'] = "oui";
			this.voir_diaporama (a_image, a_lien, a_options);
		}
	}

	this.fleche_orange = function () {
		this.image ("images/commun/fleche_orange.jpg");
	}

	this.fleche_orange_indentee = function () {
		this.espace (4);
		this.fleche_orange ();
		this.espace (1);
	}

	this.separateur = function () {
		this.image_centree ("images/membres/adherents/separateur.jpg", {largeur: "100%", hauteur: 2});
	}


//
// Texte
//

	this.texte = function (a_text, a_options) {
			// options:
			//     taille: nombre
			//     couleur: texte
			//     police: texte
			//     souligne: oui/non
			//     gras: oui/non
			//     italique: oui/non
			//     centre: oui/non
			//     lien: pathname
		var l_taille_defaut = 3;
		var l_police_defaut = "Comic Sans MS";
		if (typeof a_options == "undefined") {
			document.write ("<font");
			document.write (" size='" + l_taille_defaut + "'");
			document.write (" face='" + l_police_defaut + "'");
			document.write (">");
			document.write (a_text);
			document.write ("</font>");
		} else {
			if (typeof a_options['centre'] != "undefined" && a_options['centre'] == "oui") {
				this.centre ();
			}
			if (typeof a_options['lien'] != "undefined") {
				this.lien (a_options['lien']);
			}
			document.write ("<font");
			if (typeof a_options['taille'] == "undefined") {
				document.write (" size='" + l_taille_defaut + "'");
			} else {
				document.write (" size='" + a_options['taille'] + "'");
			}
			if (typeof a_options['police'] == "undefined") {
				document.write (" face='" + l_police_defaut + "'");
			} else {
				document.write (" face='" + a_options['police'] + "'");
			}
			if (typeof a_options['couleur'] != "undefined") {
				document.write (" color='" + a_options['couleur'] + "'");
			}
			document.write (">");
			if (typeof a_options['souligne'] != "undefined" && a_options['souligne'] == "oui") {
				document.write ("<u>");
			}
			if (typeof a_options['gras'] != "undefined" && a_options['gras'] == "oui") {
				document.write ("<b>");
			}
			if (typeof a_options['italique'] != "undefined" && a_options['italique'] == "oui") {
				document.write ("<i>");
			}
			document.write (a_text);
			if (typeof a_options['italique'] != "undefined" && a_options['italique'] == "oui") {
				document.write ("</i>");
			}
			if (typeof a_options['gras'] != "undefined" && a_options['gras'] == "oui") {
				document.write ("</b>");
			}
			if (typeof a_options['souligne'] != "undefined" && a_options['souligne'] == "oui") {
				document.write ("</u>");
			}
			document.write ("</font>");
			if (typeof a_options['lien'] != "undefined") {
				this.fin_lien ();
			}
			if (typeof a_options['centre'] != "undefined" && a_options['centre'] == "oui") {
				this.fin_centre ();
			}
		}
	}

	this.texte_avec_image = function (a_image, a_text, a_options) {
			// options:
			//     centre: oui/non
			//     lien: pathname
			// options texte:
			//     taille: nombre
			//     couleur: texte
			//     police: texte
			//     souligne: oui/non
			//     gras: oui/non
			//     italique: oui/non
			// options image:
			//     bordure: nombre
			//     largeur: nombre
			//     hauteur: nombre
			//     alt: texte
			//     tooltip: texte
		var l_centre = false;
		if (typeof a_options != "undefined" && typeof a_options['centre'] != "undefined" && a_options['centre'] == "oui") {
			l_centre = true;
			a_options['centre'] = "non";
			this.centre ();
		}
		this.alignement ();
			this.alignement_entree ();
				this.image (a_image, a_options);
			this.fin_alignement_entree ();
			this.alignement_entree ();
				this.espace (2);
				this.texte (a_text, a_options);
			this.fin_alignement_entree ();
		this.fin_alignement ();
		if (l_centre == true) {
			a_options['centre'] = "oui";
			this.fin_centre ();
		}
	}

	this.texte_gras = function (a_text, a_options) {
			// options:
			//     taille: nombre
			//     couleur: texte
			//     police: texte
			//     souligne: oui/non
			//     italique: oui/non
			//     centre: oui/non
			//     lien: pathname
		if (typeof a_options == "undefined") {
			this.texte (a_text, {gras: "oui"});
		} else {
			a_options['gras'] = "oui";
			this.texte (a_text, a_options);
		}
	}

	this.texte_italique = function (a_text, a_options) {
			// options:
			//     taille: nombre
			//     couleur: texte
			//     police: texte
			//     souligne: oui/non
			//     gras: oui/non
			//     centre: oui/non
			//     lien: pathname
		if (typeof a_options == "undefined") {
			this.texte (a_text, {italique: "oui"});
		} else {
			a_options['italique'] = "oui";
			this.texte (a_text, a_options);
		}
	}

	this.texte_souligne = function (a_text, a_options) {
			// options:
			//     taille: nombre
			//     couleur: texte
			//     police: texte
			//     italique: oui/non
			//     gras: oui/non
			//     centre: oui/non
			//     lien: pathname
		if (typeof a_options == "undefined") {
			this.texte (a_text, {souligne: "oui"});
		} else {
			a_options['souligne'] = "oui";
			this.texte (a_text, a_options);
		}
	}

	this.texte_centre = function (a_text, a_options) {
			// options:
			//     taille: nombre
			//     couleur: texte
			//     police: texte
			//     souligne: oui/non
			//     gras: oui/non
			//     italique: oui/non
			//     lien: pathname
		if (typeof a_options == "undefined") {
			this.texte (a_text, {centre: "oui"});
		} else {
			a_options['centre'] = "oui";
			this.texte (a_text, a_options);
		}
	}

	this.texte_en_rouge = function (a_text, a_options) {
			// options:
			//     taille: nombre
			//     police: texte
			//     souligne: oui/non
			//     gras: oui/non
			//     italique: oui/non
			//     centre: oui/non
			//     lien: pathname
		if (typeof a_options == "undefined") {
			this.texte (a_text, {couleur: "red"});
		} else {
			a_options['couleur'] = "red";
			this.texte (a_text, a_options);
		}
	}

	this.texte_gras_en_rouge = function (a_text, a_options) {
			// options:
			//     taille: nombre
			//     police: texte
			//     souligne: oui/non
			//     italique: oui/non
			//     centre: oui/non
			//     lien: pathname
		if (typeof a_options == "undefined") {
			this.texte_en_rouge (a_text, {gras: "oui"});
		} else {
			a_options['gras'] = "oui";
			this.texte_en_rouge (a_text, a_options);
		}
	}

	this.texte_souligne_en_rouge = function (a_text, a_options) {
			// options:
			//     taille: nombre
			//     police: texte
			//     gras: oui/non
			//     italique: oui/non
			//     centre: oui/non
			//     lien: pathname
		if (typeof a_options == "undefined") {
			this.texte_en_rouge (a_text, {souligne: "oui"});
		} else {
			a_options['souligne'] = "oui";
			this.texte_en_rouge (a_text, a_options);
		}
	}

	this.titre = function (a_text, a_options) {
			// options:
			//     taille: nombre
			//     couleur: texte
			//     police: texte
			//     souligne: oui/non
			//     gras: oui/non
			//     italique: oui/non
			//     centre: oui/non
			//     lien: pathname
		if (typeof a_options == "undefined") {
			this.texte (a_text, {taille: 5});
		} else if (typeof a_options['taille'] == "undefined") {
			a_options['taille'] = 5;
			this.texte (a_text, a_options);
		} else {
			this.texte (a_text, a_options);
		}
	}

	this.titre_avec_image = function (a_image, a_text, a_options) {
			// options:
			//     centre: oui/non
			//     lien: pathname
			// options texte:
			//     taille: nombre
			//     couleur: texte
			//     police: texte
			//     souligne: oui/non
			//     gras: oui/non
			//     italique: oui/non
			// options image:
			//     bordure: nombre
			//     largeur: nombre
			//     hauteur: nombre
			//     alt: texte
			//     tooltip: texte
		if (typeof a_options == "undefined") {
			this.texte_avec_image (a_image, a_text, {taille: 5});
		} else {
			a_options['taille'] = 5;
			this.texte_avec_image (a_image, a_text, a_options);
		}
	}

	this.legende = function (a_text, a_options) {
			// options:
			//     taille: nombre
			//     couleur: texte
			//     police: texte
			//     souligne: oui/non
			//     gras: oui/non
			//     italique: oui/non
			//     centre: oui/non
			//     diaporama: oui/non
			//     lien: pathname
		if (typeof a_options == "undefined") {
			this.texte (a_text, {taille: 2});
		} else {
			if (typeof a_options['taille'] == "undefined") {
				a_options['taille'] = 2;
			}
			if (typeof a_options['diaporama'] != "undefined"  && a_options['diaporama'] == "oui" && a_text.substring(0, 17) == "Voir le Diaporama" && typeof a_options['lien'] != "undefined") {
				var l_old_lien = a_options['lien'];
				delete a_options['lien'];
				this.texte ("Voir le ", a_options);
				a_options['lien'] = l_old_lien;
				this.texte ("Diaporama", a_options);
				delete a_options['lien'];
				this.texte (a_text.substring(17, a_text.length), a_options);
				a_options['lien'] = l_old_lien;
			} else {
				this.texte (a_text, a_options);
			}
		}
	}

	this.legende_centree = function (a_text, a_options) {
			// options:
			//     taille: nombre
			//     couleur: texte
			//     police: texte
			//     souligne: oui/non
			//     gras: oui/non
			//     italique: oui/non
			//     diaporama: oui/non
			//     lien: pathname
		if (typeof a_options == "undefined") {
			this.legende (a_text, {centre: "oui"});
		} else {
			a_options['centre'] = "oui";
			this.legende (a_text, a_options);
		}
	}


//
// Bandeau
//

	this.bandeau_presse = function (a_tag, a_titre) {
		this.tag (a_tag);
		this.bandeau ("images/presse/journal.jpg", 53, a_titre);
	}

	this.bandeau_vetetiste = function (a_tag, a_titre) {
		this.tag (a_tag);
		this.bandeau ("images/calendrier/vetetiste.jpg", 50, a_titre);
	}

	this.bandeau_repas = function (a_tag, a_titre) {
		this.tag (a_tag);
		this.bandeau ("images/evenements/repas_famille/repas.jpg", 50, a_titre);
	}

	this.bandeau_week_end = function (a_tag, a_titre) {
		this.tag (a_tag);
		this.bandeau ("images/evenements/week_end_famille/famille.jpg", 50, a_titre);
	}

	this.bandeau_parrainage = function (a_tag, a_titre) {
		this.tag (a_tag);
		this.bandeau ("images/tagarine/parrainage.jpg", 66, a_titre);
	}

	this.bandeau_photo = function (a_tag, a_titre) {
		this.tag (a_tag);
		this.bandeau ("images/photos/photos_petit.jpg", 66, a_titre);
	}

	this.bandeau_maxi_verte = function (a_tag, a_titre) {
		this.tag (a_tag);
		this.bandeau ("images/evenements/maxi_verte/maxi_verte.jpg", 55, a_titre);
	}

	this.bandeau_liens = function (a_tag, a_titre) {
		this.tag (a_tag);
		this.bandeau ("images/liens/liens.jpg", 66, a_titre);
	}

	this.bandeau_statuts = function (a_tag, a_titre) {
		this.tag (a_tag);
		this.bandeau ("images/membres/statuts/statuts.jpg", 65, a_titre);
	}

	this.bandeau = function (a_image, a_image_width, a_titre) {
		document.write ("<table bgcolor='#C53C12' border='" + border + "' alt='' title='' width='100%'>");
		document.write ("	<tr>");
		document.write ("		<td width='50'>");
		this.image (a_image, {largeur: a_image_width, hauteur: 62});
		document.write ("</td>");
		document.write ("		<td width='10'></td>");
		document.write ("		<td align='left'><font size='4' face='Comic Sans MS' color='white'>" + a_titre + "</font></td>");
		document.write ("	</tr>");
		document.write ("</table>");
	}


//
// Coordonnees
//

	this.coordonnees = function (a_prenom, a_nom, a_options) {
		this.tag (a_prenom + "_" + a_nom);
		this.alignement ();
			this.alignement_entree ();
				this.espace (3)
			this.fin_alignement_entree ();
			this.alignement_entree_haut ();
				this.image_centree ("images/membres/adherents/" + a_prenom + "_" + a_nom + ".jpg", {bordure: 1});
				if (typeof a_options != "undefined" && typeof a_options['titre'] != "undefined") {
					this.texte_souligne (a_options['titre'], {centre: "oui"});
				}
				if (a_prenom == "karine" && a_nom == "bezault") {
					this.texte_centre ("Cr&eacute;atrice du");
					this.texte_centre ("Site Internet");
				}
			this.fin_alignement_entree ();
			this.alignement_entree ();
				this.espace (4)
			this.fin_alignement_entree ();
			this.alignement_entree_haut ();
				if (typeof a_options != "undefined" && typeof a_options['adresse1'] != "undefined") {
					this.texte (a_options['adresse1']);
					this.ligne_blanche ();
					for (var i = 2; i < 11; i++) {
						var l_adresse = "adresse" + i;
						if (typeof a_options[l_adresse] == "undefined") { 
							i = 12;
						} else {
							this.texte (a_options[l_adresse]);
							this.ligne_blanche ();
						}
					}
					this.ligne_blanche ();
				}

				if (typeof a_options != "undefined" && typeof a_options['telephone'] != "undefined") {
					this.alignement ({cellspacing: 3});
						this.alignement_entree ({largeur: 50});
							this.image_centree ("images/membres/adherents/telephone.jpg");
						this.fin_alignement_entree ();
						this.alignement_entree ();
							this.texte (a_options['telephone']);
						this.fin_alignement_entree ();
					this.fin_alignement ();
				}

				if (typeof a_options != "undefined" && typeof a_options['mobile'] != "undefined") {
					this.alignement ({cellspacing: 3});
						this.alignement_entree ({largeur: 50});
							this.image_centree ("images/membres/adherents/mobile.jpg");
						this.fin_alignement_entree ();
						this.alignement_entree ();
							this.texte (a_options['mobile']);
						this.fin_alignement_entree ();
					this.fin_alignement ();
				}

				if (typeof a_options != "undefined" && typeof a_options['email'] != "undefined") {
					this.alignement ({cellspacing: 3});
						this.alignement_entree ({largeur: 50});
							this.image_centree ("images/membres/adherents/email.gif", {lien: "mailto:" + a_prenom + "." + a_nom + "@vvi22.com", bordure: 0});
						this.fin_alignement_entree ();
						this.alignement_entree ();
							this.texte (a_prenom + "." + a_nom + "@vvi22.com", {lien: "mailto:" + a_prenom + "." + a_nom + "@vvi22.com"});
							this.texte (" (redirig&eacute; vers ");
							this.texte (a_options['email'], {lien: "mailto:" + a_options['email']});
							this.texte (")");
						this.fin_alignement_entree ();
					this.fin_alignement ();
				}

				if (typeof a_options != "undefined" && typeof a_options['naissance'] != "undefined") {
					this.alignement ({cellspacing: 3});
						this.alignement_entree ({largeur: 50});
							this.image_centree ("images/membres/adherents/cigogne.png");
						this.fin_alignement_entree ();
						this.alignement_entree ();
							this.texte (a_options['naissance']);
						this.fin_alignement_entree ();
					this.fin_alignement ();
				}
			this.fin_alignement_entree ();
		this.fin_alignement ();
	}


//
// Lien
//

	this.lien = function (a_path) {
		if (a_path.substring (0, 5) == "http:") {
			document.write ("<a href='" + a_path + "'>");
		} else if (a_path.substring (0, 6) == "https:") {
			document.write ("<a href='" + a_path + "'>");
		} else if (a_path.substring (0, 7) == "mailto:") {
			document.write ("<a href='" + a_path + "'>");
		} else if (a_path.substring (0, 1) == "#") {
			document.write ("<a href='" + a_path + "'>");
		} else {
			document.write ("<a href='" + this.relative_path (a_path) + "'>");
		}
	}

	this.fin_lien = function () {
		document.write ("</a>");
	}


//
// Sommaire
//

	this.sommaire_entree = function (a_tag, a_text) {
		this.fleche_orange_indentee ();
		this.texte (a_text, {lien: "#" + a_tag});
		this.ligne_blanche ();
	}


//
// Chronologie
//

	this.chronologie = function (a_image, a_annees) {
		var a_path = page_id.substring (0, page_id.lastIndexOf ("/"));
		document.write ("<map name='chronologie' id='banner'>");
		for (a_annee in a_annees) {
			document.write ("<area alt='" + a_annee + "' shape='rect' coords='" + a_annees[a_annee] + "' href='" + this.relative_path (a_path) + "/" + a_annee + "/index.html'/>");
		}
		document.write ("</map>");
		document.write ("<img src='" + this.relative_path (a_image) + "' usemap='#chronologie' border='" + border + "'/>");
	}

	this.chronologie_centree = function (a_image, a_annees) {
		this.centre ();
		this.chronologie (a_image, a_annees);
		this.fin_centre ();
	}

	this.calendrier = function (a_image, a_les_mois) {
		var a_path = page_id.substring (0, page_id.lastIndexOf ("/"));
		document.write ("<map name='calendrier' id='banner'>");
		for (a_mois in a_les_mois) {
			document.write ("<area alt='" + a_mois + "' shape='rect' coords='" + a_les_mois[a_mois] + "' href='" + this.relative_path (a_path) + "/" + a_mois + ".html'/>");
		}
		document.write ("</map>");
		document.write ("<img src='" + this.relative_path (a_image) + "' usemap='#calendrier' border='" + border + "'/>");
	}

	this.calendrier_centre = function (a_image, a_les_mois) {
		this.centre ();
		this.calendrier (a_image, a_les_mois);
		this.fin_centre ();
	}


//
// Liste
//

	this.liste = function () {
		document.write ("<ul>");
	}

	this.fin_liste = function () {
		document.write ("</ul>");
	}

	this.liste_entree = function (a_titre) {
		document.write ("<li>");
		this.liste_texte (a_titre, {gras: "oui"});
		this.liste_texte (" : ");
	}

	this.liste_texte = function (a_text, a_options) {
			// options:
			//     taille: nombre
			//     couleur: texte
			//     police: texte
			//     souligne: oui/non
			//     gras: oui/non
			//     italique: oui/non
			//     centre: oui/non
			//     lien: pathname
		var l_font_printed = false;
		if (typeof a_options == "undefined") {
			document.write (a_text);
		} else {
			if (typeof a_options['centre'] != "undefined" && a_options['centre'] == "oui") {
				this.centre ();
			}
			if (typeof a_options['lien'] != "undefined") {
				this.lien (a_options['lien']);
			}
			if ((typeof a_options['taille'] != "undefined") || (typeof a_options['police'] != "undefined") || (typeof a_options['couleur'] != "undefined")) {
				l_font_printed = true;
				document.write ("<font");
				if (typeof a_options['taille'] != "undefined") {
					document.write (" size='" + a_options['taille'] + "'");
				}
				if (typeof a_options['police'] != "undefined") {
					document.write (" face='" + a_options['police'] + "'");
				}
				if (typeof a_options['couleur'] != "undefined") {
					document.write (" color='" + a_options['couleur'] + "'");
				}
				document.write (">");
			}
			if (typeof a_options['souligne'] != "undefined" && a_options['souligne'] == "oui") {
				document.write ("<u>");
			}
			if (typeof a_options['gras'] != "undefined" && a_options['gras'] == "oui") {
				document.write ("<b>");
			}
			if (typeof a_options['italique'] != "undefined" && a_options['italique'] == "oui") {
				document.write ("<i>");
			}
			document.write (a_text);
			if (typeof a_options['italique'] != "undefined" && a_options['italique'] == "oui") {
				document.write ("</i>");
			}
			if (typeof a_options['gras'] != "undefined" && a_options['gras'] == "oui") {
				document.write ("</b>");
			}
			if (typeof a_options['souligne'] != "undefined" && a_options['souligne'] == "oui") {
				document.write ("</u>");
			}
			if (l_font_printed) {
				document.write ("</font>");
			}
			if (typeof a_options['lien'] != "undefined") {
				this.fin_lien ();
			}
			if (typeof a_options['centre'] != "undefined" && a_options['centre'] == "oui") {
				this.fin_centre ();
			}
		}
	}

	this.fin_liste_entree = function () {
		document.write ("</li>");
	}

	this.sous_liste = function () {
		document.write ("<ul>");
	}

	this.fin_sous_liste = function () {
		document.write ("</ul>");
	}

	this.sous_liste_entree = function (a_titre) {
		document.write ("<li>");
		this.liste_texte (a_titre);
		this.liste_texte (" : ");
	}

	this.sous_liste_texte = function (a_text, a_options) {
		this.liste_texte (a_text, a_options);
	}

	this.fin_sous_liste_entree = function () {
		document.write ("</li>");
	}


//
// Alignement
//

	this.alignement = function (a_options) {
		document.write ("<table");
		if (typeof a_options != "undefined") {
			if (typeof a_options['largeur'] != "undefined") {
				document.write (" width='" + a_options['largeur'] + "'");
			}
			if (typeof a_options['bordure'] != "undefined") {
				document.write (" border='" + a_options['bordure'] + "'");
			} else {
				document.write (" border='" + border + "'");
			}
			if (typeof a_options['cellspacing'] != "undefined") {
				document.write (" cellspacing='" + a_options['cellspacing'] + "'");
			} else {
				document.write (" cellspacing='0'");
			}
			if (typeof a_options['cellpadding'] != "undefined") {
				document.write (" cellpadding='" + a_options['cellpadding'] + "'");
			} else {
				document.write (" cellpadding='0'");
			}
		} else {
			document.write (" border='" + border + "'");
			document.write (" cellspacing='0'");
			document.write (" cellpadding='0'");
		}
		document.write (">");
		document.write ("	<tr>");
	}

	this.fin_alignement = function () {
		document.write ("	</tr>");
		document.write ("</table>");
	}

	this.alignement_entree = function (a_options) {
		document.write ("<td");
		if (typeof a_options != "undefined") {
			if (typeof a_options['alignement'] != "undefined") {
				if (a_options['alignement'] == "gauche") {
					document.write (" align='left'");
				} else if (a_options['alignement'] == "droit") {
					document.write (" align='right'");
				} else if (a_options['alignement'] == "centre") {
					document.write (" align='center'");
				}
			}
			if (typeof a_options['largeur'] != "undefined") {
				document.write (" width='" + a_options['largeur'] + "'");
			}
		}
		document.write (">");
	}

	this.alignement_entree_haut = function () {
		document.write ("<td valign='top'");
		if (typeof a_options != "undefined") {
			if (typeof a_options['alignement'] != "undefined") {
				if (a_options['alignement'] == "gauche") {
					document.write (" align='left'");
				} else if (a_options['alignement'] == "droit") {
					document.write (" align='right'");
				} else if (a_options['alignement'] == "centre") {
					document.write (" align='center'");
				}
			}
			if (typeof a_options['largeur'] != "undefined") {
				document.write (" width='" + a_options['largeur'] + "'");
			}
		}
		document.write (">");
	}

	this.alignement_entree_bas = function () {
		document.write ("<td valign='bottom'");
		if (typeof a_options != "undefined") {
			if (typeof a_options['alignement'] != "undefined") {
				if (a_options['alignement'] == "gauche") {
					document.write (" align='left'");
				} else if (a_options['alignement'] == "droit") {
					document.write (" align='right'");
				} else if (a_options['alignement'] == "centre") {
					document.write (" align='center'");
				}
			}
			if (typeof a_options['largeur'] != "undefined") {
				document.write (" width='" + a_options['largeur'] + "'");
			}
		}
		document.write (">");
	}

	this.fin_alignement_entree = function () {
		document.write ("</td>");
	}


//
// Formatage
//

	this.ligne_blanche = function () {
		document.write ("<br>");
	}

	this.espace = function (n) {
		for (var i = 0; i < n; i++) {
			document.write ("&nbsp;");
		}
	}

	this.tag = function (a_tag) {
		document.write ("<a name='" + a_tag + "'></a>");
	}

	this.centre = function () {
		document.write ("<center>");
	}

	this.fin_centre = function () {
		document.write ("</center>");
	}


//
// Path
//

	this.relative_path = function (a_path) {
		var s = "";
		for (var i = 0; i < depth; i++) {
			s += "../"
		}
		s += a_path
		return s;
	}

}

