// classie.toggle( body, 'cbp-spmenu-push-toright' ); // classie.toggle( menuLeft, 'cbp-spmenu-open' ); // disableOther( 'showLeftPush' ); // }; menu_back.onclick = function() { classie.toggle( this, 'active' ); classie.toggle( body, 'cbp-spmenu-push-toleft' ); classie.toggle( menuRight, 'cbp-spmenu-open' ); disableOther( 'showRightPush' ); }; showRightPush.onclick = function() { classie.toggle( this, 'active' ); classie.toggle( body, 'cbp-spmenu-push-toleft' ); classie.toggle( menuRight, 'cbp-spmenu-open' ); disableOther( 'showRightPush' ); }; function disableOther( button ) { // if( button !== 'showLeftPush' ) { // classie.toggle( showLeftPush, 'disabled' ); // } if( button !== 'showRightPush' ) { classie.toggle( showRightPush, 'disabled' ); } } var menu = ''; if(menu!=''){ $("#subnav>ul>li").each(function(){ if($(this).text()==menu){ $(this).addClass("menuselect"); }else{ $(this).removeClass("menuselect"); } }); }