﻿ var i = 1;
    function Horloge() {
        //i = i +1;
        if(i==2)
        {
            $('#bgContent2').fadeOut("slow");
            $('#bgContent1').fadeIn(2000);
            //alert('ca vaut 4');
            i = 1;
        }
        else
        {
            $('#bgContent'+i).fadeOut("slow");
            $('#bgContent'+(i+1)).fadeIn(2000);
            i = i+1;
            
        }
 
    }

    jQuery(document).ready(function() {
        //alert("ok");
       setInterval("Horloge()", 4000);/*ms*/

    });
