/* Author: 

*/


$(document).ready(function() {
    // $(".section-front-page .blocsGrans").hover(
    //     function () {
    //         var png = $(this).attr("id");
    //         $("#fotoGran").css('background-image', 'url("++theme++iskratheme.geosilva/imatges/'+png+'")');
    //     });
    $(".section-front-page .blocsGrans").hover(
        function () {
            $(".rodonaFletxa", this).removeClass("hidden");
            $(".lema", this).removeClass("hidden")
        },
        function () {
            $(".rodonaFletxa", this).addClass("hidden");
            $(".lema", this).addClass("hidden")
        });
    
    $(".desplegable").hover(
        function () {
          $("ul", this).removeClass("hidden");
          $("a", this).addClass("negatiu");
        },
        function () {
          $("ul", this).addClass("hidden");
          $("a", this).removeClass("negatiu");
        });

    $("section.imatgesProjecte figure.active").each(
        function(){
            $(this)
                .css({
                 // Height equal to the height of the image
                "height" : $(this).children("img").height() + 6 + "px",
                // Width equal to the width of the image
                "width" : $(this).children("img").width() + 12 + "px"
            })
            .children("figcaption").css("width", $(this).width() - 52 + "px")
        });

    $('#slider').nivoSlider({
        effect: 'fade',
        controlNav: false,
        pauseTime: 4000
    });

});





















