var C_F = "";
var C_C = "";
var C_T_C = "";

document.write('<LINK REL="SHORTCUT ICON" HREF="http://www.tolkiendil.com/tolkiendil.ico">');

function Quelle_Couleur()
{
	switch (Couleur)
	{
		case "vert" :
			C_F = "#0F6860"
			C_C = "#70B7A0"
			C_T_C = "#A0D0CF"
			break;
		case "bleu" :
			C_F = "#1058AF"
			C_C = "#70A8DF"
			C_T_C = "#AFC7E0"
			break;
		case "jaune" :
			C_F = "#A07F6F"
			C_C = "#CFB77F"
			C_T_C = "#DFD77F"
			break;
		case "lie" :
			C_F = "#8F2850"
			C_C = "#C08FA0"
			C_T_C = "#D0B7C0"
			break;
		case "marine" :
			C_F = "#3F4F7F"
			C_C = "#9F9FBF"
			C_T_C = "#BFBFCF"
			break;
		case "noir" :
			C_F = "#1F1F1F"
			C_C = "#A0A0A0"
			C_T_C = "#C9C9C9"
			break;
		case "violet" :
			C_F = "#8018BF"
			C_C = "#BF87DF"
			C_T_C = "#D0B0E0"
			break;
		case "cyan" :
			C_F = "#1058AF"
			C_C = "#70A8DF"
			C_T_C = "#AFC7E0"
			break;
	}
}

function Ecrire_Style()
{
	document.write('<STYLE>');
	document.write('BODY {SCROLLBAR-FACE-COLOR : ' + C_F + '; SCROLLBAR-HIGHLIGHT-COLOR : ' + C_T_C + '; SCROLLBAR-SHADOW-COLOR : #000000; SCROLLBAR-3DLIGHT-COLOR : ' + C_C + '; SCROLLBAR-ARROW-COLOR : ' + C_T_C + '; SCROLLBAR-TRACK-COLOR : #FFFFFF; SCROLLBAR-DARKSHADOW-COLOR : ' + C_F + '}');
	document.write('H2 {color : ' + C_F + '; font-size : 12pt; font-weight : bold; font-family : Verdana, Tahoma, Arial; text-align : justify;}');
	document.write('A {color : ' + C_F + '; font-family : Verdana, Tahoma, Arial; text-decoration : none; font-size : 10pt;}');
	document.write('A:Active {color : #000000; font-family : Verdana, Tahoma, Arial; text-decoration : none; font-size : 10pt;}');
	document.write('A:Visited {color : ' + C_F + '; font-family : Verdana, Tahoma, Arial; text-decoration : none; font-size : 10pt;}');
	document.write('A:Hover {color : ' + C_F + '; font-family : Verdana, Tahoma, Arial; text-decoration : underline;; font-size : 10pt;}');
	document.write('A.m {color : #000000; font-family : Verdana, Tahoma, Arial; font-size : 9pt; text-decoration : none;}');
	document.write('A.m:Visited {color : #000000; font-family : Verdana, Tahoma, Arial; text-decoration : none; font-size : 9pt;}');
	document.write('A.m:Hover {color : ' + C_F + '; font-family : Verdana, Tahoma, Arial; text-decoration : none; font-size : 9pt;}');
	document.write('A.m:Active {color : #000000; font-family : Verdana, Tahoma, Arial; text-decoration : none; font-size : 9pt;}');
//	document.write('A.e {color : #005555; font-family : Verdana, Tahoma, Arial; text-decoration : none; font-weight : normal; font-size : 10pt;}');
//	document.write('A.e:visited {color : #000000; font-family : Verdana, Tahoma, Arial; text-decoration : none; font-weight : normal; font-size : 10pt;}');
//	document.write('A.e:hover {color : #005555; font-family : Verdana, Tahoma, Arial; text-decoration : none; font-weight : normal; font-size : 10pt;}');
	document.write('P {color : #000000; text-align : justify; font-family : Verdana, Tahoma, Arial; font-size : 10pt;}');
	document.write('P.c {color : #000000; text-align : center; font-family : Verdana, Tahoma, Arial; font-size : 10pt;}');
	document.write('P.r {color : #000000; text-align : right; font-family : Verdana, Tahoma, Arial; font-size : 10pt;}');
	document.write('P.DeS {color : #000000; text-align : left; font-family : Verdana, Tahoma, Arial; font-size : 8pt;}');
	document.write('P.URL {color : #000000; text-align : left; font-family : Verdana, Tahoma, Arial; font-size : 8pt;}');
	document.write('TD.m {color : #000000; text-align : center; font-family : Verdana, Tahoma, Arial; font-size : 9pt;}');
	document.write('TD.Small {color : #000000; text-align : left; font-family : Verdana, Tahoma, Arial; font-size : 8pt;}');
	document.write('TD.Cont {color : #000000; text-align : left; font-family : Verdana, Tahoma, Arial; font-size : 8pt;}');
	document.write('TD.telec {color : #000000; text-align : center; font-family : Verdana, Tahoma, Arial; font-size : 10pt;}');
	document.write('TD.Little {color : #000000; text-align : center; font-family : Verdana, Tahoma, Arial; font-size : 8pt;}');
	document.write('A.Little {color : #000000; font-family : Verdana, Tahoma, Arial; font-size : 8pt; text-decoration : none;}');
	document.write('A.Little:Visited {color : #000000; font-family : Verdana, Tahoma, Arial; text-decoration : none; font-size : 8pt;}');
	document.write('A.Little:Hover {color : ' + C_F + '; font-family : Verdana, Tahoma, Arial; text-decoration : none; font-size : 8pt;}');
	document.write('A.Little:Active {color : #000000; font-family : Verdana, Tahoma, Arial; text-decoration : none; font-size : 8pt;}');
	document.write('TD.black {	color : #000000; text-align : center; font-family : Verdana, Tahoma, Arial; font-size : 8pt;}');
	document.write('TD.white {color : #000000; text-align : center; font-family : Verdana, Tahoma, Arial; font-size : 8pt;}');
	document.write('</STYLE>');
}

function Ecrire_Menu_Section()
{
	Quelle_Couleur();
	Ecrire_Style();
	document.write('<TABLE WIDTH=150 BORDER="0" CELLPADDING="1" CELLSPACING="0" BACKGROUND="' + Lieu + 'images/fd-' + Couleur + '-4.jpg">');
	document.write('<TR><TD>');
	document.write('<TABLE BORDER="0" CELLPADDING="5" CELLSPACING="0" WIDTH="100%">');
	document.write('<TR><TD CLASS="Small">');
	menu();
	var listemenu;
	listemenu = EltS;
	for (i=1; i<listemenu.length; i++)
	{
		if (listemenu[i].n == "")
		{
			document.write('<BR>');
		}
		else
		{
			if (listemenu[i].u == "")
			{
				document.write(listemenu[i].n + '<BR>');
			}
			else
			{
				document.write('<A CLASS="m" href="' + listemenu[i].u + '">' + listemenu[i].n + '</A><BR>');
			}
			if (listemenu[i].s != "")
			{
				document.write('<FONT SIZE=1>' + listemenu[i].s+'</FONT><BR>');
			}
		}
	}
	document.write('</TD></TR>');
	document.write('</TABLE>');
	document.write('</TD></TR>');
	document.write('</TABLE><BR><BR>');
}

function Ecrire_Menu_Commun()
{
	document.write('<TABLE BORDER="0" CELLPADDING="1" CELLSPACING="0" BGCOLOR="' + C_F + '" WIDTH="150">');
	document.write('<TR><TD>');
	document.write('<TABLE BORDER="0" CELLPADDING="5" CELLSPACING="0" BGCOLOR="#FFFFFF" WIDTH="100%">');
	document.write('<TR><TD>');
	document.write('<A CLASS="m" HREF="http://www.tolkiendil.com/' + Lieu + 'accueil.html"><B>Tolkien en VF</B></A><BR>');
	document.write('<A CLASS="m" HREF="http://www.tolkiendil.com/' + Lieu + 'liens.html">Liens classés</A><BR>');
	document.write('<A CLASS="m" HREF="http://www.tolkiendil.com/' + Lieu + 'avis.html">Votre avis</A><BR>');
	document.write('<A CLASS="m" HREF="http://www.tolkiendil.com/' + Lieu + 'avis.html">Contacts</A><BR>');
	document.write('<A CLASS="m" HREF="http://www.tolkiendil.com/' + Lieu + 'ardalie/index.html">Liste de diffusion</A><BR>');
	document.write('</TD></TR>');
	document.write('</TABLE>');
	document.write('</TD></TR>');
	document.write('</TABLE><BR><BR>');
}

function Ency(nom,url)
{
	this.n = nom;
	this.u = url;
}

var EncyS = new Array(0);
var eN = 0;

function Ecrire_Menu_Lien_Encyclo()
{
	nbRef = EncyS.length;
	if (nbRef > 0)
	{
	document.write('<TABLE BORDER="0" CELLPADDING="1" CELLSPACING="0" BGCOLOR="' + C_F + '" WIDTH="150">');
	document.write('<TR><TD>');
	document.write('<TABLE BORDER="0" CELLPADDING="5" CELLSPACING="0" BGCOLOR="' + C_T_C + '" WIDTH="100%">');
	document.write('<TR><TD>');
	document.write('<A CLASS="m" HREF="http://www.tolkiendil.com/' + Lieu + 'encyclo/index.html"><B>Encyclopédie :</B></A>');
		for (i=0; i<nbRef; i++)
		{
				document.write('<BR><A CLASS="m" HREF="http://www.tolkiendil.com/' + Lieu + 'encyclo/' + EncyS[i].u + '.html">- ' + EncyS[i].n + '</A>');
		}
		document.write('</TD></TR>');
		document.write('</TABLE>');
		document.write('</TD></TR>');
		document.write('</TABLE><BR><BR>');
	}
}

function Ecrire_Copyright_Special()
{
	document.write('');
	var Tolkieniste = 100;
	switch (Orig.slice(0,3))
	{
		case "TVF" :
			if (Couleur == "vert")
			{
			document.write('<BR><BR><A HREF="http://www.glyphweb.com/arda" TARGET="EoA"><IMG SRC="' + Lieu + '/encyclo/images/dragonet.gif" ALT="Encyclopedy of Arda" BORDER = "0"></A><BR><BR>');
			document.write('&#169; Tolkien VF');
			}
			else
			{
			document.write('<BR>-<BR>&#169; Tolkien VF');
			document.write('<BR><BR><A HREF="http://www.tolkiendil.com/' + Lieu + 'index.html"><IMG SRC="' + Lieu + 'images/tvf-white.gif" ALT="Tolkien VF" BORDER="0" WIDTH="50" HEIGHT="50"></A>');
			}
			break;
		case "Ard" :
			document.write('<BR>-<BR>&#169; Ardalië');
			document.write('<BR><BR><A HREF="http://www.tolkiendil.com/' + Lieu + 'ardalie/index.html"><IMG SRC="' + Lieu + 'images/ardalie-logo.gif" ALT="Ardalië" BORDER="0" WIDTH="100" HEIGHT="100"></A>');
			break;
		case "His" :
			document.write('<BR>-<BR>&#169; Hiswelókë');
			break;
		case "TCo" :
			document.write('<BR>-<BR>&#169; Tolkien &amp; Co');
			Tolkieniste = Orig.slice(3,5);
			document.write('<BR><BR><A HREF="http://www.tolkienfrance.com/publications.html" TARGET="TCO"><IMG SRC="' + Lieu + 'tolkienistes/t' + Tolkieniste + '.gif" ALT="le Tolkieniste : une publication Tolkien and Co" BORDER="0" WIDTH="105" HEIGHT="150"></A>');
			break;
	}
}

function Ecrire_Menu_Copyright()
{
	document.write('<TABLE BORDER="0" CELLPADDING="1" CELLSPACING="0" BGCOLOR="' + C_F + '" WIDTH="150">');
	document.write('<TR><TD>');
	document.write('<TABLE BORDER="0" CELLPADDING="5" CELLSPACING="0" BGCOLOR="#FFFFFF" WIDTH="100%">');
	document.write('<TR><TD CLASS="m">');
	document.write('<B>' + TitreM);
	Ecrire_Copyright_Special();
	document.write('</TD></TR>');
	document.write('</TABLE>');
	document.write('</TD></TR>');
	document.write('</TABLE><BR>');
	document.write('<TABLE BORDER="0" CELLPADDING="1" CELLSPACING="0" WIDTH="150">');
	document.write('<TR><TD CLASS="m">');
	document.write('<A HREF="http://www.tolkienfrance.com/" TARGET ="TCO"><IMG SRC="' + Lieu + 'images/tolkien&co.gif" BORDER=0 ALT="Tolkien & Co : Association loi 1901"></A>');
	document.write('</TD></TR>');
	document.write('</TABLE>');
}

function MeP_Debut()
{
	document.write('<MAP NAME="index_TVF">');
	document.write('<AREA SHAPE="RECT" COORDS="65,20,145,100" HREF="http://www.tolkiendil.com/' + Lieu + 'index.html">');
	document.write('</MAP>');
	document.write('<TABLE WIDTH="770" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="left">');
	document.write('<TR>');
	document.write('<TD WIDTH="210" ALIGN="center" VALIGN="top" HEIGHT="120" BACKGROUND="' + Lieu + 'images/fd-' + Couleur + '-1.jpg">');
	document.write('<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" HEIGHT="100%" BACKGROUND="' + Lieu + 'images/pixel.gif">');
	document.write('<TR VALIGN="top" ALIGN="center">');
	document.write('<TD HEIGHT="75">');
	document.write('<IMG SRC="' + Lieu + 'images/px-trans.gif" USEMAP="#index_TVF" BORDER="0" WIDTH="210" HEIGHT="120">');
	document.write('</TD></TR>');
	document.write('</TABLE>');
	document.write('</TD>');
	document.write('<TD WIDTH="560" ALIGN="center" VALIGN="middle" HEIGHT="115" BACKGROUND="' + Lieu + 'images/fd-' + Couleur + '-3.jpg">');
	document.write('<B><FONT FACE="Verdana, Tahoma, Arial" SIZE="+2" COLOR="#000000">' + TitreL + '</FONT></B>');
	document.write('</TD></TR>');
	document.write('<TR>');
	document.write('<TD WIDTH="210" ALIGN="center" VALIGN="top">');
	document.write('<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" HEIGHT="400">');
	document.write('<TR>');
	document.write('<TD BACKGROUND="' + Lieu + 'images/fd-' + Couleur + '-2.jpg" 	HEIGHT="245" ALIGN="center" VALIGN="top">');
	Ecrire_Menu_Section();
	document.write('</TD></TR>');
	document.write('<TR>');
	document.write('<TD HEIGHT="155" ALIGN="center" VALIGN="top">');
	Ecrire_Menu_Commun();
//Ecrire_Menu_Special();
	Ecrire_Menu_Lien_Encyclo();
	Ecrire_Menu_Copyright();
	document.write('</TD></TR>');
	document.write('</TABLE>');
	document.write('</TD>');
	document.write('<TD WIDTH="559" VALIGN="top">');
}

function MeP_Fin()
{
	document.write('</TD></TR>');
	document.write('<TR><TD COLSPAN="2"><P CLASS="r"><BR><IMG SRC="' + Lieu + 'images/kaluprod.jpg" WIDTH="60" HEIGHT="27" ALT="designed by" BORDER="0"></P></TD></TR>')
	document.write('</TABLE>');
}

function Ltrn(lettre,directory)
{
	document.write('<P><IMG SRC="' + Lieu + 'lettrines/' + lettre + '.gif" BORDER="0" ALIGN="LEFT" ALT="' + lettre + '">');
}

function debTab()
{
	document.write('<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="1" BGCOLOR="' + C_F + '" WIDTH="100%"><TR><TD><TABLE BORDER="0" CELLPADDING="2" CELLSPACING="1" BGCOLOR="#FFFFFF" WIDTH="100%"><TR><TD><P>');
}

function finTab()
{
	document.write('</TD></TR></TABLE></TR></TD></TABLE><BR>');
}

function TabDescrip(RuB, VaRiable)
{
	if (VaRiable != "")
	{
		document.write('<TR><TD WIDTH="15%" NOWRAP>');
		if (RuB != "")
		{
			if (RuB == "fiche")
			{
			document.write("<P CLASS='r'><IMG SRC='" + Lieu + "images/one-ring.gif' WIDTH='10' HEIGHT='10' ALT=''>");
			}
			else
			{
				document.write('<P CLASS="DeS"><B>' + RuB + '</B>');
			}
		}
		else
		{
			document.write('<P CLASS="DeS">&nbsp;');
		}
		document.write('</P></TD>');
		document.write('<TD WIDTH="500" BGCOLOR="' + C_T_C + '"><P>' + VaRiable + ' </TD></TR>');
	}
	else
	{
		document.write('<TR><TD COLSPAN="2" NOWRAP><P CLASS="DeS"><B>' + RuB + '&nbsp;</B></TD></TR>');
	}
}

function debVoirAussi()
{
	document.write('<BR><BR><TABLE BORDER="0" CELLPADDING="1" CELLSPACING="0" BGCOLOR="' + C_F + '" WIDTH="100%"><TR><TD><TABLE BORDER="0" CELLPADDING="5" CELLSPACING="0" BGCOLOR="#FFFFFF" WIDTH="100%"><TR><TD><H2>VOIR AUSSI CHEZ TOLKIEN VF :</H2><TABLE CELLPADDING="2">');
}

function debVoirAussiAilleurs()
{
	document.write('<BR><BR><TABLE BORDER="0" CELLPADDING="1" CELLSPACING="0" BGCOLOR="' + C_C + '" WIDTH="100%"><TR><TD><TABLE BORDER="0" CELLPADDING="5" CELLSPACING="0" BGCOLOR="#FFFFFF" WIDTH="100%"><TR><TD><H2>VOIR AUSSI SUR LE NET :</H2><TABLE CELLPADDING="2">');
}

function finVoirAussi()
{
	document.write('</TABLE></TD></TR></TABLE></TD></TR></TABLE><BR>');
}

function zeType(typ,nv)
{
	document.write('<TABLE><TR><TD>');
	if (typ == "C")
	{
		document.write("<IMG SRC='" + Lieu + "images/i-earendil.gif'></TD><TD><P><B>notes de lecture</B> : En tant que présentations ou compilations, ces articles sont les plus accessibles à tous les lecteurs. Aucune connaissance sur J.R.R. Tolkien n'est requise.");
	}
	if (typ == "S")
	{
		document.write("<IMG SRC='" + Lieu + "images/i-gil-galad.gif'></TD><TD><P><B>articles de synthèse</B> : Ces articles permettent d'avoir une vue d'ensemble du thème traité mais ils nécessitent une bonne connaissance des principales oeuvres de J.R.R Tolkien.");
	}
	if (typ == "A")
	{
		document.write("<IMG SRC='" + Lieu + "images/i-finwe.gif'></TD><TD><P><B>articles théoriques</B> : La maîtrise globale des écrits de J.R.R. Tolkien est nécessaire pour bien saisir la portée des articles de cette catégorie, les sujets étant analysés de façon poussée par leurs auteurs.");
	}
	document.write('</TD></TR>');
	if (nv > 0)
	{
		document.write('<TR><TD COLSPAN="2" ALIGN="CENTER">');
		for (Niv=0; Niv<nv; Niv++)
		{
			document.write("<IMG SRC='" + Lieu + "images/one-ring.gif' WIDTH='30' HEIGHT='30' ALT=''>");
		}
		document.write('</TD></TR>');
	}
	document.write('</TABLE>');
}

function zeTypeSom(typ,nv,titre,auteur,lien)
{
	document.write("<BR><BR><TABLE><TR><TD ROWSPAN='2'>");
	switch (typ)
	{
		case "C" :
			document.write("<IMG SRC='" + Lieu + "images/i-earendil.gif' ALIGN='LEFT' ALT='note de lecture'>");
			break;
		case "S" :
			document.write("<IMG SRC='" + Lieu + "images/i-gil-galad.gif' ALIGN='LEFT' ALT='article de synthèse'>");
			break;
		case "A" :
		document.write("<IMG SRC='" + Lieu + "images/i-finwe.gif' ALIGN='LEFT' ALT='article théorique'>");
			break;
	}
	document.write("</TD><TD><P>");
	document.write("<A HREF='" + lien + ".html'><B><FONT SIZE='+1'>" + titre + " </FONT></B></A><BR>");
	document.write(auteur + "<BR></TD></TR><TD>");
	for (Niv=0; Niv<nv; Niv++)
	{
		document.write("<IMG SRC='" + Lieu + "images/one-ring.gif' WIDTH='20' HEIGHT='20' ALT=''>");
	}
	document.write("</TD></TR></TABLE>");
}

function zeSymbGraph()
{
document.write("<P>Les symboles graphiques ci-dessous indiquent la nature de chacun des articles présentés. Le nombre d'Anneaux montre quant à lui le niveau d'accessibilité (de 1 à 5). <BR>");

}

var kN = 1;
var TNote = new Array(0);

function EcritNote(zeNote)
{
	TNote[kN] = zeNote;
	document.write("<A HREF='javascript:AffNote(" + kN + ");'><B>*</B></A>");
	kN++;
}

function AffNote(noNote)
{
	LaNote = window.open('', 'LaNote', 'resizable=yes,location=no,toolbar=no,status=no,directories=no,scrollbars=no,width=400,height=' + (20 + TNote[noNote].length / 3));
	LaNote.document.write("<HTML><HEAD><TITLE>NDLR</TITLE></HEAD>");
	LaNote.document.write("<BODY onBlur='window.close();' LEFTMARGIN='5' TOPMARGIN='5'><P>");
	LaNote.document.write(TNote[noNote]);
	LaNote.document.write(" <BR></BODY></HTML>");
	LaNote.document.close();
}

function Prive()
{
	debTab();
	document.write("Les informations personnelles (identité et adresse e-mail) reçues restent confidentielles. L'équipe de Tolkien VF s'engage à ne pas les divulguer. De même, les coordonnées des personnes participant à ce site ne seront communiquées que sur demande motivée.<BR>Nous vous remercions de votre confiance.");
	finTab();
}