Image Fade In/Out

Image Fade In/Out

I want to make a image fade in on click of a link, for example like this:

http://www.wakeupmrsingh.com/

I found this script I could use:

http://www.dynamicdrive.com/dynamicinde ... bnail2.htm

Then I found this js script I could use to fade in the image, but I don't know how to put the codes together:

http://clagnut.com/sandbox/imagefades/

How can I put the codes togther, and make a image fade in/out on click? Am I using the wrong codes?

HELP PLEASE!