/*
Déclaration des variables globales
*/
var gf = 0;
var numgf = 0;

/*
Tableaux des Grandes Figures
*/
	figures = new Array();
	grd_fig = new Array();
	grd_fig[0] = new Array();
	grd_fig[3] = new Array();
	grd_fig[6] = new Array();
	grd_fig[8] = new Array();
	grd_fig[9] = new Array();
	grd_fig[10] = new Array();
	grd_fig[14] = new Array();
	grd_fig[16] = new Array();
	grd_fig[17] = new Array();
	grd_fig[21] = new Array();

	grd_fig[3][0] = 3;
	grd_fig[3][1] = 'BIDAULT';
	grd_fig[3][2] = 'Georges';
	grd_fig[3][3] = '1899';
	grd_fig[3][4] = '1983';
	grd_fig[3][5] = 'Chrono-biographie'; // 'bidault_chronobio.htm';
	grd_fig[3][6] = 'Biographie'; // 'bidault_bio.htm';
	grd_fig[3][7] = 'Hommage à Sangnier'; // 'bidault_hommage_sangnier.htm';
	grd_fig[3][8] = ''; // "bidault_.htm"
	grd_fig[3][9] = ''; // "bidault_.htm"
	grd_fig[3][10] = ''; // "bidault_.htm"
	grd_fig[3][11] = ''; // "bidault_.htm"
	grd_fig[3][12] = ''; // "bidault_.htm"
	grd_fig[3][13] = ''; // "bidault_.htm"
	grd_fig[3][51] = 'bidault_chronobio.htm';
	grd_fig[3][61] = 'bidault_bio.htm';
	grd_fig[3][71] = 'bidault_hommage_sangnier.htm';
	grd_fig[3][81] = ''; // "bidault_.htm"
	grd_fig[3][91] = ''; // "bidault_.htm"
	grd_fig[3][101] = ''; // "bidault_.htm"
	grd_fig[3][111] = ''; // "bidault_.htm"
	grd_fig[3][121] = ''; // "bidault_.htm"
	grd_fig[3][131] = ''; // "bidault_.htm"
	grd_fig[3][200] = 3;
	grd_fig[3][221] = 412; // largeur
	grd_fig[3][222] = 500; // hauteur
	grd_fig[3][223] = 'Portrait'; // Description
	grd_fig[3][231] = 600;
	grd_fig[3][232] = 414;
	grd_fig[3][233] = 'Avec Ch. de Gaulle';
	grd_fig[3][241] = 600;
	grd_fig[3][242] = 421;
	grd_fig[3][243] = 'Avec A. de Gasperi';

	grd_fig[6][0] = 4;
	grd_fig[6][1] = 'COLIN';
	grd_fig[6][2] = 'André';
	grd_fig[6][3] = '1910';
	grd_fig[6][4] = '1978 (?)';
	grd_fig[6][5] = 'Chrono-biographie'; // "colin_chronobio.htm"
	grd_fig[6][6] = 'Biographie'; // "colin_bio.htm"
	grd_fig[6][7] = 'Citations'; // "colin_citations.htm"
	grd_fig[6][8] = 'L\'appel de Beyrouth'; // "colin_appel_beyrouth.htm"
	grd_fig[6][9] = ''; // "colin_.htm";
	grd_fig[6][10] = ''; // "colin_.htm";
	grd_fig[6][11] = ''; // "colin_.htm";
	grd_fig[6][12] = ''; // "colin_.htm";
	grd_fig[6][13] = ''; // "colin_.htm";
	grd_fig[6][51] = 'colin_chronobio.htm';
	grd_fig[6][61] = 'colin_bio.htm';
	grd_fig[6][71] = 'colin_citations.htm';
	grd_fig[6][81] = 'colin_appel_beyrouth.htm';

	grd_fig[8][0] = 3;
	grd_fig[8][1] = 'DILIGENT';
	grd_fig[8][2] = 'André';
	grd_fig[8][3] = '1919';
	grd_fig[8][4] = '2002';
	grd_fig[8][5] = ''; // "diligent_chronobio.htm";
	grd_fig[8][6] = 'Biographie'; // "diligent_bio.htm";
	grd_fig[8][7] = 'Extraits de textes'; // "diligent_extraits_textes.htm";
	grd_fig[8][8] = ''; // "diligent_.htm";
	grd_fig[8][9] = ''; // "diligent_.htm";
	grd_fig[8][10] = ''; // "diligent_.htm";
	grd_fig[8][11] = ''; // "diligent_.htm";
	grd_fig[8][12] = ''; // "diligent_.htm";
	grd_fig[8][13] = ''; // "diligent_.htm";
	grd_fig[8][51] = ''; // diligent_chronobio.htm';
	grd_fig[8][61] = 'diligent_bio.htm';
	grd_fig[8][71] = 'diligent_extraits_textes.htm';

	grd_fig[9][0] = 3;
	grd_fig[9][1] = 'FONTANET';
	grd_fig[9][2] = 'Joseph';
	grd_fig[9][3] = '1921';
	grd_fig[9][4] = '1978 (?)';
	grd_fig[9][5] = 'Chrono-biographie'; // "fontanet_chronobio.htm";
	grd_fig[9][6] = ''; // "fontanet_bio.htm";
	grd_fig[9][7] = 'Citations'; // "fontanet_.htm";
	grd_fig[9][8] = ''; // "fontanet_.htm";
	grd_fig[9][9] = ''; // "fontanet_.htm";
	grd_fig[9][10] = ''; // "fontanet_.htm";
	grd_fig[9][11] = ''; // "fontanet_.htm";
	grd_fig[9][12] = ''; // "fontanet_.htm";
	grd_fig[9][13] = ''; // "fontanet_.htm";
	grd_fig[9][51] = 'fontanet_chronobio.htm';
	grd_fig[9][71] = 'fontanet_citations.htm';
	grd_fig[9][200] = 3;
	grd_fig[9][221] = 367; // largeur
	grd_fig[9][222] = 550; // hauteur
	grd_fig[9][223] = 'Dimanche matin... (1)'; // description
	grd_fig[9][231] = 600; // largeur
	grd_fig[9][232] = 492; // hauteur
	grd_fig[9][233] = 'Dimanche matin... (2)'; // description
	grd_fig[9][241] = 418;
	grd_fig[9][242] = 535;
	grd_fig[9][243] = 'En famille';

	grd_fig[10][0] = 3;
	grd_fig[10][1] = 'LECANUET';
	grd_fig[10][2] = 'Jean';
	grd_fig[10][3] = '1920';
	grd_fig[10][4] = '1993';
	grd_fig[10][5] = 'Chrono-biographie'; // "lecanuet_chronobio.htm";
	grd_fig[10][6] = 'Biographie'; // "lecanuet_bio.htm";
	grd_fig[10][7] = 'Citations'; // "lecanuet_citations.htm";
	grd_fig[10][8] = ''; // "lecanuet_.htm";
	grd_fig[10][9] = ''; // "lecanuet_.htm";
	grd_fig[10][10] = ''; // "lecanuet_.htm";
	grd_fig[10][11] = ''; // "lecanuet_.htm";
	grd_fig[10][12] = ''; // "lecanuet_.htm";
	grd_fig[10][13] = ''; // "lecanuet_.htm";
	grd_fig[10][51] = 'lecanuet_chronobio.htm';
	grd_fig[10][61] = 'lecanuet_bio.htm';
	grd_fig[10][71] = 'lecanuet_citations.htm';
	grd_fig[10][200] = 4;
	grd_fig[10][221] = 484; // largeur
	grd_fig[10][222] = 500; // hauteur
	grd_fig[10][223] = 'Intervention (1)'; // description
	grd_fig[10][231] = 600; // largeur
	grd_fig[10][232] = 423; // hauteur
	grd_fig[10][233] = 'Intervention (2)'; // description
	grd_fig[10][241] = 356;
	grd_fig[10][242] = 529;
	grd_fig[10][243] = 'A la mairie de Rouen (1)';
	grd_fig[10][251] = 353;
	grd_fig[10][252] = 535;
	grd_fig[10][253] = 'A la mairie de Rouen (2)';
	
	grd_fig[14][0] = 2;
	grd_fig[14][1] = 'MENTHON';
	grd_fig[14][2] = 'François de';
	grd_fig[14][3] = '1900';
	grd_fig[14][4] = '1984';
	grd_fig[14][5] = 'Chrono-biographie'; // "menthon_chronobio.htm";
	grd_fig[14][6] = 'Biographie'; // "menthon_bio.htm";
	grd_fig[14][7] = ''; // "menthon_.htm";
	grd_fig[14][8] = ''; // "menthon_.htm";
	grd_fig[14][9] = ''; // "menthon_.htm";
	grd_fig[14][10] = ''; // "menthon_.htm";
	grd_fig[14][11] = ''; // "menthon_.htm";
	grd_fig[14][12] = ''; // "menthon_.htm";
	grd_fig[14][13] = ''; // "menthon_.htm";
	grd_fig[14][51] = 'menthon_chronobio.htm';
	grd_fig[14][61] = 'menthon_bio.htm';

	grd_fig[16][0] = 4;
	grd_fig[16][1] = 'PFLIMLIN';
	grd_fig[16][2] = 'Pierre';
	grd_fig[16][3] = '1907';
	grd_fig[16][4] = '2000';
	grd_fig[16][5] = 'Chrono-biographie'; // "pflimlin_chronobio.htm";
	grd_fig[16][6] = 'Biographie'; // "pflimlin_bio.htm";
	grd_fig[16][7] = 'Citations'; // "pflimlin_citations.htm";
	grd_fig[16][8] = 'Cercle P. Pflimlin'; // "pflimlin_cercle.htm";
	grd_fig[16][9] = ''; // "pflimlin_.htm";
	grd_fig[16][10] = ''; // "pflimlin_.htm";
	grd_fig[16][11] = ''; // "pflimlin_.htm";
	grd_fig[16][12] = ''; // "pflimlin_.htm";
	grd_fig[16][13] = ''; // "pflimlin_.htm";
	grd_fig[16][51] = 'pflimlin_chronobio.htm';
	grd_fig[16][61] = 'pflimlin_bio.htm';
	grd_fig[16][71] = 'pflimlin_citations.htm';
	grd_fig[16][81] = 'pflimlin_cercle.htm';
	grd_fig[16][200] = 4;
	grd_fig[16][221] = 404;
	grd_fig[16][222] = 535;
	grd_fig[16][223] = 'Réponse ...';
	grd_fig[16][231] = 374;
	grd_fig[16][232] = 535;
	grd_fig[16][233] = 'Intervention (1)';
	grd_fig[16][241] = 413;
	grd_fig[16][242] = 535;
	grd_fig[16][243] = 'Intervention (2)';
	grd_fig[16][251] = 348;
	grd_fig[16][252] = 414;
	grd_fig[16][253] = 'Portrait';

	grd_fig[17][0] = 2;
	grd_fig[17][1] = 'POHER';
	grd_fig[17][2] = 'Alain';
	grd_fig[17][3] = '1909';
	grd_fig[17][4] = '1996';
	grd_fig[17][5] = 'Chrono-biographie'; // "poher_chronobio.htm";
	grd_fig[17][6] = 'Biographie'; // "poher_bio.htm";
	grd_fig[17][7] = ''; // "poher_.htm";
	grd_fig[17][8] = ''; // "poher_.htm";
	grd_fig[17][9] = ''; // "poher_.htm";
	grd_fig[17][10] = ''; // "poher_.htm";
	grd_fig[17][11] = ''; // "poher_.htm";
	grd_fig[17][12] = ''; // "poher_.htm";
	grd_fig[17][13] = ''; // "poher_.htm";
	grd_fig[17][51] = 'poher_chronobio.htm';
	grd_fig[17][61] = 'poher_bio.htm';
	grd_fig[17][200] = 4;
	grd_fig[17][221] = 455;
	grd_fig[17][222] = 500;
	grd_fig[17][223] = 'Campagne présidentielle';
	grd_fig[17][231] = 351;
	grd_fig[17][232] = 535;
	grd_fig[17][233] = 'Campagne présidentielle';
	grd_fig[17][241] = 600;
	grd_fig[17][242] = 495;
	grd_fig[17][243] = 'A la Présidence (1)';
	grd_fig[17][251] = 580;
	grd_fig[17][252] = 535;
	grd_fig[17][253] = 'A la Présidence (2)';

	grd_fig[21][0] = 9;
	grd_fig[21][1] = 'SCHUMAN';
	grd_fig[21][2] = 'Robert';
	grd_fig[21][3] = '1886';
	grd_fig[21][4] = '1963';
	grd_fig[21][5] = 'Chrono-biographie'; // "schuman_chronobio.htm";
	grd_fig[21][6] = 'Biographie'; // "schuman_bio.htm";
	grd_fig[21][7] = 'Discours du 22/11/1947'; // "schuman_discours_19471122.htm";
	grd_fig[21][8] = 'Déclaration 09/05/1950'; // "schuman_declaration_19500509.htm";
	grd_fig[21][9] = 'Citations'; // "schuman_citations.htm";
	grd_fig[21][10] = 'Politique Afrique Nord'; // "schuman_politique_afrique_nord.htm";
	grd_fig[21][11] = 'C.E.R.S. Scy-Chazelles'; // "schuman_cers_scy_chazelles.htm";
	grd_fig[21][12] = 'Hommage d\'Adenauer'; // "schuman_hommage_adenauer.htm";
	grd_fig[21][13] = 'Hommage de R.Rémond'; // "schuman_hommage_remond.htm";
	grd_fig[21][51] = 'schuman_chronobio.htm';
	grd_fig[21][61] = 'schuman_bio.htm';
	grd_fig[21][71] = 'schuman_discours_19471122.htm';
	grd_fig[21][81] = 'schuman_declaration_19500509.htm';
	grd_fig[21][91] = 'schuman_citations.htm';
	grd_fig[21][101] = 'schuman_politique_afrique_nord.htm';
	grd_fig[21][111] = 'schuman_cers_scy_chazelles.htm';
	grd_fig[21][121] = 'schuman_hommage_adenauer.htm';
	grd_fig[21][131] = 'schuman_hommage_remond.htm';
	grd_fig[21][200] = 9;
	grd_fig[21][221] = 372;
	grd_fig[21][222] = 500;
	grd_fig[21][223] = 'Portrait';
	grd_fig[21][231] = 373;
	grd_fig[21][232] = 515;
	grd_fig[21][233] = 'Examen d\'un manuscrit';
	grd_fig[21][241] = 600;
	grd_fig[21][242] = 468;
	grd_fig[21][243] = 'Avec Alain Poher';
	grd_fig[21][251] = 600;
	grd_fig[21][252] = 371;
	grd_fig[21][253] = 'Signature traité CECA';
	grd_fig[21][261] = 600;
	grd_fig[21][262] = 446;
	grd_fig[21][263] = 'Avec Adenauer, Gasperi';
	grd_fig[21][271] = 458;
	grd_fig[21][272] = 473;
	grd_fig[21][273] = 'Avec le pape Pie XII';
	grd_fig[21][281] = 565;
	grd_fig[21][282] = 535;
	grd_fig[21][283] = 'Avec le pape Jean XXIII';
	grd_fig[21][291] = 600;
	grd_fig[21][292] = 391;
	grd_fig[21][293] = 'Avec les Alsaciennes';
	grd_fig[21][301] = 459;
	grd_fig[21][302] = 529;
	grd_fig[21][303] = 'Avec Konrad Adenauer';

	function album(adresse_src,gf,nom_gf,nbreImages) {
		album=window.open("about:blank","Album","width=700px,height=575px,left=50,top=12,toolbar=0,menubar=0,scrollbars=0,resizable=0,status=0,location=0");
		album.document.write('<html>\n\n\t<head>\n\n\t\t');
//		album.document.write('<script Language="Javascript" src="../scripts/gf_traitement.js"></script>\n\n\t\t');
		album.document.write('<title>Album de '+grd_fig[gf][2]+" "+grd_fig[gf][1]+'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</title>\n\n\t\t');
		album.document.write('<script Language="Javascript">\n\t\t\t');
		album.document.write('var compteur = 2;\n\t\t\t');
//		album.document.write('var numgf = '+gf+';\n\t\t\t');
		album.document.write('var name_gf = "'+nom_gf+'";\n\n\t\t\t');
//		album.document.write('alert("../../photos/grandes/"+name_gf+compteur+".jpg");');
//		album.document.write('var nbreImages = '+nbreIm+';\n\n\t\t\t');
//		album.document.write('var numdescript = Number("2"'+compteur+'"3");\n\t\t\t');
//		album.document.write('alert("numdescript : "+numdescript+"+"+numgf+"="+(numdescript+numgf));\n\t\t\t');
//		album.document.write('var description = '+grd_fig[numgf][numdescript]+';\n\t\t\t');
//		alert("adresse_src : "+adresse_src);//\n\n\t\t\t');
		album.document.write('function precedente(form) {\n\t\t\t\t');
		album.document.write('compteur += -1;\n\t\t\t\t');
		album.document.write('if (compteur < 2)\n\t\t\t\t\t');
		album.document.write('compteur = '+(Number(nbreImages)+1)+';\n\t\t\t\t');
		album.document.write('document.images[0].src = "../../photos/grandes/"+name_gf+compteur+".jpg";\n\t\t\t');
		album.document.write('}\n\n\t\t\t');
		album.document.write('function suivante(form) {\n\t\t\t\t');
		album.document.write('compteur += 1;\n\t\t\t\t');
		album.document.write('if (compteur > '+(Number(nbreImages)+1)+')\n\t\t\t\t\t');
		album.document.write('compteur = 2;\n\t\t\t\t');
		album.document.write('document.images[0].src = "../../photos/grandes/"+name_gf+compteur+".jpg";\n\t\t\t');
		album.document.write('}\n\n\t\t');
		album.document.write('<\/script>\n\n\t');
		album.document.write('</head>\n\n\t');
		album.document.write('<body leftmargin=0 topmargin=0 bgcolor="#004466">\n\n\t\t');
		album.document.write('<form>\n\t\t\t');
		album.document.write('<table border="0" cellpadding=0 cellspacing=0 style="margin-left:5px;margin-bottom:5px;margin-right:5px;margin-top:5px">\n\n\t\t\t\t');
		album.document.write('<tr height=542px>\n\t\t\t\t\t');
		album.document.write('<td colspan="3" align="center">\n\t\t\t\t\t\t');
		album.document.write('<a href="javascript:self.close();">\n\t\t\t\t\t\t\t<img src="'+adresse_src+'" border="0">\n\t\t\t\t\t\t</a>\n\t\t\t\t\t');
		album.document.write('</td>\n\t\t\t\t');
		album.document.write('</tr>\n\n\t\t\t\t');
		album.document.write('<tr height=28px>\n\t\t\t\t\t');
		album.document.write('<td valign="middle" width=14% align="left">\n\t\t\t\t\t\t<input type="button" value="Photo précédente" onclick="precedente(this.form)">\n\t\t\t\t\t</td>\n\t\t\t\t\t');
		album.document.write('<td valign="middle" width=73% align="center">\n\t\t\t\t\t\t<font face="Arial" size="2" color="#FFFFFF">\n\t\t\t\t\t\t\t<b>Cliquez sur la photo pour fermer</b>\n\t\t\t\t\t\t</font>\n\t\t\t\t\t</td>\n\t\t\t\t\t');
		album.document.write('<td valign="middle" width=13% align="right">\n\t\t\t\t\t\t<input type="button" value="Photo suivante" onclick="suivante(this.form)">\n\t\t\t\t\t</td>\n\t\t\t\t');
		album.document.write('</tr>\n\t\t\t');
		album.document.write('</table>\n\t\t');
		album.document.write('</form>\n\n\t');
		album.document.write('</body>\n\n');
		album.document.write('</html>');
	}

	function popup(adresse_src,largeur,hauteur,titrefenetre,description) {
		var nw = window.open("about:blank","","width="+(largeur+20)+",height="+(hauteur+52)+",left="+((screen.width-(largeur+20))/2)+",top="+((screen.height-(hauteur+76))/2)+",toolbar=0,menubar=0,scrollbars=0,resizable=0,status=0,location=0");
		nw.document.write('<html><head><title>'+titrefenetre+'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</title></head><body bgcolor="#004477" leftmargin="0" topmargin="0">');
		nw.document.write('<div align="center">');
		nw.document.write('<font face="Verdana, Arial, Helvetica" size="4" color="#FFFFFF"><b>'+description+'</b></font><br><br>');
		nw.document.write('<a href="javascript:self.close();"><img border="0" src="'+adresse_src+'"></a>');
		nw.document.write('</div></body></html>');
	}

	function liste_phots(numgf) {
		gf = Number(numgf);
		document.write('<select name="selecteur_phots" size="6" onchange="choix_photo(value,gf)" style="font-family:Verdana;font-size:8pt">');
		document.write('<option value="0" selected>S&eacute;lectionner ...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>');
		document.write('<option value="1">Album complet</option>');
		for (i=2;i<=grd_fig[gf][200]+1;i++) {
			if (i<10)
				var description_string = "2"+i+"3";
			else {
				represente_i1 = i.toString();
				represente_i2 = represente_i1.charAt(represente_i1.length-1);
				var description_string = "3"+represente_i2+"3";
				}
			var description = Number(description_string);
			document.write('<option value="'+i+'">'+grd_fig[gf][description]+'</option>');
		}
		document.write('</select>');
	}

	function choix_photo(choix,gf) {
//		********** Teste si "choix" est différent de zéro **********
		if (choix == 0) return ;
//		********** Déclaration des variables **********
		var adresse_src;
		var nom_gf;
		var largeur;
		var hauteur;
		var titrefenetre;
		var description;
		var nbreImages;
//		********** Initialisation des variables **********
		nom_gf = grd_fig[gf][1].toLowerCase();
		if (choix<10) {
			largeur = grd_fig[gf]["2"+choix+"1"];
			hauteur = grd_fig[gf]["2"+choix+"2"];
			description = grd_fig[gf]["2"+choix+"3"];
			}
		else {
			represente_choix1 = choix.toString();
			represente_choix2 = represente_choix1.charAt(represente_choix1.length-1);
			largeur = grd_fig[gf]["3"+represente_choix2+"1"];
			hauteur = grd_fig[gf]["3"+represente_choix2+"2"];
			description = grd_fig[gf]["3"+represente_choix2+"3"];
			}
		titrefenetre = grd_fig[gf][2]+" "+grd_fig[gf][1]+" - "+grd_fig[gf][3]+"/"+grd_fig[gf][4];
		nbreImages = grd_fig[gf][200]
//		********** Orientation selon valeur de "choix" **********
		if (choix == 1) {
			adresse_src = "../../photos/grandes/"+nom_gf+(Number(choix)+1)+".jpg";
			album (adresse_src,gf,nom_gf,nbreImages);
			}
		else {
			adresse_src = "../../photos/grandes/"+nom_gf+choix+".jpg";
			popup(adresse_src,largeur,hauteur,titrefenetre,description);
			}
	}

	function affiche_doc(gf) {
		numgf = gf;
		if (grd_fig[numgf][51] != '')
			document.write('<iframe src="'+grd_fig[numgf][51]+'" id="windocs" width="'+430+'" height="'+500+'" frameborder="0" scrolling="auto"></iframe>');
		else
			document.write('<iframe src="'+grd_fig[numgf][61]+'" id="windocs" width="'+430+'" height="'+500+'" frameborder="0" scrolling="auto"></iframe>');
	}

	function liste_docs(numgf) {
		gf = numgf;
		document.write('<select name="selecteur_docs" size="6" tabindex="" onchange="change_doc(value)" style="font-family:Verdana;font-size:8pt">');
		document.write('<option value="0">S&eacute;lectionner ...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>');
		for (i=1;i<=grd_fig[gf][0];i++) {
			if (grd_fig[gf][51] != '')
				if (i==1)
					document.write('<option value="'+(4+i)+'" selected>'+grd_fig[gf][4+i]+'</option>');
				else
					document.write('<option value="'+(4+i)+'">'+grd_fig[gf][4+i]+'</option>');
			else
				if (i==2)
					document.write('<option value="'+(4+i)+'" selected>'+grd_fig[gf][4+i]+'</option>');
				else
					document.write('<option value="'+(4+i)+'">'+grd_fig[gf][4+i]+'</option>');
		}
		document.write('</select>');
	}

	function change_doc(refdoc) {
		// Teste si changement de choix de document est valide
		if(refdoc == 0) return;
		// Change le document
		document.getElementById("windocs").src=grd_fig[gf][refdoc+"1"];
	}

	function change_gf(numgf) {
		gf = numgf;
		// teste si changement de choix de personnage est valide
		if (gf == 0) return;
		// initialisation des variables de personnage
		document.getElementById("nom1").innerHTML = grd_fig[gf][2]+' '+grd_fig[gf][1];
		document.getElementById("nom2").innerHTML = grd_fig[gf][2]+' '+grd_fig[gf][1];
		document.getElementById("nom3").innerHTML = grd_fig[gf][3]+' - '+grd_fig[gf][4];
		document.getElementById("nom4").innerHTML = grd_fig[gf][3]+' - '+grd_fig[gf][4];
		document.photosmall.src = "../../photos/petites/photo"+gf+"_small.jpg";
		var compteur = grd_fig[gf][0]+1;
		docselect.selecteur_docs.options.length = 0;
		var optionbase = new Option("Sélectionner ...             ",0,false,false);
		docselect.selecteur_docs.options[docselect.selecteur_docs.options.length] = optionbase;
		for (i=1;i<compteur;i++) {
			if (grd_fig[gf][51] != '')
				if (i==1) {
					optionbase = Option(grd_fig[gf][4+i],4+i,false,true);
					docselect.selecteur_docs.options[docselect.selecteur_docs.options.length] = optionbase;
					}
				else {
					optionbase = Option(grd_fig[gf][4+i],4+i,false,false);
					docselect.selecteur_docs.options[docselect.selecteur_docs.options.length] = optionbase;
					}
			else
				if (i==2) {
					optionbase = Option(grd_fig[gf][4+i],4+i,false,true);
					docselect.selecteur_docs.options[docselect.selecteur_docs.options.length] = optionbase;
					}
				else {
					optionbase = Option(grd_fig[gf][4+i],4+i,false,false);
					docselect.selecteur_docs.options[docselect.selecteur_docs.options.length] = optionbase;
					}
		}
		if (grd_fig[gf][51] != '') {
			document.getElementById("windocs").src=grd_fig[numgf][51];
			}
		else {
			document.getElementById("windocs").src=grd_fig[numgf][61];
			}
		var compteur2 = grd_fig[gf][200]+1;
		photselect.selecteur_phots.options.length = 0;
		var optionbase = Option("Sélectionner ...             ",0,false,true);
		photselect.selecteur_phots.options[photselect.selecteur_phots.options.length] = optionbase;
		optionbase = Option("Album complet",1,false,false);
		photselect.selecteur_phots.options[photselect.selecteur_phots.options.length] = optionbase;
		for (i=2;i<=compteur2;i++) {
			if (i<10)
				description = grd_fig[gf]["2"+i+"3"];
			else {
				represente_i1 = i.toString();
				represente_i2 = represente_i1.charAt(represente_i1.length-1);
				description = grd_fig[gf]["3"+represente_i2+"3"];
				}
		optionbase = Option(description,i,false,false);
		photselect.selecteur_phots.options[photselect.selecteur_phots.options.length] = optionbase;
		}
	}

