// un fichier info.js, placé dans le répertoire du livre 
// définit les var titre,livre,profondeur;
// exemple: var livre=new Array ('index','chap1','chap2','chap3','chap4','chap5','chap6','chap7','chap8','chap9','notes');

var titre,livre,profondeur;

if (titre==null) titre='Sommaire du livre';
if (livre==null) livre=new Array('index');
if (profondeur==null) profondeur='../../';

var fichier=location.pathname;
var indice=0;

fichier=fichier.substring(fichier.lastIndexOf('\\')+1); //pour mode fichier de Windows!
fichier=fichier.substring(fichier.lastIndexOf('/')+1,fichier.length-4);

//Détermination de l'indice de la page courante
for (var i=0;i<livre.length ;i++)
	if (livre[i]==fichier) indice=i;

var precedant='';
var suivant='';

if (indice>0) precedant='<a href="'+livre[indice - 1]+'.htm"><img src="../../images/gauche.gif" alt="page précédante" border="0"></a>';
if (indice<livre.length-1) suivant='<a href="'+livre[indice + 1]+'.htm"><img src="../../images/droite.gif" alt="page suivante" border="0"></a>';


document.writeln('<A NAME="haut"></A>');
document.writeln('<TABLE WIDTH=100% class="navigation">');
document.writeln('<TR><TD>');
document.writeln('<A HREF=http://pages.ifrance.com/index.htm><IMG SRC='+profondeur+'images/accueil.gif ALT="Sommaire islam en questions" WIDTH=20 HEIGHT=20 BORDER=0 ALIGN=MIDDLE></A> <A HREF='+profondeur+'index.htm>Page d\'accueil</A> &gt; ');
document.writeln('<A HREF='+profondeur+'livres/index.htm><IMG SRC='+profondeur+'images/livres.gif WIDTH=20 HEIGHT=20 BORDER=0 ALIGN=MIDDLE ALT="livres">Bibliothèque</A> &gt;');
document.writeln('<A HREF=index.htm#toc TITLE="Table des matières">'+titre+'</A>');
document.writeln('<TD ALIGN=RIGHT>');
document.write(precedant+'&nbsp;');
document.writeln(suivant);
document.writeln('</TABLE>');
document.writeln('<HR class="navigation">');

