﻿ <krpano version="1.19" title="Virtual Tour">
 
	<include url="%FIRSTXML%/plugins/showtext.xml" />

	<!-- /////////////////////////////////////////////////  План  /////////////////////////////////////////////////////////////////////////////////////// -->
	<floor_plan maxpixelzoom="4000"	/>
	
	<!-- Стиль плана --> 
	<style name="plan_layer" type="container" keep="true" enabled="false" visible="false"  />
	
	<!-- style point   -->		
	<style  name="point_v_fpr"  keep="true"  edge="center" x="80" y="80"  parent="image_floorplan_SM"   edit_point="false"	start_p="true"  zorder="50" capture=""
			scale="get:plan_settings.point_scale"
			onhover="if(plan_settings.title_V, showtext(get(tit_scena), STYLE_title_spot); );"
			ondown="ondovn_point_V();"
			ath="0" atv="0" fov="90"
			tit_scena=""
		/>
	
		
		
	<!-- Стиль текста -->         		   
	<style name="text_plan1" type="text" enabled="false" css="font-family:Arial; color:#FFFFFF; font-size:13px;" 
		    x="0" y="0" padding="" keep="true" align="left" background="false" backgroundcolor="0x2D3E50" backgroundalpha="0.7"			   
			border="false" bordercolor="0xFFFFFF" borderalpha="0.8" borderwidth="1.0"	roundedge="2"    
			shadow="5.0"  shadowrange="3.0"  shadowangle="45"  shadowcolor="0x2D3E50"  shadowalpha="0"
			textshadow="0.0" textshadowrange="4.0" textshadowangle="45" textshadowcolor="0x000000" textshadowalpha="1.0"
			wordwrap="false" 
		  />
	<!-- title spot -->
	<textstyle name="STYLE_title_spot"
	           font="Acrom" fontsize="16"  bold="false" italic="false" xoffset="0" yoffset="-20"
	           background="true" backgroundcolor="0x555555" backgroundalpha="0.5"
	           border="false" borderwidth="0" bordercolor="0xFFFFFF" roundedge="5"
	           textcolor="0xFFFFFF"
	           padding="4 5"
	           textalign="center" textshadowrange="2"   
			   textshadow ="0"
	        />	
	<!-- Стиль текста в списке планов     onloaded="delayedcall(1,cont_width_flpl(pixelwidth) );" -->         		   
	<style 	name="text_flpl" enabled="true" bgcapture="true"  keep="true" align="lefttop" x="0" y="0" width="" height="30" zorder="95" handcursor="true" type="text" css="color:#00FFFF; font-size:16px;"  vcenter="true" padding="2 10 2 10"  bg="false" bgcolor="0x000000" bgalpha="0.3" bgroundedge="0"  txtshadow="0 0 4 0x000000 1" onover="set(bg,true);"  onout="set(bg,false);"
			
		/>
		
	<!-- Маркер -->
	<layer name="marker_list_flpl" keep="true" type="text" align="righttop" edge="center" x="16" y="10" html="▼" css="color:#FFFFFF;"  bg="false"  alpha="1.0"  enabled="false" parent="scroll_list_flpl" zorder="97"  />	
	
	
	<!-- style point  copy(tit_scena, scene[get(erscena)].title);   -->		
	<style  name="point_fpr"  keep="true"  edge="center" x="80" y="80"  parent="image_floorplan_SM" scalechildren="true" edit_point="false"	start_p="true" zorder="50"
			scale="get:plan_settings.point_scale"
			onhover="if(plan_settings.title_spot, showtext(get(tit_scena), STYLE_title_spot); );"
		/>
		
 
		
	<!-- Раздвигать панель  -->		  
	<style 	name="rastyanuty_flpl"  type="container" keep="true"  edge="center" x="0"  y="0" width="30"  height="30" zorder="99" parent="container_plan1" 
			bgcolor="0xDDDDDD" bgalpha="0.4" alpha="1"   bgcapture="true" bgroundedge="10" bgborder="1 0x57606a 0.8"
			onover="set(bgalpha,1); tween(scale,1.4,0.05); tween(bgroundedge,12,0.05); set(cursors.url,'%FIRSTXML%/skin/rotate_device.png'); "  
			onout="set(bgalpha,0.4); tween(scale,1,0.05); tween(bgroundedge,10,0.05);"
		/>	
	<!-- radar  floorplan_SM/editor/style_Flpl.xml - layer name="radarEFR"  add(layer[radarEFR].heading, 45);  -->
	<layer name="radarEFR" keep="true"  url.html5="%FIRSTXML%/plugins/radar.js" align="lefttop" edge="center" zorder="51" parent="image_floorplan_SM"  
	       scale="get:plan_settings.radar_scale" fillalpha="0.5" fillcolor="0x7F5F3F" linewidth="1.0" linecolor="0xE0E0A0" linealpha="0.5" alpha="1" enabled="true"
		   heading="0" headingoffset="180" editmode="true"   
		/>
	<!-- Картинка активной точки -->
	<layer  name="activ_tochka_EFR"  keep="true" url="%FIRSTXML%/floorplan_SM/iconPoint/orange.png" align="center" parent="radarEFR" 
			scalechildren="true" zorder="50" enabled="false" visible="false"
			scale="1"
		/>
	<!--  Кнопка - показать-спрятать план -->
	<layer 	name="plan_button"   keep="true" align="righttop"  x="9" y="105"  url="picture/plan_button.png" scale="0.6"  alpha="0.8" zorder="99" rotate="0"
				onover="set(alpha,1); 
						if(plan_settings.onhover_button_open_plan, if(layer[container_plan1].enabled,,open_plan()););"  
				onout="set(alpha,0.8);"
				onclick="if(layer[container_plan1].enabled,  close_plan(); , open_plan(); );"

		/> 
	<!--  Кнопка развернуть план на 90% -->
	<layer 	name="plan_button2"   keep="true" align="right" edge="center"  x="42"   url="picture/fullmap1.png" height="18" width="prop"  alpha="0.6" zorder="93"  parent="top_container_plan"
				onover="set(alpha,1);" onout="set(alpha,0.6);" onclick="svern_planSM_2();"
				visible.mobile="false"
				enabled.mobile="false"
				visible="get:plan_settings.button_fullscreen"
				enabled="get:plan_settings.button_fullscreen"
		/> 		
	
	<!--/////////////////////// Раздвигающийся контейнер ///////////////////////////-->
	
		<!-- Крестик закрыть план -->
		<layer 	name="knopka_plan"   keep="true" align="right" edge="center" x="15"   url="picture/close.png" height="18" width="prop"  alpha="0.6" zorder="92"  parent="top_container_plan"
				onover="set(alpha,1);" onout="set(alpha,0.6);"
				onclick="close_plan(); " /> 	
				
				
				
				
		<!-- Раздвигать панель право -->		  
		<layer name="rastyanuty_right"  style="rastyanuty_flpl" align="rightbottom" 
				ondown="rastyanutyHS_L();
						set(razvern_pl,true);
						set(layer[plan_button2].url,%FIRSTXML%/floorplan_SM/editor/picture/fullmap1.png);" 
				visible="get:plan_settings.angle_placemark"
				enabled="get:plan_settings.angle_placemark"/>
		<!-- Раздвигать панель в лево -->		  
		<layer name="rastyanuty_left" style="rastyanuty_flpl" align="leftbottom" 
				ondown="rastyanutyHS_R();
						set(razvern_pl,true);
						set(layer[plan_button2].url,%FIRSTXML%/floorplan_SM/editor/picture/fullmap1.png);"
				visible="get:plan_settings.angle_placemark"
				enabled="get:plan_settings.angle_placemark"						/>

	
		

			
		
			
	<!-- /////////////////////////////////////////////////  Компас  /////////////////////////////////////////////////////////////////////////////////////// -->
	
	
   	<!-- Text Style1 / Стиль текста1 -->         		   
	<style name="text_Com1" type="text" css="font-family:Arial; color:#FFFFFF; font-size:18px;" capture="false"
			keep="true" edge="center"  alpha="1"
		    x="2" y="19" padding="3 3"  align="lefttop" background="false" enabled="false" visible="false" />
			
	<!-- Text Style2 / Стиль текста2 -->         		   
	<style name="text_Com2"  type="text" css="font-family:Arial; color:#FFFFFF; font-size:14px;" capture="false"
			keep="true" edge="center"  alpha="1"
		    x="2" y="19" padding="3 3"  align="lefttop" background="false"  enabled="false" visible="false" />
	
   <!-- The risk is long / Риска длинная --> 
    <style name="riska_compas" type="container" keep="true" edge="lefttop"  width="1" height="10" zorder="40" alpha="1" enabled="true"  
           bgcapture="true" bgcolor="0xFFFFFF" bgalpha="1" bgshadow="3 3 3 0x000000 0.8" 
		   parent="background_compass"
         />	 
		 
	<!-- The risk is short / Риска короткая --> 
    <style name="riska_compas2" type="container" keep="true" edge="lefttop"  width="1" height="5" zorder="40" alpha="1" enabled="true"  
            bgcapture="true" bgcolor="0xFFFFFF" bgalpha="1" bgshadow="3 3 3 0x000000 0.8" bgroundedge="0"
			parent="background_compass"
         />	 
		 
	<!-- Background under compass / Фон под компас --> 	 
	<layer name="background_compass"  type="container" keep="true" align="top" enabled="true" handcursor="true" bgcapture="true" 
	       y="-100" x="0"  width="100%" height="31" alpha="1" maskchildren="true"
	       bgcolor="0x555555"  bgalpha="0.7"  bgshadow="0 0 30 10 0x000000 0.4"  
		   onclick=""
		   ondown="draggingComp();" >
		   
		   <layer  name="target_comp"  type="container" keep="true"  bgcapture="true"  align="center"  alpha="0.7" width="1" height="150"
				   bgcolor="0xFF0000" bgalpha="1" 
		/>	
	</layer>	


    <layer name="S_comp" style="text_Com1"  html="[b]Ю[/b]" css="font-family:Arial; color:#267DFF; font-size:20px;" />	 
    <layer name="W_comp" style="text_Com1"  html="[b]З[/b]" />	
    <layer name="N_comp" style="text_Com1"  html="[b]C[/b]" css="font-family:Arial; color:#FF6F68; font-size:20px;"  />	
    <layer name="E_comp" style="text_Com1"  html="[b]В[/b]" />

    <layer name="SW_comp" style="text_Com2" html="ЮЗ" />	
    <layer name="NW_comp" style="text_Com2" html="СЗ" />	
    <layer name="NE_comp" style="text_Com2" html="СВ" />	
    <layer name="SE_comp" style="text_Com2" html="ЮВ" />	
	
       
    <!-- Show-hide the compass / Показать-спрятать компас -->
	<layer 	name="compass_button"   keep="true" align="righttop"  x="10" y="50"  url="picture/Compass.png" scale="0.4"  alpha="0" zorder="92" rotate="0" enabled="false"
			onover="set(alpha,1);" onout="set(alpha,0.8);"
			onclick="if(layer[background_compass].height == 0,tween(layer[background_compass].height,31); tween(layer[background_compass].alpha,1); 
													,
													 tween(layer[background_compass].height,0); tween(layer[background_compass].alpha,0);
					   ); "
		/> 
		
		
	<!-- Стрелка компаса на плане -->
	<layer 	name="compass_arrov"   keep="true" align="righttop" edge="center" x="25" y="25" url="picture/compass_ar.png" width="40" height="prop" alpha="0.8"
			zorder="92" rotate="0" enabled="false" parent="container_plan1"
		/> 
	
		
	


</krpano>


