javascript fsm
gallery lightbox 2