/* Menus deroulants par ED Prod
   etiennedeb@ifrance.com
   http://javascript.lab.cc

   ca c'est le menu pour internet explorer
   j'ai utiliser la technique dite 'on the fly' pour creer le menu (document.write)
   chaque ligne rajouter dans le menu doit etre entre guillement:
   +"blablabla"
   j'ai mis des notes sur les parties a rajouter ou modifier pour mettre un nouvel onglet au menu
   ainsi que quelque commentaires

   d'ailleur, tu peux enlever tout les commentaires 
*/


/* ce bloc ci dessous est invisible en fait, il sert juste a detecter si le pointeur de la souris
   est encore au dessus d'un menu ou pas, il n'y a aucune modification a apporter 
*/

chaine = ""
+"<LAYER NAME = 'obj1' TOP='19' LEFT='0' onmouseover='cache()'>"
+"<table border='0' cellpadding='0' cellspacing='0' width='640'><tr><td>"
+"<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>&nbsp;</td></tr></table>"
+"</LAYER>"

/* ce bloc ci dessous est un onglet du menu
   la premiere balise <DIV> defini le titre de l'onglet (celui qui apparé dans la barre)
   la seconde defini l'onglet lui meme avec les liens 
   remarques dans la premiere balise le lien nomme 'titre A' possedes un fonction
   onmouseover='voir(2)'
   le numero doit correspondre a la balise ( ici obj2,donc voir(2) )
   si il y avait obj3 ce serait voir(3) etc...
   pour rajouter une entree dans l'onglet, il faut juste rajouter cette ligne:
   +"<A HREF='#' class='liens'>Entree C</A><BR>"
   juste en dessous des autres pareilles (le nom 'entree C' est ce qui apparé dans le menu)

   pour rajouter un onglet, regardes le bloc juste en dessous
   ce qui change, c'est: le nom de la premiere balise <DIV ID= 'obj2' ...> devient <DIV ID= 'obj4' ...>   
                         le nom de la seconde balise  <DIV ID= 'obj3' ...> devient <DIV ID= 'obj5' ...>   
			 et le onmouseover voir(2) qui devient voir(4)

   meme technique pour le troisieme onglet...

*/

+"<LAYER NAME = 'obj2' TOP='0' LEFT='0'>"
+"<table border='0' cellpadding='3' cellspacing='0' valign='center' width='60' bgcolor='#12007e' HEIGHT='25'><tr><td>"
+"<FONT FACE='verdana' SIZE='1'>"
+"<A HREF='#' class='liens' onmouseover='voir(2)'><B>Nouvelles</A></B></FONT></td></tr></table>"
+"</LAYER>"
+"<LAYER NAME = 'obj3' TOP='0' LEFT='0' visibility='hide'>"
+"<table border='1' BORDERCOLOR='#17009e' cellpadding='3' cellspacing='0' bgcolor='#12007e'><tr><td>"
+"<FONT FACE='verdana' SIZE='1'><B><NOBR>"
+"<A HREF='Nouvelles.html' class='liens'>Nouvelles</A><BR>"
+"<A HREF='Rumeurs.html' class='liens'>Rumeurs</A><BR>"
+"</NOBR></B></FONT>"
+"</td></tr></table>"
+"</LAYER>"

+"<LAYER NAME = 'obj4' TOP='0' LEFT='0'>"
+"<table border='0' cellpadding='3' cellspacing='0' valign='center' width='60' HEIGHT='25' bgcolor='#12007e'><tr><td>"
+"<FONT FACE='verdana' SIZE='1'>"
+"<A HREF='#' class='liens' onmouseover='voir(4)'><B>Statistiques</A></B></FONT></td></tr></table>"
+"</LAYER>"
+"<LAYER NAME = 'obj5' TOP='0' LEFT='0' visibility='hide'>"
+"<table border='1' BORDERCOLOR='#17009e' cellpadding='3' cellspacing='0' bgcolor='#12007e'><tr><td>"
+"<FONT FACE='verdana' SIZE='1'><B><NOBR>"
+"<A HREF='Statistiques.html' class='liens'>Individuelles</A><BR>"
+"<A HREF='Abreviations.html' class='liens'>Défénitions des abréviations</A><BR>"
+"</NOBR></B></FONT>"
+"</td></tr></table>"
+"</LAYER>"

+"<LAYER NAME = 'obj6' TOP='0' LEFT='0'>"
+"<table border='0' cellpadding='3' cellspacing='0' valign='center' width='80' HEIGHT='25' bgcolor='#12007e'><tr><td>"
+"<FONT FACE='Verdana' SIZE='1'>"
+"<A HREF='#' class='liens' onmouseover='voir(6)'><B>Classement</A></B></FONT></td></tr></table>"
+"</LAYER>"
+"<LAYER NAME = 'obj7' TOP='0' LEFT='0' visibility='hide'>"
+"<table border='1' BORDERCOLOR='#17009e' cellpadding='3' cellspacing='0' bgcolor='#12007e'><tr><td>"
+"<FONT FACE='verdana' SIZE='1'><B><NOBR>"
+"<A HREF='#' class='liens'>Nationale *</A><BR>"
+"<A HREF='#' class='liens'>Américaine *</A><BR>"
+"* À venir<BR>"
+"</NOBR></B></FONT>"
+"</td></tr></table>"
+"</LAYER>"

+"<LAYER NAME = 'obj8' TOP='0' LEFT='0'>"
+"<table border='0' cellpadding='3' cellspacing='0' valign='center' width='70' HEIGHT='25' bgcolor='#12007e'><tr><td>"
+"<FONT FACE='Verdana' SIZE='1'>"
+"<A HREF='#' class='liens' onmouseover='voir(8)'><B>Interactif</A></B></FONT></td></tr></table>"
+"</LAYER>"
+"<LAYER NAME = 'obj9' TOP='0' LEFT='0' visibility='hide'>"
+"<table border='1' BORDERCOLOR='#17009e' cellpadding='3' cellspacing='0' bgcolor='#12007e'><tr><td>"
+"<FONT FACE='verdana' SIZE='1'><B><NOBR>"
+"<A HREF='http://forum.hit-parade.com/forum.asp?s=a31619&t=3' class='liens'>Forum</A><BR>"
+"<A HREF='#' class='liens' onClick='webo_chat()'>Chat</A><BR>"
+"<A HREF='http://www.weborama.fr/chat/aide.shtml' target=_blank class='liens'> - Aides</A><BR>"
+"<A HREF='Contacts.html' class='liens'>Contacts</A><BR>"
+"</NOBR></B></FONT>"
+"</td></tr></table>"
+"</LAYER>"

+"<LAYER NAME = 'obj10' TOP='0' LEFT='0'>"
+"<table border='0' cellpadding='3' cellspacing='0' valign='center' width='40' HEIGHT='25' bgcolor='#12007e'><tr><td>"
+"<FONT FACE='Verdana' SIZE='1'>"
+"<A HREF='#' class='liens' onmouseover='voir(10)'><B>Divers&nbsp;&nbsp;&nbsp;&nbsp;</A></B></FONT></td></tr></table>"
+"</LAYER>"
+"<LAYER NAME = 'obj11' TOP='0' LEFT='0' visibility='hide'>"
+"<table border='1' BORDERCOLOR='#17009e' cellpadding='3' cellspacing='0' bgcolor='#12007e'><tr><td>"
+"<FONT FACE='verdana' SIZE='1'><B><NOBR>"
+"<A HREF='prix.html' class='liens'>Prix et mentions</A><BR>"
+"<A HREF='#' class='liens'>Boutique virtuel *</A><BR>"
+"* : À venir<BR>"
+"</NOBR></B></FONT>"
+"</td></tr></table>"
+"</LAYER>"

+"<LAYER NAME = 'obj12' TOP='0' LEFT='0'>"
+"<table border='0' cellpadding='3' cellspacing='0' valign='center' WIDTH='45' HEIGHT='25' bgcolor='#12007e'><tr><td>"
+"<FONT FACE='Verdana' SIZE='1'>"
+"<A HREF='#' class='liens' onmouseover='voir(12)'><B>Liens</A></B></FONT></td></tr></table>"
+"</LAYER>"
+"<LAYER NAME = 'obj13' TOP='0' LEFT='0' visibility='hide'>"
+"<table border='1' BORDERCOLOR='#17009e' cellpadding='3' cellspacing='0' bgcolor='#12007e'><tr><td>"
+"<FONT FACE='verdana' SIZE='1'><B><NOBR>"
+"<A HREF='#' class='liens' onClick=open('sponsors.html','sponsors','directories=no,location=no,height=330,left=8,menubar=no,resizable=no,scrollbars=yes,status=no,toolbar=no,top=8,width=530');>Sponsors</A><BR>"
+"<A HREF='sitesofficiels.html' class='liens'>Sites officiels de la MLB</A><BR>"
+"<A HREF='Pub.html' class='liens'>Nos bannières</A><BR>"
+"</NOBR></B></FONT>"
+"</td></tr></table>"
+"</LAYER>"

+"<LAYER NAME = 'obj14' TOP='0' LEFT='0'>"
+"<table border='0' cellpadding='3' cellspacing='0' valign='center'  WIDTH='55' HEIGHT='25' bgcolor='#12007e'><tr><td>"
+"<FONT FACE='Verdana' SIZE='1'>"
+"<A HREF='index1.html' class='liens' onmouseover='voir(14)'><B>Accceil</A></B></FONT></td></tr></table>"
+"</LAYER>"
+"<LAYER NAME = 'obj15' TOP='0' LEFT='0' visibility='hide'>"
+"</NOBR></B></FONT>"
+"</td></tr></table>"
+"</LAYER>"


/* cette ligne ne change pas*/ 
document.write(chaine);

/* alors ici, il faut rajouter une ligne par balise DIV existantes (celle du dessus obj2,obj3,obj4,etc...)
   donc ici 7 div (var div1,var div2,var div3,etc....)
   remarques,div1 correspond a obj1
             div2 a obj2
             etc...

   la derniere ligne doit contenir toute les div creer juste au dessus
   div1,div2,div3,...,div7

*/
var isNS = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 4);
var div1 = (isNS) ? document.obj1 : document.all.obj1.style;
var div2 = (isNS) ? document.obj2 : document.all.obj2.style;
var div3 = (isNS) ? document.obj3 : document.all.obj3.style;
var div4 = (isNS) ? document.obj4 : document.all.obj4.style;
var div5 = (isNS) ? document.obj5 : document.all.obj5.style;
var div6 = (isNS) ? document.obj6 : document.all.obj6.style;
var div7 = (isNS) ? document.obj7 : document.all.obj7.style;
var div8 = (isNS) ? document.obj8 : document.all.obj8.style;
var div9 = (isNS) ? document.obj9 : document.all.obj9.style;
var div10 = (isNS) ? document.obj10 : document.all.obj10.style;
var div11 = (isNS) ? document.obj11 : document.all.obj11.style;
var div12 = (isNS) ? document.obj12 : document.all.obj12.style;
var div13 = (isNS) ? document.obj13 : document.all.obj13.style;
var div14 = (isNS) ? document.obj14 : document.all.obj14.style;
var div15 = (isNS) ? document.obj15 : document.all.obj15.style;
var objet;objet = new Array(div1,div2,div3,div4,div5,div6,div7,div8,div9,div10,div11,div12,div13,div14,div15)


/* voici les fonction utilisees par le menu,rien a modifier */

function placeObj(i,px,py) {objet[i].left=px;objet[i].top=py;}
function voirObj(i) {objet[i].visibility="visible";}
function cacheObj(i) {objet[i].visibility="hidden";}
function voir(i) {
for (var j = 1; j < objet.length; j++) {
if ((Math.round(j/2)*2)==j) {cacheObj(j)};
}
voirObj(i);voirObj(0);
}
function cache() {
for (var j = 1; j < objet.length; j++) {
if ((Math.round(j/2)*2)==j) {cacheObj(j)};
}
cacheObj(0);
}

for (var j = 1; j < objet.length; j++) {
if ((Math.round(j/2)*2)!=j) {voirObj(j)};
}

table = new Array();

table[1]=61;
table[2]=74;
table[3]=80;
table[4]=70;
table[5]=55;
table[6]=45;
table[7]=60;
var posx=104;var posy=207;

placeObj(0,posx,posy-27);
for (var j = 1; j < table.length; j++) {
 i=j*2
 placeObj(i-1,posx,posy);
 placeObj(i,posx,posy+27);
 posx+=table[j]+1;
}

/* ouf! voila.... */
