Macro to hide/show actionbar 6 and WA

To someone who is more familiar with the WoW API and WA, is there a function to toggle the visibility state of actionbar 6, or at least set it to a given state, and then is there an event my WA that shows an actionbar background 6 could listen for to hide/show itself as well?