        var hTimeOutWE;
        var nbDivWE = 0;
        var divAAfficherWE = 0;
        var divAfficheWE = 1;
        var bPauseWE = false;
        var effetFonduWE = "vide";
        var opaciteAfficherWE;
        var opaciteMasquerWE;

        var debutFonduWE = 100;

        function fonduWE(lNbDivWE) {
            if (nbDivWE == 0 && !isNaN(lNbDivWE)) nbDivWE = lNbDivWE;
            opaciteMasquerWE = debutFonduWE;
            opaciteAfficherWE = 0;
            document.getElementById("We" + divAAfficherWE).style.zIndex = "1";
            document.getElementById("We" + divAAfficherWE).style.visibility = "visible";
            setOpacityWE("We" + divAAfficherWE, 0);
		    //diminuer l'opacité de la div affichée
            if (effetFonduWE == "vide") {
                effetFonduWE = window.setInterval("lancerFonduWE()", 10);
	        }
	    }
	    
	    function lancerFonduWE(){
	        opaciteMasquerWE = opaciteMasquerWE - 5;
	        opaciteAfficherWE = opaciteAfficherWE + 5;
	        
            if (opaciteAfficherWE == 100) {

                document.getElementById("We" + divAfficheWE).style.visibility = "hidden";
                document.getElementById("We" + divAfficheWE).style.zIndex = "1";
                setOpacityWE("We" + divAfficheWE, debutFonduWE);
                divAfficheWE = divAAfficherWE;
                divAAfficherWE += 1;
                if (divAAfficherWE > nbDivWE) divAAfficherWE = 0;
                window.clearInterval(effetFonduWE);
                effetFonduWE = "vide";
                if (!bPauseWE) hTimeOutWE = setTimeout("fonduWE()", 4000);
	            return;
	        }

	        document.getElementById("aWe" + divAAfficherWE).style.fontWeight = "bold";
	        document.getElementById("aWe" + divAAfficherWE).style.fontSize = "13px";

	        document.getElementById("aWe" + divAfficheWE).style.fontWeight = "normal";
	        document.getElementById("aWe" + divAfficheWE).style.fontSize = "12px";
	        
	        setOpacityWE("We" + (divAfficheWE), opaciteMasquerWE);
	        setOpacityWE("We" + (divAAfficherWE), opaciteAfficherWE);

	    }
    	function setOpacityWE( id, value ){
            var object = document.getElementById(id).style;
            object.opacity = (value / 100);
            object.MozOpacity = (value / 100);
            object.KhtmlOpacity = (value / 100);
            object.filter = "alpha(opacity=" + value + ")";
    	}


    	function allerWE(lIndexWE)
	    {
	        clearTimeout(hTimeOutWE);
	        clearTimeout(effetFonduWE);
	        effetFonduWE = "vide";

	        //on masque le div actuel
	        document.getElementById("We" + divAfficheWE).style.visibility = "hidden";
	        document.getElementById("We" + divAfficheWE).style.zIndex = "1";
	        document.getElementById("aWe" + divAfficheWE).style.fontWeight = "normal";
	        document.getElementById("aWe" + divAfficheWE).style.fontSize = "12px";
	        setOpacityWE("We" + divAfficheWE, debutFonduWE);
            //on affiche le div demandé
	        divAAfficherWE = lIndexWE;
	        divAfficheWE = divAAfficherWE;
	        document.getElementById("We" + divAAfficherWE).style.visibility = "visible";
	        document.getElementById("We" + divAAfficherWE).style.zIndex = "1";
	        document.getElementById("aWe" + divAAfficherWE).style.fontWeight = "bold";
	        document.getElementById("aWe" + divAAfficherWE).style.fontSize = "13px";
	        setOpacityWE("We" + divAAfficherWE, debutFonduWE);
	    }

	    function reprendreWE()
	    {
	        bPauseWE = false;

	        divAfficheWE = divAAfficherWE;
	        divAAfficherWE += 1;
	        if (divAAfficherWE > nbDivWE) divAAfficherWE = 1;

		    fonduWE();
	    }
        
        
