function hautdepage()
{
	document.write('<TD WIDTH=81% VALIGN="top">');
}

function margegauche()
{
	document.write('<TD WIDTH=110 HEIGHT=100% VALIGN="top">');
	menu();
	document.write('<CENTER><A HREF="adhesion.php"><IMG SRC="images/adherer.gif" WIDTH=100 HEIGHT=50 ALT="" BORDER="0"></A><P><SMALL><a href="index_eng.html">English Version</a><P>mise à jour<BR>23/11/2005</SMALL></CENTER><p><b><a href="http://www.tolkienfrance.com/irc/chat.php" target=_new>Entrez dans<br>le chat<br>Tolkien France</a>');
	document.write('<SMALL><b></b><br>');
	document.write('<a href="http://www.boursorama.com/infos/actualites/detail_actu_societes.phtml?news=457477" target=_new></a></SMALL></TD>');
}
		 
function margedroite()
{
	document.write('</TR>');
//	document.write('<TD WIDTH=5% BACKGROUND="'+lieu+'../encyclo/images/img3b.jpg" ROWSPAN="2">&nbsp;</TD></TR>');
	document.write('<TR><TD VALIGN="BOTTOM" COLSPAN="2">');
//	WE();
	document.write('</TD></TR>');
}
		 
function body()
{
	document.write('<BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0>')
}
		 
function Elt(nom,stitre,url,hr)
{
	this.n = nom;
	this.s = stitre;
	this.u = url;
	this.h = hr;
}

function menu()
{
	var listemenu
	listemenu = EltS;
	document.write('<TABLE BORDER=0 CELLPADDING=1 CELLSPACING=0 BGCOLOR="#000000"><TR><TD><TABLE BORDER=0 CELLPADDING=5 CELLSPACING=0 BGCOLOR="#FFFFFF" WIDTH=120><TR><TD><CENTER><A HREF="'+lieu+'index.php"><IMG SRC="'+lieu+'images/pitilogo.gif" WIDTH=110 HEIGHT=50 ALT="Tolkien &amp; Co" BORDER="0"></A><BR><A HREF="'+lieu+'../../index.php"><IMG SRC="'+lieu+'images/tco.gif" WIDTH=50 HEIGHT=50 ALT="retour à l\'accueil de Tolkien VF" BORDER="0"></A></CENTER></TD></TR></TABLE></TR></TD></TABLE></FORM></CENTER>');
	document.write('<FORM NAME="AlphaB"><TABLE BORDER=0 CELLPADDING=1 CELLSPACING=0 BGCOLOR="#444444"><TR><TD><TABLE BORDER=0 CELLPADDING=5 CELLSPACING=0 BGCOLOR="#DDDDDD" WIDTH=120><TR><TD CLASS="Small">');
	for (i=1;i<listemenu.length;i++)
	{
		if(listemenu[i].h) {document.write('<IMG SRC="'+lieu+'../encyclo/images/pixblanc.jpg" WIDTH=110 HEIGHT=1><BR>');}
		document.write('<a CLASS="m" href="'+lieu+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></TABLE></TR></TD></TABLE></FORM>');
}

function TiTre(LeTitre)
{
	document.write('<TABLE BORDER="0" CELLPADDING="1" CELLSPACING="0" BGCOLOR="#444444" WIDTH="100%"><TR><TD><TABLE BORDER="0" CELLPADDING="5" CELLSPACING="0" BGCOLOR="#DDDDDD" WIDTH="100%"><TR><TD><H1>' + LeTitre + '</TD></TR></TABLE></TR></TD></TABLE><P>');
}

//access #tolkien

function validnick()
{
	var form = document.chat
	if (form.nick.value.length == 0)
	{
		alert("Veuillez entrer votre Pseudo dans le premier champ");
		return false;
	}
	return true;
}

function ChatNow()
{
	if (!validnick())
	{
		return false;
	}
	SetCookie ("nickvoila", document.chat.nick.value, expdate, "/");
	if (navigator.userAgent.indexOf("MSIE") != -1 && navigator.appVersion.substring(0,1) >= 4)
	{
		win = window.open("","voila_chat","width=620,height=450,resizable=yes,scrollbars=no,status=yes");
	}
	else
	{
		win = window.open("","voila_chat","width=620,height=450,resizable=no,scrollbars=no,status=yes");
	}
	document.chat.submit();
	return false;
}

function WForm()
{
	document.write('<TABLE BORDER="0" CELLPADDING="1" CELLSPACING="0" BGCOLOR="#444444" WIDTH="100%"><TR><TD><TABLE BORDER="0" CELLPADDING="5" CELLSPACING="0" BGCOLOR="#DDDDDD" WIDTH="100%"><TR><TD>');
	document.write('<form name="chat" action="http://chat.voila.fr/voilachat.php3" method=GET target="voila_chat">');
	document.write('<input type=hidden name=action value=init>');
	document.write('<P>Venez rejoindre des amateurs de Tolkien sur <B>#tolkien</B>, salon dedié aux conversations sur l&#39;oeuvre de J.R.R. Tolkien, mais aussi plus généralement à la science-fiction, surtout le médiéval-fantastique (heroic-fantasy), et tout ce qui y touche (littérature, films, jeux de rôle)...');
	document.write('<TABLE ALIGN="CENTER"><TR><TD><P>votre pseudo :</TD><TD><input type=text name="nick" size=15 maxlength=32 value="" onsubmit="ChatNow()"></TD>');
	document.write('<input checked name="chan" type="hidden" value="%23Tolkien">');
	document.write('<input checked name="inter" type="hidden" value="java">');
	document.write('<TD><input type="button" value="OK" onclick="ChatNow()"></TD></TR></TR></TABLE>');
	document.write('<P>N&#39;oubliez pas de consulter les pages dédiées au chat de la section <A HREF="http://www.chez.com/tolkienvf/telec/irc.html">Téléchargement</A> ! Vous pourrez y trouver des infos sur les commandes et le vocabulaire du chat, mais aussi télécharger des clients IRC et des scripts...');
	document.write('<P CLASS="r"><I><B>#tolkien</B> est un salon de Voilà Chat - <A HREF="http://chat.voila.fr">http://chat.voila.fr</A>.</I>');
	document.write('</TD></TR></TABLE></TR></TD></TABLE>');
	document.write('</form>');
}

function WE()
{
	WForm();
}
