I have five keys to change my team lead. It's tied in to PiP so whenever I PiP someone into the main window, they become the lead.

I was wondering if it's possible to turn the UI on and off (as in Ctrl-Z) from a script. What I'd like to do is turn the UI on for a toon as it becomes my lead and turn it off for every other toon.

I'm sure it must be possible but I've turned up zilch so far.

Edit: I suspect I'm looking for:
Code:
/script InsertFrameNameHere:Hide();
and:
Code:
/script InsertFrameNameHere:Show();