Some action on minimize and restore app

Hi
Is there any hescript to call javascript function on minimize and restore app? ver 1.7