// JavaScript Document

<!-----------------------menu ----------------------------->

var largeur = 150;
var gauche = 32;
var top = 105;
var couleur_police_cat="#324F94";
var couleur_police_scat="#009900";
var couleur_cat="#FFFFFF";
var couleur_scat="#FFFFFF";

var taille = 12;
var police = "Arial";

<!-----------------------Texte et lien des menus et sous menus---------------------------->

var nb_elem = 13;

var nb_souscat = new Array(nb_elem);

nb_souscat[0] = 4;
nb_souscat[1] = 6;
nb_souscat[2] = 16;
nb_souscat[3] = 1;
nb_souscat[4] = 3;
nb_souscat[5] = 3;
nb_souscat[6] = 2;
nb_souscat[7] = 3;
nb_souscat[8] = 7;
nb_souscat[9] = 1;
nb_souscat[10] = 1;
nb_souscat[11] = 1;
nb_souscat[12] = 2;

var categorie = new Array(nb_elem);
var soustab = new Array;

var tab0 = new Array(nb_souscat[0]);
var tab1 = new Array(nb_souscat[1]);
var tab2 = new Array(nb_souscat[2]);
var tab3 = new Array(nb_souscat[3]);
var tab4 = new Array(nb_souscat[4]);
var tab5 = new Array(nb_souscat[5]);
var tab6 = new Array(nb_souscat[6]);
var tab7 = new Array(nb_souscat[7]);
var tab8 = new Array(nb_souscat[8]);
var tab9 = new Array(nb_souscat[9]);
var tab10 = new Array(nb_souscat[10]);
var tab11 = new Array(nb_souscat[11]);
var tab12 = new Array(nb_souscat[12]);

<!-------Edition PREMIERE categorie et sous categorie------------>

categorie[0] = " Présentation";

tab0[0] = " o Accueil|http://www.acl-lullier.ch/accueil.php|_parent";
tab0[1] = " o Qui sommes-nous ?|http://www.acl-lullier.ch/accueil.php#nous|_parent";
tab0[2] = " o Devenir membre|http://www.acl-lullier.ch/inscriptionmembres.php|_parent";
tab0[3] = " o Coordonnées bancaires|http://www.acl-lullier.ch/pdf_2011/01_DOC_TECHNIQUES.pdf|_blank";

<!-------Edition DEUXIEME categorie et sous categorie------------>

categorie[1] = " Les ACL";

tab1[0] = " o Les ACL|http://www.acl-lullier.ch/presentation.php|_parent";
tab1[1] = " o Structures|http://www.acl-lullier.ch/pdf_2008/04_ACL_LE_RENOUVEAU.pdf|_blank";
tab1[2] = " o Organigramme|http://www.acl-lullier.ch/pdf_2008/05_ORGANIGRAMME_ACL.pdf|_blank";
tab1[3] = " o Nos statuts|http://www.acl-lullier.ch/presentation.php#statuts|_parent";
tab1[4] = " o Rapports annuels|http://www.acl-lullier.ch/presentation.php#rapann|_parent";
tab1[5] = " o Documents ACL|http://www.acl-lullier.ch/docs_acl.php|_parent";

<!-------Edition TROISIEME categorie et sous categorie------------>

categorie[2] = " Centenaire ACL";

tab2[0] = " o Programme|http://www.acl-lullier.ch/centenaire_acl.php|_parent";
tab2[1] = " o Le Shop|http://www.acl-lullier.ch/centenaire_shop.php|_parent";
tab2[2] = " o Verres du 100e|http://www.acl-lullier.ch/centenaire_verres.php|_parent";
tab2[3] = " o Vins du 100e|http://www.acl-lullier.ch/centenaire_vins.php|_parent";
tab2[4] = " o Couteaux du 100e|http://www.acl-lullier.ch/centenaire_couteaux.php|_parent";
tab2[5] = " o Plantes du 100e|http://www.acl-lullier.ch/centenaire_plantes.php|_parent";
tab2[6] = " o Livre Les 100 fles|http://www.acl-lullier.ch/centenaire_livre.php|_parent";
tab2[7] = " o Presse 1|http://www.acl-lullier.ch/pdf_100/11_ARTICLE_HR.pdf|_blank";
tab2[8] = " o Presse 2|http://www.acl-lullier.ch/pdf_100/12_ARTICLE_G.pdf|_blank";
tab2[9] = " o Presse 3|http://www.acl-lullier.ch/pdf_100/13_ARTICLE.pdf|_blank";
tab2[10] = " o Presse 4|http://www.acl-lullier.ch/pdf_100/14_ARTICLE_TDT.pdf|_blank";
tab2[11] = " o Presse 5|http://www.acl-lullier.ch/pdf_100/15_ARTICLE_G.pdf|_blank";
tab2[12] = " o Presse 6|http://www.acl-lullier.ch/pdf_100/16_ARTICLE_G.pdf|_blank";
tab2[13] = " o Merci aux sponsors|http://www.acl-lullier.ch/pdf_2010/08_REMERCIEMENTS_SPONSORS.pdf|_blank";
tab2[14] = " o Souscription 100e|http://www.acl-lullier.ch/pdf_2010/10_SOUSCRIPTION_CENTENAIRE.pdf|_blank";
tab2[15] = " o Coordonnées bancaires|http://www.acl-lullier.ch/pdf_2011/01_DOC_TECHNIQUES.pdf|_blank";

<!-------Edition QUATRIEME categorie et sous categorie------------>

categorie[3] = " Nos sections";

tab3[0] = " o Sections des ACL|http://www.acl-lullier.ch/sections.php|_parent";

<!-------Edition CINQUIEME categorie et sous categorie------------>

categorie[4] = " Conservatoire botanique";

tab4[0] = " o Conservatoire|http://www.acl-lullier.ch/conservatoire.php|_parent";
tab4[1] = " o Convention bibliothèque|http://www.acl-lullier.ch/conservatoire.php#convention|_parent";
tab4[2] = " o Recherche d'un ouvrage|http://www.acl-lullier.ch/recherches_conservatoire.php|_parent";

<!-------Edition SIXIEME categorie et sous categorie------------>

categorie[5] = " Travaux d'étudiants";

tab5[0] = " o Travaux d'étudiants|http://www.acl-lullier.ch/travaux.php|_parent";
tab5[1] = " o Stages|http://www.acl-lullier.ch/stages.php|_parent";
tab5[2] = " o Stages à l'étranger|http://www.acl-lullier.ch/stages_etranger.php|_parent";

<!-------Edition SEPTIEME categorie et sous categorie------------>

categorie[6] = " Manifestations";

tab6[0] = " o Nos manifestations|http://www.acl-lullier.ch/manifestations.php|_parent";
tab6[1] = " o Inscrire une manifest.|http://www.acl-lullier.ch/inscriptionmanifestations.php|_parent";

<!-------Edition HUITIEME categorie et sous categorie------------>

categorie[7] = " Bourse d'emploi";

tab7[0] = " o Emplois|http://www.acl-lullier.ch/emploi.php|_parent";
tab7[1] = " o Inscrire une offre|http://www.acl-lullier.ch/offres.php|_parent";
tab7[2] = " o Rechercher un emploi|http://www.acl-lullier.ch/recherches_emploi.php|_parent";

<!-------Edition NEUVIEME categorie et sous categorie------------>

categorie[8] = " Formation continue"; 

tab8[0] = " o Formation continue|http://www.acl-lullier.ch/formation.php|_parent";
tab8[1] = " o Conférences|http://www.acl-lullier.ch/conferences.php|_parent";
tab8[2] = " o 26.01.2011 - programme|http://www.acl-lullier.ch/pdf_2010/14_ACL_ARMH_26.01.11.pdf|_blank";
tab8[3] = " o 27.01.2011 - programme|http://www.acl-lullier.ch/pdf_2010/15_ACL_ARMH_27.01.11.pdf|_blank";
tab8[4] = " o 27.01.2011 - programme|http://www.acl-lullier.ch/pdf_2010/15_ACL_ARMH_27.01.11.pdf|_blank";
tab8[5] = " o Article H.R.|http://www.acl-lullier.ch/pdf_2011/03_HORT_ROMANDE.pdf|_blank";
tab8[6] = " o Coordonnées bancaires|http://www.acl-lullier.ch/pdf_2011/01_DOC_TECHNIQUES.pdf|_blank";

<!-------Edition DIXIEME categorie et sous categorie------------>

categorie[9] = " Plan du site"; 

tab9[0] = " o Repérez-vous|http://www.acl-lullier.ch/plan.php|_parent";

<!-------Edition ONZIEME categorie et sous categorie------------>

categorie[10] = " Liens";

tab10[0] = " o Liens amis|http://www.acl-lullier.ch/liens.php|_parent";

<!-------Edition DOUZIEME categorie et sous categorie------------>

categorie[11] = " Contact"; 

tab11[0] = " o Contactez-nous|http://www.acl-lullier.ch/contacts.php|_parent";

<!-------Edition TREIZIEME categorie et sous categorie------------>

categorie[12] = " Espace membres";

tab12[0] = " o Membres|http://www.acl-lullier.ch/membres.php|_parent";
tab12[1] = " o Devenir membre|http://www.acl-lullier.ch/inscriptionmembres.php|_parent";


soustab[0] = tab0;
soustab[1] = tab1;
soustab[2] = tab2;
soustab[3] = tab3;
soustab[4] = tab4;
soustab[5] = tab5;
soustab[6] = tab6;
soustab[7] = tab7;
soustab[8] = tab8;
soustab[9] = tab9;
soustab[10] = tab10;
soustab[11] = tab11;
soustab[12] = tab12;

<!------------------------------------Fonctions-------------------------------------------->

var conf = -1;
function Init(){
    var hauteur = top;
    for(i=1;i<=nb_elem;i++){
        document.getElementById("menu"+i+"").style.top = hauteur;
        hauteur = hauteur + 17;
    }
}

function voir(z){
    if(conf==z){
        document.getElementById("sousmenu"+z+"").style.visibility = 'hidden';
        Init();
        conf=conf+nb_elem;
    }else{
        conf=z;
        
        haut=0;
        var haut = 15*nb_souscat[z-1]+z*18+top;
        

        for(i=1;i<=nb_elem;i++){
            document.getElementById("sousmenu"+i+"").style.visibility = 'hidden';
        }
        
        Init();

        document.getElementById("sousmenu"+z+"").style.top = 16;
        dec = haut;

        for(i=z+1;i<=nb_elem;i++){
            
            document.getElementById("menu"+i+"").style.top = dec;
            dec=dec+18;
        }

        document.getElementById("sousmenu"+z+"").style.height = 15*nb_souscat[z-1];
        document.getElementById("sousmenu"+z+"").style.visibility = 'visible';
        
    }
    
}

function affiche(){
    
    document.write('<style>');
    document.write('div.menu{visibility:visible; border-width: 0px; border-style: solid; border-color: #15277B;background-color: '+couleur_cat+'}');
    document.write('div.sousmenu{position:absolute; left:-1; height:20; visibility:hidden; width:'+ largeur +'; border-width: 0px; border-style: solid; border-color: #15277B;background-color: '+couleur_scat+'}');
    document.write('a.menu{font-family: '+ police +'; color: '+couleur_police_cat+'; font-size: '+taille+'px; font-weight:bold; text-decoration: none;}');
    document.write('a.smenu{font-family: '+ police +'; color: '+couleur_police_scat+'; font-size: '+taille+'px; font-weight:bold; text-decoration: none;}');
    document.write('</style>');
    document.write('<div>');
    
    for(i=0;i<nb_elem;i++){
        boucle = nb_souscat[i];
        

        
        document.write('<div id="menu'+(i+1)+'" style="position:absolute; left:'+ gauche +'px; width:'+ largeur +'px;" class="menu">');
        document.write('<a href="#" class="menu" onClick="javascript:voir('+(i+1)+')">'+categorie[i]+'</a>');
        
        document.write('<div width="'+ largeur +'" id="sousmenu'+(i+1)+'" class="sousmenu">');
        
        
        for(z=0;z<boucle;z++){
            elem=soustab[i][z].split("|");
            document.write('<div height="15"><a href="'+elem[1]+'" target="'+elem[2]+'" class="smenu">'+elem[0]+'</a></div>');
        }
        
        
        document.write('</div>');
        document.write('</div>');
        
    }
    
    document.write('</div>');
    
    document.onLoad=Init();
}

