function initFancy() {

    $(".fancybox-thumb").fancybox({
        prevEffect	: 'none',
        nextEffect	: 'none',
        helpers	: {
            title	: {
                type: 'outside'
            },
            overlay	: {
                opacity : 0.8,
                css : {
                    'background-color' : '#000'
                }
            },
            thumbs	: {
                width	: 50,
                height	: 50
            }
        },

        afterLoad : function() {
            this.title = 'Photo ' + (this.index + 1) + ' sur ' + this.group.length + (this.title ? ' - ' + this.title : '');
        }
    });
    
    $('.fancybox-buttons').fancybox({
        openEffect  : 'none',
        closeEffect : 'none',

        prevEffect : 'none',
        nextEffect : 'none',

        closeBtn  : false,

        helpers : {
            title : {
                type : 'outside'
            },
            buttons	: {}
        },

        afterLoad : function() {
            this.title = 'Article ' + (this.index + 1) + ' sur ' + this.group.length + (this.title ? ' - ' + this.title : '');
        }
    });
    
    $(".fancybox-effects-d").fancybox({
        padding: 0,

        openEffect : 'elastic',
        openSpeed  : 150,

        closeEffect : 'elastic',
        closeSpeed  : 150,

        closeClick : true,

        helpers : {
            overlay : null
        }
    });
}
