<krpano >

<inclhude url="%SWFPATH%/skin/debug.xml" />
<include url="data.xml" />

<inclusde url="%SWFPATH%/module/lightbox/lightbox.xml"/>
<include url="%SWFPATH%/skin/vtourskin.xml" />
<include url="%SWFPATH%/skin/language.xml" />
<include url="%SWFPATH%/skin/skin_phone/layout_desktop.xml" devices="desktop"/>
<include url="%SWFPATH%/skin/skin_phone/layout.xml" devices="mobile|tablet" />
<include url="%SWFPATH%/plugins/vr_help.xml" />
<include url="%SWFPATH%/plugins/common.xml" />
<include url="%SWFPATH%/plugins/krpano_vr.xml" />
<include url="%SWFPATH%/module/vrhotspot/vrhotspot.xml" />
<include url="%SWFPATH%/module/info/info.xml" />
<inclusde url="%SWFPATH%/module/direcths/direcths.xml" />
<include url="%SWFPATH%/module/thumb/core/thumbcore.xml" />
<include url="%SWFPATH%/module/map/map.xml" />
<include url="%SWFPATH%/module/sound/sound.xml" />
	<skin_settings maps="false"
	   maps_type="google"
	   maps_bing_api_key=""
	   maps_google_api_key=""
	   maps_zoombuttons="false"
	   maps_loadonfirstuse="true"
	   gyro="true"
	   gyro_keeplookingdirection="false"
	   webvr="true"
	   webvr_keeplookingdirection="true"
	   webvr_prev_next_hotspots="true"
	   autotour="false"
	   littleplanetintro="false"
	   followmousecontrol="false"
	   title="true"
	   thumbs="true"
	   thumbs_width="120" thumbs_height="80" thumbs_padding="10" thumbs_crop="0|40|240|160"
	   thumbs_opened="true"
	   thumbs_text="false"
	   thumbs_dragging="true"
	   thumbs_onhoverscrolling="false"
	   thumbs_scrollbuttons="false"
	   thumbs_scrollindicator="false"
	   thumbs_loop="false"
	   tooltips_buttons="false"
	   tooltips_thumbs="false"
	   tooltips_hotspots="false"
	   tooltips_mapspots="false"
	   deeplinking="false"
	   loadscene_flags="MERGE"
	   loadscene_blend="OPENBLEND(0.5, 0.0, 0.75, 0.05, linear)"
	   loadscene_blend_prev="SLIDEBLEND(0.5, 180, 0.75, linear)"
	   loadscene_blend_next="SLIDEBLEND(0.5,   0, 0.75, linear)"
	   loadingtext=""
	   layout_width="100%"
	   layout_maxwidth="814"
	   controlbar_width="-24"
	   controlbar_height="40"
	   controlbar_offset="20"
	   controlbar_offset_closed="-40"
	   controlbar_overlap.no-fractionalscaling="10"
	   controlbar_overlap.fractionalscaling="0"
	   design_skin_images="vtourskin.png"
	   design_bgcolor="0x006666"
	   design_bgalpha="0.8"
	   design_bgborder="0"
	   design_bgroundedge="1"
	   design_bgshadow="0 4 10 0x000000 0.3"
	   design_thumbborder_bgborder="3 0xFFFFFF 1.0"
	   design_thumbborder_padding="2"
	   design_thumbborder_bgroundedge="0"
	   design_text_shadow="1"
       design_text_css="
									color:#FFFFFF; 
									font-family: Regular-font;
									font-size:11px;
									text-align:center; 
									background-color: #004f71;
									padding:10px 20px 10px 20px;
									height:auto;
									border-radius: 25px;
									border:solid 2px #ffda7b;
									
									"
				   design_sound_css="
									color:#FFFFFF; 
									font-family: menu-bold;
									font-size:11px;
									text-align:center; 
									background-color: #004f71;
									padding:10px 20px 10px 20px;
									height:auto;
									border-radius: 25px;
									border:solid 1px #ffda7b;
									
									"
				  design_menu_css="
									color:#006666; 
									font-family:Regular-font;
									font-size:12px;
								    display:block;
									text-align:center ; 
									background-color: #ffffff;
									padding-top:15px;
									padding-bottom:2px;
									height:30px;
									border-radius: 10px;
									border:solid 0px black;
									align-content: center;
									"
			    design_sub_css="
									color:#006666; 
									font-family:Regular-font;
									font-size:11px;
									text-align:center; 
									background-color: #ffffff;
									padding:15px 20px 15px 20px;
									height:autopx;
									border-radius: 0px;
									border:solid 1px white;
									align-content: center;
									"           
                 design_toolbar_text="	color:#FFFFFF; 
									font-family: Regular-font;
									font-size:7px;
									text-align:center; 
									;"  
                 design_menuthumb_text="
                                    color:#FFFFFF; 
									font-family: Regular-font;
									font-size:10px;
									text-align:center; 
									;"  
                  design_info_text="
                                    color:#FFFFFF; 
									font-family: Regular-font;
									font-size:14px;
									text-align:justify; 
									;"  
                   
                   
                design_toolbar_text_mo="	color:#FFFFFF; 
									font-family: Regular-font;
									font-size:5px;
									text-align:center; 
									;"  
                   
                   
	   />
	
<!-- startup action - load the first scene -->
<action name="startup" autorun="onstart">
	if(startscene === null OR !scene[get(startscene)], copy(startscene,scene[0].name); );
	loadscene(get(startscene), null, MERGE);
	if(startactions !== null, startactions() );
	delayedcall(.5,open_thumb());
;</action>

<events name="hiddfe" keep="true"   onloadcomplete="if(scenedata[get(xml.scene)].s3d,set(layer[mode3d_container].visible,1);set(layer[dollhouse_box].onclick,load3d(calc(scenedata[get(xml.scene)].s3d)));set(layer[floorplan_box].onclick,load3dl(calc(scenedata[get(xml.scene)].s3d))),set(layer[mode3d_container].visible,0););set_info();  if(language==vi,set(layer[tour_title].html,calc(tour_title+': '+ scenedata[get(xml.scene)].title_vi));,language==en,set(layer[tour_title].html,calc(tour_titleen+': '+scenedata[get(xml.scene)].title_en));,language==cn,set(layer[tour_title].html,calc(tour_titlecn+': '+scenedata[get(xml.scene)].title_cn)););"    />

<!--  loading percent text  -->
<!--  loading percent events  -->
<events name="loadingpercent" keep="true" onxmlcomplete="loadingpercent_startloading();" onloadcomplete="delayedcall(0.25, loadingpercent_stoploading() );"/>
<!--  loading percent graphics/text  -->
<layer name="loadingpercent_text" keep="true" type="text" align="center" background="true" bgalpha=".63" border="false" autoheight="true" css="text-align:center; color:#FFFFFF; font-family:Regular-font; font-weight:bold; font-size:16px;;" padding="10 20 10 20" bgcolor="0x006666"  html=""/>
<!--  loading percent actions  -->
<action name="loadingpercent_startloading"> set(loadingpercent_isloading, true); set(layer[loadingpercent_text].visible, true); asyncloop(loadingpercent_isloading, mul(pv, progress.progress, 100); roundval(pv,0); txtadd(layer[loadingpercent_text].html, 'Loading ', get(pv), '%'); ); </action>
<action name="loadingpercent_stoploading"> set(loadingpercent_isloading, false); set(layer[loadingpercent_text].visible, false); </action>

<events name="loadinganimation" keep="true" onxmlcomplete="loadinganimation_startloading();" onloadcomplete="delayedcall(0.25, loadinganimation_stoploading() );"/>
<!--  loading animation graphic  -->
<layer name="loadinganimation" keep="true" visible="false" url="%SWFPATH%/skin/loadinganimation.png" scale=".6" crop="0|0|64|64" align="center" y="5%" frame="0" frames="8"/>
<!--  loading percent actions  -->
<action name="loadinganimation_startloading"> set(loadinganimation_isloading, true); set(layer[loadinganimation].visible, true); loadinganimation_animate(); </action>
<action name="loadinganimation_stoploading"> set(loadinganimation_isloading, false); set(layer[loadinganimation].visible, false); </action>
<action name="loadinganimation_animate"> mul(xcrop, layer[loadinganimation].frame, 64); txtadd(layer[loadinganimation].crop, get(xcrop), '|0|64|64'); if(loadinganimation_isloading, inc(layer[loadinganimation].frame); if(layer[loadinganimation].frame GE layer[loadinganimation].frames, set(layer[loadinganimation].frame,0)); delayedcall(0.05, loadinganimation_animate() ); ); </action>


<action name="load3d"> 
set_prev();set(prev_h,get(view.hlookat));if(scene[get(xml.scene)].name!=%1,set(prev_scene,get(xml.scene));loadscene(%1,null, MERGE|PRELOAD, BLEND(0.2))); if(view.vlookat GT 80,tween(view.vlookat,20));set(view.hlookat,get(prev_h));

</action>

<action name="load3dl"> 
set_prev();set(prev_h,get(view.hlookat));if(scene[get(xml.scene)].name!=%1,set(prev_scene,get(xml.scene));loadscene(%1,null, MERGE|PRELOAD, BLEND(0.2))); lookto(0,90,120,default,true,true); 

</action>

</krpano>