$(document).ready(function () {   
    // Home page slider catslider
    if ($("#homeslider").length) {
        $("#homeslider").bxSlider({
            mode: 'fade',                       // 'horizontal', 'vertical', 'fade'
            infiniteLoop: true,                 // true, false - display first slide after last
            hideControlOnEnd: false,            // true, false - if true, will hide 'next' control on last slide and 'prev' control on first
            controls: false,                    // true, false - previous and next controls
            speed: 1000,                        // integer - in ms, duration of time slide transitions will occupy
            easing: 'swing',                    // used with jquery.easing.1.3.js - see http://gsgd.co.uk/sandbox/jquery/easing/ for available options
            pager: true,                        // true / false - display a pager
            auto: true,                         // true, false - make slideshow change automatically
            autoDirection: 'next',              // 'next', 'prev' - direction in which auto show will traverse
            autoControls: false,                // true, false - show 'start' and 'stop' controls for auto show
            autoControlsSelector: null,         // jQuery selector - element to contain the auto controls. ex: '#auto-controls'
            autoStart: true,                    // true, false - if false show will wait for 'start' control to activate
            autoHover: false,                   // true, false - if true show will pause on mouseover
            autoDelay: 0,                       // integer - in ms, the amount of time before starting the auto show
            pause: 5000,                        // integer - in ms, the duration between each slide transition
            randomStart: false                  // true, false - start randomly
        });
    }

});
