The iViewer Javascript API provides a number of functions you can use to perform common tasks, interact with the GUI and with external systems.