A simple Javascript image viewer

Here is a very simple but functional Javascript image viewer (< 2ko) with no dependency (not even JQuery).

It is used by éClaircie. For a demonstration, please see the following page: Screenshots.

The source code is available in the second part of this post.

Source code is fairly simple, the only obscur function is the first one. It creates the HTML element needed by the viewer: a div that occupy the whole page. This div include a table with one line of 3 cells, and an image in the central cell.