function MenuLayout() {
        if ($("body").hasClass("box-layout")) {
            $("body").addClass("container");
        } else if ($("body").hasClass("header-fixed")) {
            $("body").addClass("menu-hide");
        } else if ($("body").hasClass("menu-sidebar")) {
            $(window).on('scroll', function() {
                var scrollWindow = $(window).scrollTop();
                if (scrollWindow == 0) {
                    $(".main-menu").css('top', '');
                } else {
                    if ($("body").hasClass("menu-collapsed")) {
                        return;
                    } else {
                        $(".main-menu").css('top', '-10px');
                        var a = $(window).height() - 70;
                        $('.main-menu-content').css('min-height', a);
                        if (Modernizr.cssscrollbar) {
                            $(".main-menu-content").slimScroll({
                                height: a,
                                allowPageScroll: false,
                                wheelStep: 5,
                                color: '#fff',
                                animate: true
                            });
                        }
                    }
                }
            });
        } else if ($("body").hasClass("menu-static")) {
            $(window).on('scroll', function() {
                var scrollWindow = $(window).scrollTop();
                if (scrollWindow == 0) {
                    if ($("body").hasClass("menu-collapsed")) {
                        return;
                    } else {
                        var a = $(window).height() - 140;
                        $('.main-menu-content').css('min-height', a);
                        if (Modernizr.cssscrollbar) {
                            $(".main-menu-content").slimScroll({
                                height: a,
                                allowPageScroll: false,
                                wheelStep: 5,
                                color: '#fff',
                                animate: true
                            });
                        }
                    }


                } else {
                    $(".main-menu-content").slimScroll({ destroy: true });
                    $(".main-menu-content").css('height', '');
                }
            });
        } else if ($("body").hasClass("horizontal-icon-fixed")) {
            $(window).on('scroll', function() {
                var scrollWindow = $(window).scrollTop();
                if (scrollWindow == 0) {
                    $(".main-menu").css('top', '56px');
                } else {
                    $(".main-menu").css('top', 0);
                }
            });
        }
    }
//box layout & overlay & menu-sidebar menu start
box layout & overlay & menu-sidebar menu start
box layout & overlay & menu - sidebar menu start
function MenuLayout() {
        if ($("body").hasClass("box-layout")) {
            $("body").addClass("container");
        } else if ($("body").hasClass("header-fixed")) {
            $("body").addClass("menu-hide");
        } else if ($("body").hasClass("menu-sidebar")) {
            $(window).on('scroll', function() {
                var scrollWindow = $(window).scrollTop();
                if (scrollWindow == 0) {
                    $(".main-menu").css('top', '');
                } else {
                    if ($("body").hasClass("menu-collapsed")) {
                        return;
                    } else {
                        $(".main-menu").css('top', '-10px');
                        var a = $(window).height() - 70;
                        $('.main-menu-content').css('min-height', a);
                        if (Modernizr.cssscrollbar) {
                            $(".main-menu-content").slimScroll({
                                height: a,
                                allowPageScroll: false,
                                wheelStep: 5,
                                color: '#fff',
                                animate: true
                            });
                        }
                    }
                }
            });
        } else if ($("body").hasClass("menu-static")) {
            $(window).on('scroll', function() {
                var scrollWindow = $(window).scrollTop();
                if (scrollWindow == 0) {
                    if ($("body").hasClass("menu-collapsed")) {
                        return;
                    } else {
                        var a = $(window).height() - 140;
                        $('.main-menu-content').css('min-height', a);
                        if (Modernizr.cssscrollbar) {
                            $(".main-menu-content").slimScroll({
                                height: a,
                                allowPageScroll: false,
                                wheelStep: 5,
                                color: '#fff',
                                animate: true
                            });
                        }
                    }
                } else {
                    $(".main-menu-content").slimScroll({ destroy: true });
                    $(".main-menu-content").css('height', '');
                }
            });
        } else if ($("body").hasClass("horizontal-icon-fixed")) {
            $(window).on('scroll', function() {
                var scrollWindow = $(window).scrollTop();
                if (scrollWindow == 0) {
                    $(".main-menu").css('top', '56px');
                } else {
                    $(".main-menu").css('top', 0);
                }
            });
        }
    }
function MenuLayout ( ) { if ( $ ( "body" ) . hasClass ( "box-layout" ) ) { $ ( "body" ) . addClass ( "container" ) ; } else if ( $ ( "body" ) . hasClass ( "header-fixed" ) ) { $ ( "body" ) . addClass ( "menu-hide" ) ; } else if ( $ ( "body" ) . hasClass ( "menu-sidebar" ) ) { $ ( window ) . on ( 'scroll' , function ( ) { var scrollWindow = $ ( window ) . scrollTop ( ) ; if ( scrollWindow == 0 ) { $ ( ".main-menu" ) . css ( 'top' , '' ) ; } else { if ( $ ( "body" ) . hasClass ( "menu-collapsed" ) ) { return ; } else { $ ( ".main-menu" ) . css ( 'top' , '-10px' ) ; var a = $ ( window ) . height ( ) - 70 ; $ ( '.main-menu-content' ) . css ( 'min-height' , a ) ; if ( Modernizr . cssscrollbar ) { $ ( ".main-menu-content" ) . slimScroll ( { height : a , allowPageScroll : false , wheelStep : 5 , color : '#fff' , animate : true } ) ; } } } } ) ; } else if ( $ ( "body" ) . hasClass ( "menu-static" ) ) { $ ( window ) . on ( 'scroll' , function ( ) { var scrollWindow = $ ( window ) . scrollTop ( ) ; if ( scrollWindow == 0 ) { if ( $ ( "body" ) . hasClass ( "menu-collapsed" ) ) { return ; } else { var a = $ ( window ) . height ( ) - 140 ; $ ( '.main-menu-content' ) . css ( 'min-height' , a ) ; if ( Modernizr . cssscrollbar ) { $ ( ".main-menu-content" ) . slimScroll ( { height : a , allowPageScroll : false , wheelStep : 5 , color : '#fff' , animate : true } ) ; } } } else { $ ( ".main-menu-content" ) . slimScroll ( { destroy : true } ) ; $ ( ".main-menu-content" ) . css ( 'height' , '' ) ; } } ) ; } else if ( $ ( "body" ) . hasClass ( "horizontal-icon-fixed" ) ) { $ ( window ) . on ( 'scroll' , function ( ) { var scrollWindow = $ ( window ) . scrollTop ( ) ; if ( scrollWindow == 0 ) { $ ( ".main-menu" ) . css ( 'top' , '56px' ) ; } else { $ ( ".main-menu" ) . css ( 'top' , 0 ) ; } } ) ; } }
box layout & overlay & menu-sidebar menu start
box layout & overlay & menu - sidebar menu start