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 6,
setThumbnailsVisible();
thumbsResizeEventHandler();
adjusthtml5thumbsplugins();
);
set(plugin[thumb_new_year0].visible, true);
set(plugin[thumb_new_year1].visible, true);
set(plugin[thumb_new_year2].visible, true);
set(plugin[thumb_new_year3].visible, true);
set(plugin[thumb_new_year4].visible, true);
set(plugin[thumb_new_year5].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[mapspot_rusich].alpha , 0);
set( plugin[mapspot_rusich].visible, true);
tween(plugin[mapspot_rusich].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[mapspot_rusich].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);
if (%1 != mapspot0,
if(plugin[mapspot0].animated,
set(plugin[mapspot0].frame , 0);
set(plugin[mapspot0].ypos , 0);
set(plugin[mapspot0].animationCounter, 0)
txtadd(plugin[mapspot0].crop,'0|0|',get(plugin[mapspot0].framewidth),'|',get(plugin[mapspot0].frameheight));
,
set(plugin[mapspot0].blingCounter, 0)
)
);
resetmapspot(mapspot0);
if (%1 != mapspot1,
if(plugin[mapspot1].animated,
set(plugin[mapspot1].frame , 0);
set(plugin[mapspot1].ypos , 0);
set(plugin[mapspot1].animationCounter, 0)
txtadd(plugin[mapspot1].crop,'0|0|',get(plugin[mapspot1].framewidth),'|',get(plugin[mapspot1].frameheight));
,
set(plugin[mapspot1].blingCounter, 0)
)
);
resetmapspot(mapspot1);
if (%1 != mapspot2,
if(plugin[mapspot2].animated,
set(plugin[mapspot2].frame , 0);
set(plugin[mapspot2].ypos , 0);
set(plugin[mapspot2].animationCounter, 0)
txtadd(plugin[mapspot2].crop,'0|0|',get(plugin[mapspot2].framewidth),'|',get(plugin[mapspot2].frameheight));
,
set(plugin[mapspot2].blingCounter, 0)
)
);
resetmapspot(mapspot2);
if (%1 != mapspot3,
if(plugin[mapspot3].animated,
set(plugin[mapspot3].frame , 0);
set(plugin[mapspot3].ypos , 0);
set(plugin[mapspot3].animationCounter, 0)
txtadd(plugin[mapspot3].crop,'0|0|',get(plugin[mapspot3].framewidth),'|',get(plugin[mapspot3].frameheight));
,
set(plugin[mapspot3].blingCounter, 0)
)
);
resetmapspot(mapspot3);
if (%1 != mapspot4,
if(plugin[mapspot4].animated,
set(plugin[mapspot4].frame , 0);
set(plugin[mapspot4].ypos , 0);
set(plugin[mapspot4].animationCounter, 0)
txtadd(plugin[mapspot4].crop,'0|0|',get(plugin[mapspot4].framewidth),'|',get(plugin[mapspot4].frameheight));
,
set(plugin[mapspot4].blingCounter, 0)
)
);
resetmapspot(mapspot4);
if (%1 != mapspot5,
if(plugin[mapspot5].animated,
set(plugin[mapspot5].frame , 0);
set(plugin[mapspot5].ypos , 0);
set(plugin[mapspot5].animationCounter, 0)
txtadd(plugin[mapspot5].crop,'0|0|',get(plugin[mapspot5].framewidth),'|',get(plugin[mapspot5].frameheight));
,
set(plugin[mapspot5].blingCounter, 0)
)
);
resetmapspot(mapspot5);
if (%1 != mapspot6,
if(plugin[mapspot6].animated,
set(plugin[mapspot6].frame , 0);
set(plugin[mapspot6].ypos , 0);
set(plugin[mapspot6].animationCounter, 0)
txtadd(plugin[mapspot6].crop,'0|0|',get(plugin[mapspot6].framewidth),'|',get(plugin[mapspot6].frameheight));
,
set(plugin[mapspot6].blingCounter, 0)
)
);
resetmapspot(mapspot6);
if (%1 != mapspot7,
if(plugin[mapspot7].animated,
set(plugin[mapspot7].frame , 0);
set(plugin[mapspot7].ypos , 0);
set(plugin[mapspot7].animationCounter, 0)
txtadd(plugin[mapspot7].crop,'0|0|',get(plugin[mapspot7].framewidth),'|',get(plugin[mapspot7].frameheight));
,
set(plugin[mapspot7].blingCounter, 0)
)
);
resetmapspot(mapspot7);
if (%1 != mapspot8,
if(plugin[mapspot8].animated,
set(plugin[mapspot8].frame , 0);
set(plugin[mapspot8].ypos , 0);
set(plugin[mapspot8].animationCounter, 0)
txtadd(plugin[mapspot8].crop,'0|0|',get(plugin[mapspot8].framewidth),'|',get(plugin[mapspot8].frameheight));
,
set(plugin[mapspot8].blingCounter, 0)
)
);
resetmapspot(mapspot8);
unselectmapspotsbutpassed(%1);
if(plugin[%1].animated,
inc(plugin[%1].animationCounter, 1);
if(plugin[%1].animationCounter == 1,
animatemapspot(%1, 0.1);
);
,
inc(plugin[%1].blingCounter,1);
if(plugin[%1].blingCounter == 1,
blingmapspot(%1);
);
);
tween(plugin[%1].alpha, 0.0, 0.8, easeInSine );
tween(plugin[%1].scale, 1.5, 0.8, easeOutCubic);
tween(, , 0.8, , resetmapspot(%1);
if(plugin[%1].blingCounter > 0, blingmapspot(%1);););
set(plugin[%1].scale,1);
set(plugin[%1].alpha,1);
ifnot (stopSequence === undefined,
set(stopSequence, true);
wait(0);
);