// JaponOnline - Menu

posYmenu = 120;
bgcolor='#c81818';
bgcolor2='#c81818';
needcenter = true;


if(!needcenter)
	posXmenu = 0;
else {	
	if (document.all) posXmenu = (document.body.clientWidth/2)-(955/2);
	else posXmenu = (window.innerWidth/2)-(955/2); 
}

document.write('<style type="text/css">');
document.write('.popper { POSITION: absolute; VISIBILITY: hidden; z-index:3; }')
document.write('#topgauche { position:absolute; top:'+posYmenu+'px; left:'+posXmenu+'px; z-index:10; }')
document.write('A.ejsmenu:link {color:#fff; text-decoration:none; font-size: 11px; font-weight: bold;}')
document.write('A.ejsmenu:hover {color:#f0cfcf; text-decoration:none; font-size: 11px; font-weight: bold;}')
document.write('A.ejsmenu:visited {color:#fff; text-decoration:none; font-size: 11px; font-weight: bold;}')
document.write('A.ejsmenu:active {color:#fff; text-decoration:none; font-size: 11px; font-weight: bold;}')
document.write('</style>')
document.write('<DIV class=popper id=topdeck></DIV>');

//TEXTES
wording = new Array;
wording['index'] = ":: JaponOnline.com - le Japon à portée de main ::";
wording['articles'] = "<b>Les Articles</b> : Retrouvez l'ensemble des articles de JaponOnline et participez au site en soumettant les votres...";
wording['plus'] = "<b>Plus...</b> : Retrouvez un ensemble d'outils proposés par JaponOnline...";
wording['services'] = "<b>Services</b> : Retrouvez un ensemble de services proposés spécialement pour vous par JaponOnline...";
wording['dialogue'] = "<b>Dialogue</b> : Communiquez avec les visiteurs, membres, et administrateurs de JaponOnline...";
wording['communaute'] = "<b>La Communauté</b> : Rejoignez-nous et participez à la Communauté JaponOnline...";
wording['compte'] = "<b>Votre Compte</b> : Gérez votre compte en y ajoutant un avatar, une signature, en changeant de thème, etc...";
wording['rubriques'] = "<b>Les Rubriques</b> : Accédez à l'ensemble des articles de JaponOnline classés par thèmes...";

//LIENS
zlien = new Array;
zlien[0] = new Array;
zlien[1] = new Array;
zlien[2] = new Array;
zlien[3] = new Array;
zlien[4] = new Array;
zlien[5] = new Array;
zlien[6] = new Array;


//LES ARTICLES
zlien[0][0] = '&nbsp;&nbsp;<A HREF="./topics.php" CLASS=ejsmenu>RUBRIQUES</A>';

zlien[0][1] = '&nbsp;&nbsp;<A HREF="./submit.php" CLASS=ejsmenu>Soumettre un article</A>';

zlien[0][2] = '&nbsp;&nbsp;<A HREF="./modules.php?ModPath=archive-stories&ModStart=archive-stories" CLASS=ejsmenu>Historique</A>';

zlien[0][3] = '&nbsp;&nbsp;<A HREF="./modules.php?ModPath=topicindex&ModStart=topicindex" CLASS=ejsmenu>News par rubrique</A>';


//DIALOGUE
zlien[1][0] = '&nbsp;&nbsp;<A HREF="./modules.php?ModPath=pjirc&ModStart=pjirc" CLASS=ejsmenu>Chat IRC</A>';

zlien[1][1] = '&nbsp;&nbsp;<A HREF="./forum.php" CLASS=ejsmenu>Forums</A>';

zlien[1][2] = '&nbsp;&nbsp;<A HREF="./modules.php?ModPath=td-livredor&ModStart=livre" CLASS=ejsmenu>Livre d\'or</A>';


//PLUS
zlien[2][0] = '&nbsp;&nbsp;<A HREF="./eventcal.php" CLASS=ejsmenu>Calendrier Japonais</A>';

zlien[2][1] = '&nbsp;&nbsp;<A HREF="./modules.php?ModPath=e-cards&ModStart=ecart" CLASS=ejsmenu>Envoyer une E-CARD</A>';

zlien[2][2] = '&nbsp;&nbsp;<A HREF="./jbrowser.php" CLASS=ejsmenu>Galerie photos</A>';

zlien[2][3] = '&nbsp;&nbsp;<A HREF="./modules.php?ModPath=glossaire&ModStart=glossaire" CLASS=ejsmenu>Glossaire / Dico</A>';

zlien[2][4] = '&nbsp;&nbsp;<A HREF="./links.php" CLASS=ejsmenu>Liens Web</A>';

zlien[2][5] = '&nbsp;&nbsp;<A HREF="./sdv.php" CLASS=ejsmenu>Petites Annonces</A>';

zlien[2][6] = '&nbsp;&nbsp;<A HREF="./resto_accueil.php" CLASS=ejsmenu>Restaurants&nbsp;Japonais</A>';

zlien[2][7] = '&nbsp;&nbsp;<A HREF="./download.php" CLASS=ejsmenu>Téléchargements</A>';

zlien[2][8] = '&nbsp;&nbsp;<A HREF="./wallpapers.php" CLASS=ejsmenu>Wallpapers</A>';

zlien[2][9] = '&nbsp;&nbsp;<A HREF="http://tracker.tradedoubler.com/pan/TrackerServlet?p=10669&a=1012184&g=0&url=http://www.eshirt.it/shop.php?newusrid=410680af1d428&newfrom=410680af1d428" CLASS=ejsmenu target=_blank>Boutique&nbsp;JaponOnline</A>';

zlien[2][10] = '&nbsp;&nbsp;<A HREF="http://www.kanjionline.com" CLASS=ejsmenu target=_blank>L\'acualité culturelle</A>';


//SERVICES
zlien[3][0] = '&nbsp;&nbsp;<A HREF="#" onClick="window.open(\'./modules/meteoconsult.html\',\'MeteoConsult\',\'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=680,height=380\')" CLASS=ejsmenu>Météo France</A>';

zlien[3][1] = '&nbsp;&nbsp;<A HREF="http://www.tv5.org/TV5Site/meteo/meteo-pays-110.htm" target="_blank" CLASS=ejsmenu>Météo Japon</A>';

zlien[3][2] = '&nbsp;&nbsp;<A HREF="http://www.guidetele.com" target="_blank" CLASS=ejsmenu>Programme Télé</A>';

zlien[3][3] = '&nbsp;&nbsp;<A HREF="#" onClick="window.open(\'./convertisseur_fr_eu_jp.htm\',\'convertisseur\',\'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=188,height=150\')" CLASS=ejsmenu>Convertisseur €/Yens/FF</A>';

zlien[3][4] = '&nbsp;&nbsp;<A HREF="#" onClick="window.open(\'./traducteur_fr_jp.htm\',\'traducteur\',\'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=188,height=160\')" CLASS=ejsmenu>Traducteur FR/JP</A>';

//zlien[3][2] = '&nbsp;&nbsp;<A HREF="./modules/hits/go.php?id=38" CLASS=ejsmenu>ShortLinker&nbsp;JaponOnline.com&nbsp;&nbsp;</A>';


//VOUS & NOUS
zlien[4][0] = '&nbsp;&nbsp;<A HREF="./user.php?op=only_newuser" CLASS=ejsmenu>Nous rejoindre</A>';

zlien[4][1] = '&nbsp;&nbsp;<A HREF="./memberslist.php" CLASS=ejsmenu>Liste des membres</A>';

zlien[4][2] = '&nbsp;&nbsp;<A HREF="./team.php" CLASS=ejsmenu>L\'équipe JaponOnline</A>';

zlien[4][3] = '&nbsp;&nbsp;<A HREF="./static.php?op=recrutement.txt&npds=1" CLASS=ejsmenu>Recrutement</A>';

zlien[4][4] = '&nbsp;&nbsp;<A HREF="./static.php?op=partenaires.txt&npds=1" CLASS=ejsmenu>Espace partenaires</A>';

zlien[4][5] = '&nbsp;&nbsp;<A HREF="./static.php?op=design_historique.html&npds=1" CLASS=ejsmenu>Design JO : Historique</A>';

zlien[4][6] = '&nbsp;&nbsp;<A HREF="./friend.php" CLASS=ejsmenu>Nous recommander</A>';

zlien[4][7] = '&nbsp;&nbsp;<A HREF="./modules.php?ModPath=gmail&ModStart=gmail" CLASS=ejsmenu>Nous contacter</A>';

//zlien[4][6] = '<A HREF="mailto:webmaster@japononline.com?subject=JaponOnline" CLASS=ejsmenu>Contacter le webmaster</A>';


//VOTRE COMPTE
zlien[5][0] = '&nbsp;&nbsp;<A HREF="http://www.japononline.com" CLASS=ejsmenu>JaponOnline</A>';


//RUBRIQUE
zlien[6][0] = '<table BORDER=0 width=100% CELLPADDING=0 CELLSPACING=0><tr><td width=32><A HREF="./search.php?query=&topic=43"><img src="./images/topics/small_ico_actus.gif" border=0 width=25 height=25></A></td><td onclick="window.location.href=\'./search.php?query=&topic=43\'"><A HREF="./search.php?query=&topic=43" CLASS=ejsmenu>Actus</A></td></tr></table>';

zlien[6][1] = '<table BORDER=0 width=100% CELLPADDING=0 CELLSPACING=0><tr><td width=32><A HREF="./search.php?query=&topic=33"><img src="./images/topics/small_ico_arts.gif" border=0 width=25 height=25></A></td><td onclick="window.location.href=\'./search.php?query=&topic=33\'"><A HREF="./search.php?query=&topic=33" CLASS=ejsmenu>Art&nbsp;&&nbsp;Architecture</A></td></tr></table>';

zlien[6][2] = '<table BORDER=0 width=100% CELLPADDING=0 CELLSPACING=0><tr><td width=32><A HREF="./search.php?query=&topic=37"><img src="./images/topics/small_ico_artsmartiaux.gif" border=0 width=25 height=25></A></td><td onclick="window.location.href=\'./search.php?query=&topic=37\'"><A HREF="./search.php?query=&topic=37" CLASS=ejsmenu>Arts martiaux</A></td></tr></table>';

zlien[6][3] = '<table BORDER=0 width=100% CELLPADDING=0 CELLSPACING=0><tr><td width=32><A HREF="./search.php?query=&topic=48"><img src="./images/topics/small_ico_cinema.gif" border=0 width=25 height=25></A></td><td onclick="window.location.href=\'./search.php?query=&topic=48\'"><A HREF="./search.php?query=&topic=48" CLASS=ejsmenu>Cinéma</A></td></tr></table>';

zlien[6][4] = '<table BORDER=0 width=100% CELLPADDING=0 CELLSPACING=0><tr><td width=32><A HREF="./search.php?query=&topic=51"><img src="./images/topics/small_ico_divers.gif" border=0 width=25 height=25></A></td><td onclick="window.location.href=\'./search.php?query=&topic=51\'"><A HREF="./search.php?query=&topic=51" CLASS=ejsmenu>Divers</A></td></tr></table>';

zlien[6][5] = '<table BORDER=0 width=100% CELLPADDING=0 CELLSPACING=0><tr><td width=32><A HREF="./search.php?query=&topic=45"><img src="./images/topics/small_ico_fengshui.gif" border=0 width=25 height=25></A></td><td onclick="window.location.href=\'./search.php?query=&topic=45\'"><A HREF="./search.php?query=&topic=45" CLASS=ejsmenu>Feng&nbsp;Shui</A></td></tr></table>';

zlien[6][6] = '<table BORDER=0 width=100% CELLPADDING=0 CELLSPACING=0><tr><td width=32><A HREF="./search.php?query=&topic=47"><img src="./images/topics/small_ico_newtec.gif" border=0 width=25 height=25></A></td><td onclick="window.location.href=\'./search.php?query=&topic=47\'"><A HREF="./search.php?query=&topic=47" CLASS=ejsmenu>High&nbsp;Tech</A></td></tr></table>';

zlien[6][7] = '<table BORDER=0 width=100% CELLPADDING=0 CELLSPACING=0><tr><td width=32><A HREF="./search.php?query=&topic=31"><img src="./images/topics/small_ico_histoire.gif" border=0 width=25 height=25></A></td><td onclick="window.location.href=\'./search.php?query=&topic=31\'"><A HREF="./search.php?query=&topic=31" CLASS=ejsmenu>Histoire</A></td></tr></table>';

zlien[6][8] = '<table BORDER=0 width=100% CELLPADDING=0 CELLSPACING=0><tr><td width=32><A HREF="./search.php?query=&topic=50"><img src="./images/topics/small_ico_insolite.gif" border=0 width=25 height=25></A></td><td onclick="window.location.href=\'./search.php?query=&topic=50\'"><A HREF="./search.php?query=&topic=50" CLASS=ejsmenu>Insolite</A></td></tr></table>';

zlien[6][9] = '<table BORDER=0 width=100% CELLPADDING=0 CELLSPACING=0><tr><td width=32><A HREF="./search.php?query=&topic=46"><img src="./images/topics/small_ico_jeuxvideo.gif" border=0 width=25 height=25></A></td><td onclick="window.location.href=\'./search.php?query=&topic=46\'"><A HREF="./search.php?query=&topic=46" CLASS=ejsmenu>Jeux&nbsp;Vidéo</A></td></tr></table>';

zlien[6][10] = '<table BORDER=0 width=100% CELLPADDING=0 CELLSPACING=0><tr><td width=32><A HREF="./search.php?query=&topic=39"><img src="./images/topics/small_ico_langue.gif" border=0 width=25 height=25></A></td><td onclick="window.location.href=\'./search.php?query=&topic=39\'"><A HREF="./search.php?query=&topic=39" CLASS=ejsmenu>Le japonais</A></td></tr></table>';

zlien[6][11] = '<table BORDER=0 width=100% CELLPADDING=0 CELLSPACING=0><tr><td width=32><A HREF="./search.php?query=&topic=41"><img src="./images/topics/small_ico_litterature.gif" border=0 width=25 height=25></A></td><td onclick="window.location.href=\'./search.php?query=&topic=52\'"><A HREF="./search.php?query=&topic=52" CLASS=ejsmenu>Littérature</A></td></tr></table>';

zlien[6][12] = '<table BORDER=0 width=100% CELLPADDING=0 CELLSPACING=0><tr><td width=32><A HREF="./search.php?query=&topic=41"><img src="./images/topics/small_ico_mangas.gif" border=0 width=25 height=25></A></td><td onclick="window.location.href=\'./search.php?query=&topic=41\'"><A HREF="./search.php?query=&topic=41" CLASS=ejsmenu>Manga&nbsp;-&nbsp;Anime</A></td></tr></table>';

zlien[6][13] = '<table BORDER=0 width=100% CELLPADDING=0 CELLSPACING=0><tr><td width=32><A HREF="./search.php?query=&topic=42"><img src="./images/topics/small_ico_musique.gif" border=0 width=25 height=25></A></td><td onclick="window.location.href=\'./search.php?query=&topic=42\'"><A HREF="./search.php?query=&topic=42" CLASS=ejsmenu>Musique</A></td></tr></table>';

zlien[6][14] = '<table BORDER=0 width=100% CELLPADDING=0 CELLSPACING=0><tr><td width=32><A HREF="./search.php?query=&topic=44"><img src="./images/topics/small_ico_mythologie.gif" border=0 width=25 height=25></A></td><td onclick="window.location.href=\'./search.php?query=&topic=44\'"><A HREF="./search.php?query=&topic=44" CLASS=ejsmenu>Contes - Mythologie</A></td></tr></table>';

zlien[6][15] = '<table BORDER=0 width=100% CELLPADDING=0 CELLSPACING=0><tr><td width=32><A HREF="./search.php?query=&topic=32"><img src="./images/topics/small_ico_nature.gif" border=0 width=25 height=25></A></td><td onclick="window.location.href=\'./search.php?query=&topic=32\'"><A HREF="./search.php?query=&topic=32" CLASS=ejsmenu>Nature</A></td></tr></table>';

zlien[6][16] = '<table BORDER=0 width=100% CELLPADDING=0 CELLSPACING=0><tr><td width=32><A HREF="./search.php?query=&topic=53"><img src="./images/topics/small_ico_presse.gif" border=0 width=25 height=25></A></td><td onclick="window.location.href=\'./search.php?query=&topic=53\'"><A HREF="./search.php?query=&topic=53" CLASS=ejsmenu>Presse</A></td></tr></table>';

zlien[6][17] = '<table BORDER=0 width=100% CELLPADDING=0 CELLSPACING=0><tr><td width=32><A HREF="./search.php?query=&topic=36"><img src="./images/topics/small_ico_religion.gif" border=0 width=25 height=25></A></td><td onclick="window.location.href=\'./search.php?query=&topic=36\'"><A HREF="./search.php?query=&topic=36" CLASS=ejsmenu>Religion</A></td></tr></table>';

zlien[6][18] = '<table BORDER=0 width=100% CELLPADDING=0 CELLSPACING=0><tr><td width=32><A HREF="./search.php?query=&topic=35"><img src="./images/topics/small_ico_cuisine.gif" border=0 width=25 height=25></A></td><td onclick="window.location.href=\'./search.php?query=&topic=3\'"><A HREF="./search.php?query=&topic=35" CLASS=ejsmenu>Cuisine</A></td></tr></table>';

zlien[6][19] = '<table BORDER=0 width=100% CELLPADDING=0 CELLSPACING=0><tr><td width=32><A HREF="./search.php?query=&topic=38"><img src="./images/topics/small_ico_samourais.gif" border=0 width=25 height=25></A></td><td onclick="window.location.href=\'./search.php?query=&topic=38\'"><A HREF="./search.php?query=&topic=38" CLASS=ejsmenu>Samouraïs</A></td></tr></table>';

zlien[6][20] = '<table BORDER=0 width=100% CELLPADDING=0 CELLSPACING=0><tr><td width=32><A HREF="./search.php?query=&topic=49"><img src="./images/topics/small_ico_sport.gif" border=0 width=25 height=25></A></td><td onclick="window.location.href=\'./search.php?query=&topic=49\'"><A HREF="./search.php?query=&topic=49" CLASS=ejsmenu>Sport</A></td></tr></table>';

zlien[6][21] = '<table BORDER=0 width=100% CELLPADDING=0 CELLSPACING=0><tr><td width=32><A HREF="./search.php?query=&topic=34"><img src="./images/topics/small_ico_tradition.gif" border=0 width=25 height=25></A></td><td onclick="window.location.href=\'./search.php?query=&topic=34\'"><A HREF="./search.php?query=&topic=34" CLASS=ejsmenu>Traditions</A></td></tr></table>';

zlien[6][22] = '<table BORDER=0 width=100% CELLPADDING=0 CELLSPACING=0><tr><td width=32><A HREF="./search.php?query=&topic=40"><img src="./images/topics/small_ico_voyage.gif" border=0 width=25 height=25></A></td><td onclick="window.location.href=\'./search.php?query=&topic=40\'"><A HREF="./search.php?query=&topic=40" CLASS=ejsmenu>Voyage&nbsp;-&nbsp;le&nbsp;Japon</A></td></tr></table>';


var nava = (document.layers);
var dom = (document.getElementById);
var iex = (document.all);
var idButton = "articles";

if (nava) { skn = document.topdeck }
else if (dom) { skn = document.getElementById("topdeck").style }
else if (iex) { skn = topdeck.style }

skn.top = posYmenu+24;

function WordingTab(idBtn) {
	
	if(idButton != "") kill();
	
	idButton = idBtn;
	
	document.getElementById("nav_"+idBtn+"_left").src = "themes/JaponOnline2007/images/nav_onglet_g_on.gif";
	document.getElementById("nav_"+idBtn+"_middle").style.backgroundImage = "url(./themes/JaponOnline2007/images/nav_onglet_m_on.gif)";
	document.getElementById("nav_"+idBtn+"_right").src = "themes/JaponOnline2007/images/nav_onglet_d_on.gif";
	
	document.getElementById("descriptionTabTxt").innerHTML = ""+wording[idBtn]+"";
}

function pop(msg,pos,idBtn) {

	WordingTab(idBtn);
	
	skn.visibility = "hidden";
	a=true
	skn.left = posXmenu+pos-10;
	
	var content ="<TABLE width=170 BORDER=0 CELLPADDING=0 CELLSPACING=0 height=10><tr><td width=10 onMouseOut='javascript:kill();'></td><td><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=170><TR><TD style='background:url(./themes/JaponOnline2007/images/menuH_middle.gif) repeat: repeat-y' background='./themes/JaponOnline2007/images/menuH_middle.gif'><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=1>";
	
	pass = 0
	
	while (pass < msg.length)	{
		content += "<TR><TD onMouseOver=\"this.style.background='"+bgcolor2+"';this.style.cursor='hand';\" onMouseOut=\"this.style.background=''\" HEIGHT=20 align=center>" + msg[pass] + "</TD></TR>";
		pass++;
	}
	
	content += "</TABLE></TD></TR><TR><TD height=2 valign=top><img src='./themes/JaponOnline2007/images/menuH_bottom.gif' border=0 width=170 height=8></TD></TR></TABLE></td><td width=10 onMouseOut='javascript:kill();'></td></tr><tr><td colspan=3 height=10 onMouseOut='javascript:kill();'></td></tr></table>";
	
	if (nava)  {
		skn.document.write(content);
		skn.document.close();
		skn.visibility = "visible";
	}
	else if (dom)  {
	  document.getElementById("topdeck").innerHTML = content;
	  skn.visibility = "visible";
	}
	else if (iex)  {
	  document.all("topdeck").innerHTML = content;
	  skn.visibility = "visible";
	}
}

function kill(){
	skn.visibility = "hidden";
	
	document.getElementById("nav_"+idButton+"_left").src = "themes/JaponOnline2007/images/nav_onglet_g_off.gif";
	document.getElementById("nav_"+idButton+"_middle").style.backgroundImage = "url(./themes/JaponOnline2007/images/nav_onglet_m_off.gif)";
	document.getElementById("nav_"+idButton+"_right").src = "themes/JaponOnline2007/images/nav_onglet_d_off.gif";
	
	//document.getElementById("descriptionTabTxt").innerHTML = "<IMG SRC=\"themes/JaponOnline2007/images/fleche_blanche.png\" style=\"vertical-align:middle;\">"+wording['index']+"";
}

document.onclick = kill;
