$(function(){

    $('.b-info__arr').click(function(){
        $('.b-info').toggle();
        $('.b-info__arr img').attr('src', '/i/b-info-arr-'+($('.b-info').css('display') != 'none' ? 'close' : 'open')+'.png');
    });

    $('.b-slider').scrollable({size:6, clickable: false, prevPage: '.b-slider-content .b-arr-left', nextPage: '.b-slider-content .b-arr-right', items: 'ul', speed: 800});

    $('.b-gallery__footer a').click(function(){
        $('.b-gallery__footer .display').removeClass('display');
        $('.b-photo img').attr('src', $(this).attr('href'));
        $('div', this).addClass('display');
        return false;
    });


    $(window).bind('resize, scroll', function()
    {
        $('.b-footer, .l-header, b-flash').css('left','-'+$(window).scrollLeft()+'px');
    });


});
