// Procédure définissant la table de navigation page htm
// -----------------------------------------------------

// Page Id / File name / Topic prev / Page prev / Page follow / Topic follow 
TabNav = new Array (

 	[ 0,	"accueil.htm"    									, -1, -1,  5,  5 ],
	[ 5,	"introduction.htm"  								,  0,  0, 10, 10 ],
	[ 10,	"plan_site.htm"  									,  5,  5, 15, 15 ],
	
	// Bérenger Saunière  
 	[ 15,		"bs_les_annees_decouvertes.htm"   				, 10, 10, 20, 25 ],
	[ 20,		"bs_les_annees_luxieuses.htm"    				, 10, 15, 22, 22 ],

	// Alfred Saunière
	[ 22,	    "alfred_sauniere.htm"  		 				    , 15, 20, 25, 25 ],

	// Boudet
 	[ 25,		"boudet_son_histoire.htm"   					, 22, 22, 30, 37 ],
 	[ 30,		"boudet_ses_ecrits.htm"   						, 22, 25, 35, 37 ],
 	[ 35,		"boudet_le_livre_de_pierre.htm"    				, 22, 30, 37, 37 ],
	
	// Jean Jourde
	[ 37,	    "jean_jourde.htm"  							    , 25, 35, 40, 45 ],
	
	// Gelis
	[ 40,	"gelis_son_histoire.htm"  							, 37, 37, 45, 45 ],

	// Rivière
	[ 45,	"eglise_esperaza.htm"  								, 40, 40, 50, 50 ],

	// Bigou
	[ 50,	"antoine_bigou.htm"  								, 45, 45, 55, 55 ],

	// Autres personnages
 	[ 55,			"marie_denarnaud.htm"  						, 50, 50, 60, 90 ],	
	[ 60,			"elie_bot.htm"  							, 50, 55, 65, 90 ],
	[ 65,			"arsene_billard.htm"    					, 50, 60, 70, 90 ],
	[ 70,			"beausejour.htm"    						, 50, 65, 71, 90 ],
	[ 71,			"chambord.htm"    						    , 50, 70, 73, 90 ],
	
	[ 73,			"giscard.htm"     						    , 50, 71, 74, 90 ],
	[ 74,			"giscard_catalogue.htm"      			    , 50, 73, 75, 90 ],
		
	[ 75,	        "oswald_wirth.htm"					        , 50, 74, 80, 90 ],
	[ 80,	        "vigenere.htm"  							, 50, 75, 90, 90 ],

	// Les sites remarquables
	// 		Rennes-Le-Château
	[ 90,		"rlc_son_histoire.htm"  						, 80, 80, 95, 95 ],
	
	//			L'église de Saunière
	[ 95,			"eglise_mm_presentation.htm"  				, 90, 90, 100, 150 ],
    [ 100,			"eglise_mm_benitier.htm"  					, 90, 95, 105, 150 ],
	[ 105,			"eglise_mm_statuaire.htm"  					, 90, 100, 110, 150 ],
	[ 110,			"eglise_mm_bas_relief.htm"  				, 90, 105, 115, 150 ],
	[ 115,			"eglise_mm_chemin_de_croix.htm"  			, 90, 110, 120, 150 ],
	[ 120,			"eglise_mm_autres_amenagements.htm"			, 90, 115, 125, 150 ],

	//				La fresque	
	[ 125,				"egl_mm_fresque_1.htm"  				, 90, 120, 130, 150 ],
	[ 130,				"egl_mm_fresque_2.htm"  				, 90, 125, 135, 150 ],
	[ 135,				"egl_mm_fresque_3.htm"  				, 90, 130, 140, 150 ],
	[ 140,				"egl_mm_fresque_4.htm"  				, 90, 135, 145, 150 ],
	
	[ 145,			"eglise_mm_jardin.htm"  					, 90, 140, 150, 150 ],
	
	//			Le Domaine de Saunière
	[ 150,			"villa_bethanie.htm"  						, 95, 145, 155, 178 ],
	[ 155,			"tour_magdala.htm"  						, 95, 150, 160, 178 ],
	[ 160,			"tour_orangeraie.htm"  						, 95, 155, 165, 178 ],
 	[ 165,			"la_chapelle_privee.htm"  					, 95, 160, 170, 178 ],
 	[ 170,			"le_belvedere.htm"  						, 95, 165, 171, 178 ],
	
	//              Sa géométrie
 	[ 171,			"bs_domaine_geometrie_1.htm"  				, 95, 170, 172, 178 ],
 	[ 172,			"bs_domaine_geometrie_2.htm"  				, 95, 171, 173, 178 ],
 	[ 173,			"bs_domaine_geometrie_3.htm"  				, 95, 172, 174, 178 ],
 	[ 174,			"bs_domaine_geometrie_4.htm"  				, 95, 173, 175, 178 ],
 	[ 175,			"bs_domaine_geometrie_5.htm"  				, 95, 174, 176, 178 ],
 	[ 176,			"bs_domaine_geometrie_6.htm"  				, 95, 175, 178, 178 ],
	
 	[ 178,		"noel_corbu.htm" 	 							, 150, 176, 180, 180 ],
	
	// 		ND de Marceille 
  	[ 180,		"ndm_son_histoire.htm"  						, 178, 178, 185, 220 ],
  	[ 185,		"ndm_chemin_de_croix.htm"  						, 178, 180, 190, 220 ],
  	[ 190,		"ndm_medaillons.htm"  							, 178, 185, 195, 220 ],
	[ 195,		"ndm_autres_amenagements.htm"  					, 178, 190, 200, 220 ],
  	[ 200,		"ndm_saint_antoine.htm"  					    , 178, 195, 205, 220 ],
 	[ 205,		"ndm_saint_antoine_suite.htm"  				    , 178, 200, 210, 220 ],
 	[ 210,		"ndm_saint_antoine_suite2.htm"  				, 178, 205, 215, 220 ],
 	[ 215,	    "ndm_autres_peintures.htm"  				    , 178, 210, 220, 220 ],
	
	//      Eglise de Renes-Les-Bains 
	[ 220,	    "eglise_rlb_1.htm"     						    , 180, 215, 225, 230 ],
	[ 225,	    "eglise_rlb_2.htm"     						    , 180, 220, 230, 230 ],
	
	[ 230,	"tombeau_des_pontils.htm"  							, 220, 225, 235, 235 ],
	[ 235,	"le_christ_antugnac.htm"  							, 230, 230, 240, 240 ],

	//		Eglise Saint Sulpice
	[ 240,		"eglise_st_sulpice_son_histoire.htm"			, 235, 235, 245, 255 ],
	[ 245,		"eglise_st_sulpice_rlc.htm"  					, 235, 240, 250, 255 ],
	[ 250,		"eglise_st_sulpice_curiosites.htm"	  			, 235, 245, 255, 255 ],

	[ 255,	"eglise_esperaza.htm"  								, 240, 250, 260, 260 ],
	
	// 		ND du Cros
	[ 260,		"eglise_nd_du_cros_presentation.htm"			, 255, 255, 265, 275 ],
	[ 265,		"eglise_nd_du_cros_curiosites.htm"  			, 255, 260, 270, 275 ],
	[ 270,		"eglise_nd_du_cros_rosaire.htm"  				, 255, 265, 275, 275 ],

	//		Limoux église des Augustins
	[ 275,		"eglise_limoux_augustin.htm"    				, 260, 270, 280, 280 ],

	[ 280,		"les_roulers.htm"  		   		                , 275, 275, 281, 281 ],
	
	[ 281,	"alet_grotte.htm"   								, 280, 280, 285, 285 ],
	[ 285,	"sites_divers.htm"  								, 281, 281, 290, 290 ],
	[ 290,	"vues_satellite.htm"  								, 285, 285, 295, 295 ],

	// Les indices fondateurs
	// 			Le Serpent Rouge
 	[ 295,		"le_serpent_rouge_1.htm"  						, 290, 290, 300, 310 ],
 	[ 300,		"le_serpent_rouge_2.htm"  					    , 290, 295, 305, 310 ],
 	[ 305,		"le_serpent_rouge_3.htm"  					    , 290, 300, 310, 310 ],

	//			Les parchemins
	[ 310,		    "les_parchemins_leur_histoire.htm" 		    , 295, 305, 315, 340 ],
	
	// 				Le petit parchemin
	[ 315,			   "le_petit_parchemin_style.htm"  			, 310, 310, 320, 340 ],
	[ 320,			   "le_petit_parchemin_geometrie.htm"  		, 310, 315, 325, 340 ],
 	[ 325,			   "le_petit_parchemin_codex_bezae.htm"  	, 310, 320, 330, 340 ],

	// 				Le grand parchemin
	[ 330,			   "le_grand_parchemin_1.htm"  		  	    , 315, 325, 335, 340 ],
	[ 335,			   "le_grand_parchemin_2.htm"  		        , 315, 330, 340, 340 ],

	// 			Les pierres gravées
 	[ 340,		   "pierres_tombales_blanchefort.htm" 			, 330, 335, 345, 360 ],
	[ 345,		   "la_dalle_de_blanchefort.htm"  				, 330, 340, 350, 360 ],
 	[ 350,		   "pierre_verticale_blanchefort.htm"		  	, 330, 345, 355, 360 ],
 	[ 355,		   "la_pierre_coume_sourde.htm"					, 330, 350, 356, 356 ],

 	[ 356,		"la_puissance_et_la_mort.htm"					, 340, 355, 360, 360 ],

	// Les indices importants
	[ 360,		"le_berger_paris.htm"  							, 356, 356, 365, 365 ],
	
	// 			La fresque	
	[ 365,		"egl_mm_fresque_1.htm"  						, 360, 360, 370, 385 ],
	[ 370,		"egl_mm_fresque_2.htm"  						, 360, 365, 375, 385 ],
	[ 375,		"egl_mm_fresque_3.htm"  						, 360, 370, 380, 385 ],
	[ 380,		"egl_mm_fresque_4.htm"  						, 360, 375, 385, 385 ],
		
	// 			Les méridiens
	[ 385,		"meridiens_histoire.htm"  						, 365, 380, 390, 395 ],
	[ 390,		"meridiens_rlc.htm"  							, 365, 385, 395, 395 ],
		
	[ 395,		"les_pommes_bleues.htm"  						, 385, 390, 396, 396 ],
	[ 396,		"feuillet_tobie.htm"  						    , 395, 395, 400, 400 ],
			
	// Les indices mineurs
 	[ 400,		"la_dalle_des_chevaliers.htm"  					, 396, 396, 405, 425 ],
	[ 405,		"sot_pecheur.htm"  								, 395, 400, 410, 425 ],
	[ 410,		"etoiles_a_6_branches.htm"  					, 395, 405, 415, 425 ],
 	[ 415,		"bs_maquette.htm"    							, 395, 410, 420, 425 ],
 	[ 420,		"bs_parapluie.htm"    							, 395, 415, 425, 425 ],

	// Un peu d'histoire
	[ 425,		"les_merovingiens.htm"  						, 400, 420, 430, 430 ],

	//     		Fédié
	[ 430,		"fedie_1_chariot.htm"  							, 425, 425, 435, 436 ],
	[ 435,		"fedie_2_alet.htm"  							, 425, 430, 436, 436 ],
	
	[ 436,		"hautpoul.htm"  						        , 430, 435, 437, 437 ],
	
	//          Port-Royal et le jansénisme
	[ 437,		    "abbaye_port_royal_1.htm"  				    , 436, 436, 438, 441 ],
	[ 438,		    "abbaye_port_royal_2.htm"  				    , 436, 437, 439, 441 ],
	[ 439,		    "abbaye_port_royal_3.htm"  				    , 436, 438, 440, 441 ],
	[ 440,		    "abbaye_port_royal_4.htm"  				    , 436, 439, 441, 441 ],
		
	//          Christine de Suède
	[ 441,		    "christine_de_suede_1.htm"  				, 437, 440, 442, 444 ],
	[ 442,		    "christine_de_suede_2.htm"  				, 437, 441, 444, 444 ],
	
	// Le Prieuré de SION
	[ 444,	"prieure_de_sion_avant_1188.htm"  					, 441, 442, 445, 453 ],
	[ 445,	"prieure_de_sion_1188_1800.htm"  					, 441, 444, 450, 453 ],
 	[ 450,	"boyle_recueil.htm"  							    , 441, 445, 453, 453 ],
 
    // Arts et peintures
    //      Les 3 toiles de Saunière
   	[ 453,		"peintures.htm"  								, 441, 450, 455, 455 ],
    
 	// 		Les bergers d'Arcadie
 	[ 455,		"les_bergers_darcadie_versions_1.htm" 			, 453, 453, 460, 475 ],
 	[ 460,		"les_bergers_darcadie_versions_2.htm" 			, 453, 455, 465, 475 ],
 	[ 465,		"les_bergers_darcadie_shugborough.htm"  		, 453, 460, 470, 475 ],
 	[ 470,		"les_bergers_darcadie_etude_1.htm"  			, 453, 465, 475, 475 ],

	// 		Le Christ au lièvre
	[ 475,		"le_christ_au_lievre_etude.htm" 				, 455, 470, 480, 485 ],
	[ 480,		"le_christ_au_lievre_revelations.htm"  			, 455, 475, 485, 485 ],

	// 		Les peintres
	// 			Poussin			
	[ 485,			"poussin.htm"  								, 475, 480, 490, 496 ],
	[ 490,			"poussin_peintures.htm"  					, 475, 485, 495, 496 ],
 	[ 495,			"le_tombeau_de_poussin.htm"  				, 475, 490, 496, 496 ],
  
 	// 			Téniers			
	[ 496,			"teniers_1.htm" 	 						, 485, 495, 497, 500 ],
	[ 497,			"teniers_2.htm" 	  						, 485, 496, 498, 500 ],
	[ 498,			"teniers_3.htm" 	  						, 485, 497, 500, 500 ],
 
	[ 500,		"botticelli.htm"    							, 496, 498, 505, 505 ],
 	[ 505,		"mucha.htm"  									, 500, 500, 515, 515 ],

	// Documents	
	[ 515,	"le_manuscrit_delmas.htm"  							, 505, 505, 520, 570 ],
 	[ 520,	"la_vraie_langue_celtique.htm"  					, 510, 515, 525, 570 ],
	[ 525,	"texte_noel_corbu.htm"  							, 510, 520, 530, 570 ],
	[ 530,	"le_rapport_cholet.htm"  							, 510, 525, 535, 570 ],
	[ 535,	"le_dossier_lobineau_1964.htm"  					, 510, 530, 540, 570 ],
	[ 540,	"le_dossier_lobineau_1965.htm"  					, 510, 535, 545, 570 ],
	[ 545,	"le_dossier_lobineau_1967.htm"  					, 510, 540, 546, 570 ],
	[ 546,	"le_cercle_ulysse.htm"  					        , 510, 545, 550, 570 ],
	[ 550,	"le_contrat_sauniere_giscard.htm"  					, 510, 546, 555, 570 ],
	[ 555,	"preface_plantard.htm"  							, 510, 550, 560, 570 ],
	[ 560,	"excursion_1905.htm"  						 	    , 510, 555, 565, 570 ],
	[ 565,	"notice_laborde.htm"  						 	    , 510, 560, 570, 570 ],

	// Albums photo
 	[ 570,	"album_sauniere.htm"    							, 515, 565, 575, 600 ],
 	[ 575,	"album_ndm.htm"    									, 515, 570, 580, 600 ],
 	[ 580,	"album_brunelin.htm"    							, 515, 575, 585, 600 ],
 	[ 585,	"album_passion.htm"    								, 515, 580, 590, 600 ],
 	[ 590,	"album_passion_2.htm"    							, 515, 585, 595, 600 ],
	[ 595,	"video.htm"  					   			        , 515, 590, 596, 600 ],
	[ 596,	"panorama.htm"  					   			    , 515, 595, 600, 600 ],
		
	// Autres études
	// 		Le 17 janvier
 	[ 600,		"le_17_janvier_celeste.htm"  					, 570, 596, 605, 610 ],
 	[ 605,		"le_17_janvier_esoterique.htm"  				, 570, 600, 610, 610 ],

	// 		Géométrie sacrée
	[ 610,		"geometrie_sacree_1.htm"  						, 600, 605, 611, 616 ],
	[ 611,		"geometrie_sacree_2.htm" 						, 600, 610, 612, 616 ],
	[ 612,		"geometrie_sacree_3.htm" 						, 600, 611, 613, 616 ],
	[ 613,		"geometrie_sacree_4.htm" 						, 600, 612, 614, 616 ],
	[ 614,		"geometrie_sacree_5.htm" 						, 600, 613, 615, 616 ],
	[ 615,		"geometrie_sacree_rlc.htm" 						, 600, 614, 616, 616 ],

	// 		L'Axe Majeur
 	[ 616,		"axe_majeur_1.htm"  				            , 610, 615, 617, 620 ],
 	[ 617,		"axe_majeur_2.htm"  				            , 610, 616, 620, 620 ],

	// 		Monument des droits de l'homme
 	[ 620,		"monument_droit_de_lhomme_1.htm"  				, 616, 617, 625, 630 ],
 	[ 625,		"monument_droit_de_lhomme_2.htm"  				, 616, 620, 630, 630 ],
 		
	//      Etude d'unification des indices
	[ 630,	    "etude_unification_indices_1.htm"               , 620, 625, 635, 640 ],
	[ 635,	    "etude_unification_indices_2.htm"               , 620, 630, 640, 640 ],
	
	// Cartes et localisation
	[ 640,	"geo_conversions.htm"  					            , 630, 635, 645, 645 ],

	// Outils
	[ 645,	"tool_vigenere.htm"  					            , 640, 640, 0, 0 ],

	// --- MENU Horizontal -----------------------------------------------------------------
 	[ 1000,	"news.htm"  										, 0, 0, 1005, 1005 ],
 	
	// Chroniques
 	[ 1005,	"chroniques.htm"  									, 1000, 1000, 1008, 1065 ],
 	
 	[ 1008,		"chronique_sougraigne.htm"   				    , 1000, 1005, 1009, 1065 ],
 	[ 1009,		"chronique_leo_bourbon.htm"   				    , 1000, 1008, 1010, 1065 ],
 	[ 1010,		"chronique_rdv_chercheurs.htm"   				, 1000, 1009, 1015, 1065 ],
 	[ 1015,		"chronique_rlc_en_danger.htm"   				, 1000, 1010, 1020, 1065 ],
	[ 1020,		"chronique_secret_art.htm"   				    , 1000, 1015, 1025, 1065 ],
	[ 1025,		"chronique_17_janvier.htm"   	   			    , 1000, 1020, 1030, 1065 ],
	[ 1030,		"chronique_17_juillet_2007.htm"   			    , 1000, 1025, 1035, 1065 ],
	[ 1035,		"chronique_fausse_date.htm"  					, 1000, 1030, 1040, 1065 ],
	[ 1040,		"chronique_patrick_merle.htm"  					, 1000, 1035, 1045, 1065 ],
	[ 1045,		"da_vinci_code_proces.htm"  					, 1000, 1040, 1050, 1065 ],
	[ 1050,		"chronique_franck_daffos.htm"  					, 1000, 1045, 1055, 1065 ],
 	[ 1055,		"lettre_du_webmaster.htm"  						, 1000, 1050, 1060, 1065 ],
	[ 1060,		"da_vinci_code.htm"  							, 1000, 1055, 1065, 1065 ],
 	
 	[ 1065,	"bibliographie.htm"    								, 1005, 1060, 1070, 1070 ],

 	[ 1070,	"liens.htm"  										, 1065, 1065, 0, 0 ],

	[ 2000,	"titre_non_disponible.htm"  						, 0, 0, 0, 0 ],
	[ 9999,	""  												, 0, 0, 0, 0 ]
	) ;

TABID_PAGE_ID = 0 ;
TABID_FILE_NAME = 1 ;
TABID_TOPIC_PREV = 2 ;
TABID_PAGE_PREV = 3 ;
TABID_PAGE_FOLLOW = 4 ;
TABID_TOPIC_FOLLOW = 5 ;

function Get_CurrentFileName ()
{
// Extraction du file name courant
Url = location.href ;
pos1 = Url.lastIndexOf ("/") ;
pos2 = Url.lastIndexOf (".") ;
UrlFileName = Url.substring (pos1 + 1, pos2 + 4) ;
return UrlFileName ;
}

// Rend le TabId correspondant au FileName
// --------------------------------------- 
function Get_TabId_FileName (FileName)
{
i = 0 ;
while ( TabNav[i][TABID_FILE_NAME] != FileName && TabNav[i][TABID_FILE_NAME] != "" )
	i++ ;

if ( TabNav[i][TABID_FILE_NAME] == "" )
	ret = -1 ;
else	 
    ret = i ;

return ret ;
}

// Rend le TabId correspondant au PageId
// ------------------------------------- 
function Get_TabId_PageId (PageId)
{
i = 0 ;
while ( TabNav[i][TABID_PAGE_ID] != PageId && TabNav[i][TABID_FILE_NAME] != "" )
	i++ ;

if ( TabNav[i][TABID_FILE_NAME] == "" )
	ret = -1 ;
else	 
    ret = i ;

return ret ;
}

// Appelle le FileName selon la direction
// --------------------------------------
function GoPage (Direction)
{
switch (Direction)
	{
	case "PF" : Go = TABID_PAGE_FOLLOW ; 
			break ;
	case "PP" : Go = TABID_PAGE_PREV ;
			break ;
	case "TF" : Go = TABID_TOPIC_FOLLOW ;
			break ;
	case "TP" : Go = TABID_TOPIC_PREV ;
			break ;

	default : return ;		
	}		
	
CurrentFileName = Get_CurrentFileName() ;
TabId = Get_TabId_FileName (CurrentFileName) ;

if ( TabId != -1 )
	{
	PageIdNew = TabNav[TabId][Go] ;
	if ( PageIdNew != -1 )
		{
		TabIdNew = Get_TabId_PageId (PageIdNew) ;
		if ( TabIdNew != -1 )
			{
		    FileNameNew = TabNav[TabIdNew][TABID_FILE_NAME] ;
		    location.href = FileNameNew ;
		    }
		}
	}	
return ;
}
	
	
	
	
		
			
			
			
			
			
			
			


    
