//Magic Menu V2.5.0 - http://www.ToutJavaScript.com/magicmenu var main=""; function CREERMAGIC() { main=new CreerMain(16,108,38); main.Add("images/menu1-gif-76-38",76,"","index.php"); m1=new CreerMenu("m1",0,""); main.Add("images/menu2-gif-103-38",103,"m1","chateau.php"); m1.add(" Situation géographique","chateau.php","",""); m1.add(" Visite du château","chateau.php#dependances","",""); m2=new CreerMenu("m2",0,""); main.Add("images/menu3-gif-88-38",88,"m2","activites.php"); m2.add(" Activités scolaires","activites.php","",""); m2.add(" Les expositions archivées","activites.php#archives","",""); m2.add(" Jean Chièze","activites.php#chieze","",""); m3=new CreerMenu("m3",0,""); main.Add("images/menu4-gif-96-38",96,"m3","expositions.php"); m3.add(" Expositions temporaire","expositions.php","",""); m3.add("> Jacques TRUPHEMUS rétrospective","expositions.php#104","",""); m3.add(" Les autres évènements","expositions.php#actualites","",""); m3.add("> Thimothy Hayward Quartet","expositions.php#110","",""); main.Add("images/menu5-gif-134-38",134,"","pratique.php"); main.Add("images/menu6-gif-145-38",145,"","association.php"); } CREERMAGIC(); var font="Verdana,Arial,Helvetica,sans-serif"; var colBarre="#CCCCCC"; var colFond="#669999"; var colContour="#669999"; var colOver="#669999"; var colTextOff="#000000"; var colTextOn="#FFCC33"; var cssTexte=";color:#000000;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px"; var hauteur=16; var nivmax=4; var delai=10; var isout=0; function CreerMain(X,Y,haut,colFOn,colFOff,colTOn,colTOff) { this.nb=0; this.X=X; this.Y=Y; this.haut=haut; this.Add=AddMain; this.Print=PrintMain; } function AddMain(txt,larg,mnu,url,target) { var m=new Object; m.txt=txt; m.larg=larg-1; m.mnu=mnu; m.url=url; m.target=target; this.nb++; this[this.nb]=m; if(mnu!=''){ eval(mnu+'.parent="'+txt+'"') } } function PrintMain() { X=this.X; Y=this.Y; A=""; for (var i=1;i<=this.nb;i++) { if (this[i].mnu==""){ this[i].mnu='0'; } if ((document.all)||(window.sidebar)) { var txt = this[i].txt; tmp = txt.split("-"); txt=""; A+="
"+txt+"
"; } if (document.layers) { var txt=this[i].txt; tmp = txt.split("-"); txt=""; A+="
"+txt+"
"; } X+=this[i].larg+1; } document.write(A); } function CreerMenu(nom,niv,target) { this.nb=0; this.X=0; this.Y=0; this.width=1; this.niv=niv; this.parent=""; this.ON=-1; this.nom=nom; this.target=""; if ((target!="")&&(target!=null)) this.target=target; this.add=Add; this.aff=Aff; } function Add(lib,lnk,mnu,target) { var rub = new Object; rub.lib=lib; rub.target=target; rub.lnk=""; if ((lnk!="")&&(lnk!=null)) rub.lnk=lnk; rub.mnu=""; if ((mnu!="")&&(mnu!=null)){ rub.mnu=mnu; mnu.parent=this } this[this.nb]=rub; this.nb++; } function start(i,mnu,x,y,t) { isout=1; hideall(i); isout=0 if (mnu!=0){ mnu.aff(x,y,t) } BGCalque("main"+i,colOver); FontCalque("main"+i,colTextOn); SizeCalque("fond",mmgetlarg()-50); MoveCalque("fond",5,y+1); ShowCalque("fond"); return false; } function onfond() { isout=1; setTimeout("hideall();MM_swapImgRestore();",delai); } function hideall(i) { if (isout==1) { for (var i=0;i-1) { if (mnu[mnu.ON].mnu!="") { var nom="niv"+mnu[mnu.ON].mnu.niv; HideCalque(nom); hide(mnu[mnu.ON].mnu); } } mnu.ON=-1; } function over(mnu,i) { var nom="niv"+mnu.niv+"n"+i; var nomtd=nom+"td"; isout=0; BGCalque(nom,colOver); FontCalque(nomtd,colTextOn); } function out(mnu,i) { var nom="niv"+mnu.niv+"n"+i; var nomtd=nom+"td"; if (mnu[i].lib!="-") { BGCalque(nom,colFond); FontCalque(nomtd,colTextOff) } } function clear(mnu) { for (var j=0;j0) { Z=u.parent[u.parent.ON].lib+" > "+Z;u=u.parent; } Z=u.parent+" > "+Z; for (var j=0;j") {ok=1;} } window.status=Y; } function mmclick(mnu) { lnk=mnu[mnu.ON].lnk; if (lnk!="") { if (mnu[mnu.ON].target=="_blank") {window.open(lnk)} else { if (mnu[mnu.ON].target=="") {window.location=lnk;} else {parent.frames[mnu[mnu.ON].target].location.href=lnk;} } } } function mmgetlarg() { if (document.layers){ return parseInt(document.width) } else { return parseInt(document.body.offsetWidth) } } function AFF() { var n=new Image; n.src="../gif/fleche1.gif"; var m=new Image; m.src="../gif/vide.gif"; if ((document.all)||(window.sidebar)) { var A=""; A+="
"; A+="
"; A+="
"; A+="
"; } else { var A=" "; A+=""; A+=""; A+=""; A+=""; } document.write(A); main.Print(); } function Aff(x,y,t) { var nom=this.nom; var niv="niv"+this.niv; if (this.niv==0) { X=x; Y=y; } else { X=this.parent.X+this.parent.width-7; Y=this.parent.Y+(hauteur+4)*this.parent.ON } if ((document.all)||(window.sidebar)) { var A="" A+=""; A+=""; A+=""; A+=""; A+=""; A+=""; for (var i=0;i < this.nb;i++) { A+=""; A+=""; A+=""; A+=""; A+=""; } A+=""; A+=""; A+=""; A+=""; A+=""; A+="
"+this[i].lib+"
"; }else{ var A="
"; A+=""; A+=""; A+=""; A+=""; A+=""; A+=""; for (var i=0;i < this.nb;i++) { A+=""; A+=""; A+=""; A+=""; A+=""; } A+=""; A+=""; A+=""; A+=""; A+=""; A+="
"+this[i].lib+"
"; A+="
" } if (document.all) { document.all[niv].innerHTML=A+" "; document.all[niv].style.top = 10; document.all[niv].style.left = 10; if (!document.getElementById) { this.width=100; } else { this.width = document.getElementById(niv).offsetWidth; if ( (X+this.width+50)>mmgetlarg()) { if (this.niv==0) { X= X - ((X+this.width) - mmgetlarg() + 50) } else { X= this.parent.X - (this.width - 10 ) } } } document.all[niv].style.top=Y; document.all[niv].style.left=X; document.all[niv].style.visibility="visible"; this.X=X; this.Y=Y; } if (window.sidebar) { document.getElementById(niv).innerHTML=A; document.getElementById(niv).style.top = 0; document.getElementById(niv).style.left = 0; this.width=document.getElementById(niv).offsetWidth;window.status=""; if ( (X+this.width+50)>mmgetlarg()) { if (this.niv==0) { X= X - ((X+this.width) - mmgetlarg() + 50) } else { X= this.parent.X - (this.width - 10 ) } } document.getElementById(niv).style.top=Y; document.getElementById(niv).style.left=X; document.getElementById(niv).style.visibility="visible"; this.X=X; this.Y=Y; } if (document.layers) { document.layers[niv].left=X; document.layers[niv].top=Y; document.layers[niv].document.write(A); document.layers[niv].document.close(); document.layers[niv].visibility="show"; this.X=X; this.Y=Y; this.width=document.layers[niv].clip.width; } } function HideCalque(nom) { //MM_swapImgRestore(); if (document.all) {document.all[nom].style.visibility="hidden"} if (window.sidebar) {document.getElementById(nom).style.visibility="hidden"} if (document.layers) {document.layers[nom].visibility="hide"} } function ShowCalque(nom) { if (document.all) {document.all[nom].style.visibility="visible";} if (window.sidebar) {document.getElementById(nom).style.visibility="visible";} if (document.layers) {document.layers[nom].visibility="show";} } function BGCalque(nom,BG) { if (document.all) {document.all[nom].style.backgroundColor=BG;} if (window.sidebar) {document.getElementById(nom).style.backgroundColor=BG;} } function FontCalque(nom,Font) { if (document.all) {document.all[nom].style.color=Font;} if (window.sidebar) {document.getElementById(nom).style.color=Font;} } function MoveCalque(nom,X,Y) { if (document.all) {document.all[nom].style.top=Y;document.all[nom].style.left=X;} if (window.sidebar) {document.getElementById(nom).style.top=Y;document.getElementById(nom).style.left=X;} if (document.layers) {document.layers[nom].top=Y;document.layers[nom].left=X;} } function GetLeft(nom) { if (document.all) {return document.all[nom].style.left;} if (window.sidebar) {return document.getElementById(nom).style.left} if (document.layers) {return document.layers[nom].left;} } function SizeCalque(nom,larg) { if (document.all) {document.all[nom].style.width=larg;} if (window.sidebar) {document.getElementById(nom).style.width=larg;} if (document.layers) {document.layers[nom].width=larg;} } // VERSION