That's pretty standard javascript.
If you "save as" on the page you will probably save the html, javascript and images and then just wade through it all to get what you want.
Or do the legitimate thing and go to http://www.javascript.com and get examples and tutorials.