Code:
function show_panel_one()
{
   panel_one.visible = on;
}

on_x = show_panel_one 

///to close the panel

function close_panel_one()
{
   panel.one.visible = off;
}

///add "on_click = close_panel_one"  to the panel one code
and clicking on the panel will close it.


Or you might want to toggle the panel on/off with the same key.