// write me if you have questions: web.master@male.net

// constants
var initX       = 3; // x-coordinate of top left corner of dropdown menu 
var initY       = 17; // y-coordinate of top left corner of dropdown menu 
var backColor   = '#E6E6E6'; // the background color of dropdown menu, set empty '' for transparent
var borderColor = 'black'; // the color of dropdown menu border
var borderSize  = '1'; // the width of dropdown menu border
var itemHeight  = 20;
var xOverlap    = 5;
var yOverlap    = 10;
//


menuContent     = new Array ();

menuContent [0] = new Array ( 
-1, // the id of parent menu, -1 if this is a first level menu
-1, // the number of line in parent menu, -1 if this is a first level menu
150, // the width of current menu list 
-1, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'Qui sommes nous ?', '/accueil.php?ch=pres',
'La charte', '/accueil.php?ch=cha',
'Inscription', '/accueil.php?ch=insc',
'Nous contacter', '/accueil.php?ch=contact',
'Chevaliers', '/accueil.php?ch=meme',
'La galerie', '/accueil.php?ch=gal'
));

menuContent [1] = new Array ( 
-1, 
-1,
150,
100, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'Liste des chevaliers', '/accueil.php?ch=meme',
'Classement COJELO', '/accueil.php?ch=class',
'Indisponibilités', '/zonejeu.php?ch=ind'
));
if (ischevalier){
menuContent [2] = new Array ( 
-1, 
-1,
150,
50, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'Règles des tournois', '/accueil.php?ch=reg',
'Liste des tournois', '/accueil.php?ch=tourn',
'Classement COJELO', '/accueil.php?ch=class',
'Indisponibilités', '/zonejeu.php?ch=ind'
));
}else{
menuContent [2] = new Array ( 
-1, 
-1,
150,
50, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'Règles des tournois', '/accueil.php?ch=reg',
'Liste des tournois', '/accueil.php?ch=tourn',
'Classement COJELO', '/accueil.php?ch=class'
));
}
menuContent [3] = new Array ( 
-1, 
-1,
150,
190, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'Revue COJELI', '/accueil.php?ch=inf',
'Quiz', '/accueil.php?ch=quiz',
'Sites des Chevaliers', '/accueil.php?ch=liensch',
'Autres liens', '/accueil.php?ch=liens'
));
if (ischevalier){
menuContent [4] = new Array ( 
-1, 
-1,
165,
110, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'Mes parties en cours', '/zonejeu.php?ch=parties',
'Mes défis', '/zonejeu.php?ch=defis',
'Défier', '/zonejeu.php?ch=defier',
'Mes parties terminées', '/zonejeu.php?ch=termi',
'Mes statistiques', '/zonejeu.php?ch=stat',
'Mes préférences', '/zonejeu.php?ch=pref',
'Recherche', '/zonejeu.php?ch=rech',
'Statistiques ZDJ', '/zonejeu.php?ch=statzdj',
'Parties commentées', '/zonejeu.php?ch=com',
'Archives ZDJ', '/zonejeu.php?ch=arch'
//'Jouer contre Jester', '/zonejeu.php?ch=cpu'
));
}
else{
menuContent [4] = new Array ( 
-1, 
-1,
165,
110, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'Recherche', '/zonejeu.php?ch=rech',
'Statistiques ZDJ', '/zonejeu.php?ch=statzdj',
'Parties commentées', '/zonejeu.php?ch=com',
'Archives ZDJ', '/zonejeu.php?ch=arch'
));
}

if (ischevalier){
menuContent [5] = new Array ( 
-1, 
-1,
150,
240, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'Forum', '/forum.php',
'Messages', '/accueil.php?ch=mes', 
'Chat', '/accueil.php?ch=chat'
));
}
else{
menuContent [5] = new Array ( 
-1, 
-1,
150,
240, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'Forum', '/forum.php',
'Chat', '/accueil.php?ch=chat'
));
}

