/* FILE ARCHIVED ON 19:54:25 Sep 17, 2008 AND RETRIEVED FROM THE AN OPENWAYBACK INSTANCE ON 14:51:58 Jul 21, 2024. JAVASCRIPT APPENDED BY OPENWAYBACK, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* ********* */ /* left boxe */ /* ********* */ //Au chargement de la page, les blocs de la navigation gauche sont ferm?s. function init() { /* Hide les sous nav de gauche au chargement de la page */ document.getElementById('branch3').style.display="none"; document.getElementById('branch4').style.display="none"; document.getElementById('branch6').style.display="none"; } /* ********* */ /* left boxe */ /* ********* */ //initialisation des images (fleche ouverte rouge, fleche fermee marron, fleche rouge, fleche ouverte rouge). var openImg = new Image(); openImg.src = "../../../templates/llv/images/arrow_branch_open.gif"; var closedImg = new Image(); closedImg.src = "../../../templates/llv/images/arrow_branch_close.gif"; var openImgRed = new Image(); openImgRed.src = "../../../templates/llv/images/arrow_red_open.gif"; var closedImgRed = new Image(); closedImgRed.src = "../../../templates/llv/images/arrow_red.gif"; //fermeture ou ouverture d'un bloc de la navigation gauche. function showBranch(branch){ var objBranch = document.getElementById(branch).style; if(objBranch.display=="block") objBranch.display="none"; else objBranch.display="block"; objBranch.visibility="visible"; } //initialisation de variables (fleche ouverte ou fermee) function swapTrigger(trigger){ triggerElement = document.getElementById(trigger); if(triggerElement.className.indexOf('bgTriggerClose')>-1) triggerElement.className = triggerElement.className.replace('bgTriggerClose', 'bgTriggerOpen'); else triggerElement.className = triggerElement.className.replace('bgTriggerOpen', 'bgTriggerClose'); } function swapFolderRed(img){ objImg = document.getElementById(img); if(objImg.src.indexOf('arrow_red.gif')>-1) objImg.src = openImgRed.src; else objImg.src = closedImgRed.src; } /* ************ */ /* Content boxe */ /* ************ */ //initialisation des images (fleche ouverte, fleche fermee) var openImgContent = new Image(); openImgContent.src = "../../../templates/llv/images/arrow_content_open.gif"; var closedImgContent = new Image(); closedImgContent.src = "../../../templates/llv/images/arrow_content_close.gif"; //initialisation de variables (fleche ouverte ou fermee) function swapFolderContent(img){ objImgContent = document.getElementById(img); if(objImgContent.src.indexOf('arrow_content_close.gif')>-1) objImgContent.src = openImgContent.src; else objImgContent.src = closedImgContent.src; } /* ***** */ /* PopUp */ /* ***** */ /* Fonction DoPopup initialisation des parametres en fonction du type. ouverture popup. Parametre strUrl: url image strType: type popup StrWidthImg: largeur image StrHeightImg: hauteur image */ function DoPopup(strURL,strType,StrWidthImg,StrHeightImg) { var strOptions=""; StrWidthImg = eval(StrWidthImg) + 100; StrHeightImg = eval(StrHeightImg) + 160; if (strType=="form") { strOptions="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=455,height=520"; window.open(strURL, 'newWin', strOptions); } if (strType=="demo") { strOptions="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=444,height=313"; window.open(strURL, 'newWin', strOptions); } if (strType=="agenda") { strOptions="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=565,height=410"; window.open(strURL, 'newWin', strOptions); } if (strType=="impression") { strOptions="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=660,height=640"; window.open(strURL, 'impression', strOptions); } if (strType=="envoyer") { strOptions="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=560,height=440"; window.open(strURL, 'newWin', strOptions); } if (strType=="detailImage") { strOptions="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+StrWidthImg+",height="+StrHeightImg; strNewUrl = strURL+'&&newWidth=='+StrWidthImg+'&&newHeight=='+StrHeightImg; window.open(strNewUrl, 'newWin2', strOptions); } if (strType=="detailOeuvre") { strOptions="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=700,height=410"; window.open(strURL, 'newWin', strOptions); } if (strType=="aideDetail") { strOptions="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=390,height=260"; window.open(strURL, 'newWin', strOptions); } if (strType=="OAL") { strOptions="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+window.screen.availWidth+",height="+window.screen.availHeight; window.open(strURL, 'newWin', strOptions); } if (strType=="EI") { strOptions="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width="+1024+",height="+550; window.open(strURL, 'newWin', strOptions); } if (strType=="jeu") { strOptions="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=650,height=650"; window.open(strURL, 'newWin', strOptions); } if (strType=="biographie") { strOptions="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=750,height=500"; window.open(strURL, 'newWin3', strOptions); } if (strType=="video") { strOptions="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=550,height=630"; strNewUrl = strURL+'&&newWidth==550&&newHeight==630'; window.open(strNewUrl, 'newWin3', strOptions); } } /* *********************** */ /* Change background color */ /* *********************** */ //initialisation de la couleur de fond du titre d'un bloc (gris) content (fermee, ouvert). function chgColorContent(id) { objBackground = document.getElementById(id); if(objBackground.className.indexOf('bgWapContentOff')>-1) objBackground.className = 'bgWapContentOn'; else objBackground.className = 'bgWapContentOff'; } //initialisation de la couleur de fond du titre d'un bloc (marron) content (fermee, ouvert). function chgBgBlocTitle(id) { objBackground = document.getElementById(id); if(objBackground.className.indexOf('bgTitlePresContentOff')>-1) objBackground.className = 'bgTitlePresContentOn'; else objBackground.className = 'bgTitlePresContentOff'; } //initialisation de la couleur de fond du titre d'un bloc de la navigation gauche (fermee, ouvert). function chgColorNavLeft(id) { objClass = document.getElementById(id); if(objClass.className.indexOf('titleBoxOff')>-1) objClass.className = 'titleBoxOn'; else objClass.className = 'titleBoxOff'; } //initialisation de la couleur de fond du menu principal (menu horizontal) sous Mac (fermee, ouvert). var oldCol; function chgColorNavMac(td, mode) { if (mode == 0) { oldCol = td.className; td.className = 'bgMenuMacOn'; } else { td.className = 'bgMenuMacOff'; } } /* ********************* */ /* Need to check IE5 Mac */ /* ********************* */ //detection de navigateurs var ver=navigator.appVersion; var agent=navigator.userAgent.toLowerCase();; var ie5=(this.ver.indexOf("msie 5")>-1)?1:0; var mac=this.agent.indexOf("mac")>-1;