add function toggleAll()

Hi,

I feel a function toggleAll was necessary. It's  very convenient to call it from a link to active/disable the fullscreen.

This pull request include my fix for the context issue.

Gabriel