<?xml version="1.0" encoding="UTF-8" ?>

<!-- Bombardier CRJ700 series -->
<!-- Interior, CRJ1000 -->

<PropertyList>

	<path>CRJ1000-interior.ac</path>
	<!-- Flight deck -->
	<model>
		<name>Flight deck</name>
		<path>../Flightdeck/CRJ700-flightdeck.xml</path>
		<offsets>
			<x-m>-15.5</x-m>
			<y-m>0</y-m>
			<z-m>-1.81</z-m>
		</offsets>
	</model>
	<animation>
		<type>select</type>
		<object-name>Bins</object-name>
		<object-name>LeftBinDoors</object-name>
		<object-name>RightBinDoors</object-name>
		<object-name>Seats</object-name>
		<condition>
			<property>/sim/current-view/internal</property>
		</condition>
	</animation>

	<animation>
		<type>pick</type>
		<object-name>LeftBinDoors</object-name>
		<object-name>RightBinDoors</object-name>
		<action>
			<button>0</button>
			<repeatable type="bool">false</repeatable>
			<binding>
				<command>nasal</command>
				<script>
					CRJ700.doors.overhead_bins.toggle();
				</script>
			</binding>
		</action>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>LeftBinDoors</object-name>
		<property>sim/model/door-positions/overhead-bins/position-norm</property>
		<factor>65</factor>
		<axis>
			<x>1</x>
			<y>0</y>
			<z>0</z>
		</axis>
		<center>
			<x-m>0</x-m>
			<y-m>-0.444</y-m>
			<z-m>0.15</z-m>
		</center>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>RightBinDoors</object-name>
		<property>sim/model/door-positions/overhead-bins/position-norm</property>
		<factor>65</factor>
		<axis>
			<x>-1</x>
			<y>0</y>
			<z>0</z>
		</axis>
		<center>
			<x-m>0</x-m>
			<y-m>0.444</y-m>
			<z-m>0.15</z-m>
		</center>
	</animation>

	<animation>
		<type>select</type>
		<object-name>FastenSeatbelts</object-name>
		<condition>
			<and>
				<property>sim/model/lights/seatbelt-sign</property>
				<greater-than-equals>
					<property>systems/DC/outputs/passenger-signs</property>
					<value>5</value>
				</greater-than-equals>
			</and>
		</condition>
	</animation>
	<animation>
		<type>select</type>
		<object-name>NoSmoking</object-name>
		<condition>
			<and>
				<property>sim/model/lights/no-smoking-sign</property>
				<greater-than-equals>
					<property>systems/DC/outputs/passenger-signs</property>
					<value>5</value>
				</greater-than-equals>
			</and>
		</condition>
	</animation>

	<animation>
		<type>material</type>
		<object-name>Bins</object-name>
		<object-name>LeftBinDoors</object-name>
		<object-name>RightBinDoors</object-name>
		<object-name>Carpet</object-name>
		<object-name>Seats</object-name>
		<object-name>Walls</object-name>
		<condition>
			<greater-than-equals>
				<property>systems/AC/outputs/cabin-lights</property>
				<value>100</value>
			</greater-than-equals>
		</condition>
		<emission>
			<red>0.475</red>
			<green>0.5</green>
			<blue>0.37</blue>
			<factor-prop>controls/lighting/cabin-norm</factor-prop>
		</emission>
	</animation>

	<!-- Lightmaps -->
	<effect>
		<inherits-from>Models/Effects/CRJ700lightmap</inherits-from>
		<parameters>
			<lightmap-factor-prop>sim/model/lights/cabin-lightmap</lightmap-factor-prop>
			<lightmap-factor n="0">
				<use alias="../../lightmap-factor-prop" />
			</lightmap-factor>
			<lightmap-factor n="1">
				<use alias="../../lightmap-factor-prop" />
			</lightmap-factor>
			<lightmap-factor n="2">
				<use alias="../../lightmap-factor-prop" />
			</lightmap-factor>
			<texture n="3">
				<image>Models/Effects/Lightmaps/CRJ1000-interior-lightmap.png</image>
			</texture>
		</parameters>
		<object-name>Cabin</object-name>
	</effect>

</PropertyList>
