Difference between 2 Javascript codes

I don’t see where those functions are being called anywhere.

Are the functions called within those functions defined?
(hide, show, play, pause)