<krpano>
	<This scenename="#SCENENAME#" Next="" Prev="" Title="" time_pano="#PANOTIME#" time_camer="#CAMERTIME#" shutter="#SHUTTER#" aperture="#APERTURE#" iso="#ISO#"/>
	<location gps_lon="#LON#" gps_lat="#LAT#" picmap_url="" picmap_x="" picmap_y=""/>
	<scenemusic ID="SYSTEMSCENESOUND" Enabled="off" Url="" Volume="1.0" Pan="0.0" Loops="0" PositionEnabled="off" ath="0" atv="0" range="90" OnComplete=""/>	
	<include url="../GroupScenes.xml"/>
	<image type="CUBE" multires="false">
		<cube url="cube/cube_%s.jpg"/>
	</image>
	<view fovtype="DFOV" maxpixelzoom="" hlookat="0" vlookat="0" fov="90" fovmin="60" fovmax="120" limitview="range" hlookatmin="-180" hlookatmax="180" vlookatmin="-90" vlookatmax="90"/>
	<events onxmlcomplete="VRM_OnXmlComplete();
//showlog(); 
set(_thisorder,get(Group.Scenes.sceneitem[get(This.scenename)].Order));
trace(&quot;_thisorder=&quot;,_thisorder);
set(GName,get(Group.groupname));
trace(&quot;GName=&quot;,GName);
set(_nextorder,0);
set(_prevorder,0);
set(_count,get(Group.Scenes.SceneItem.Count));
trace(&quot;_count=&quot;,_count);
if(_thisorder LT _count,add(_nextorder,_thisorder,1),set(_nextorder,1));
if(_thisorder GT 1,sub(_prevorder,_thisorder,1),set(_prevorder,get(_count)));
for(set(i,0),i LT _count,inc(i),
    if(
       Group.Scenes.SceneItem[get(i)].order === _nextorder, 
       set(This.Next,get(Group.Scenes.SceneItem[get(i)].Name));
       txtadd(This.Next,get(GName),&quot;/&quot;,get(This.Next));
    );
    if(
       Group.Scenes.SceneItem[get(i)].order === _prevorder, 
       set(This.Prev,get(Group.Scenes.SceneItem[get(i)].Name));
       txtadd(This.Prev,get(GName),&quot;/&quot;,get(This.Prev));
    );		 
);
delete(_thisorder,_count,_nextorder,_prevorder,GName);
CallSkin_SceneOnXMLComplete(get(This.scenename));
stopsound(get(scenemusic.ID));
set(flag,get(scenemusic.Enabled));
if(flag==on,delayedcall(1,VRM_PlaySceneMusic();););" onpreviewcomplete="VRM_OnPreviewComplete();set(flag,get(autonext));if(flag==true,playsound(asound, %FIRSTXML%/Files/Sound/nosound.mp3, 1, VRM_LoadAutoScene(get(This.Next))));" onloadcomplete="VRM_OnLoadComplete();" onmousedown="" onmouseup="" onkeydown="" onkeyup=""/>
</krpano>