Hi,
Maybe this code ..."if(isclose, showtext(click to open, buttonstyle), showtext(click to close, buttonstyle));"
yes, such code could be used when your plugin the same element in closed and opened state?
then just set your "isclose" variable to true or false in your opening or closing actions (and define it also in <plugin> element itself with it's start value)
best regards,
Klaus