$(document).ready(function() {
var counter = 0,
        divs = $('#div1, #div2, #div3, #div4, #div5, #div6');

    function showDiv () {
        divs.hide() // hide all divs
            .filter(function (index) { return index == counter % 6; }) 
            .fadeIn();

        counter++;
    }; // function to loop through divs and show correct div

    showDiv(); // show first div    

    setInterval(function () {
        showDiv(); // show next div
    }, 10 * 1000); // do this every 10 seconds 
 });


   