function dsk (a_page_id) {

	this.annee_en_cours = "2011";	
	this.mois_en_cours = "janvier";
	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 = this.annee_en_cours;
	this.annee_en_cours_photos_membres = this.annee_en_cours;
	this.annee_en_cours_presse = this.annee_en_cours;
	this.annee_scolaire_en_cours = "2010-2011";

	var page_id = a_page_id;
	var depth = a_page_id.split ("/").length - 1;
	this.flickr_utilisateur = "46945205@N06";
	this.contenu_marge_horizontale = "10";
	this.contenu_marge_verticale = "10";


//
// 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>Danserien Sant K&eacute; - Cercle de Danses Bretonnes de Saint-Quay-Portrieux</title>");
	}

	this.body_avant_contenu = function () {
		document.write ("<body bgcolor='white' leftmargin='0' topmargin='0' rightmargin='0' bottommargin='0' marginwidth='0' marginheight='0'>");
		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_1 ();
		this.barre_de_presentation_2 ();
		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 ("							<table width='" + this.contenu_marge_horizontale + "'>");
			document.write ("							</table>");
			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 ("							<table width='" + this.contenu_marge_horizontale + "'>");
			document.write ("							</table>");
			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_1 = function () {
		document.write ("<!--[if !IE]>-->");
		document.write ("<tr height='115'>");
		document.write ("<!--<![endif]-->");
		document.write ("<!--[if IE]>");
		document.write ("<tr height='111'>");
		document.write ("<!--<[endif]-->");
		document.write ("	<td width='165'>");
		document.write ("<!--[if !IE]>-->");
		this.image ("images/commun/logo.jpg", {alt: "Logo Danserien Sant K&eacute;"});
		document.write ("<!--<![endif]-->");
		document.write ("<!--[if IE]>");
		this.image ("images/commun/logo.jpg", {hauteur: 111, largeur: 165, alt: "Logo Danserien Sant K&eacute;"});
		document.write ("<!--<[endif]-->");
		document.write ("	</td>");
		document.write ("	<td width='100%' background='" + this.relative_path ("images/commun/barre_titre.jpg") + "'>");
		document.write ("	</td>");
		document.write ("</tr>");
	}

	this.barre_de_presentation_2 = function () {
		document.write ("<tr height='115' bgcolor='#F9BB1F'>");
		document.write ("	<td colspan='2' align='center'>");
		document.write ("		<font size='7' face='Kristen ITC' color='black'>");
		document.write ("			<b>Danserien Sant K&eacute;<b>");
		document.write ("		</font>");
		document.write ("		<br>");
		document.write ("		<font size='5' face='Kristen ITC' color='black'>");
		document.write ("			<b>Cercle de Danses Bretonnes de Saint-Quay-Portrieux</b>");
		document.write ("		</font>");
		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 -->");
		if (page_id == "actualites/index") {
			document.write ("<tr height='42' bgcolor='#FCDA84'>");
		} else {
			document.write ("<tr height='35' bgcolor='#FCDA84'>");
		}
		document.write ("		<!-- Bouton de navigation vers le haut de la page -->");
		document.write ("	<td align='center' valign='center' width='165'>");
		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='black'>");
		document.write ("						<b>Derni&egrave;re mise &agrave; jour le " + this.derniere_mise_a_jour + "<br>");
		document.write ("						Copyright &copy; " + copyright + " Danserien Sant K&eacute;. 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='black'>");
			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_options) {	
			// options:
			//     copyright: texte
			//     autre_diaporama: texte (lien)
		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_options);
		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_options) {	
			// options:
			//     copyright: texte
			//     autre_diaporama: texte (lien)	
		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_options);
		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_options) {	
			// options:
			//     copyright: texte
			//     autre_diaporama: texte (lien)			
		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_options != "undefined") {
			if (typeof a_options['copyright'] != "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>");
			}
			if (typeof a_options['autre_diaporama'] != "undefined") {
				document.write ("	<tr>");
				document.write ("		<td>");
				document.write ("			<font size='2' face='Comic Sans MS' color='white'>");
				document.write ("				<center>");
				document.write ("					Si le diaporama de photos n'appara&icirc;t pas, veuillez cliquer ");
				this.texte ("ici", {taille: "2", couleur: "white", lien: a_options['autre_diaporama']});	
				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 background='" + this.relative_path ("images/commun/fond_menu.jpg") + "' align='center' valign='top' width='165'>");
		document.write ("	<table border='" + border + "' cellspacing='0' cellpadding='0' alt='' title='' width='140'>");
		this.espace_entre_menus ();
		this.menu_actualites ();
		this.espace_entre_menus ();
		this.menu_association ();
		this.espace_entre_menus ();
		this.menu_fest_noz ();
		this.espace_entre_menus ();
		this.menu_fest_deiz ();
		this.espace_entre_menus ();
		this.menu_evenements ();
		this.espace_entre_menus ();
		this.menu_cours ();
		this.espace_entre_menus ();
		this.menu_cercle ();
		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 ();
		this.menu_contact ();
		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_association = function () {
		var selectionne = "";
		var deja_selectionne = false;
		if (page_id == "association/index") {
			selectionne = "_selectionne";
			deja_selectionne = true;
		}
		document.write ("<tr>");
		document.write ("<td align='center'>");
		this.image ("images/association/menu/association" + selectionne + ".jpg", {lien: "association/index.html", bordure: 0, alt: "Association"});
		document.write ("</td>");
		document.write ("</tr>");

		if (page_id.substring (0, 11) == "association") {
			this.espace_entre_sous_menus ();
			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 26) == "association/mot_presidente") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/association/menu/mot_presidente" + selectionne + ".jpg", {lien: "association/mot_presidente.html", bordure: 0, alt: "Mot de la Pr&eacute;sidente"});
			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, 22) == "association/historique") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/association/menu/historique" + selectionne + ".jpg", {lien: "association/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, 19) == "association/membres") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/association/menu/membres" + selectionne + ".jpg", {lien: "association/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, 20) == "association/adhesion") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/association/menu/adhesion" + selectionne + ".jpg", {lien: "association/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, 34) == "association/conseil_administration") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/association/menu/conseil_administration" + selectionne + ".jpg", {lien: "association/conseil_administration.html", bordure: 0, alt: "Conseil d'Administration"});
			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) == "association/commissions") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/association/menu/commissions" + selectionne + ".jpg", {lien: "association/commissions.html", bordure: 0, alt: "Commissions"});
			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) == "association/sponsors") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/association/menu/sponsors" + selectionne + ".jpg", {lien: "association/sponsors.html", bordure: 0, alt: "Sponsors"});
			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) == "association/contact") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/association/menu/contact" + selectionne + ".jpg", {lien: "contact/index.html", bordure: 0, alt: "Nous contacter"});
			document.write ("</td>");
			document.write ("</tr>");
		}
	}

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

		if (page_id.substring (0, 8) == "fest-noz") {
			this.espace_entre_sous_menus ();
			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 18) == "fest-noz/programme") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/fest-noz/menu/programme" + selectionne + ".jpg", {lien: "fest-noz/programme.html", bordure: 0, alt: "Programme"});
			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) == "fest-noz/photos") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/fest-noz/menu/photos" + selectionne + ".jpg", {lien: "fest-noz/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) == "fest-noz/presse") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/fest-noz/menu/presse" + selectionne + ".jpg", {lien: "fest-noz/presse.html", bordure: 0, alt: "Articles de Presse"});
			document.write ("</td>");
			document.write ("</tr>");
		}		
	}

	this.menu_fest_deiz = function () {
		var selectionne = "";
		if (page_id == "fest-deiz/index") {
			selectionne = "_selectionne";
		}
		document.write ("<tr>");
		document.write ("<td align='center'>");
		this.image ("images/fest-deiz/menu/fest-deiz" + selectionne + ".jpg", {lien: "fest-deiz/index.html", bordure: 0, alt: "Fest-Deiz"});
		document.write ("</td>");
		document.write ("</tr>");
	}

	this.menu_evenements = function () {
		var selectionne = "";
		var deja_selectionne = false;
		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, 27) == "evenements/soirees_festives") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/evenements/menu/soirees_festives" + selectionne + ".jpg", {lien: "evenements/soirees_festives.html", bordure: 0, alt: "Soir&eacute;es Festives"});
			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, 26) == "evenements/initiations_ete") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/evenements/menu/initiations_ete" + selectionne + ".jpg", {lien: "evenements/initiations_ete.html", bordure: 0, alt: "Initiations de l'&eacute;t&eacute;"});
			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/fest-noz") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/evenements/menu/fest-noz" + selectionne + ".jpg", {lien: "fest-noz/index.html", bordure: 0, alt: "Fest-Noz"});
			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) == "evenements/fest-deiz") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/evenements/menu/fest-deiz" + selectionne + ".jpg", {lien: "fest-deiz/index.html", bordure: 0, alt: "Fest-Deiz"});
			document.write ("</td>");
			document.write ("</tr>");
		}
	}

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

		if (page_id.substring (0, 5) == "cours") {
			this.espace_entre_sous_menus ();
			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 18) == "cours/mot_moniteur") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/cours/menu/mot_moniteur" + selectionne + ".jpg", {lien: "cours/mot_moniteur.html", bordure: 0, alt: "Mot du Moniteur"});
			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) == "cours/horaires") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/cours/menu/horaires" + selectionne + ".jpg", {lien: "cours/horaires.html", bordure: 0, alt: "Horaires"});
			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) == "cours/programme") | ((page_id.substring (0, 6) == "cours/") && (page_id.substring (15,25) == "/programme"))) {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/cours/menu/programme" + selectionne + ".jpg", {lien: "cours/programme.html", bordure: 0, alt: "Programme"});
			document.write ("</td>");
			document.write ("</tr>");			
		}		
	}

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

		if (page_id.substring (0, 6) == "cercle") {
			this.espace_entre_sous_menus ();
			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 15) == "cercle/costumes") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/cercle/menu/costumes" + selectionne + ".jpg", {lien: "cercle/costumes.html", bordure: 0, alt: "Costumes"});
			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) == "cercle/danseurs") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/cercle/menu/danseurs" + selectionne + ".jpg", {lien: "cercle/danseurs.html", bordure: 0, alt: "Danseurs"});
			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) == "cercle/programme") | ((page_id.substring (0, 7) == "cercle/") && (page_id.substring (16,26) == "/programme"))) {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/cercle/menu/programme" + selectionne + ".jpg", {lien: "cercle/programme.html", bordure: 0, alt: "Programme"});
			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) == "cercle/repetitions") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/cercle/menu/repetitions" + selectionne + ".jpg", {lien: "cercle/repetitions.html", bordure: 0, alt: "R&eacute;p&eacute;titions"});
			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) == "cercle/prestations") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/cercle/menu/prestations" + selectionne + ".jpg", {lien: "cercle/prestations.html", bordure: 0, alt: "Prestations"});
			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 ();
			document.write ("<tr>");
			document.write ("<td align='right'>");
			selectionne = "";
			if (page_id.substring (0, 11 + this.annee_en_cours_photos.length) == "calendrier/" + this.annee_en_cours) {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/calendrier/menu/" + this.annee_en_cours + selectionne + ".jpg", {lien: "calendrier/" + this.annee_en_cours + ".html", bordure: 0, alt: "this.annee_en_cours"});
			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) == "calendrier/archive") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			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";
				deja_selectionne = true;
			}
			this.image ("images/photos/menu/archive" + selectionne + ".jpg", {lien: "photos/archive.html", bordure: 0, alt: "Archive Photos"});
			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 + ".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";
				deja_selectionne = true;
			}
			this.image ("images/presse/menu/archive" + selectionne + ".jpg", {lien: "presse/archive.html", bordure: 0, alt: "Archive Presse"});
			document.write ("</td>");
			document.write ("</tr>");
		}		
	}

	this.menu_liens = function () {
		var selectionne = "";
		var deja_selectionne = false;
		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, 26) == "liens/saint-quay-portrieux") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/liens/menu/saint-quay-portrieux" + selectionne + ".jpg", {lien: "liens/saint-quay-portrieux.html", bordure: 0, alt: "Saint-Quay-Portrieux"});
			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, 17) == "liens/partenaires") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/liens/menu/partenaires" + selectionne + ".jpg", {lien: "liens/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, 22) == "liens/idees_de_sorties") {
				selectionne = "_selectionne";
				deja_selectionne = true;
			}
			this.image ("images/liens/menu/idees_de_sorties" + selectionne + ".jpg", {lien: "liens/idees_de_sorties.html", bordure: 0, alt: "Id&eacute;es de Sorties"});
			document.write ("</td>");
			document.write ("</tr>");		
		}		
	}

	this.menu_membres = function () {
		var selectionne = "";
		var deja_selectionne = false;
		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.menu_contact = function () {
		var selectionne = "";
		if (page_id == "contact/index") {
			selectionne = "_selectionne";
		}
		document.write ("<tr>");
		document.write ("<td align='center'>");
		this.image ("images/contact/menu/contact" + selectionne + ".jpg", {lien: "contact/index.html", bordure: 0, alt: "Nous Contacter"});
		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 + "@danserien-sant-ke.com", bordure: 0});
						this.fin_alignement_entree ();
						this.alignement_entree ();
							this.texte (a_prenom + "." + a_nom + "@danserien-sant-ke.com", {lien: "mailto:" + a_prenom + "." + a_nom + "@danserien-sant-ke.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;
	}

}

