
$(document).ready(function() {
    $(".btn_gallery a").click(function () {
            $("#nextBtn").slideToggle("slow");
            $("#prevBtn").slideToggle("slow");
            $("#content_slider").slideToggle("slow");
    });

    $("a[rel=example_group]").fancybox({
        'transitionIn'		: 'elastic',
        'transitionOut'		: 'elastic',
        'titlePosition' 	: 'over',
        'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
            return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
        }
    });




    $("a[rel=galeria_dinamica_a]").fancybox({
        'transitionIn'  : 'elastic',
        'transitionOut'  : 'elastic',
        'titlePosition'  : 'over',
        'titleFormat'  : function(title, currentArray, currentIndex, currentOpts) {
            return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
        }
    });

    $("a[rel=galeria_dinamica_b]").fancybox({
        'transitionIn'  : 'elastic',
        'transitionOut'  : 'elastic',
        'titlePosition'  : 'over',
        'titleFormat'  : function(title, currentArray, currentIndex, currentOpts) {
            return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
        }
    });

    $("a[rel=galeria_dinamica_c]").fancybox({
        'transitionIn'  : 'elastic',
        'transitionOut'  : 'elastic',
        'titlePosition'  : 'over',
        'titleFormat'  : function(title, currentArray, currentIndex, currentOpts) {
            return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
        }
    });

    $("a[rel=galeria_dinamica_d]").fancybox({
        'transitionIn'  : 'elastic',
        'transitionOut'  : 'elastic',
        'titlePosition'  : 'over',
        'titleFormat'  : function(title, currentArray, currentIndex, currentOpts) {
            return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
        }
    });

    $("a[rel=galeria_dinamica_e]").fancybox({
        'transitionIn'  : 'elastic',
        'transitionOut'  : 'elastic',
        'titlePosition'  : 'over',
        'titleFormat'  : function(title, currentArray, currentIndex, currentOpts) {
            return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
        }
    });

    $("a[rel=galeria_dinamica_f]").fancybox({
        'transitionIn'  : 'elastic',
        'transitionOut'  : 'elastic',
        'titlePosition'  : 'over',
        'titleFormat'  : function(title, currentArray, currentIndex, currentOpts) {
            return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
        }
    });
});



