if(startscene === null OR !scene[get(startscene)], copy(startscene,scene[0].name); );
loadscene(get(startscene), null, MERGE);
if(startactions !== null, startactions() );
setinterval(time, 0.02,
screentosphere(mouse.stagex, mouse.stagey, toh, tov);
roundval(toh,3); roundval(tov,3); set(layer[field1].html, calc:'Mouse X = ' + toh + '[br]Mouse Y = ' + tov);
);
var target_div = document.getElementById("viewer1");
target_div.addEventListener("mouseover", mouseOver, false);
target_div.addEventListener("mouseout", mouseOut, false);
function mouseOver()
{
krpano.call("NumDoMouse();");
}
function mouseOut()
{
krpano.call("clearinterval(time);");
}