//var root="file://F:/SiteImmac";
var root="";
/*var root="file://Macintosh HD/SiteImmac";*/

document.write("<!--root=->"+ root + "<- -->");

window.innerWidth = 750;

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function Imm_MouseOver(imgName){
    func = "document."+imgName+".src = '" + root + "/V2/Common/"+ imgName +"fonce.gif'" ;
    //window.status = func;
    eval( func );
}

function Imm_MouseOut(imgName){
    func = "document."+imgName+".src = '" + root + "/V2/Common/"+ imgName +".gif'" ;
    //window.status = func;
    eval( func );
}



document.write('<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>');
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="' + root + '/V2/Common/style.css"></LINK>');
document.write('</HEAD>');

document.write('<BODY BGCOLOR="lightgrey" BACKGROUND="' + root + '/V2/images/FOND.GIF" leftmargin=0 topmargin=0 marginheight=0 marginwidth=0 bgproperties=fixed>');

document.write("<table border=0><TR valign=top>");

document.write('<A HREF="' + root + '/V2/index.html"><img border="0" src="' + root + '/V2/images/TITRE2.gif"></IMG></A><br>');

document.write("<TD><IMG border='0' SRC='" + root + "/V2/images/un.gif' width=35></IMG></TD>");

document.write("<TD><A HREF='" + root + "/V2/InfosPratiques/index.html' "+
               " onMouseOver='Imm_MouseOver(\"infos_pratiques\")' onMouseOut='Imm_MouseOut(\"infos_pratiques\")'> "+
               "<IMG NAME='infos_pratiques' border='0' SRC='" + root + "/V2/Common/infos_pratiques.gif'></IMG> </A></TD>");

document.write("<TD><A HREF='" + root + "/V2/Dossiers/index.html' "+
               " onMouseOver='Imm_MouseOver(\"dossiers\")' onMouseOut='Imm_MouseOut(\"dossiers\")'> "+
               "<IMG NAME='dossiers' border='0' SRC='" + root + "/V2/Common/dossiers.gif'></IMG> </A></TD>");
               
document.write("<TD><A HREF='" + root + "/V2/ViergeMarie/index.html'"+
               " onMouseOver='Imm_MouseOver(\"vierge_marie\")' onMouseOut='Imm_MouseOut(\"vierge_marie\")'> "+
               "<IMG NAME='vierge_marie' border='0' SRC='" + root + "/V2/Common/vierge_marie.gif'></IMG> </A></TD>");
               
document.write("<TD><A HREF='" + root + "/V2/LiensUtiles/index.html' "+
               " onMouseOver='Imm_MouseOver(\"liens_utiles\")' onMouseOut='Imm_MouseOut(\"liens_utiles\")'> "+
               "<IMG NAME='liens_utiles' border='0' SRC='" + root + "/V2/Common/liens_utiles.gif'></IMG> </A></TD>");

document.write("<TD><A HREF='" + root + "/V2/Actualites/index.html' "+
               " onMouseOver='Imm_MouseOver(\"photos\")' onMouseOut='Imm_MouseOut(\"photos\")'> "+
               "<IMG NAME='photos'  border='0' SRC='" + root + "/V2/Common/photos.gif'></IMG> </A></TD>");

document.write("</TR></TABLE>");

// function used at history build time, just generate the link
function generateLink( path, displayedtext ){
    return "<A HREF='" + root + "/V2/" + path + "/index.html'>" + displayedtext + "</A>&nbsp;"
}
// function used at history build time, check if keyword appears in the urln and if so, call generateLink
function conditionalGenerateLink( url, keyword, path, displayedText ){
    if( url.indexOf(keyword) != -1 ){
            return generateLink(path, displayedText);
    }else{
        return "";
    }
}


/* build the complete path, to let the user know where he is */
var thisHistory = "&nbsp;&nbsp;&nbsp;&nbsp;Vous &ecirc;tes ici : ";
var thisUpperUrl = "" + document.location;
    thisUpperUrl = thisUpperUrl.toUpperCase();

if( thisUpperUrl.indexOf("PHOTOS") != -1 ){
    thisHistory = thisHistory + generateLink("Actualites","Actualit&eacute;s") ;
}//actualites
if( thisUpperUrl.indexOf("DOSSIERS") != -1 ){
    thisHistory = thisHistory + generateLink("Dossiers","Dossiers");
    if( thisUpperUrl.indexOf("2002") != -1 ){
        thisHistory = thisHistory + generateLink("Dossiers/2002","2002");
        thisHistory = thisHistory + 
            conditionalGenerateLink( thisUpperUrl, "FETE", "Dossiers/2002/Fete","Fete&nbsp;Paroisse");
        thisHistory = thisHistory + 
            conditionalGenerateLink( thisUpperUrl, "PELERINAGE", "Dossiers/2002/Pelerinage","P&egrave;lerinage");
        thisHistory = thisHistory + 
            conditionalGenerateLink( thisUpperUrl, "BELY", "Dossiers/2002/Bely","Conf&eacute;rence M Bely");
            
           
    }//2002
    if( thisUpperUrl.indexOf("2003") != -1 ){
        thisHistory = thisHistory + generateLink("Dossiers/2003","2003");
        thisHistory = thisHistory + 
            conditionalGenerateLink( thisUpperUrl, "CONCERTOECUMENIQUE2003", "Dossiers/2003/concertoecumenique2003","Concert&nbsp;oecum&eacute;nique");
        thisHistory = thisHistory + 
            conditionalGenerateLink( thisUpperUrl, "RENCONTRETAIZE", "Dossiers/2003/RencontreTaize","Rencontre&nbsp;Taiz&eacute;");
        thisHistory = thisHistory + 
            conditionalGenerateLink( thisUpperUrl, "SEMAINESAINTE2003", "Dossiers/2003/semainesainte2003","semaine&nbsp;sainte");
        thisHistory = thisHistory + 
            conditionalGenerateLink( thisUpperUrl, "FETEQUARTIER2003", "Dossiers/2003/FeteQuartier2003","F&ecirc;te du quartier");
            thisHistory = thisHistory + 
            conditionalGenerateLink( thisUpperUrl, "1ERE_COMMUNION", "Dossiers/2003/1ERE_COMMUNION","Premi&egrave;re Communion");
        thisHistory = thisHistory + 
            conditionalGenerateLink( thisUpperUrl, "DEPARTHENRI", "Dossiers/2003/DepartHenri","Messe d'Au revoir du p&egrave;re Henri de l'Eprevier");
            
    }//2003

    if( thisUpperUrl.indexOf("2005") != -1 ){
        thisHistory = thisHistory + generateLink("Dossiers/2005","2005");
        //thisHistory = thisHistory + 
        //    conditionalGenerateLink( thisUpperUrl, "CONCERTOECUMENIQUE2003", "Dossiers/2003/concertoecumenique2003","Concert&nbsp;oecum&eacute;nique");
    }//2005
    if( thisUpperUrl.indexOf("2004") != -1 ){
        thisHistory = thisHistory + generateLink("Dossiers/2004","2004");
        //thisHistory = thisHistory + 
        //    conditionalGenerateLink( thisUpperUrl, "CONCERTOECUMENIQUE2003", "Dossiers/2003/concertoecumenique2003","Concert&nbsp;oecum&eacute;nique");
    }//2004

    if( thisUpperUrl.indexOf("HISTOIRE") != -1 ){
        thisHistory = thisHistory + generateLink("Dossiers/Histoire","Histoire");
        if( thisUpperUrl.indexOf("EGLISE") != -1 ){
            thisHistory = thisHistory + generateLink("Dossiers/Histoire/Eglise","Eglise");
            thisHistory = thisHistory + 
                conditionalGenerateLink( thisUpperUrl, "CARMELITES", "Dossiers/Histoire/Eglise/Carmelites","Carm&eacute;lites");
            thisHistory = thisHistory + 
                conditionalGenerateLink( thisUpperUrl, "SCULPTURES", "Dossiers/Histoire/Eglise/Sculptures","Sculptures");
        }//eglise
        thisHistory = thisHistory + 
            conditionalGenerateLink( thisUpperUrl, "ORGUE", "Dossiers/Histoire/Orgue","Orgue");
    }//histoire
    if( thisUpperUrl.indexOf("VIESPIRITUELLE") != -1 ){
        thisHistory = thisHistory + generateLink("Dossiers/VieSpirituelle","Vie spirituelle");
            thisHistory = thisHistory + 
                conditionalGenerateLink( thisUpperUrl, "ROSAIRE", "Dossiers/VieSpirituelle/Rosaire","Rosaire");
            thisHistory = thisHistory + 
                conditionalGenerateLink( thisUpperUrl, "ONCTIONDESMALADES", "Dossiers/VieSpirituelle/OnctiondesMalades","Onction&nbsp;des&nbsp;Malades");
    }//VieSpirituelle

}//dossiers

if( thisUpperUrl.indexOf("INFOSPRATIQUES") != -1 ){
    thisHistory = thisHistory + generateLink("InfosPratiques","InfosPratiques") ;
    thisHistory = thisHistory + 
        conditionalGenerateLink( thisUpperUrl, "CALENDRIER", "InfosPratiques/Calendrier","Calendrier");
    thisHistory = thisHistory + 
        conditionalGenerateLink( thisUpperUrl, "FIP", "InfosPratiques/FIP","Feuilles d'information paroissiale");
    thisHistory = thisHistory + 
        conditionalGenerateLink( thisUpperUrl, "GLOSSAIRE", "InfosPratiques/Glossaire","Annuaire/Glossaire");
    thisHistory = thisHistory + 
        conditionalGenerateLink( thisUpperUrl, "PLANSDACCES", "InfosPratiques/PlansdAcces","Plans d'acc&egrave;s");
}//infos pratiques

if( thisUpperUrl.indexOf("LIENSUTILES") != -1 ){
    thisHistory = thisHistory + generateLink("LiensUtiles","Liens&nbsp;Utiles") ;
}//liens utiles

if( thisUpperUrl.indexOf("VIERGEMARIE") != -1 ){
    thisHistory = thisHistory + generateLink("ViergeMarie","Vierge&nbsp;Marie") ;
    thisHistory = thisHistory + 
        conditionalGenerateLink( thisUpperUrl, "Conception_Vierge", "ViergeMarie/Conception_Vierge","Conception de la Vierge");
}//Vierge Marie



/* first, take the current url */
var thisUrl = ""+document.location;
var backUrl = "";
/* if the url ends with a file name, remove this file name*/
var isFile = 0+thisUrl.lastIndexOf(".htm");
var slashPos = 0+thisUrl.lastIndexOf("/");
if( isFile > 0 && slashPos > 0 ){
    thisUrl = thisUrl.substring(0,slashPos);
}
/* now removes the last part of the url */
slashPos = 0+thisUrl.lastIndexOf("/");
if( slashPos <= 0 ){
   backUrl = thisUrl; 
}else{
   backUrl =thisUrl.substring(0,slashPos) ;
}

/* finally check that the url contains the nowadays /V2. 
   If not, use root instead. */

if( backUrl.indexOf("/V2")<=0 && backUrl.indexOf("/v2")<=0  ){
    backUrl = root;
}else{
   /* now the url is ok for a web server,
      but for file operations, it is better to
      add the default index.html to it */
   backUrl = backUrl + "/index.html";
   document.write(thisHistory + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF='"+backUrl +"' >Retour</A><BR><BR>");
}



