<?xml version="1.0" encoding="UTF-8"?>
<krpano version="1.0.8.14" onstart="startup();">
<action name="startup">

loadscene(stg:, null, MERGE);
delayedcall(0.5, plugin[combobox].selectIdItem(stg:) );

if(scene.count GT 1, if(scene.count LE 28, buildthumbs(); ));
</action>

<progress showload="none" showwait="loopings(0xFFFFFF)"/>
<view stereographic="false" fisheye="0.0" fov="80" hlookat="0" vlookat="0"/>
<data name="infotext"></data>
<textstyle name="infostyle" origin="center" edge="center" yoffset="-39" textalign="center" background="false" border="false" fontsize="40" textcolor="0xFFFFFF" bold="false" effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);" showtime="1.0" fadeintime="1.0" fadetime="1.0"/>
<textstyle name="STYLE6" font="Arial" fontsize="18" bold="true" background="false" border="false" textcolor="0x000000" textalign="center" blendmode="layer" effect="glow(0xFFFFFF,0.85,4,4);dropshadow(3,25,0x333333,3,1);"/>
<autorotate enabled="true" waittime="0.0" speed="3.0" horizon="0.0" tofov="80.0"/>
<textstyle name="BUTTONSTYLE" font="Arial" fontsize="12" bold="true" italic="true" textcolor="0x000000" background="false" border="false" blendmode="layer" effect="glow(0xFFFFFF,0.85,4,4);dropshadow(2,45,0x000000,4,1);" origin="cursor" edge="bottom" xoffset="15" yoffset="-5" showtime="0.1" fadeintime="0.1" fadetime="0.1"/>
<textstyle name="INFOTEXT" font="Arial" fontsize="26" bold="true" italic="true" textcolor="0x000000" background="false" border="false" blendmode="layer" effect="glow(0xFFFFFF,0.85,4,4);dropshadow(2,45,0x000000,4,1);" origin="center" edge="center" xoffset="0" yoffset="0" showtime="2.0" fadeintime="0.25" fadetime="0.5"/>
<plugin name="combobox" url="//embed.virtual.ua/plugins/combobox.swf" alturl="//embed.virtual.ua/plugins/combobox.js" align="righttop" x="15" y="15" width="180" keep="true">
<item name="s507418" caption="chagari_01" onclick="loadscene(s507418, null, MERGE);"></item>
<item name="s507415" caption="chagari_02" onclick="loadscene(s507415, null, MERGE);"></item>
<item name="s507416" caption="chagari_03" onclick="loadscene(s507416, null, MERGE);"></item>
<item name="s507417" caption="chagari_04" onclick="loadscene(s507417, null, MERGE);"></item>
<item name="s507411" caption="chagari_05" onclick="loadscene(s507411, null, MERGE);"></item>
<item name="s507414" caption="chagari_06" onclick="loadscene(s507414, null, MERGE);"></item>
<item name="s507412" caption="chagari_07" onclick="loadscene(s507412, null, MERGE);"></item>
<item name="s507413" caption="chagari_08" onclick="loadscene(s507413, null, MERGE);"></item>

</plugin>
<style name="button" url="//embed.virtual.ua/skin/buttons.png" keep="true"></style>
<plugin name="in" devices="desktop" align="bottom" x="-160" y="10" style="button" crop="160|0|40|40" onovercrop="160|40|40|40" ondowncrop="160|80|40|40" ondown="set(fov_moveforce,-1);" onup="set(fov_moveforce,0);"></plugin>
<plugin name="out" devices="desktop" align="bottom" x="-120" y="10" style="button" crop="200|0|40|40" onovercrop="200|40|40|40" ondowncrop="200|80|40|40" ondown="set(fov_moveforce,+1);" onup="set(fov_moveforce,0);"></plugin>
<plugin name="left" devices="desktop" align="bottom" x="-80" y="10" style="button" crop="0|0|40|40" onovercrop="0|40|40|40" ondowncrop="0|80|40|40" ondown="set(hlookat_moveforce,-1);" onup="set(hlookat_moveforce,0);"></plugin>
<plugin name="right" devices="desktop" align="bottom" x="-40" y="10" style="button" crop="40|0|40|40" onovercrop="40|40|40|40" ondowncrop="40|80|40|40" ondown="set(hlookat_moveforce,+1);" onup="set(hlookat_moveforce,0);"></plugin>
<plugin name="up" devices="desktop" align="bottom" x="+0" y="10" style="button" crop="80|0|40|40" onovercrop="80|40|40|40" ondowncrop="80|80|40|40" ondown="set(vlookat_moveforce,-1);" onup="set(vlookat_moveforce,0);"></plugin>
<plugin name="down" devices="desktop" align="bottom" x="+40" y="10" style="button" crop="120|0|40|40" onovercrop="120|40|40|40" ondowncrop="120|80|40|40" ondown="set(vlookat_moveforce,+1);" onup="set(vlookat_moveforce,0);"></plugin>
<plugin name="starbtn" devices="desktop" align="bottom" x="+80" y="10" style="button" crop="240|0|40|40" onovercrop="240|40|40|40" ondowncrop="240|80|40|40" onhover="showtext(Приховати кнопки, BUTTONSTYLE);" onclick="hideui();"></plugin>
<plugin name="dragmode" devices="desktop" align="bottom" x="+120" y="10" style="button" crop="400|0|40|40" onovercrop="400|40|40|40" ondowncrop="400|80|40|40" onhover="showtext(Змінити управління, BUTTONSTYLE);" onclick="dragcursor();" visible="true"></plugin>
<plugin name="movemode" devices="desktop" align="bottom" x="+120" y="10" style="button" crop="360|0|40|40" onovercrop="360|40|40|40" ondowncrop="360|80|40|40" onhover="showtext(Змінити управління, BUTTONSTYLE);" onclick="qtvrcursor();" visible="false"></plugin>
<plugin name="openfs" devices="desktop" align="bottom" x="+160" y="10" style="button" crop="280|0|40|40" onovercrop="280|40|40|40" ondowncrop="280|80|40|40" onhover="showtext(Повний екран, BUTTONSTYLE);" onclick="set(fullscreen,true);" visible="true"></plugin>
<plugin name="closefs" devices="desktop" align="bottom" x="+160" y="10" style="button" crop="320|0|40|40" onovercrop="320|40|40|40" ondowncrop="320|80|40|40" onhover="showtext(Звичайний режим, BUTTONSTYLE);" onclick="set(fullscreen,false);" visible="false"></plugin>
<events name="defaultskin" keep="true" devices="desktop" onxmlcomplete="setuppano();" onenterfullscreen="set(plugin[openfs].visible,false); set(plugin[closefs].visible,true);" onexitfullscreen="set(plugin[openfs].visible,true); set(plugin[closefs].visible,false);" onkeyup="if(keycode == 32, showui());"></events>
<plugin name="androidzoom_out" devices="android+flash" keep="true" url="//embed.virtual.ua/skin/androidbuttons.png" alpha="0.5" crop="0|0|71|64" align="rightbottom" x="88" y="10" ondown="set(crop,0|64|71|64); set(fov_moveforce,+1);" onup="set(crop,0|0|71|64); set(fov_moveforce,0);"></plugin>
<plugin name="androidzoom_in" devices="android+flash" keep="true" url="//embed.virtual.ua/skin/androidbuttons.png" alpha="0.5" crop="71|0|78|64" align="rightbottom" x="10" y="10" ondown="set(crop,71|64|78|64); set(fov_moveforce,-1);" onup="set(crop,71|0|78|64); set(fov_moveforce,0);"></plugin>
<plugin name="androidfsbutton" devices="android+flash" keep="true" url="//embed.virtual.ua/skin/androidbuttons.png" alpha="0.5" crop="149|0|64|64" align="righttop" x="0" y="0" onclick="switch(fullscreen);"></plugin>
<events name="androidfsbutton" devices="android+flash" keep="true" onenterfullscreen="set(plugin[androidfsbutton].crop,149|64|64|64);" onexitfullscreen="set(plugin[androidfsbutton].crop,149|0|64|64);"></events>
<contextmenu>
<item caption="KRPANO"></item>
<item caption="FULLSCREEN"></item>
<item caption="Нормальний вигляд" onclick="view_normal();" separator="true"></item>
<item caption="Риб`яче око" onclick="view_fisheye();"></item>
<item caption="Архітектурний вигляд" onclick="view_architectural();"></item>
<item caption="Стереографічний вигляд" onclick="view_stereographic();"></item>
<item caption="Маленька планета" onclick="view_littleplanet();"></item>
</contextmenu>
<action name="hideui">
set(plugin.enabled,false); set(hotspot.enabled,false); tween(plugin.alpha, 0.0, 0.5, default, set(plugin.visible,false)); tween(hotspot.alpha, 0.0, 0.5, default, set(hotspot.visible,false)); delayedcall(0.5, showtext('...натисність ПРОБІЛ для того, щоб повернути...', INFOTEXT));
</action>
<action name="showui">
set(plugin.enabled,true); set(hotspot.enabled,true); set(plugin.visible,true); set(hotspot.visible,true); tween(plugin.alpha, 1.0); tween(hotspot.alpha, 1.0);
</action>
<action name="dragcursor">
set(plugin[dragmode].visible, false); set(plugin[movemode].visible, true); set(control.mousetype, drag2D); set(cursors.url, //embed.virtual.ua/skin/drag-cursors.png); set(cursors.type, drag); set(cursors.move, 2|0|30|32); set(cursors.drag, 37|0|30|32);
</action>
<action name="qtvrcursor">
set(plugin[dragmode].visible, true); set(plugin[movemode].visible, false); set(control.mousetype, moveto); set(cursors.url, //embed.virtual.ua/skin/qtvr-cursors.png); set(cursors.type, 8way); set(cursors.move, 0|0|16|16); set(cursors.drag, 16|0|16|16); set(cursors.arrow_u, 32|0|16|16); set(cursors.arrow_d, 48|0|16|16); set(cursors.arrow_l, 64|0|16|16); set(cursors.arrow_r, 80|0|16|16); set(cursors.arrow_lu, 96|0|16|16); set(cursors.arrow_ru, 112|0|16|16); set(cursors.arrow_rd, 128|0|16|16); set(cursors.arrow_ld, 144|0|16|16);
</action>
<action name="view_normal">
tween(view.fovmax, 150.0, distance(179, 1.00), easeoutquad); tween(view.architectural, 0.0, distance(1.0, 0.45), easeoutquad); tween(view.fisheye, 0.0, distance(1.0, 0.45), easeoutquad, set(view.stereographic,false); set(view.pannini,false); set(display.flash10,on); );
</action>
<action name="view_fisheye">
set(display.flash10,off); tween(view.architectural, 0.0, distance(1.0, 0.30), easeoutquad); tween(view.fisheye, 0.0 ,distance(1.0, 0.30), easeoutquad, set(view.stereographic,false); set(view.pannini,false); set(view.fovmax,179); tween(view.fisheye, 0.35, distance(1.0,1.25)); );
</action>
<action name="view_architectural">
tween(view.fovmax, 150.0, distance(179, 1.00), easeoutquad); tween(view.architectural, 1.0, distance(1.0, 0.45), easeoutquad); tween(view.fisheye, 0.0, distance(1.0, 0.45), easeoutquad, set(view.stereographic,false);set(view.pannini,false);set(display.flash10,on); );
</action>
<action name="view_stereographic">
set(display.flash10,off); tween(view.architectural, 0.0, 0.25); set(backtonormalfirst,false); if(view.pannini == true, set(backtonormalfirst,true) ); if(view.stereographic == false, set(backtonormalfirst,true) ); if(backtonormalfirst, tween(view.fisheye, 0.0 ,distance(1.0, 0.25), easeoutquad, WAIT); ); set(view.pannini, false); set(view.stereographic, true); set(view.fovmax, 150); tween(view.fisheye, 1.0, distance(1.0, 0.75), easeoutquad);
</action>
<action name="view_pannini">
set(display.flash10,off); tween(view.architectural, 0.0, 0.25); set(backtonormalfirst,false); if(view.pannini == false, set(backtonormalfirst,true) ); if(view.stereographic == false, set(backtonormalfirst,true) ); if(backtonormalfirst, tween(view.fisheye, 0.0 ,distance(1.0, 0.25), easeoutquad, WAIT); ); set(view.pannini, true); set(view.stereographic, true); set(view.fovmax, 150); tween(view.fisheye, 1.0, distance(1.0, 0.75), easeoutquad);
</action>
<action name="view_littleplanet">
set(display.flash10,off); tween(view.architectural, 0.0, 0.25); tween(view.vlookat, 90, distance(179, 1.50), easeoutquad); set(backtonormalfirst,false); if(view.pannini == true, set(backtonormalfirst,true) ); if(view.stereographic == false, set(backtonormalfirst,true) ); if(backtonormalfirst, tween(view.fisheye, 0.0 ,distance(1.0, 0.25), easeoutquad, WAIT); ); set(view.pannini, false); set(view.stereographic, true); set(view.fovmax, 150); tween(view.fisheye, 1.0, distance(1.0, 0.75), easeoutquad); tween(view.fov, 150, distance(179, 0.75), easeoutquad);
</action>
<action name="setuppano">
qtvrcursor();
if(ispartialpano === true, set(showviewitems,false), set(showviewitems,true)); set(contextmenu.item[2].visible, get(showviewitems)); set(contextmenu.item[3].visible, get(showviewitems)); set(contextmenu.item[4].visible, get(showviewitems)); set(contextmenu.item[5].visible, get(showviewitems)); set(contextmenu.item[6].visible, get(showviewitems)); set(contextmenu.item[7].visible, get(showviewitems));
</action>
<style name="hotspot_ani_black" url="//embed.virtual.ua/hotspots/hotspot_ani_black_64x64x20.png" crop="0|0|64|64" framewidth="64" frameheight="64" frame="0" lastframe="19" onloaded="hotspot_animate();" altonloaded="if(isphone, mul(scale,2)); onloaded();"></style>
<style name="hotspot_ani_white" url="//embed.virtual.ua/hotspots/hotspot_ani_white_64x64x20.png" crop="0|0|64|64" framewidth="64" frameheight="64" frame="0" lastframe="19" onloaded="hotspot_animate();" altonloaded="if(isphone, mul(scale,2)); onloaded();"></style>
<action name="hotspot_animate">
inc(frame,1,get(lastframe),0); mul(ypos,frame,frameheight); txtadd(crop,'0|',get(ypos),'|',get(framewidth),'|',get(frameheight)); delayedcall(0.03, if(loaded, hotspot_animate() ) );
</action>
<scene name="s507418" title="chagari_01" onstart="" thumburl="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_01/thumb.jpg">
<view fisheye="0.0" fov="80" hlookat="0" vlookat="0"></view>
<preview url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_01/preview.jpg"></preview>
<image>
<cube url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_01/pano_%s.jpg"></cube>
<mobile>
<cube url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_01/mobile_%s.jpg"></cube>
</mobile>
<tablet>
<cube url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_01/tablet_%s.jpg"></cube>
</tablet>
</image>
<hotspot name="nadirlogo" url="//embed.virtual.ua/pol.png" ath="0" atv="90" distorted="true" scale="1.0" rotate="0.0" rotatewithview="false" onclick="openurl('http://360.virtual.ua/', '_blank');"></hotspot>

</scene><scene name="s507415" title="chagari_02" onstart="" thumburl="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_02/thumb.jpg">
<view fisheye="0.0" fov="80" hlookat="0" vlookat="0"></view>
<preview url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_02/preview.jpg"></preview>
<image>
<cube url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_02/pano_%s.jpg"></cube>
<mobile>
<cube url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_02/mobile_%s.jpg"></cube>
</mobile>
<tablet>
<cube url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_02/tablet_%s.jpg"></cube>
</tablet>
</image>
<hotspot name="nadirlogo" url="//embed.virtual.ua/pol.png" ath="0" atv="90" distorted="true" scale="1.0" rotate="0.0" rotatewithview="false" onclick="openurl('http://360.virtual.ua/', '_blank');"></hotspot>

</scene><scene name="s507416" title="chagari_03" onstart="" thumburl="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_03/thumb.jpg">
<view fisheye="0.0" fov="80" hlookat="0" vlookat="0"></view>
<preview url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_03/preview.jpg"></preview>
<image>
<cube url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_03/pano_%s.jpg"></cube>
<mobile>
<cube url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_03/mobile_%s.jpg"></cube>
</mobile>
<tablet>
<cube url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_03/tablet_%s.jpg"></cube>
</tablet>
</image>
<hotspot name="nadirlogo" url="//embed.virtual.ua/pol.png" ath="0" atv="90" distorted="true" scale="1.0" rotate="0.0" rotatewithview="false" onclick="openurl('http://360.virtual.ua/', '_blank');"></hotspot>

</scene><scene name="s507417" title="chagari_04" onstart="" thumburl="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_04/thumb.jpg">
<view fisheye="0.0" fov="80" hlookat="0" vlookat="0"></view>
<preview url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_04/preview.jpg"></preview>
<image>
<cube url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_04/pano_%s.jpg"></cube>
<mobile>
<cube url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_04/mobile_%s.jpg"></cube>
</mobile>
<tablet>
<cube url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_04/tablet_%s.jpg"></cube>
</tablet>
</image>
<hotspot name="nadirlogo" url="//embed.virtual.ua/pol.png" ath="0" atv="90" distorted="true" scale="1.0" rotate="0.0" rotatewithview="false" onclick="openurl('http://360.virtual.ua/', '_blank');"></hotspot>

</scene><scene name="s507411" title="chagari_05" onstart="" thumburl="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_05/thumb.jpg">
<view fisheye="0.0" fov="80" hlookat="0" vlookat="0"></view>
<preview url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_05/preview.jpg"></preview>
<image>
<cube url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_05/pano_%s.jpg"></cube>
<mobile>
<cube url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_05/mobile_%s.jpg"></cube>
</mobile>
<tablet>
<cube url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_05/tablet_%s.jpg"></cube>
</tablet>
</image>
<hotspot name="nadirlogo" url="//embed.virtual.ua/pol.png" ath="0" atv="90" distorted="true" scale="1.0" rotate="0.0" rotatewithview="false" onclick="openurl('http://360.virtual.ua/', '_blank');"></hotspot>

</scene><scene name="s507414" title="chagari_06" onstart="" thumburl="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_06/thumb.jpg">
<view fisheye="0.0" fov="80" hlookat="0" vlookat="0"></view>
<preview url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_06/preview.jpg"></preview>
<image>
<cube url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_06/pano_%s.jpg"></cube>
<mobile>
<cube url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_06/mobile_%s.jpg"></cube>
</mobile>
<tablet>
<cube url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_06/tablet_%s.jpg"></cube>
</tablet>
</image>
<hotspot name="nadirlogo" url="//embed.virtual.ua/pol.png" ath="0" atv="90" distorted="true" scale="1.0" rotate="0.0" rotatewithview="false" onclick="openurl('http://360.virtual.ua/', '_blank');"></hotspot>

</scene><scene name="s507412" title="chagari_07" onstart="" thumburl="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_07/thumb.jpg">
<view fisheye="0.0" fov="80" hlookat="0" vlookat="0"></view>
<preview url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_07/preview.jpg"></preview>
<image>
<cube url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_07/pano_%s.jpg"></cube>
<mobile>
<cube url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_07/mobile_%s.jpg"></cube>
</mobile>
<tablet>
<cube url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_07/tablet_%s.jpg"></cube>
</tablet>
</image>
<hotspot name="nadirlogo" url="//embed.virtual.ua/pol.png" ath="0" atv="90" distorted="true" scale="1.0" rotate="0.0" rotatewithview="false" onclick="openurl('http://360.virtual.ua/', '_blank');"></hotspot>

</scene><scene name="s507413" title="chagari_08" onstart="" thumburl="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_08/thumb.jpg">
<view fisheye="0.0" fov="80" hlookat="0" vlookat="0"></view>
<preview url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_08/preview.jpg"></preview>
<image>
<cube url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_08/pano_%s.jpg"></cube>
<mobile>
<cube url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_08/mobile_%s.jpg"></cube>
</mobile>
<tablet>
<cube url="//embed.virtual.ua/panorams/booking/hotels/lviv/chagari/chagari_08/tablet_%s.jpg"></cube>
</tablet>
</image>
<hotspot name="nadirlogo" url="//embed.virtual.ua/pol.png" ath="0" atv="90" distorted="true" scale="1.0" rotate="0.0" rotatewithview="false" onclick="openurl('http://360.virtual.ua/', '_blank');"></hotspot>

</scene>
<action name="buildthumbs">
if(%1 != NEXT, set(i,0)); if(i LT scene.count, copy(thumb, scene[get(i)].thumburl); txtadd(thumbname,\'thumb_\',get(i)); addplugin(get(thumbname)); set(plugin[get(thumbname)].url, get(thumb)); set(plugin[get(thumbname)].keep, true); set(plugin[get(thumbname)].align, leftbottom); set(plugin[get(thumbname)].width, 40); set(plugin[get(thumbname)].height, 40); mul(plugin[get(thumbname)].x, i,3); mul(plugin[get(thumbname)].y, i,3); add(plugin[get(thumbname)].x, 5); add(plugin[get(thumbname)].y, 5); copy(plugin[get(thumbname)].xsmall, plugin[get(thumbname)].x); copy(plugin[get(thumbname)].ysmall, plugin[get(thumbname)].y); add(plugin[get(thumbname)].zorder, 100, i); set(plugin[get(thumbname)].effect, glow(0xFFFFFF,1.0,2,10000)); set(plugin[get(thumbname)].jsborder, \'1px solid #FFFFFF\'); copy(plugin[get(thumbname)].thumbpos, i); set(plugin[get(thumbname)].linkedscene, get(scene[get(i)].name) ); set(plugin[get(thumbname)].onclick, openthumbs() ); inc(i); buildthumbs(NEXT); );
</action>
<action name="openthumb">
if(%2 != NEXT, set(pos,0); copy(curpos, plugin[%1].thumbpos); set(xdst, 0); set(ydst, 0); ); if(pos LT curpos, inc(pos); inc(ydst,110); sub(ymax, stageheight, 120); if(ydst GT ymax, inc(xdst,110);set(ydst,0); ); openthumb(%1,NEXT); , add(xdst,10); add(ydst,10); tween(plugin[%1].x, get(xdst) ); tween(plugin[%1].y, get(ydst) ); tween(plugin[%1].width, 100); tween(plugin[%1].height, 100); );
</action>
<action name="closethumb">
tween(plugin[%1].x, get(plugin[%1].xsmall)); tween(plugin[%1].y, get(plugin[%1].ysmall)); tween(plugin[%1].width, 40); tween(plugin[%1].height, 40);
</action>
<action name="openthumbs">
if(%1 != NEXT, set(i,0); set(events.onclick, set(events.onclick,null); delayedcall(0.1, closethumbs() ); ); ); if(i LT scene.count, txtadd(thumbname,\'thumb_\',get(i)); openthumb(get(thumbname)); set(plugin[get(thumbname)].onclick, set(events.onclick,null); closethumbs(); loadscene(get(linkedscene),null,MERGE,BLEND(1)); ); inc(i); openthumbs(NEXT); );
</action>
<action name="closethumbs">
if(%1 != NEXT, set(i,0)); if(i LT scene.count, txtadd(thumbname,\'thumb_\',get(i)); closethumb(get(thumbname)); set(plugin[get(thumbname)].onclick, openthumbs() ); inc(i); closethumbs(NEXT); );
</action>

</krpano>