Unfortunately, I don't have access to the SAP CRM system anymore.
From my archives, I found the following code, which implements the required logic:
- <%IF lv_navbar_state NE'HIDDEN'.%>
- <script>
- thtmlb_NavBarToggle();
- </script>
- <%ENDIF.%>
This code should be placed inside of the BSP-page.