or by using the Javascript call:
document.getElementById(id).
The id parameter is the unique id of the viewer
(which is "krpanoSWFObject" by default) and which can be set
in the embedding script.
Javascript API Examples
Several examples that show the usage the Javascript API of the krpano viewer:
loading other panos, loading xml strings, setting the view, lookto animation, getting the current view,
adding and removing hotspots, callback from hotspot event to JS, tracking the mouse at spherical pano coordinates.
Add and remove panos via Javascript
This example shows how to dynamically add (=embedpano call) either Flash or HTML5 viewer elements
and then remove (=removepano call) them again from the webpage.
These examples are also included in the krpano download package
in the folder viewer/examples/javascript-interface/.