closepanoobjects();
ifnot(stopSequence === undefined,interruptAnimation(););
loadpano(%1,NULL,NULL,BLEND(1));
if(plugin[data].firstPanoHasBeenPlayed==false,
set(plugin[data].firstPanoHasBeenPlayed,true);
set(autorotate.enabled,true);
);
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 13,
setThumbnailsVisible();
thumbsResizeEventHandler();
adjusthtml5thumbsplugins();
);
set(plugin[thumb_korp10].visible, true);
set(plugin[thumb_korp11].visible, true);
set(plugin[thumb_korp12].visible, true);
set(plugin[thumb_korp13].visible, true);
set(plugin[thumb_korp14].visible, true);
set(plugin[thumb_korp15].visible, true);
set(plugin[thumb_korp16].visible, true);
set(plugin[thumb_korp17].visible, true);
set(plugin[thumb_korp18].visible, true);
set(plugin[thumb_korp19].visible, true);
set(plugin[thumb_korp110].visible, true);
set(plugin[thumb_korp111].visible, true);
set(plugin[thumb_korp112].visible, true);
set( plugin[mapspot0].alpha , 0);
set( plugin[mapspot0].visible, true);
tween(plugin[mapspot0].alpha , 1);
set( plugin[mapspot1].alpha , 0);
set( plugin[mapspot1].visible, true);
tween(plugin[mapspot1].alpha , 1);
set( plugin[mapspot2].alpha , 0);
set( plugin[mapspot2].visible, true);
tween(plugin[mapspot2].alpha , 1);
set( plugin[mapspot3].alpha , 0);
set( plugin[mapspot3].visible, true);
tween(plugin[mapspot3].alpha , 1);
set( plugin[mapspot4].alpha , 0);
set( plugin[mapspot4].visible, true);
tween(plugin[mapspot4].alpha , 1);
set( plugin[mapspot5].alpha , 0);
set( plugin[mapspot5].visible, true);
tween(plugin[mapspot5].alpha , 1);
set( plugin[mapspot6].alpha , 0);
set( plugin[mapspot6].visible, true);
tween(plugin[mapspot6].alpha , 1);
set( plugin[mapspot7].alpha , 0);
set( plugin[mapspot7].visible, true);
tween(plugin[mapspot7].alpha , 1);
set( plugin[mapspot8].alpha , 0);
set( plugin[mapspot8].visible, true);
tween(plugin[mapspot8].alpha , 1);
set(plugin[mapspot0].visible,false);
set(plugin[mapspot1].visible,false);
set(plugin[mapspot2].visible,false);
set(plugin[mapspot3].visible,false);
set(plugin[mapspot4].visible,false);
set(plugin[mapspot5].visible,false);
set(plugin[mapspot6].visible,false);
set(plugin[mapspot7].visible,false);
set(plugin[mapspot8].visible,false);
hidemapspot();
set(plugin[map].onclick,openmap);
tween(plugin[map].width , 270);
tween(plugin[map].height, 215);
set(plugin[map].onclick, closemap);
tween(plugin[map].height, 431, 0.5, easeoutquad);
tween(plugin[map].width , 539, 0.5, easeoutquad, showmapspot(););
set(plugin[map].align, leftbottom);
set(plugin[map].x , 10);
set(plugin[map].y , 10);
unselectmapspotsbutpassed(%1);
ifnot (stopSequence === undefined,
set(stopSequence, true);
wait(0);
);