$(document).ready(function() {

    if ( $('#content.home #slider').length ) {
        $('#content.home #slider').nivoSlider({
            effect:'fade', // Specify sets like: 'fold,fade,sliceDown'
            animSpeed:500, // Slide transition speed
            pauseTime:4000, // How long each slide will show
            directionNav:true, // Next & Prev navigation
            controlNav:false // 1,2,3... navigation
        });

        $('#content2 .box.news li').hover(
            function() {
                $(this).addClass('hover');
                $(this).find('a.more').show();
            },
            function() {
                $(this).removeClass('hover');
                $(this).find('a.more').hide();
            }
        );
    }

    if ( $('#content .sidebar #team').length )
    {
        $('#content .sidebar #team').bxSlider({
            auto: false,
            prevText: 'Poprzedni',
            nextText: 'Następny'
        });
    }

    if ( $('#content.offer #realisations ul').length )
    {
        $('#content.offer #realisations ul').bxSlider({
            auto: false,
            displaySlideQty: 3,
            moveSlideQty: 3,
            prevText: 'Poprzedni',
            nextText: 'Następny'
        });
    }

    if ( $('a.button-top').length )
        {
            $('a.button-top').click(function() {
                $('body').scrollTo('0', 1000, {
                    axis: 'y'
                });

                return false;
            });
        }

});

