 /*
SCRIPT TROUVE SUR L'EDITEUR JAVASCRIPT ET ADAPTE POUR LES BESOINS DE NICARAO
http://www.editeurjavascript.com
*/
/* A REGLER MANUELLEMENT SI LE CADRE EST TROP PETIT */
hauteurcadre = 25;

xmenu = new Array;
xlien = new Array;
/* DEFINITION DES TITRES DE MENU PRINCIPAUX */
xmenu[0] = '<A HREF="index.html" CLASS=menudyn3>Home</A>';
xmenu[1] = '<A HREF="Introduction1_fr.html" CLASS=menudyn3>Nicarao</A>';
xmenu[2] = '<A HREF="Introduction2_fr.html" CLASS=menudyn3>Produkte</A>';
xmenu[3] = '<A HREF="Introduction3_fr.html" CLASS=menudyn3>Standort</A>';
xmenu[4] = '<A HREF="Introduction4_fr.html" CLASS=menudyn3>Herstellung</A>';
xmenu[5] = '<A HREF="Introduction5_fr.html" CLASS=menudyn3>Die Kunst zu leben</A>';
xmenu[6] = '<A HREF="Presse_fr.html" CLASS=menudyn3>Presse</A>';
xmenu[7] = '<A HREF="Pointsdevente_fr.php" CLASS=menudyn3>Verkaufsstellen</A>';
xmenu[8] = '<A HREF="Contacts_fr.html" CLASS=menudyn3>Kontakte</A>';
/* DEFINITION DES SOUS-MENUS */
xlien[0] = ''
xlien[1] = ''
xlien[2] = ''
xlien[3] = ''
xlien[4] = ''
xlien[5] = ''
xlien[6] = ''
xlien[7] = ''
xlien[8] = ''
xlien[0] += ''
xlien[1] += '<A HREF="Introduction1_fr.html" CLASS=menudyn3>Einführung</A>';
xlien[1] += ' | '
xlien[1] += '<A HREF="Historique_fr.html" CLASS=menudyn3>Vorgeschichte</A>';
xlien[2] += '<A HREF="Introduction2_fr.html" CLASS=menudyn3>Einführung</A>';
xlien[2] += ' | '
xlien[2] += '<A HREF="Minuto_fr.html" CLASS=menudyn3>Minuto</A>';
xlien[2] += ' | '
xlien[2] += '<A HREF="Robusto_fr.html" CLASS=menudyn3>Robusto</A>';
xlien[2] += ' | '
xlien[2] += '<A HREF="Piramide_fr.html" CLASS=menudyn3>Piramide</A>';
xlien[2] += ' | '
xlien[2] += '<A HREF="Julieta_fr.html" CLASS=menudyn3>Julieta</A>';
xlien[3] += '<A HREF="Introduction3_fr.html" CLASS=menudyn3>Einführung</A>';
xlien[3] += ' | '
xlien[3] += '<A HREF="Zonegeographique_fr.html" CLASS=menudyn3>Lage</A>';
xlien[3] += ' | '
xlien[3] += '<A HREF="Zonedeproduction_fr.html" CLASS=menudyn3>Anbaugebiete</A>';
xlien[4] += '<A HREF="Introduction4_fr.html" CLASS=menudyn3>Einführung</A>';
xlien[4] += ' | '
xlien[4] += '<A HREF="Delagrainealafeuilleverte_fr.html" CLASS=menudyn3>Vom Samen zu grünen Blättern</A>';
xlien[4] += ' | '
xlien[4] += '<A HREF="Delafeuillevertealafeuillebrune_fr.html" CLASS=menudyn3>Von grünen zum braunen Blättern</A>';
xlien[4] += ' | '
xlien[4] += '<A HREF="Delafeuillebruneaucigare_fr.html" CLASS=menudyn3>Von braunen Blättern zur Zigarre</A>';
xlien[5] += '<A HREF="Introduction5_fr.html" CLASS=menudyn3>Einführung</A>';
xlien[5] += ' | '
xlien[5] += '<A HREF="Avantlallumage_fr.html" CLASS=menudyn3>Vor dem Anzünden</A>';
xlien[5] += ' | '
xlien[5] += '<A HREF="Allumage_fr.html" CLASS=menudyn3>Das Anzünden</A>';
xlien[5] += ' | '
xlien[5] += '<A HREF="Degustation_fr.html" CLASS=menudyn3>Das Abkosten</A>';
xlien[5] += ' | '
xlien[5] += '<A HREF="Mort_fr.html" CLASS=menudyn3>Der Tod</A>';
xlien[6] += ''
xlien[7] += ''
xlien[8] += ''
/* CREATION DU TABLEAU EN HTML */
document.write('<STYLE TYPE="text/css">\nA.menudyn3 {color:#D4E6A6; text-decoration:none;}\nA:hover.menudyn3 {color:#D4E6A6;text-decoration:none;}\n</STYLE>');

document.write('<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH=100% BGCOLOR=#000000>  <TR><TD BGCOLOR=#1C4836><div align="center"><img src="../images/Contours.jpg"></div><TD></TR><TR><TD><TABLE CELLPADDING=2 CELLSPACING=1 BORDER=0 WIDTH=100%>  <TR>');

for(i=0;i<xlien.length;i++)

{
	document.write('<TD BGCOLOR=#1C4836 onMouseOver="javascript:colorIt(this);MajMenu('+i+')" ALIGN=center ID=td'+i+'><FONT SIZE=2 FACE="Verdana"><B><A HREF="#" onClick="return(false)" onMouseOver="MajMenu('+i+')" CLASS=menudyn3>'+xmenu[i]+'</A></B></FONT></TD>');
	}
document.write('</TR>  <TR>    <TD COLSPAN='+(xlien.length)+' BGCOLOR=#1C4836 HEIGHT='+hauteurcadre+' VALIGN=center><ilayer id="dynamenu31" width=100% height='+hauteurcadre+'><layer id="dynamenu32" width=100% height='+hauteurcadre+'><div id="dynamenu33">&nbsp;</div></layer></ilayer></TD>  </TR></TABLE></TD></TR></TABLE>');
/* DECLARATION DE LA FONCTION CHANGEANT LES COULEURS*/
function colorIt(tditem)
	{
	if(document.all)
		{
	document.all.td0.style.background='#1C4836';
	document.all.td1.style.background='#1C4836';
	document.all.td2.style.background='#1C4836';
	document.all.td3.style.background='#1C4836';
	document.all.td4.style.background='#1C4836';
	document.all.td5.style.background='#1C4836';
	document.all.td6.style.background='#1C4836';
	document.all.td7.style.background='#1C4836';
	document.all.td8.style.background='#1C4836';
		tditem.style.background='#508B75';
		}
else if(document.getElementById)
	{
	document.getElementById("td0").style.background='#1C4836';
	document.getElementById("td1").style.background='#1C4836';
	document.getElementById("td2").style.background='#1C4836';
	document.getElementById("td3").style.background='#1C4836';
	document.getElementById("td4").style.background='#1C4836';
	document.getElementById("td5").style.background='#1C4836';
	document.getElementById("td6").style.background='#1C4836';
	document.getElementById("td7").style.background='#1C4836';
	document.getElementById("td8").style.background='#1C4836';
		tditem.style.background='#508B75';
	}
}
/* DECLARATION DE LA FONCTION DESTINEE A LA GESTION DES TITRES*/
function MajMenu(menu)
	{
	which = xlien[menu];
if (document.layers){
	document.dynamenu31.document.dynamenu32.document.write('<FONT SIZE=1 FACE="Arial"><B>'+which+'</B></FONT>')
	document.dynamenu31.document.dynamenu32.document.close()
	}
else if (document.getElementById)
			{
			document.getElementById("dynamenu33").innerHTML = '<CENTER><FONT SIZE=1 FACE="Verdana, Arial" color="#000000"><B>'+which+'</B></FONT></CENTER>';
			}
else 	if (document.all){
	dynamenu33.innerHTML='&nbsp;'
	dynamenu33.innerHTML='<FONT SIZE=1 FACE="Arial"><B>'+which+'</B></FONT>';
	}
}
/* AFFICHER LES SOUS-MENUS DANS LES SOUS-PAGES*/
if (document.name== 'nicarao'){
	if (document.getElementById)
		colorIt(document.getElementById("td1"));
	else if (document.all){
		colorIt(document.all.td1);
	}
	MajMenu(1)
}
else if (document.name== 'produit'){
		if (document.getElementById)
			colorIt(document.getElementById("td2"));
		else if (document.all){
			colorIt(document.all.td2);
		}
		MajMenu(2)
}
else if (document.name== 'terroir'){
		if (document.getElementById)
			colorIt(document.getElementById("td3"));
		else if (document.all){
			colorIt(document.all.td3);
		}
		MajMenu(3)
}
else if (document.name== 'fabrication'){
		if (document.getElementById)
			colorIt(document.getElementById("td4"));
		else if (document.all){
			colorIt(document.all.td4);
		}
		MajMenu(4)
}
else if (document.name== 'art'){
		if (document.getElementById)
			colorIt(document.getElementById("td5"));
		else if (document.all){
			colorIt(document.all.td5);
		}
		MajMenu(5)
}
else if (document.name== 'presse'){
		if (document.getElementById)
			colorIt(document.getElementById("td6"));
		else if (document.all){
			colorIt(document.all.td6);
		}
		MajMenu(6)
}
else if (document.name== 'vente'){
		if (document.getElementById)
			colorIt(document.getElementById("td7"));
		else if (document.all){
			colorIt(document.all.td7);
		}
		MajMenu(7)
}
else if (document.name== 'contact'){
		if (document.getElementById)
			colorIt(document.getElementById("td8"));
		else if (document.all){
			colorIt(document.all.td8);
		}
		MajMenu(8)
}
else
{
	MajMenu(0)
};
