	adresses = new Array(10)
adresses[0] = "escapades@buissonniers.fr"
adresses[1] = "escapades@buissonniers.fr"
adresses[2] = "escapades@buissonniers.fr"	
adresses[3] = "escapades@buissonniers.fr"		
adresses[4] = "escapades@buissonniers.fr"		// ---
adresses[5] = "escapades@buissonniers.fr"		// 
adresses[6] = "escapades@buissonniers.fr"		// 
adresses[7] = "escapades@buissonniers.fr"		// 
adresses[8] = "escapades@buissonniers.fr"		// 
adresses[9] = "escapades@buissonniers.fr"		// 

MessageSujet = new Array(30)
MessageSujet[0] =  "Association Escapades Buissonnières"
MessageSujet[1] =  "Escapades Buissonnières : Participez à une randonnée d'essai"
MessageSujet[2] =  "Rando-challenges"
MessageSujet[3] =  "Escapades Buissonnières : De la Louette à la Chalouette (Essonne), samedi 21 août 2004"
MessageSujet[4] =  "Week-ends et séjours : Escapades dans le Val d'Oise (Mars 2004)"
MessageSujet[5] =  "Escapades Buissonnières : De la Louette à la Chalouette (Essonne), samedi 21 août 2004"
MessageSujet[6] =  "Week-end dans la forêt de Lyons-la-Forêt (Eure), du vendredi 11 au dimanche 13 février 2005"
MessageSujet[7] =  "Honfleur, escapade en Normandie, du vendredi 25 au dimanche 27 mars 2005"
MessageSujet[8] =  "70ème édition du Paris-Mantes Pédestre, nuit du samedi 29 janvier 2005"
MessageSujet[9] =  "Les marchés de Noël, week-end du vendredi 10 au soir au dimanche 12 décembre 2004"
MessageSujet[10] = "Escapades Buissonnieres"
MessageSujet[11] = "Escapades Buissonnieres : participez a une randonnee d'essai ..."
MessageSujet[12] = "Dimanche 18 mai 2008 : Le sentier des 25 bosses (Seine-et-Marne)"
MessageSujet[13] = "Dimanche 25 mai 2008 : Festival de l Oh - Rand Ho a Vitry-sur-Seine"
MessageSujet[14] = "Escapades en Mayenne, mai 2008"
MessageSujet[15] = "Sur les traces de Stevenson, du 1er au 8 juin 2007"
MessageSujet[16] = "Les montagnes de Reims (Marne), du 7 au 9 décembre 2007"
MessageSujet[17] = "Sur les traces de Stevenson du 1er au 7 juin 2008"

function Courrier(Destinataire,Sujet) {
   parent.location = "mailto:" + adresses[Destinataire] + "?subject=" + MessageSujet[Sujet] ;
}

function Message(NomDestinataire,Sujet) {
  if (NomDestinataire=='aeb') {Destinataire = "escapades@buissonniers.fr"}  
  if (NomDestinataire=='rc') {Destinataire = "rando-challenges@buissonniers.fr"}
  if (NomDestinataire=='s') {Destinataire = "escapades@buissonniers.fr"}
  if (NomDestinataire=='m') {Destinataire = "escapades@buissonniers.fr"} 
  if (NomDestinataire=='j') {Destinataire = "escapades@buissonniers.fr"} 
  if (NomDestinataire=='l') {Destinataire = "escapades@buissonniers.fr"} 
  if (NomDestinataire=='p') {Destinataire = "escapades@buissonniers.fr"}   
  if (NomDestinataire=='e') {Destinataire = "escapades@buissonniers.fr"}  
   parent.location = "mailto:" + Destinataire + "?subject=" + MessageSujet[Sujet] ;
}


function RandoEssai(NomDestinataire,Sujet) {
  if (NomDestinataire=='aeb') {Destinataire = "escapades@buissonniers.fr"}  
  if (NomDestinataire=='s') {Destinataire = "escapades@buissonniers.fr"}
  if (NomDestinataire=='m') {Destinataire = "escapades@buissonniers.fr"} 
  if (NomDestinataire=='j') {Destinataire = "escapades@buissonniers.fr"}   
  if (NomDestinataire=='l') {Destinataire = "escapades@buissonniers.fr"} 
  if (NomDestinataire=='p') {Destinataire = "escapades@buissonniers.fr"}   
  if (NomDestinataire=='e') {Destinataire = "escapades@buissonniers.fr"}
  Message =   "mailto:" + Destinataire + "?subject=" + MessageSujet[Sujet]
  Message = Message + "&BODY=Afin de vous contacter éventuellement pour cette randonnée "
  Message = Message + "d'essai, merci de nous laisser vos coordonnées"
  parent.location = Message ;
}

function RandoInfo(NomDestinataire,Sujet) {
  if (NomDestinataire=='aeb') {Destinataire = "escapades@buissonniers.fr"}  
  if (NomDestinataire=='rc') {Destinataire = "rando-challenges@buissonniers.fr"}
  if (NomDestinataire=='s') {Destinataire = "escapades@buissonniers.fr"}
  if (NomDestinataire=='m') {Destinataire = "escapades@buissonniers.fr"} 
  if (NomDestinataire=='j') {Destinataire = "escapades@buissonniers.fr"}   
  if (NomDestinataire=='l') {Destinataire = "escapades@buissonniers.fr"} 
  if (NomDestinataire=='p') {Destinataire = "escapades@buissonniers.fr"}   
  if (NomDestinataire=='e') {Destinataire = "escapades@buissonniers.fr"}

  if (NomDestinataire!='rc') {
  	Message =   "mailto:" + Destinataire + "?subject=" + MessageSujet[Sujet]
  	Message = Message + "&BODY=Afin de vous contacter pour cette randonnée "
  	Message = Message + ", merci de nous laisser vos coordonnées"	
} else {
  	Message =   "mailto:" + Destinataire + "?subject=" + MessageSujet[Sujet]
  	Message = Message + "&BODY=Afin de vous contacter pour les rando-challenges "
  	Message = Message + ", n'oubliez pas de nous laisser vos coordonnées"
}
parent.location = Message ;
}

function WebMaster(NomDestinataire,Sujet) {
  if (NomDestinataire=='aeb') {Destinataire = "escapades@buissonniers.fr"}  
  if (NomDestinataire=='s') {Destinataire = "escapades@buissonniers.fr"}
  if (NomDestinataire=='m') {Destinataire = "escapades@buissonniers.fr"} 
  if (NomDestinataire=='j') {Destinataire = "escapades@buissonniers.fr"}   
  if (NomDestinataire=='l') {Destinataire = "escapades@buissonniers.fr"} 
  if (NomDestinataire=='p') {Destinataire = "escapades@buissonniers.fr"}   
  if (NomDestinataire=='e') {Destinataire = "escapades@buissonniers.fr"}
  Message =   "mailto:" + Destinataire + "?subject=" + MessageSujet[Sujet]
  Message = Message + "&BODY=N'hésitez pas à nous informer de tout problème que vous rencontrez sur ce site, "
  Message = Message + "nous essayerons d'y remédier dans les meilleurs délais. "
  Message = Message + "Toutes propositons d'amélioration ou d'évolution seront la bienvenue."
  parent.location = Message ;
}

// --------------------------------------------------------------
// Impression
// Police : Georges 28 G Jaune
//             Augie     16 G Blanc
// --------------------------------------------------------------
function Print() {
  window.print();
}

function Imprimer() {
  window.print();
}


// --------------------------------------------------------------
// Fermer la fenêtre 
// --------------------------------------------------------------
function Fermer() {
  window.close();
}

// --------------------------------------------------------------
// Retour
// --------------------------------------------------------------
function Retour() {
  history.back();
}


// --------------------------------------------------------------
// Ouverture html
// Utiliser pour l'agrandissement de photos des programmes des 
// week-ends et séjours à partir d'une fiche technique
// --------------------------------------------------------------

function Ouvrir(theURL, width, height) {
   winName = ''
   width =  width + 70;
   height = height + 100;
   xc = (screen.availWidth -  width) / 2;
   yc = (screen.availHeight - height) / 2;
    
   var str = "scrollbars=no, width=" + width + ",height=" + height;
   str += ",left=" + xc + ",screenX=" + xc;
   str += ",top=" + yc + ",screenY=" + yc;

   var fichier = theURL + ".htm";
   window.open(fichier,winName,str);
}

function OuvrirGif(theURL, width, height) {
   winName = ''
   width =  width + 70;
   height = height + 100;
   xc = (screen.availWidth -  width) / 2;
   yc = (screen.availHeight - height) / 2;
    
   var str = "scrollbars=no, width=" + width + ",height=" + height;
   str += ",left=" + xc + ",screenX=" + xc;
   str += ",top=" + yc + ",screenY=" + yc;

   var fichier = theURL + ".gif";
   window.open(fichier,winName,str);
}

// --------------------------------------------------------------
// Ouverture html
// Utiliser pour l'agrandissement de photos des programmes
// à partir de la page d'accueil
// --------------------------------------------------------------

function OuvrirAccueil(theURL, width, height) {
   winName = ''
   width =  width + 70;
   height = height + 100;
   xc = (screen.availWidth -  width) / 2;
   yc = (screen.availHeight - height) / 2;
    
   var str = "scrollbars=no, width=" + width + ",height=" + height;
   str += ",left=" + xc + ",screenX=" + xc;
   str += ",top=" + yc + ",screenY=" + yc;

   var fichier = 'programmes/' + theURL + ".htm";
   window.open(fichier,winName,str);
}

function OuvrirAccueilPhoto(theURL, width, height) {
   winName = ''
   width =  width + 70;
   height = height + 100;
   xc = (screen.availWidth -  width) / 2;
   yc = (screen.availHeight - height) / 2;
    
   var str = "scrollbars=no, width=" + width + ",height=" + height;
   str += ",left=" + xc + ",screenX=" + xc;
   str += ",top=" + yc + ",screenY=" + yc;

   var fichier = 'programmes/' + theURL + ".php";
   window.open(fichier,winName,str);
}


// --------------------------------------------------------------
// Ouverture html
// Utiliser pour l'agrandissement de photos des programmes
// à partir des fiches techniques des week-ends et des séjours
// --------------------------------------------------------------

function OuvrirSejours(theURL, width, height) {
   winName = ''
   width =  width + 70;
   height = height + 100;
   xc = (screen.availWidth -  width) / 2;
   yc = (screen.availHeight - height) / 2;
    
   var str = "scrollbars=no, width=" + width + ",height=" + height;
   str += ",left=" + xc + ",screenX=" + xc;
   str += ",top=" + yc + ",screenY=" + yc;

   var fichier = theURL + ".htm";
   //alert(fichier);
   window.open(fichier,winName,str);
}

// --------------------------------------------------------------
// Ouverture Niveaux
// --------------------------------------------------------------

function OuvrirNiveaux(theURL) { //v2.0
   winName = ''
   width =  470 + 70;
   height = 250 + 100;
   xc = (screen.availWidth -  width) / 2;
   yc = (screen.availHeight - height) / 2;
    
   var str = "status=0,scrollbars=yes, width=" + width + ",height=" + height;
   str += ",left=" + xc + ",screenX=" + xc;
   str += ",top=" + yc + ",screenY=" + yc;

   var fichier = theURL + "programmes/niveaux.php";
   window.open(fichier,winName,str);
}

function OuvrirNiveauxProg(theURL) { //v2.0
   winName = ''
   width =  470 + 70;
   height = 250 + 100;
   xc = (screen.availWidth -  width) / 2;
   yc = (screen.availHeight - height) / 2;
    
   var str = "status=0,scrollbars=yes, width=" + width + ",height=" + height;
   str += ",left=" + xc + ",screenX=" + xc;
   str += ",top=" + yc + ",screenY=" + yc;

   var fichier = theURL + "niveaux.php";
   window.open(fichier,winName,str);
}
// --------------------------------------------------------------
// Ouverture html
// --------------------------------------------------------------

function OuvrirHTML(nomURL,width,height) { //v2.0
   winName = '';
   theURL = nomURL;
   xc = (screen.availWidth -  width) / 2;
   yc = (screen.availHeight - height) / 2;
    
   var str = "status=0,scrollbars=no, width=" + width + ",height=" + height;
   str += ",left=" + xc + ",screenX=" + xc;
   str += ",top=" + yc + ",screenY=" + yc;

   var fichier = theURL + ".htm";
   window.open(fichier,winName,str);
}

function OuvrirPHP(nomURL,width,height) { //v2.0
   winName = '';
   theURL = nomURL;
   xc = (screen.availWidth -  width) / 2;
   yc = (screen.availHeight - height) / 2;
    
   var str = "status=0,scrollbars=no, width=" + width + ",height=" + height;
   str += ",left=" + xc + ",screenX=" + xc;
   str += ",top=" + yc + ",screenY=" + yc;

   var fichier = theURL + ".php";
   window.open(fichier,winName,str);
}

// --------------------------------------------------------------
// Ouverture d'une photographie format JPEG
// --------------------------------------------------------------

function Photo(image, width, height ) {

  var str = "height=" + height + ",innerHeight=" + height;
  str += ",width=" + width + ",innerWidth=" + width + ",status=0,scrollbars=no";
  if (window.screen) {
    var xc = (screen.availWidth - width) / 2;
    var yc = (screen.availHeight - height) / 2;
    str += ",left=" + xc + ",screenX=" + xc;
    str += ",top=" + yc + ",screenY=" + yc;
  }
  nom =  image + ".jpg";
  return void window.open(nom, '', str);
}

function PhotoAccueil(image, width, height ) {
  var str = "height=" + height + ",innerHeight=" + height;
  str += ",width=" + width + ",innerWidth=" + width + ",status=0,scrollbars=no";
  if (window.screen) {
    var xc = (screen.availWidth - width) / 2;
    var yc = (screen.availHeight - height) / 2;
    str += ",left=" + xc + ",screenX=" + xc;
    str += ",top=" + yc + ",screenY=" + yc;
  }
  nom =  image + ".jpg";
  return void window.open(nom, '', str);
}

function PhotoSBar(image, width, height ) {
  var str = "height=" + height + ",innerHeight=" + height;
  str += ",width=" + width + ",innerWidth=" + width + ",resizable=yes,status=0,scrollbars=yes";
  if (window.screen) {
    var xc = (screen.availWidth - width) / 2;
    var yc = (screen.availHeight - height) / 2;
    str += ",left=" + xc + ",screenX=" + xc;
    str += ",top=" + yc + ",screenY=" + yc;
  }
  nom =  image + ".jpg";
  return void window.open(nom, '', str);
}

// --------------------------------------------------------------
// Ouverture d'une photographie format JPEG
// --------------------------------------------------------------

function OuvrirSb(fichier, width, height ) {
  var str = "height=" + height + ",innerHeight=" + height;
  str += ",width=" + width + ",innerWidth=" + width + ",status=1,scrollbars=yes";
  if (window.screen) {
    var xc = (screen.availWidth - width) / 2;
    var yc = (screen.availHeight - height) / 2;
    str += ",left=" + xc + ",screenX=" + xc;
    str += ",top=" + yc + ",screenY=" + yc;
  }
  nom =  fichier + ".htm";
  return void window.open(nom, '', str);
}

// --------------------------------------------------------------
// Ouverture d'une photographie format JPEG
// --------------------------------------------------------------

function OuvrirJpeg(image, width, height ) {
  var str = "height=" + height + ",innerHeight=" + height;
  str += ",width=" + width + ",innerWidth=" + width + ",status=1,scrollbars=yes";
  if (window.screen) {
    var xc = (screen.availWidth - width) / 2;
    var yc = (screen.availHeight - height) / 2;
    str += ",left=" + xc + ",screenX=" + xc;
    str += ",top=" + yc + ",screenY=" + yc;
  }
  nom =  image + ".jpg";
  return void window.open(nom, '', str);
}

// --------------------------------------------------------------
// Ouverture d'une photographie format JPEG
// avec affichage au centre de l'écran
// --------------------------------------------------------------

function Jpeg(image, Largeur, Hauteur ) {
 Largeur = Largeur + 20 ;
 Hauteur = Hauteur + 25;

if ( Largeur > screen.availWidth ) { 
    Largeur = screen.availWidth - 20 ;
    xc = 0;
    Big_Width=1;
   }
  else {
    xc = (screen.availWidth -  Largeur) / 2;
    Big_Width=0;
};


if ( Hauteur > screen.availHeight ) { 
    Hauteur = screen.availHeight - 25 ;
    yc = 0;
    Big_Height=1;
   }
  else {
    yc = (screen.availHeight - Hauteur) / 2;
    Big_Height=0;
};

if ( Big_Width > 0 || Big_Height > 0 ) { 
   zstatus="status=0";
   scrollbars="scrollbars=yes";
   }
else { 
  zstatus="status=1";
  scrollbars="scrollbars=no";
};

  var str = "width=" + Largeur + ",innerWidth=" + Largeur;
  str += ",height=" + Hauteur + ",innerHeight=" + Hauteur;
  str += "," + zstatus + "," + scrollbars;
  if (window.screen) {
    str += ",left=" + xc + ",screenX=" + xc;
    str += ",top=" + yc + ",screenY=" + yc;
  };
  nom = image + ".jpg";

  return void window.open(nom, '', str);
}

//alert("str=" + str);
//alert("Hauteur=" + Hauteur + " - screen.availHeight=" + screen.availHeight);
//alert("Largeur=" + Largeur + " > screen.availWidth=" +  screen.availWidth + " ?");


//  ------------------------------------------------------------------------------------------
// Fonction d'extraction des paramètres
//  ------------------------------------------------------------------------------------------

function ExtraireParam() {
		url = window.location.href;
		var exp=new RegExp("[&?]+","g");
		var exp2=new RegExp("[=]+","g");			
		var tabNom=url.split(exp);	
		var	tabParam=new Array();
		if (tabNom!=null) {
			for (var i=1;i<tabNom.length;i++){
				var tabTemp=tabNom[i].split(exp2);				
				tabParam[tabTemp[0]]=tabTemp[1];
			}
		}				
		return tabParam;
	}
	// Appel de la fonction et création du tableau des paramètres
	var urlParam = ExtraireParam();	

function RetourMenu() 	{
	nom_page_RetourMenu = "../" + urlParam["param1"] + ".htm" + "#" + urlParam["param2"];
	window.open(nom_page_RetourMenu,'_top');
}

function AllezPage(Page) 	{
	nom_page = "page" + Page + ".htm?param1=" + urlParam["param1"] + "&param2=" + urlParam["param2"];
	// alert('nom_page=' + nom_page );
	window.open(nom_page,'_top');
}

function Affichage() {
	alert(urlParam["param1"] + ".htm" + "#" + urlParam["param2"]);
};

	
// -----------------------------------------------------------------------------------------
// Affichage de la photo panom=ramique sur la page d'accueil
// -----------------------------------------------------------------------------------------

function AccueilAffichage(Niveau) {
Repertoire = "";
if (Niveau == "0" ) Repertoire = "";
if (Niveau == "-1" ) Repertoire = "../";
if (Niveau == "-2" ) Repertoire = "../../";
if (Niveau == "-3" ) Repertoire = "../../../";
if (Niveau == "-4" ) Repertoire = "../../../../";
if (Niveau == "-5" ) Repertoire = "../../../../../";

Journee = new Date();
Heures = Journee.getHours();
Jour = Journee.getDate() ; 
Index_photo = Jour;
if (Heures > 16 ) { 
	var Index_photo = Jour + 31 ; 
};
// alert(Index_photo);
Nom_Photo = Repertoire + "sommaire/sommaire_"+Index_photo+".jpg"
document.write('<img src="' + Nom_Photo + '"  border="0" alt="' + AccueilTitre[Index_photo] + '">')
}

AccueilTitre = new Array(63)
AccueilTitre[0] = "Association Escapades Buissonnières"
AccueilTitre[1] = "Association Escapades Buissonnières"
AccueilTitre[2] = "Association Escapades Buissonnières"
AccueilTitre[3] = "Association Escapades Buissonnières"
AccueilTitre[4] = "Association Escapades Buissonnières"
AccueilTitre[5] = "Association Escapades Buissonnières"
AccueilTitre[6] = "Association Escapades Buissonnières"
AccueilTitre[7] = "Association Escapades Buissonnières"
AccueilTitre[8] = "Association Escapades Buissonnières"
AccueilTitre[9] = "Association Escapades Buissonnières"
AccueilTitre[10] = "Association Escapades Buissonnières"
AccueilTitre[11] = "Association Escapades Buissonnières"
AccueilTitre[12] = "Association Escapades Buissonnières"
AccueilTitre[13] = "Association Escapades Buissonnières"
AccueilTitre[14] = "Association Escapades Buissonnières"
AccueilTitre[15] = "Association Escapades Buissonnières"
AccueilTitre[16] = "Association Escapades Buissonnières"
AccueilTitre[17] = "Association Escapades Buissonnières"
AccueilTitre[18] = "Association Escapades Buissonnières"
AccueilTitre[19] = "Association Escapades Buissonnières"
AccueilTitre[20] = "Association Escapades Buissonnières"
AccueilTitre[21] = "Association Escapades Buissonnières"
AccueilTitre[22] = "Association Escapades Buissonnières"
AccueilTitre[23] = "Association Escapades Buissonnières"
AccueilTitre[24] = "Association Escapades Buissonnières"
AccueilTitre[25] = "Association Escapades Buissonnières"
AccueilTitre[26] = "Association Escapades Buissonnières"
AccueilTitre[27] = "Association Escapades Buissonnières"
AccueilTitre[28] = "Association Escapades Buissonnières"
AccueilTitre[29] = "Association Escapades Buissonnières"
AccueilTitre[30] = "Association Escapades Buissonnières"
AccueilTitre[31] = "Association Escapades Buissonnières"
AccueilTitre[32] = "Association Escapades Buissonnières"
AccueilTitre[33] = "Association Escapades Buissonnières"
AccueilTitre[34] = "Association Escapades Buissonnières"
AccueilTitre[35] = "Association Escapades Buissonnières"
AccueilTitre[36] = "Association Escapades Buissonnières"
AccueilTitre[37] = "Association Escapades Buissonnières"
AccueilTitre[38] = "Association Escapades Buissonnières"
AccueilTitre[39] = "Association Escapades Buissonnières"
AccueilTitre[40] = "Association Escapades Buissonnières"
AccueilTitre[41] = "Association Escapades Buissonnières"
AccueilTitre[42] = "Association Escapades Buissonnières"
AccueilTitre[43] = "Association Escapades Buissonnières"
AccueilTitre[44] = "Association Escapades Buissonnières"
AccueilTitre[45] = "Association Escapades Buissonnières"
AccueilTitre[46] = "Association Escapades Buissonnières"
AccueilTitre[47] = "Association Escapades Buissonnières"
AccueilTitre[48] = "Association Escapades Buissonnières"
AccueilTitre[49] = "Association Escapades Buissonnières"
AccueilTitre[50] = "Association Escapades Buissonnières"
AccueilTitre[51] = "Association Escapades Buissonnières"
AccueilTitre[52] = "Association Escapades Buissonnières"
AccueilTitre[53] = "Association Escapades Buissonnières"
AccueilTitre[54] = "Association Escapades Buissonnières"
AccueilTitre[55] = "Association Escapades Buissonnières"
AccueilTitre[56] = "Association Escapades Buissonnières"
AccueilTitre[57] = "Association Escapades Buissonnières"
AccueilTitre[58] = "Association Escapades Buissonnières"
AccueilTitre[59] = "Association Escapades Buissonnières"
AccueilTitre[60] = "Association Escapades Buissonnières"
AccueilTitre[61] = "Association Escapades Buissonnières"
AccueilTitre[62] = "Association Escapades Buissonnières"
// -----------------------------------------------------------------------------------------------------------------------------------------------------------------------
// Fin Procédure Javascript
// -----------------------------------------------------------------------------------------------------------------------------------------------------------------------



