
$(document).ready(function(){

    // Effet sur les miniatures des galeries
    $("#galeries img").css('opacity','0.7');
    $("#galeries img").mouseover(function() {$(this).animate({opacity:1}, 50);});
    $("#galeries img").mouseout(function() {$(this).animate({opacity:0.7}, 500);});



            $("a[rel^='prettyPhoto']").prettyPhoto({
                animationSpeed: 'normal', /* fast/slow/normal */
                padding: 40, /* padding for each side of the picture */
                opacity: 0.50, /* Value betwee 0 and 1 */
                showTitle: true, /* true/false */
                allowresize: true, /* true/false */
                counter_separator_label: ' sur ', /* The separator for the gallery counter 1 "of" 2 */
                theme: 'dark_rounded', /* light_rounded / dark_rounded / light_square / dark_square */
                hideflash: false, /* Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */
                modal: false, /* If set to true, only the close button will close the window */
                changepicturecallback: function(){}, /* Called everytime an item is shown/changed */
                callback: function(){} /* Called when prettyPhoto is closed */
            });

        $("#galeries").prettyGallery({
            itemsPerPage : 1,
            animationSpeed : 'normal', /* fast/normal/slow */
            navigation : 'top',  /* top/bottom/both */
            of_label: ' sur ', /* The content in the page "1 of 2" */
            previous_title_label: 'Page précédente', /* The title of the previous link */
            next_title_label: 'Page suivante', /* The title of the next link */
            previous_label: 'Précédente', /* The content of the previous link */
            next_label: 'Suivante' /* The content of the next link */
        });


});

