jQuery(document).ready(function($) {
    
    /** Variables from Customizer for Banner Slider settings */
    if( excel_blog_data.banner_auto == '1' ){
        var banner_slider_auto = true;
    }else{
        banner_slider_auto = false;
    }
    
    if( excel_blog_data.banner_loop == '1' ){
        var banner_slider_loop = true;
    }else{
        var banner_slider_loop = false;
    }
    
    if( excel_blog_data.banner_control == '1' ){
        var banner_slider_control = true;
    }else{
        banner_slider_control = false;
    }
    
    if( excel_blog_data.banner_animation == 'fade' ){
        var animation = 'fadeOut';
    }else{
        animation = '';
    }
    
    /** Banner Slider */    
    $('#banner-slider').owlCarousel({
        loop            : banner_slider_loop, //dynamic
        autoplay        : banner_slider_auto, //dynamic
        nav             : banner_slider_control, //dynamic slider control
        animateOut      : animation, //just give two option '' for slide and 'fade'
        autoplayTimeout : excel_blog_data.banner_pause, //slider pause timing
        smartSpeed      : excel_blog_data.banner_speed, //slider speed
        items           : 1,
        margin          : 0,
    });
    
    /** Variables from Customizer for Banner Slider settings */
    if( excel_blog_data.bottom_auto == '1' ){
        var bottom_slider_auto = true;
    }else{
        bottom_slider_auto = false;
    }
    
    if( excel_blog_data.bottom_loop == '1' ){
        var bottom_slider_loop = true;
    }else{
        var bottom_slider_loop = false;
    }
    
    if( excel_blog_data.bottom_control == '1' ){
        var bottom_slider_control = true;
    }else{
        bottom_slider_control = false;
    }
    
    /** Bottom Slider */
    $('#popular-slider').owlCarousel({
        loop            : bottom_slider_loop, //dynamic
        autoplay        : bottom_slider_auto, //dynamic
        nav             : bottom_slider_control, //dynamic slider control
        autoplayTimeout : excel_blog_data.bottom_pause, //slider pause timing
        smartSpeed      : excel_blog_data.bottom_speed, //slider speed
        margin          :30,
        responsive      : {
            0: {
                items: 1
            },
            768: {
                items: 2
            },
            992: {
                items: 3
            }
        }
    });
    
    $('#site-navigation').meanmenu({
        meanScreenWidth: "991",
        meanRevealPosition: "center"
    });
    
});
