/* ******************************************** 
 Sujet :	Gestion des données
 Auteur	:	CONRAD Damien
 Propriété :	Amis de l'Orgue de Vendée
********************************************** */

/****************CONSTRUCTEURS****************************/
function Men(libelle,adresse,commentaire,sousMenu) {
	this.libelle=libelle;
	this.adresse=adresse;
	this.commentaire=commentaire;
	this.sousMenu=sousMenu;
}

function org(idObj,hphoto,hregistre,place,annee,nom,facteur,claviers) {
	this.idObj=idObj;
	this.srcHtm=nom+".htm";
	this.hphoto=hphoto;
	this.hregistre=hregistre;
	this.nom=nom;
	this.facteur=facteur;
	this.annee=annee;
	this.place =place;
	this.bouton="A"+idObj;
	this.registre="O"+idObj;
	this.photo="I"+idObj;
	this.Ichemin="orgues/orgueimg/I"+idObj+".jpg";
	this.Schemin="orgues/S_"+idObj+".obj";
	this.claviers=claviers;
	//compatibilité avec les menus
	this.adresse="orgues/"+this.srcHtm;
	this.srcImg="orgues/orgueimg/"+nom+".jpg";
	this.libelle=this.nom;
	this.commentaire=this.adresse;
}
org.prototype.affiche=true;
org.prototype.disque=false;
org.prototype.categorie="bouton";

function pers(nom,prenom,srcHtm,categorie,srcImg,commentaire) {
	this.type='pers';
	this.nom=nom;
	this.prenom=prenom;
	this.srcHtm=srcHtm;
	this.categorie=categorie;
	this.srcImg=srcImg;
	this.commentaire=commentaire;
	//compatibilité avec les menus
	this.adresse="Personnages/"+this.srcHtm;
	this.libelle=this.nom;
}

function extrait(adresse,interprete,compositeur,extraitLibelle,org,forme,tonalite) {
	this.adresse=adresse;
	this.interprete=interprete;
	this.compositeur=compositeur;
	this.extraitLibelle=extraitLibelle;
	this.org=org;
	this.forme=forme;
	this.tonalite=tonalite;
	//compatibilite avec Men
	this.libelle=extraitLibelle;
	this.commentaire=extraitLibelle;
}


/***************DONNEES COMME VARIABLES/OBJETS***********************/
h=new Array();
h[0]=160;
for (i=1;i<20;i++) h[i]=h[i-1]+68;

i=0
Aizenay=new org("Aiz",114,220,h[i++],1878,"Aizenay","Cavaille-Coll","ccp");
Antigny=new org("Ant",140,200,h[i++],"?","Antigny","Gutschenritter","ccp");
Beaulieu=new org("Bea",220,250,h[i++],1935,"Beaulieu","Lavergne","ccp");
Chantonnay=new org("Chn",133,220,h[i++],1896,"Chantonnay","Mesnard","cp");
Chavagnes=new org("Cha",159,300,h[i++],1989,"Chavagnes","Guillemin","ccp");
Essarts=new org("Ess",137,250,h[i++],1988,"Essarts","Guerrier","ccp");
Fontenay=new org("Fon",103,350,h[i++],1995,"Fontenay","Oberthür","cccp");
Lucon=new org("Luc",102,600,h[i++],1855,"Lucon","Cavaille-Coll","ccccp");
LuconChoeur=new org("LucCho",73,220,h[i++],1882,"LuconChoeur","Debierre","ccp");
Mareuil=new org("Mar",138,200,h[i++],1989,"Mareuil","Oberthür","ccp");
MouilleronCaptif=new org("MouCap",108,260,h[i++],1996,"MouilleronCaptif","Toussaint","ccp");
MouilleronPareds=new org("MouPar",105,200,h[i++],1867,"MouilleronPareds","Lelogeais","cp");
Roche=new org("Roc",111,450,h[i++],1990,"Roche","Koenig","cccp");
RocheChoeur=new org("RocCho",105,200,h[i++],1884,"RocheChoeur","Cavaille-Coll","cp");
Rocheserviere=new org("Ros",144,300,h[i++],2000,"Rocheserviere","Fossaert","ccp");
StGilles=new org("SGi",0,360,h[i++],1982,"StGilles","Emeriau","cccp");
StFulgent=new org("StF",105,220,h[i++],1997,"StFulgent","Formentelli","ccp");
StJeanDeMonts=new org("SJM",105,380,h[i++],1937,"StJeanDeMonts","Coton","ccp");
StLaurent=new org("StL",84,560,h[i++],1999,"StLaurent","Formentelli","cccp");
StMesmin=new org("StM",98,150,h[i++],1952,"StMesmin","Cheron","ccp");
Yeu=new org("Yeu",102,300,h[i++],1995,"Yeu","Delhumeau","ccp");


Bretignolles=new org("Bre",0,0,0,1973,"Bretignolles","Renaud","ccp");
Bruffiere=new org("Bru",0,0,0,1981,"Bruffiere","Oberthür","ccp");
Chaille1=new org("Chi1",0,0,0,1990,"Chaille1","Guerrier","ccp");
Chaille2=new org("Chi2",0,0,0,"XIX","Chaille2","Debierre","ccp");
Chaille3=new org("Chi3",0,0,0,1879,"Chaille3","Lelogeais","ccp");
Challans=new org("Chl",0,0,0,"?","Challans","Beuchet-Debierre","ccp");
Chataigneraie=new org("Cht",0,0,0,1902,"Chataigneraie","Debierre","ccp");
Chavagnes2=new org("Cha2",0,0,0,1879,"Chavagnes2","Debierre","ccp");
Chavagnes3=new org("Cha3",0,0,0,1863,"Chavagnes3","Loret","ccp");
Chavagnes4=new org("Cha4",0,0,0,1958,"Chavagnes4","Cheron","ccp");
Commequiers=new org("Com",0,0,0,"XVIII","Commequiers","instrument italien","ccp");
lesEpesses=new org("Epe",0,0,0,1922,"lesEpesses","Lelogeais-Boisseau","ccp");
Fenouiller=new org("Fen",0,0,0,1985,"Fenouiller","Guillemin","ccp");
Garnache=new org("Gar",0,0,0,"?","Garnache","Debierre","ccp");
lesHerbiers=new org("Her",0,0,0,1870,"lesHerbiers","Renaud","ccp");
LucsSurBoulogne=new org("LSB",0,0,0,1985,"LucsSurBoulogne","Oberthûr","ccp");
Montaigu=new org("Mon",0,0,0,1985,"Montaigu","Renaud","ccp");
Mormaison=new org("Mor",0,0,0,1870,"Mormaison","Debierre-Renaud","ccp");
MortagneSurSevre=new org("Mor",0,0,0,1868,"Montaigu","Beuchet-Debierre","ccp");
Pouzauges=new org("Pou",0,0,0,"?","Pouzauges","?","ccp");
Poire=new org("Poi",0,0,0,1986,"Poire","John et Eugène Abbey","ccp");
laRabateliere=new org("Rab",0,0,0,1979,"laRabateliere","Debierre-Emeriau","ccp");
StFlaiveDesLoups=new org("StFl",0,0,0,1991,"StFlaiveDesLoups","Guerrier","ccp");
StGeorgesDeMontaigu=new org("StG",0,0,0,1986,"StGeorgesDeMontaigu","Debierre-Renaud","ccp");
StGilles1=new org("StG1",0,0,0,"?","StGilles1","Debierre","ccp");
StHermine=new org("StH",0,0,0,1990,"StHermine","Guerrier","ccp");
StLaurent2=new org("StL2",0,0,0,1853,"StLaurent2","Debierre","ccp");
StLaurent3=new org("StL3",0,0,0,1925,"StLaurent3","Gloton","ccp");
StVincentSterlange=new org("StV",0,0,0,"XVIII","StVincentSterlange","?","ccp");
Tiffauges=new org("Tif",0,0,0,1972,"StLaurent","Renaud","ccp");

Lucon.disque=true;
Chavagnes.disque=true;

tableorg=new Array(Aizenay,Antigny,Beaulieu,Chantonnay,Chavagnes,Essarts,Fontenay,Lucon,LuconChoeur,Mareuil,MouilleronCaptif,MouilleronPareds,Roche,RocheChoeur,Rocheserviere,StFulgent,StGilles,StJeanDeMonts,StLaurent,StMesmin,Yeu);
tableorg2=new Array(Bretignolles,Bruffiere,Chaille1,Chaille2,Chaille3,Challans,Chataigneraie,Chavagnes2,Chavagnes3,Chavagnes4,Commequiers,lesEpesses,Fenouiller,Garnache,lesHerbiers,LucsSurBoulogne,Montaigu,Mormaison,MortagneSurSevre,Pouzauges,Poire,laRabateliere,StFlaiveDesLoups,StGeorgesDeMontaigu,StGilles1,StHermine,StLaurent2,StLaurent3,StVincentSterlange,Tiffauges);

clement=new pers("Clement","François","Clement.htm","inter","Clement1.jpg","commentaire=François CLEMENT aux claviers du grand org GUILLEMIN  de l'église de Chavagnes en paillés");
deleersnyder=new pers("Deleersnyder","Robert","Deleersnyder.htm","inter","","");
dieuaide=new pers("Dieuaide","Jean Michel","Dieuaide.htm","inter","","");
gorenstein=new pers("Gorenstein","Nicolas","Gorenstein.htm","inter","Gorenstein.jpg","Mr. Nicolas Gorenstein");
isoir=new pers("Isoir","André","Isoir.htm","inter","Isoir1.jpg","André ISOIR aux claviers du Cavaillé-Coll de Lucon");
lebrun=new pers("Lebrun","Eric","Lebrun.htm","inter","","");
moreau=new pers("Moreau","Félix","Moreau.htm","inter","Moreau1.jpg","Félix Moreau aux claviers du Cavaillé-Coll de Lucon");
varlet=new pers("Varlet","Yannick","Varlet.htm","inter","","");
vernet=new pers("Vernet","Olivier","Vernet.htm","inter","Vernet1.jpg","Olivier Vernet devant l'Orgue Guillemin de Chavagnes en paillers - Photo prise lors de l'académie d'org");
vite=new pers("Vite","Joseph","Vite.htm","resp","Vite1.jpg","Monsieur le Chanoine Joseph VITE");
dufour=new pers("Dufour","René","Dufour.htm","resp","Dufour1.jpg","Monsieur René DUFOUR");
marionneau=new pers("Marionneau","Guillaume","Marionneau.htm","pers","Guillaume1.jpg","Guillaume MARIONNEAU aux claviers du Cavaillé-Coll de Lucon");
gaborit=new pers("Gaborit","Abel","Gaborit.htm","pers","TontonAbel1.jpg","Le chanoine Abel GABORIT aux claviers du Cavaillé-Coll de Lucon");

bruhns=new pers("Bruhns","Nicolaüs");
franck=new pers("Franck","Caesar");

tablepers=new Array(clement,deleersnyder,dieuaide,gorenstein,isoir,lebrun,moreau,varlet,vernet,vite,dufour,marionneau,gaborit);

/* convention de nommage :
fichiers mono=adresse+"Mono"+".mp3"
fichiers stéréo=adresse+"Stereo"+".mp3"
l'adresse=le nom de la variable */

BruhnsMim=new extrait("BruhnsMim",clement,bruhns,"Prélude en mim (début)",Chavagnes,"Prélude","mim");
BruhnsSolm=new extrait("BruhnsSolm",clement,bruhns,"Prélude en solm (début)",Chavagnes,"Prélude","solm");
BruhnsNunKomm=new extrait("BruhnsNunKomm",clement,bruhns,"Nun Komm der Heiden Heiland",Chavagnes,"Choral","solm");
FranckCh1=new extrait("FranckCh1",isoir,franck,"1er Choral",Lucon,"Choral","MiM");
FranckCh2=new extrait("FranckCh2",isoir,franck,"2ème Choral",Lucon,"Choral Symphonique","sim");
FranckCh3=new extrait("FranckCh3",isoir,franck,"3ème Choral",Lucon,"Choral Symphonique","lam");
FranckPre=new extrait("FranckPre",isoir,franck,"Prelude, fugue et variation",Lucon,"Prélude","sim");
FranckHero=new extrait("FranckHero",isoir,franck,"Pièce Héroïque",Lucon,"Oeuvre Symphonique","sim");

tableauExtrait=new Array(BruhnsMim,BruhnsSolm,BruhnsNunKomm,FranckCh1,FranckCh2,FranckCh3,FranckPre,FranckHero);

presentation=new Men("Presentation","Present0.htm","Presentation de l'association");
president=new Men("President","President.htm","Le mot du Président : Mr le chanoine Vité");
personnalite=new Men("Personnalites","Personnages/Personnalite.htm","Personnalités,Responsables,Interprètes",tablepers);
partenaire=new Men("Partenaires","Partenaires.htm","Les Associations partenaires");

sommaireVisite=new Men("Sommaire","Visite0.htm","Sommaire"); 
instruments=new Men("I Instruments","Instruments.htm","Les instruments à tuyaux de Vendée");
carte=new Men("II Carte","Carte.htm","Situation géographique");
unAUn=new Men("III Un à un","orgues/UnAUn.htm","les instruments Vendéens : un à un",tableorg);

exClementM=new Men("Clement","sons/menuInterprete.htm?interprete=clement&qualite=mono","Oeuvres interprétées par François CLEMENT");
exGorensteinM=new Men("Gorenstein","sons/menuInterprete.htm?interprete=Gorenstein&qualite=mono","Oeuvres interprétées par Nicolas GORENSTEIN");
exMoreauM=new Men("Moreau","sons/menuInterprete.htm?interprete=Moreau&qualite=mono","Oeuvres interprétées par Nicolas GORENSTEIN");
exIsoirM=new Men("Isoir","sons/menuInterprete.htm?interprete=isoir&qualite=mono","Oeuvres interprétées par André ISOIR");
menuExtraitMono = new Array(exClementM,exGorensteinM,exMoreauM,exIsoirM);
exMono = new Men("Mono","sons/mono.htm","Extraits mono",menuExtraitMono);

exClementS=new Men("Clement","sons/menuInterprete.htm?interprete=clement&qualite=stereo","Oeuvres interprétées par François CLEMENT");
exGorensteinS=new Men("Gorenstein","sons/menuInterprete.htm?interprete=Gorenstein&qualite=stereo","Oeuvres interprétées par Nicolas GORENSTEIN");
exMoreauS=new Men("Moreau","sons/menuInterprete.htm?interprete=Moreau&qualite=stereo","Oeuvres interprétées par Nicolas GORENSTEIN");
exIsoirS=new Men("Isoir","sons/menuInterprete.htm?interprete=isoir&qualite=stereo","Oeuvres interprétées par André ISOIR");
menuExtraitStereo = new Array(exClementS,exGorensteinS,exMoreauS,exIsoirS);
exStereo = new Men("Stereo","sons/stereo.htm","Extraits stéréo",menuExtraitStereo);

menuExtrait=new Array(exMono,exStereo);

sommaireDiscographie=new Men("Sommaire","Disque0.htm","Sommaire");
discographie=new Men("I. Discog~","Disque1.htm","Discographie et Bibliographie des orgues Vendéens");
aPropos=new Men("II. A propos","Disque2.htm","Commentaire sur la qualité des extraits musicaux");
navi=(navigator.appName=="Netscape");
AExtraits=(navi) ? "Sons/ExtraitsNC.htm" : "Sons/ExtraitsIE.htm";

extraits=new Men("III. Extraits",AExtraits,"Extraits musicaux tirés de la discographie organistique Vendéenne",menuExtrait);

revue=new Men("Revue","PointDo0.htm","La revue de l'Association : Point d'org");

courrierIntro=new Men("Courrier","Courrier0.htm","Comment nous contacter ?");
inscriDoc=new Men("Inscription.doc","Auxi/Inscription.doc","Formulaire d'inscription au format Word");
inscriTxt=new Men("Inscription.txt","Auxi/Inscription.txt","Formulaire d'inscription au format txt");

actualite=new Men("Actualité","Actual.htm","Actualité de l'Orgue et de la musique dans la région");
telecharger=new Men("Télécharger","Telecharger.htm","Téléchargement d'images et de sons en provenance du site");
liensUtiles=new Men("Liens utiles","liens.htm","liens externes sur l'Orgue et la culture");
repertoire=new Men("Repertoire","Repertoire.htm","repertoire de liens internes au site");

MenuPresent=new Array(presentation,president,partenaire,personnalite);
MenuVisite=new Array(sommaireVisite,instruments,carte,unAUn);
MenuDisque=new Array(sommaireDiscographie,discographie,aPropos,extraits);
MenuPointDo=new Array(revue);
MenuCourrier=new Array(courrierIntro,inscriDoc,inscriTxt);
MenuInfo=new Array(actualite,telecharger,liensUtiles,repertoire);

present=new Men("Présentation","Present.htm","Présentation de l'association des Amis de l'Orgue",MenuPresent);
visite=new Men("Visite","Visite.htm","Visite virtuelle des instruments vendéens",MenuVisite);
discographie=new Men("Discographie","Disque.htm","Discographie des orgues Vendéens",MenuDisque);
pointdo=new Men("Revue","Pointdo.htm","Point d'org : la revue de l'association",MenuPointDo);
courrier=new Men("Courrier","Courrier.htm","Nous joindre",MenuCourrier);
information=new Men("Informations","Info.htm","Actualité, liens, téléchargement...",MenuInfo);

MenuGene=new Array(present,visite,discographie,pointdo,courrier,information);