and if I want to the hide the panel? Should I than use this for showing and hiding the panel?:

Code:
toggle(mainmenu_pan,SHOW);