Support open, close and toggle functions
Minor changes
Implement static variables in global
Support x, y, w and h attributes
Change x align to right
Support alignX and alignY attributes
Change opacity between close and open
Support moving pocket
Fix issues on Firefox
Add back cover to dim document body
Refactor code
Minor changes