function homeTxtSlideshow() {
    var id = parseInt($('.info_slide_dots .image_number_select').html());
    var gSlideshowCaption = $('#gSlideshowCaption');
    var href = gSlideshowCaption.find('a').attr('href');

    gSlideshowCaption.fadeTo(500, 0, function () {
        $('p', this).html(homeTxt[id - 1]);
        $(this).fadeTo(500, 1);
    });

    if (!href) {
        gSlideshowCaption.css('cursor', 'default');
    }

}

$(window).load(function () {
    $('#gSlideshowCaption').fadeTo(0, 0).css('display', 'block');

    $('.box_skitter').skitter({
        numbers:false,
        navigation:false,
        label:false,
        dots:true,
        interval:3500,
        velocity:1,
        animation:'cubeHide', // cubeJelly, cubeStopRandom, cubeSize, cubeHide, cubeStop
        'onLoad':function () {
            centerSlideshowThumb();
        },
        /**
         * Commit rev 261:
         * corriger bogue skitter dans IE7. Il manquait la dépendance
         * jquery.animate-colors-min.js + même avec cette dépendance,
         * on ne peut pas envoyer une chaîne vide pour la valeur de
         * backgroundColor sur un animate
         */
        'animateNumberActive':{  },
        'animateNumberOver':{  },
        'animateNumberOut':{  }
    });

    $('#gSlideshowCaption').click(function () {
        var href = $(this).find('a').attr('href');
        if (href) {
            document.location.href = href;
        }
    });
});
