var Z = {};
Z.data = {};
Z.data.recaptcha = {};
Z.data.recaptcha.pkey = '6Lf6BcYSAAAAADIsYuXW-AFxrqeW6lxxuYSgV_I6';

$(document).ready(function(){

    // slider usage info
    $('.project_state').hover(
        function(){
            var slider = $(this);
            var text = slider.attr('id') == 'slidegreen' ? 'Free '.concat(project_free, ' places of ', project_used + project_free) :'Reserved '.concat(project_used, ' places of ', project_used + project_free);
            var slider_desc = $('#slider_desc');

            slider_desc.css({
                'top':(slider.position().top +  slider.height()) + 'px',
                'left':(slider.position().left + (slider.width() / 2) - slider_desc.width() / 2) + 'px'
            });

            $('#slider_desc_in').html(text);

            slider_desc.show();
        },
        function(){
            $('#slider_desc').hide();
        }
        );

    // boxes resize image on mouse over
    $('.imgbox').hover(
        function(){
            $(this).css('height','170px');
            $(this).find('.imglink').css('height','170px');

        },function(){
            $(this).css('height','60px');
            $(this).find('.imglink').css('height','60px');
        }
        );
});
