So, I've been trying to make a JavaScript photo gallery but I'm not understanding the code that much. Now I haven't bought a book and learned JavaScript from beginning to end but all i really need to learn for now is how to make a photo gallery. Or to be more specific, i need to find the code that if I click on one image (i.e. a thumbnail) it will load another image (i.e. the actual image) in a viewfinder with text to the right of it.

i'm looking to do that in a VERY basic format. Simply 2divs (one for the thumbs one for the image/text) if someone could show me how this works i'd appreciate it very much!
or if someone could even point me in the right direction.

Thank You!