onBeforeOpen event added

Triggers before zoom-in
onBeforeClose event added

Triggers before zoom-out
Documentation supplemented