I had to enter the javascript into the head of each page manually, but you only need to do that once and that's it.
The other bit requires 'rel-"lightbox"' to be inserted in the link from each individual thumbnail. This is done by the client in the CMS editor as described above.
Mick