To get access to krpano from Javascript the krpano Javascript-Interface object
will be required. This interface is the same for the krpano HTML5 Viewer and the krpano Flash Viewer and
can be used to control both viewers the same way.
or by using the Javascript call
document.getElementById(id) where
the id parameter is the unique id of the viewer,
which can be set in the embedding script
(and is krpanoSWFObject by default).
When Flash-support is not requiered, it would be possible to get a more direct access to krpano using this call:
krpano = krpano.get("global");
The global object is the root-level object of the whole krpano API structure and
from there all variables, objects and functions are directly accessible.
For performance this would be the fastest way of using krpano.