hidepanospotsaction();
closepanoobjects();
ifnot(stopSequence === undefined,interruptAnimation(););
loadpano(%1,NULL,NULL,BLEND(1));
tweennormalview();
showpanospotsaction();
if(plugin[data].firstPanoHasBeenPlayed==false,
setlittleplanet();
wait(load);
set(plugin[data].firstPanoHasBeenPlayed,true);
startLittlePlanetIntroEffect();
);
if(plugin[data].firstPanoHasBeenPlayed == true,
delayedcall(1.0,
fromlittleplanetintrotonormalview();
set(autorotate.enabled,true);
);
);
set(view.stereographic, true);
set(view.fisheye , 1.0);
set(view.limitview , lookat);
set(view.vlookatmin , -90);
set(view.vlookatmax , 90);
set(view.fov , 150);
set(view.fovmax , 150);
set(view.hlookat , 0);
set(view.vlookat , 90);
set(display.flash10 , off);
set(display.details , 14);
set(plugin[helpScreen].visible,true);
set(plugin[info].onclick,closeHelp();)
set(plugin[helpScreen].visible,false);
set(plugin[info].onclick,displayHelp();)
tween(plugin[%1].alpha, 1.0, 0.3, easeInQuad);
tween(plugin[%1].scale, 1.05, 0.3, easeInQuad);
tween(plugin[%1].alpha, 0.8, 0.3, easeInQuad);
tween(plugin[%1].scale, 1.0, 0.3, easeInQuad);
set(plugin[slide].onclick,slide_action_out);
set(plugin[strap].onclick,slide_action_out);
set(plugin[strapArrow].rotate,180);
tween(plugin[thumbArray].x, 10%, 1, easeOutQuint);
tween(plugin[thumbMovePrev].x, 5%,1, easeOutQuint);
tween(plugin[thumbMoveNext].x, 5%, 1, easeOutQuint);
thumbsResizeEventHandler();
set(plugin[slide].onclick,slide_action_in);
set(plugin[strap].onclick,slide_action_in);
set(plugin[strapArrow].rotate,0);
tween(plugin[thumbArray].x, 0, 1, easeOutQuint);
tween(plugin[thumbMovePrev].x, 0, 1, easeOutQuint);
tween(plugin[thumbMoveNext].x, 0, 1, easeOutQuint);
set(plugin[thumbMovePrev].visible,false);
set(plugin[thumbMoveNext].visible,false);
plugin[thumbArray].updatepos();
copy(truethumbsheight, plugin[thumbArray].pixelheight);
if (area.pixelheight GT truethumbsheight,
set(plugin[thumbBgLayout].y, 0);,
set(leftborder, get(area.pixelheight));
sub(leftborder, truethumbsheight);
div(leftborder, 2);
mul(leftborder, -1);
if (plugin[thumbBgLayout].y LT leftborder, inc(plugin[thumbBgLayout].y, %1););
if (plugin[thumbBgLayout].y GT leftborder, set(plugin[thumbBgLayout].y, get(leftborder)););
);
plugin[thumbArray].updatepos();
copy(truethumbsheight, plugin[thumbArray].pixelheight);
if (area.pixelheight GT truethumbsheight,
set(plugin[thumbBgLayout].y, 0);,
set(rightborder, get(area.pixelheight));
sub(rightborder, truethumbsheight);
div(rightborder, 2);
if (plugin[thumbBgLayout].y GT rightborder, dec(plugin[thumbBgLayout].y, %1););
if (plugin[thumbBgLayout].y LT rightborder, set(plugin[thumbBgLayout].y, get(rightborder)););
);
plugin[thumbArray].updatepos();
copy(truethumbsheight, plugin[thumbArray].pixelheight);
if (area.pixelheight GT truethumbsheight,
set(plugin[thumbBgLayout].y, 0);displayThumbsScrolls(false);,
if (plugin[slide].onclick == slide_action_out, displayThumbsScrolls(true););
);
set(plugin[thumbMovePrev].visible, %1);
set(plugin[thumbMovePrev].enabled, %1);
set(plugin[thumbMoveNext].visible, %1);
set(plugin[thumbMoveNext].enabled, %1);
if (ishtml5 == true,
set(plugin[thumbMovePrev].height, 5%);
set(plugin[thumbMoveNext].height, 5%);
);
inc(plugin[thumbnailsData].nbThumbnailsLoaded, 1);
if(plugin[thumbnailsData].nbThumbnailsLoaded GE 5,
setThumbnailsVisible();
adjusthtml5thumbsplugins();
);
set(plugin[thumb_virtualtour0].visible, true);
set(plugin[thumb_virtualtour1].visible, true);
set(plugin[thumb_virtualtour2].visible, true);
set(plugin[thumb_virtualtour3].visible, true);
set(plugin[thumb_virtualtour4].visible, true);
ifnot (stopSequence === undefined,
set(stopSequence, true);
wait(0);
);