JavaScript expand() and contract() hooks
JavaScript expand() and contract() hooks

This is more useful if someone wants to hook into the menu
programmatically rather than be at the whim of our bkv_menu_trigger class.

Also made the code a bit more robust so the browser doesn't whine
about calling methods on null objects.

sethbonnie/Bulgakov