<!--
		function afficheApparence(affiche)
		{
			if (menuApparence.style.visibility.visible.value='visible')
			{
				menuApparence.style.visibility = 'hidden';
			}
			else
			{
				menuApparence.style.visibility = 'visible';
			}
		}
		
        function detecteTouche() 
        { 
            alert("detecteTouche") 
        } 
         
        function pleinEcran(url)
        {
            window.open(url, '', 'fullscreen=yes, scrollbars=auto'); 
        }
        
        // Fonction de scrolling 
        function VersionNavigateur(Netscape, Explorer) { 
            if ((navigator.appVersion.substring(0,3) >= Netscape && navigator.appName == 'Netscape') || 
            (navigator.appVersion.substring(0,3) >= Explorer && navigator.appName.substring(0,9) == 'Microsoft')) 
                return true; 
            else return false; 
        } 
         
        var temps = 0; 
        var time; 
        var scrollActif = 0; 
         
        function vas_y(quantite) 
        { scroll(0,quantite) 
                time=setTimeout("defile()",60) 
        } 
        function defile() 
        { 
            scrollActif = 1; 
            temps++ 
            vas_y(temps); 
        } 
        function reprendre() { 
            if (VersionNavigateur(3.0,4.0)) 
            { 
                temps=0; 
            	defile();
            } 
        } 

        
        function onKeyUp(event)
        {    
            switch (String.fromCharCode(event.keyCode))
            {
                case "d": case "D": defile(); break;
                case "s": case "S": clearTimeout(time); break;
            }
        }


        function arreter() 
        { 
        	var lettre = String.fromCharCode(event.keyCode); 
        	//alert(lettre)
			if (lettre == "S" || lettre == "s")
			{
				// On arrête le défilement
	            clearTimeout(time) 
			}
			
			if (lettre == "¤")
			{
				// On démarre le défilement
	            defile();
			}
        } 
        
        function checkForScrolling() { 
            if (VersionNavigateur(3.0,4.0)) 
                defile(); 
        } 
         
        function continueScrolling() 
        { 
            //alert(temps) 
            //alert(scrollActif) 
            if (scrollActif==1) 
            { 
                clearTimeout(time) 
                defile(); 
            } 
        } 
         
        function desactiveScrolling() 
        { 
            scrollActif = 0; 
        } 
         
		function openFenetre(url) 
		{
			var gauche = (screen.width - 1190) / 2
		  	var haut =  (screen.height - 900) / 2
			window.open(url,'','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1,width=1250,height=1000,top=10,gauche=10');
		}
		
		function afficheExtrait(urlIn) 
		{
			//alert(urlIn);
			var gauche = (screen.width - 600) / 2
		  	var haut =  (screen.height - 450) / 2
		  	//window.open("",name,"width="+largeur+",height="+hauteur+",left="+gauche+",top="+haut)
			window.open(urlIn,'','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1,width=600,height=450,top=10,gauche=10');
			//window.open(url,'','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1' + ',width=600,height=450,' + 'left=' + gauche + ',top=' + haut);
		}
		

		function changeEntreeNew() 
		{
			destURL = "/cgi-bin/silmarillion/affiche_reference.cgi?" + document.listeEntrees.Chapitres.value;
			window.open(destURL,'_corps');
		}


		function goSectionForum() 
		{
			alert("goSectionForum")
			valeur = "" + document.formSilm.listeSilm.value;
			alert(valeur);
			//destURL = "/cgi-bin/silmarillion/affiche_reference.cgi?" + document.listeEntrees.Chapitres.value;
			//window.open(destURL,'_corps');
		}
		
		
    	function reduit(lediv) 
        { 
            //alert("reduit") 
            //alert(lediv.style.display) 
            if (lediv.style.display=="none") 
            { 
                lediv.style.display="block" 
                //document.getElementById('i8').style.visibility='hidden'; 
                //lediv.style.visibility='hidden';
            } 
            else 
            { 
                lediv.style.display="none" 
                //lediv.style.visibility='hidden';
            } 
        } 
         
        function reduitBis(lediv, etat) 
        { 
            //alert("reduit") 
            //alert(lediv.style.display) 
            if (etat = "on") 
            { 
                lediv.style.display="block" 
            } 
            else 
            { 
                lediv.style.display="none" 
            } 
        } 
        
        function setCookie(name, value, expires, path, domain, secure) 
        { 
        	//alert("setCookie")
            var curCookie = name + "=" + escape(value) + 
            ((expires) ? "; expires=" + expires.toGMTString() : "") + 
            ((path) ? "; path=" + path : "") + 
            ((domain) ? "; domain=" + domain : "") + 
            ((secure) ? "; secure" : "") 
            //alert(expires)
            document.cookie = curCookie 
        } 
         
        function getCookie(name) 
        { 
        	//alert("getcookie")
        	/*
        	if (name = "menu")
        	{
        		etat = "on"
        		if (etat = "on")
        		{
        			reduitBis(sc1, etat);
        			reduitBis(sc2, etat);
        		}
        	}
        	*/
            var prefix = name + "=" 
            var cookieStartIndex = document.cookie.indexOf(prefix) 
            if (cookieStartIndex == -1) 
            {
            	//alert("retourne null")
                return null 
            }
             
            var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length) 
            if (cookieEndIndex == -1) 
                cookieEndIndex = document.cookie.length 
            return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex)) 
        } 
         
        function deleteCookie(name, path, domain) 
        { 
            if (getCookie(name)) { 
                document.cookie = name + "=" + 
                ((path) ? "; path=" + path : "") + 
                ((domain) ? "; domain=" + domain : "") + 
                "; expires=Thu, 01-Jan-70 00:00:01 GMT" 
            } 
        } 
        
        function initCookies(lediv1, lediv2)
        {
        	valeurSC1 = getCookie("sc1")
        	valeurSC2 = getCookie("sc2")
        	//alert(valeurSC1)
        	//alert(valeurSC2)
        	if (valeurSC1 == "block" || valeurSC1 == null) 
            {
            	// Il faut afficher le bloc 
            	//alert("affiche sc1")
                lediv1.style.display="block" 
            } 
            else 
            { 
            	//alert("masque sc1")
                lediv1.style.display="none" 
            } 
            
            if (valeurSC2 =="block" || valeurSC2 == null) 
            {
            	// Il faut afficher le block
            	//alert("affiche sc2")
                lediv2.style.display="block" 
            } 
            else 
            { 
            	//alert("masque sc2")
                lediv2.style.display="none" 
            }
    	}
    
    	function fixDate(date) 
        { 
            var base = new Date(0) 
            var skew = base.getTime() 
            if (skew > 0) 
                date.setTime(date.getTime() - skew) 
        } 
        
        function memoriseConfig(lediv1, lediv2)
        {
        	//alert("memoriseConfig")
        	var now = new Date() 
            fixDate(now) 
            now.setTime(now.getTime() + 31 * 24 * 60 * 60 * 1000) 
            
        	if (lediv1.style.display == "block") 
            {
                setCookie("sc1", "block", now, "/")
            } 
            else 
            { 
                setCookie("sc1", "none", now, "/")
            } 
            
            if (lediv2.style.display == "block") 
            {
                setCookie("sc2", "block", now, "/")
            } 
            else 
            { 
                setCookie("sc2", "none", now, "/")
            }
            alert("L'affichage courant des menus a été mémorisé.")
        }
         
         
		function SindarinSearch( word )
		{
  			var url = 'http://www.jrrvf.com/cgi-bin/hisweloke/sindarin.cgi?search=' + word;
  			WinPtr = window.document.open( url, '_sindar', 'width=800,height=500' );
		}

//-->

