<?xml version="1.0"?>

<!-- ARK-11, remote panel of the ARK-P (ADF) system  -->

<PropertyList>
 <path>ark-11.ac</path>

 <animation>
  <type>select</type>
  <condition>
   <not>
    <property>sim/signals/fdm-initialized</property>
   </not>
  </condition>
  <object-name>subband_handle</object-name>
  <object-name>rough_adj_handle</object-name>
  <object-name>subband_lock</object-name>
  <object-name>rough_lock</object-name>
  <object-name>canvstations2</object-name>
  <object-name>clickspot_tlf</object-name>
  <object-name>clickspot_tlg</object-name>
  <object-name>clickspot_narrow</object-name>
  <object-name>clickspot_wide</object-name>
  <object-name>panelswitchcover</object-name>
 </animation>

 <animation>
   <type>material</type>
   <object-name>light_plate</object-name>
   <!--object-name>fine_freq_disk</object-name-->
   <object-name>subband_disk</object-name>
   <emission>
     <red>1.0</red>
     <green>1.0</green>
     <blue>0.4</blue>
     <factor-prop>controls/lighting/overhead_instr</factor-prop>
   </emission>
 </animation>

 <animation>
   <type>material</type>
   <object-name>freqtable</object-name>
   <object-name>canvstations1</object-name>
   <object-name>canvstations2</object-name>
   <object-name>rangetable</object-name>
   <emission>
     <red>0.25</red>
     <green>0.2</green>
     <blue>0.1</blue>
     <factor-prop>controls/lighting/overhead_panel</factor-prop>
   </emission>
 </animation>

  <effect>
   <inherits-from>Effects/model-transparent</inherits-from>
   <object-name>arkcover</object-name>
  </effect>
  <effect>
   <inherits-from>Aircraft/an24b/Models/Effects/alu</inherits-from>
   <object-name>base_plate</object-name>
  </effect>

<!-- Mode selector OFF-Compass1-Antenna-Frame-Compass2 -->

 <animation>
   <type>knob</type>
   <object-name>mode_handle</object-name>
    <property>an24/ARK-11/mode-oh</property>
   <factor>40</factor>
  <center>
   <x-m>-0.0749</x-m>
   <y-m>-0.0958</y-m>
   <z-m>0.0</z-m>
  </center>
  <axis>
    <x>0.0</x>
    <y>0.0</y>
    <z>-1.0</z>
  </axis>
    <action>
     <binding>
      <command>property-adjust</command>
      <property>an24/ARK-11/mode-oh</property>
      <factor>-1</factor>
      <min>0</min>
      <max>4</max>                
      <wrap>false</wrap>
     </binding>
    <binding>
      <command>nasal</command>
      <script>
if ( getprop("an24/AZS/sw0512") == 1.0 and getprop("an24/ARK-11/mode-oh") != 0.0 and getprop("an24/ARK-11/panel_nav_oh") == 1.0 ) {
	var adf1mode = ['off', 'adf', 'ant', 'off', 'adf'];
	setprop("/instrumentation/adf/mode", adf1mode[getprop("an24/ARK-11/mode-oh")] );
	var adf3mode = ['off', 'off', 'adf', 'adf', 'off'];
	setprop("/instrumentation/adf[2]/mode", adf3mode[getprop("an24/ARK-11/mode-oh")] );
	if ( getprop("an24/ARK-11/mode-oh") == 1.0 or getprop("an24/ARK-11/mode-oh") == 4.0 ) {
	interpolate("an24/ARK-11/frame-offset-1", 0.0, 1.2 );
	}
}
<!-- regarding literature, even in Compass Mode, offset remains applied... seems technically and in operational purposes illogical -->
      </script>
    </binding>
    </action>
   <hovered>
    <binding>
      <command>set-tooltip</command>
      <tooltip-id>ohark1-mode</tooltip-id>
      <label>%s</label>
      <property>an24/ARK-11/mode-oh</property>
      <mapping>nasal</mapping>
      <script>
        var ark1mode = ['OFF', 'Compass I', 'Antenna', 'Frame', 'Compass II'];
        return ark1mode[arg[0]];
      </script>
    </binding>
   </hovered>
 </animation>

<!-- Subband handle -->

 <animation>
   <object-name>subband_handle_oh</object-name>
   <object-name>subband_disk</object-name>
  <type>rotate</type>
   <property>an24/ARK-11/sub-band-khz-1</property>
    <interpolation>
     <entry>
      <ind>120.0</ind> <dep>0.0</dep>
     </entry>
     <entry>
      <ind>280.0</ind> <dep>45.0</dep>
     </entry>
     <entry>
      <ind>420.0</ind> <dep>90.0</dep>
     </entry>
     <entry>
      <ind>580.0</ind> <dep>135.0</dep>
     </entry>
     <entry>
      <ind>720.0</ind> <dep>180.0</dep>
     </entry>
     <entry>
      <ind>880.0</ind> <dep>225.0</dep>
     </entry>
     <entry>
      <ind>1020.0</ind> <dep>270.0</dep>
     </entry>
     <entry>
      <ind>1180.0</ind> <dep>315.0</dep>
     </entry>
    </interpolation>
  <center>
   <x-m>0.0452</x-m>
   <y-m>-0.068</y-m>
   <z-m>0.0</z-m>
  </center>
  <axis>
    <x>0.0</x>
    <y>0.0</y>
    <z>1.0</z>
  </axis>
 </animation>

<!-- Rough adjustment handle -->

 <animation>
   <type>rotate</type>
   <object-name>rough_adj_handle_oh</object-name>
   <property>an24/ARK-11/fine-khz-1</property>
  <factor>2.25</factor>
  <center>
   <x-m>-0.028</x-m>
   <y-m>-0.0084</y-m>
   <z-m>0.0</z-m>
  </center>
  <axis>
    <x>0.0</x>
    <y>0.0</y>
    <z>-1.0</z>
  </axis>
 </animation>

<!-- Volume control -->

 <animation>
   <type>knob</type>
   <object-name>vol_general</object-name>
   <property>an24/ARK-11/volumeknob-oh</property>
   <factor>-100</factor>
  <center>
   <x-m>0.0703</x-m>
   <y-m>-0.0124</y-m>
   <z-m>0.0</z-m>
  </center>
  <axis>
    <x>0.0</x>
    <y>0.0</y>
    <z>1.0</z>
  </axis>
    <action>
     <binding>
      <command>property-adjust</command>
      <property>an24/ARK-11/volumeknob-oh</property>
      <factor>-0.05</factor>
      <min>0</min>
      <max>1</max>
      <wrap>false</wrap>
     </binding>
    </action>
   <hovered>
       <binding>
         <command>set-tooltip</command>
         <label>Volume: %3d%%</label>
         <measure-text>Volume: 100%</measure-text>
         <tooltip-id>ohark1-vol</tooltip-id>
         <mapping>percent</mapping>
         <property>an24/ARK-11/volumeknob-oh</property>
       </binding>
     </hovered>
 </animation>

<!-- Frame left-right switch -->

 <animation>
  <type>pick</type>
  <object-name>clickspot_left</object-name>
  <visible>false</visible>
  <action>
    <button>0</button>
    <repeatable>true</repeatable>
<!-- Mode "Compass I/II" -->
     <binding>
      <command>property-adjust</command>
      <property>an24/ARK-11/frame-offset-1</property>
       <condition>
        <equals>
         <property>an24/AZS/sw0512</property>
         <value>1.0</value>
        </equals>
        <equals>
         <property>an24/AZS/sw0513</property>
         <value>1.0</value>
        </equals>
        <equals>
         <property>an24/ARK-11/panel_nav_oh</property>
         <value>1.0</value>
        </equals>
        <or>
        <equals>
         <property>an24/ARK-11/mode-1</property>
         <value>1</value>
        </equals>
        <equals>
         <property>an24/ARK-11/mode-1</property>
         <value>4</value>
        </equals>
        </or>
       </condition>
      <step>4</step>
      <min>-180</min>
      <max>180</max>                
      <wrap>true</wrap>
     </binding>
<!-- Mode "Antenna" -->
     <binding>
      <command>property-adjust</command>
      <property>an24/ARK-11/frame-offset-1</property>
       <condition>
        <and>
        <equals>
         <property>an24/ARK-11/mode-1</property>
         <value>2</value>
        </equals>
        <equals>
         <property>an24/AZS/sw0512</property>
         <value>1.0</value>
        </equals>
        <equals>
         <property>an24/AZS/sw0513</property>
         <value>1.0</value>
        </equals>
        <equals>
         <property>an24/ARK-11/panel_nav_oh</property>
         <value>1.0</value>
        </equals>
        </and>
       </condition>
      <step>1</step>
      <min>-180</min>
      <max>180</max>
      <wrap>true</wrap>
     </binding>
<!-- Mode "Frame" -->
     <binding>
      <command>property-adjust</command>
      <property>instrumentation/adf[0]/indicated-bearing-deg</property>
       <condition>
        <and>
        <equals>
         <property>an24/ARK-11/mode-1</property>
         <value>3</value>
        </equals>
        <equals>
         <property>an24/AZS/sw0512</property>
         <value>1.0</value>
        </equals>
        <equals>
         <property>an24/AZS/sw0513</property>
         <value>1.0</value>
        </equals>
        <equals>
         <property>an24/ARK-11/panel_nav_oh</property>
         <value>1.0</value>
        </equals>
        </and>
       </condition>
      <step>-1</step>
      <!--min>-180</min>
      <max>180</max>
      <wrap>true</wrap-->
     </binding>

    <binding>
      <command>nasal</command>
      <script>
        interpolate("an24/ARK-11/frame_l-r-oh", -1.0, 0.1 );
      </script>
    </binding>
    <mod-up>
      <binding>
      <command>nasal</command>
      <script>
        interpolate("an24/ARK-11/frame_l-r-oh", 0.0, 0.1 );
      </script>
    </binding>
    </mod-up>
  </action>
</animation>

 <animation>
  <type>pick</type>
  <object-name>clickspot_right</object-name>
  <visible>false</visible>
  <action>
    <button>0</button>
    <repeatable>true</repeatable>
<!-- Mode "Compass I/II" -->
     <binding>
      <command>property-adjust</command>
      <property>an24/ARK-11/frame-offset-1</property>
       <condition>
        <equals>
         <property>an24/AZS/sw0512</property>
         <value>1.0</value>
        </equals>
        <equals>
         <property>an24/AZS/sw0513</property>
         <value>1.0</value>
        </equals>
        <equals>
         <property>an24/ARK-11/panel_nav_oh</property>
         <value>1.0</value>
        </equals>
        <or>
        <equals>
         <property>an24/ARK-11/mode-1</property>
         <value>1</value>
        </equals>
        <equals>
         <property>an24/ARK-11/mode-1</property>
         <value>4</value>
        </equals>
        </or>
       </condition>
      <step>-4</step>
      <min>-180</min>
      <max>180</max>
      <wrap>true</wrap>
     </binding>
<!-- Mode "Antenna" -->
     <binding>
      <command>property-adjust</command>
      <property>an24/ARK-11/frame-offset-1</property>
       <condition>
        <and>
        <equals>
         <property>an24/ARK-11/mode-1</property>
         <value>2</value>
        </equals>
        <equals>
         <property>an24/AZS/sw0512</property>
         <value>1.0</value>
        </equals>
        <equals>
         <property>an24/AZS/sw0513</property>
         <value>1.0</value>
        </equals>
        <equals>
         <property>an24/ARK-11/panel_nav_oh</property>
         <value>1.0</value>
        </equals>
        </and>
       </condition>
      <step>-1</step>
      <min>-180</min>
      <max>180</max>
      <wrap>true</wrap>
     </binding>
<!-- Mode "Frame" -->
     <binding>
      <command>property-adjust</command>
      <property>instrumentation/adf[0]/indicated-bearing-deg</property>
       <condition>
        <and>
        <equals>
         <property>an24/ARK-11/mode-1</property>
         <value>3</value>
        </equals>
        <equals>
         <property>an24/AZS/sw0512</property>
         <value>1.0</value>
        </equals>
        <equals>
         <property>an24/AZS/sw0513</property>
         <value>1.0</value>
        </equals>
        <equals>
         <property>an24/ARK-11/panel_nav_oh</property>
         <value>1.0</value>
        </equals>
        </and>
       </condition>
      <step>1</step>
      <min>-180</min>
      <max>180</max>
      <wrap>true</wrap>
     </binding>

    <binding>
      <command>nasal</command>
      <script>
        interpolate("an24/ARK-11/frame_l-r-oh", 1.0, 0.1 );
      </script>
    </binding>
    <mod-up>
      <binding>
      <command>nasal</command>
      <script>
        interpolate("an24/ARK-11/frame_l-r-oh", 0.0, 0.1 );
      </script>
    </binding>
    </mod-up>
  </action>
 </animation>

 <animation>
   <type>rotate</type>
   <object-name>lever_frame</object-name>
   <property>an24/ARK-11/frame_l-r-oh</property>
  <interpolation>
    <entry><ind>-1.0</ind>	<dep>30.0</dep></entry>
    <entry><ind>1.0</ind>	<dep>-30.0</dep></entry>
  </interpolation>
  <axis>
    <x>1.0</x>
    <y>0.0</y>
    <z>0.0</z>
  </axis>
   <center>
    <x-m>0.0</x-m>
    <y-m>0.0443</y-m>
    <z-m>0.0025</z-m>
   </center>
 </animation>

<!-- Rough adjustment handle -->

 <animation>
  <object-name>rough_adj_handle</object-name>
  <object-name>rough_lock</object-name>
  <type>rotate</type>
   <property>an24/ARK-11/fine-khz-1</property>
  <factor>2.25</factor>
  <center>
   <x-m>-0.028</x-m>
   <y-m>-0.0084</y-m>
   <z-m>0.0</z-m>
  </center>
  <axis>
    <x>0.0</x>
    <y>0.0</y>
    <z>-1.0</z>
  </axis>
 </animation>
 <animation>
  <object-name>fine_freq_disk</object-name>
  <type>rotate</type>
   <property>an24/ARK-11/fine-khz-1</property>
  <factor>2</factor>
  <center>
   <x-m>-0.0505</x-m>
   <y-m>-0.005</y-m>
   <z-m>0.0</z-m>
  </center>
  <axis>
    <x>0.0</x>
    <y>0.0</y>
    <z>-1.0</z>
  </axis>
 </animation>

<!-- Smooth adjustment handle -->

 <animation>
  <object-name>smooth_adj_handle</object-name>
  <type>rotate</type>
   <property>an24/ARK-11/fine-khz-1</property>
  <factor>2</factor>
  <center>
   <x-m>-0.0752</x-m>
   <y-m>0.0684</y-m>
   <z-m>0.0</z-m>
  </center>
  <axis>
    <x>0.0</x>
    <y>0.0</y>
    <z>-1.0</z>
  </axis>
 </animation>

 <animation>
  <object-name>fine_freq_disk</object-name>
  <type>rotate</type>
   <property>an24/ARK-11/fine-khz-1</property>
  <factor>2</factor>
  <center>
   <x-m>-0.0505</x-m>
   <y-m>-0.005</y-m>
   <z-m>0.0</z-m>
  </center>
  <axis>
    <x>0.0</x>
    <y>0.0</y>
    <z>-1.0</z>
  </axis>
 </animation>

<!-- Switch remote panel from nav to oh -->

<animation>
  <type>pick</type>
  <object-name>switchpanel</object-name>

  <action>
    <button>0</button>
    <repeatable>false</repeatable>
    <binding>
      <command>nasal</command>
      <script>
	interpolate("an24/ARK-11/btn_nav_OH", 1.0, 0.1 );
	setprop("an24/ARK-11/panel_nav_oh", 1.0 );
	setprop("an24/ARK-11/mem1/fixp", 0.0 );
        setprop("an24/ARK-11/mem1/animfix1", 0.0 );
        setprop("an24/ARK-11/mem1/animfix2", 0.0 );
        setprop("an24/ARK-11/mem1/animfix3", 0.0 );
        setprop("an24/ARK-11/mem1/animfix4", 0.0 );
        setprop("an24/ARK-11/mem1/animfix5", 0.0 );
        setprop("an24/ARK-11/mem1/animfix6", 0.0 );
        setprop("an24/ARK-11/mem1/animfix7", 0.0 );
        setprop("an24/ARK-11/mem1/animfix8", 0.0 );
        setprop("an24/ARK-11/mem1/animfix9", 0.0 );
      </script>
    </binding>
   <mod-up>
    <binding>
      <command>nasal</command>
      <script>
	interpolate("an24/ARK-11/btn_nav_OH", 0.0, 0.1 );
      </script>
    </binding>
   </mod-up>
  </action>
   <hovered>
       <binding>
         <command>set-tooltip</command>
         <label>Switch Control over here</label>
         <tooltip-id>arkoh-panelswitch</tooltip-id>
       </binding>
     </hovered>
</animation>

<animation>
  <type>translate</type>
  <object-name>switchpanel</object-name>
  <property>an24/ARK-11/btn_nav_OH</property>
  <factor>0.0038</factor>
  <axis>
    <x>0.0</x>
    <y>0.0</y>
    <z>-1.0</z>
  </axis>
</animation>


<!-- Fixed Frequency buttons 1-9 / "P" button pressed for smooth tuning mode -->

<animation>
  <type>pick</type>
  <object-name>fix1</object-name>
  <action>
    <button>0</button>
    <repeatable>false</repeatable>
    <binding>
      <command>nasal</command>
      <script>
	var buttonnr = 1 ;
	interpolate("an24/ARK-11/mem1/animfixoh" ~ buttonnr ~ "", 1.0, 0.1 );
	var pressed = getprop("an24/ARK-11/mem1/fixohpressed");
	setprop("an24/ARK-11/mem1/animfixoh" ~ pressed ~ "", 0.0 );
	setprop("an24/ARK-11/mem1/fixohpressed", buttonnr );
	if ( getprop("an24/ARK-11/panel_nav_oh") == 0.0 or getprop("an24/ARK-11/mode-oh") == 0.0) {
        settimer(func {interpolate("an24/ARK-11/mem1/animfixoh" ~ buttonnr ~ "", 0.0, 0.1 );},0.1);
	}
if ( getprop("an24/AZS/sw0512") == 1.0 and getprop("an24/ARK-11/mode-oh") != 0.0 and getprop("an24/ARK-11/panel_nav_oh") == 1.0 ) {
	interpolate("an24/ARK-11/sub-band-khz-1", getprop("an24/ARK-11/mem1/fix" ~ buttonnr ~ "sb"), 2.0 );
	interpolate("an24/ARK-11/fine-khz-1", getprop("an24/ARK-11/mem1/fix" ~ buttonnr ~ "ff"), 2.4 );
}
      </script>
    </binding>
  </action>
</animation>

<animation>
  <type>translate</type>
  <object-name>fix1</object-name>
  <property>an24/ARK-11/mem1/animfixoh1</property>
  <factor>0.0038</factor>
  <axis>
    <x>0.0</x>
    <y>0.0</y>
    <z>-1.0</z>
  </axis>
</animation>

<!--**********************************************-->
<animation>
  <type>pick</type>
  <object-name>fix2</object-name>
  <action>
    <button>0</button>
    <repeatable>false</repeatable>
    <binding>
      <command>nasal</command>
      <script>
	var buttonnr = 2 ;
	interpolate("an24/ARK-11/mem1/animfixoh" ~ buttonnr ~ "", 1.0, 0.1 );
	var pressed = getprop("an24/ARK-11/mem1/fixohpressed");
	setprop("an24/ARK-11/mem1/animfixoh" ~ pressed ~ "", 0.0 );
	setprop("an24/ARK-11/mem1/fixohpressed", buttonnr );
	if ( getprop("an24/ARK-11/panel_nav_oh") == 0.0 or getprop("an24/ARK-11/mode-oh") == 0.0) {
        settimer(func {interpolate("an24/ARK-11/mem1/animfixoh" ~ buttonnr ~ "", 0.0, 0.1 );},0.1);
	}
if ( getprop("an24/AZS/sw0512") == 1.0 and getprop("an24/ARK-11/mode-oh") != 0.0 and getprop("an24/ARK-11/panel_nav_oh") == 1.0 ) {
	interpolate("an24/ARK-11/sub-band-khz-1", getprop("an24/ARK-11/mem1/fix" ~ buttonnr ~ "sb"), 2.0 );
	interpolate("an24/ARK-11/fine-khz-1", getprop("an24/ARK-11/mem1/fix" ~ buttonnr ~ "ff"), 2.4 );
}
      </script>
    </binding>
  </action>
</animation>

<animation>
  <type>translate</type>
  <object-name>fix2</object-name>
  <property>an24/ARK-11/mem1/animfixoh2</property>
  <factor>0.0038</factor>
  <axis>
    <x>0.0</x>
    <y>0.0</y>
    <z>-1.0</z>
  </axis>
</animation>

<!--**********************************************-->
<animation>
  <type>pick</type>
  <object-name>fix3</object-name>
  <action>
    <button>0</button>
    <repeatable>false</repeatable>
    <binding>
      <command>nasal</command>
      <script>
	var buttonnr = 3 ;
	interpolate("an24/ARK-11/mem1/animfixoh" ~ buttonnr ~ "", 1.0, 0.1 );
	var pressed = getprop("an24/ARK-11/mem1/fixohpressed");
	setprop("an24/ARK-11/mem1/animfixoh" ~ pressed ~ "", 0.0 );
	setprop("an24/ARK-11/mem1/fixohpressed", buttonnr );
	if ( getprop("an24/ARK-11/panel_nav_oh") == 0.0 or getprop("an24/ARK-11/mode-oh") == 0.0) {
        settimer(func {interpolate("an24/ARK-11/mem1/animfixoh" ~ buttonnr ~ "", 0.0, 0.1 );},0.1);
	}

if ( getprop("an24/AZS/sw0512") == 1.0 and getprop("an24/ARK-11/mode-oh") != 0.0 and getprop("an24/ARK-11/panel_nav_oh") == 1.0 ) {
	interpolate("an24/ARK-11/sub-band-khz-1", getprop("an24/ARK-11/mem1/fix" ~ buttonnr ~ "sb"), 2.0 );
	interpolate("an24/ARK-11/fine-khz-1", getprop("an24/ARK-11/mem1/fix" ~ buttonnr ~ "ff"), 2.4 );
}
      </script>
    </binding>
  </action>
</animation>

<animation>
  <type>translate</type>
  <object-name>fix3</object-name>
  <property>an24/ARK-11/mem1/animfixoh3</property>
  <factor>0.0038</factor>
  <axis>
    <x>0.0</x>
    <y>0.0</y>
    <z>-1.0</z>
  </axis>
</animation>

<!--**********************************************-->
<animation>
  <type>pick</type>
  <object-name>fix4</object-name>
  <action>
    <button>0</button>
    <repeatable>false</repeatable>
    <binding>
      <command>nasal</command>
      <script>
	var buttonnr = 4 ;
	interpolate("an24/ARK-11/mem1/animfixoh" ~ buttonnr ~ "", 1.0, 0.1 );
	var pressed = getprop("an24/ARK-11/mem1/fixohpressed");
	setprop("an24/ARK-11/mem1/animfixoh" ~ pressed ~ "", 0.0 );
	setprop("an24/ARK-11/mem1/fixohpressed", buttonnr );
	if ( getprop("an24/ARK-11/panel_nav_oh") == 0.0 or getprop("an24/ARK-11/mode-oh") == 0.0) {
        settimer(func {interpolate("an24/ARK-11/mem1/animfixoh" ~ buttonnr ~ "", 0.0, 0.1 );},0.1);
	}

if ( getprop("an24/AZS/sw0512") == 1.0 and getprop("an24/ARK-11/mode-oh") != 0.0 and getprop("an24/ARK-11/panel_nav_oh") == 1.0 ) {
	interpolate("an24/ARK-11/sub-band-khz-1", getprop("an24/ARK-11/mem1/fix" ~ buttonnr ~ "sb"), 2.0 );
	interpolate("an24/ARK-11/fine-khz-1", getprop("an24/ARK-11/mem1/fix" ~ buttonnr ~ "ff"), 2.4 );
}
      </script>
    </binding>
  </action>
</animation>

<animation>
  <type>translate</type>
  <object-name>fix4</object-name>
  <property>an24/ARK-11/mem1/animfixoh4</property>
  <factor>0.0038</factor>
  <axis>
    <x>0.0</x>
    <y>0.0</y>
    <z>-1.0</z>
  </axis>
</animation>

<!--**********************************************-->
<animation>
  <type>pick</type>
  <object-name>fix5</object-name>
  <action>
    <button>0</button>
    <repeatable>false</repeatable>
    <binding>
      <command>nasal</command>
      <script>
	var buttonnr = 5 ;
	interpolate("an24/ARK-11/mem1/animfixoh" ~ buttonnr ~ "", 1.0, 0.1 );
	var pressed = getprop("an24/ARK-11/mem1/fixohpressed");
	setprop("an24/ARK-11/mem1/animfixoh" ~ pressed ~ "", 0.0 );
	setprop("an24/ARK-11/mem1/fixohpressed", buttonnr );
	if ( getprop("an24/ARK-11/panel_nav_oh") == 0.0 or getprop("an24/ARK-11/mode-oh") == 0.0) {
        settimer(func {interpolate("an24/ARK-11/mem1/animfixoh" ~ buttonnr ~ "", 0.0, 0.1 );},0.1);
	}

if ( getprop("an24/AZS/sw0512") == 1.0 and getprop("an24/ARK-11/mode-oh") != 0.0 and getprop("an24/ARK-11/panel_nav_oh") == 1.0 ) {
	interpolate("an24/ARK-11/sub-band-khz-1", getprop("an24/ARK-11/mem1/fix" ~ buttonnr ~ "sb"), 2.0 );
	interpolate("an24/ARK-11/fine-khz-1", getprop("an24/ARK-11/mem1/fix" ~ buttonnr ~ "ff"), 2.4 );
}
      </script>
    </binding>
  </action>
</animation>

<animation>
  <type>translate</type>
  <object-name>fix5</object-name>
  <property>an24/ARK-11/mem1/animfixoh5</property>
  <factor>0.0038</factor>
  <axis>
    <x>0.0</x>
    <y>0.0</y>
    <z>-1.0</z>
  </axis>
</animation>

<!--**********************************************-->
<animation>
  <type>pick</type>
  <object-name>fix6</object-name>
  <action>
    <button>0</button>
    <repeatable>false</repeatable>
    <binding>
      <command>nasal</command>
      <script>
	var buttonnr = 6 ;
	interpolate("an24/ARK-11/mem1/animfixoh" ~ buttonnr ~ "", 1.0, 0.1 );
	var pressed = getprop("an24/ARK-11/mem1/fixohpressed");
	setprop("an24/ARK-11/mem1/animfixoh" ~ pressed ~ "", 0.0 );
	setprop("an24/ARK-11/mem1/fixohpressed", buttonnr );
	if ( getprop("an24/ARK-11/panel_nav_oh") == 0.0 or getprop("an24/ARK-11/mode-oh") == 0.0) {
        settimer(func {interpolate("an24/ARK-11/mem1/animfixoh" ~ buttonnr ~ "", 0.0, 0.1 );},0.1);
	}

if ( getprop("an24/AZS/sw0512") == 1.0 and getprop("an24/ARK-11/mode-oh") != 0.0 and getprop("an24/ARK-11/panel_nav_oh") == 1.0 ) {
	interpolate("an24/ARK-11/sub-band-khz-1", getprop("an24/ARK-11/mem1/fix" ~ buttonnr ~ "sb"), 2.0 );
	interpolate("an24/ARK-11/fine-khz-1", getprop("an24/ARK-11/mem1/fix" ~ buttonnr ~ "ff"), 2.4 );
}
      </script>
    </binding>
  </action>
</animation>

<animation>
  <type>translate</type>
  <object-name>fix6</object-name>
  <property>an24/ARK-11/mem1/animfixoh6</property>
  <factor>0.0038</factor>
  <axis>
    <x>0.0</x>
    <y>0.0</y>
    <z>-1.0</z>
  </axis>
</animation>

<!--**********************************************-->
<animation>
  <type>pick</type>
  <object-name>fix7</object-name>
  <action>
    <button>0</button>
    <repeatable>false</repeatable>
    <binding>
      <command>nasal</command>
      <script>
	var buttonnr = 7 ;
	interpolate("an24/ARK-11/mem1/animfixoh" ~ buttonnr ~ "", 1.0, 0.1 );
	var pressed = getprop("an24/ARK-11/mem1/fixohpressed");
	setprop("an24/ARK-11/mem1/animfixoh" ~ pressed ~ "", 0.0 );
	setprop("an24/ARK-11/mem1/fixohpressed", buttonnr );
	if ( getprop("an24/ARK-11/panel_nav_oh") == 0.0 or getprop("an24/ARK-11/mode-oh") == 0.0) {
        settimer(func {interpolate("an24/ARK-11/mem1/animfixoh" ~ buttonnr ~ "", 0.0, 0.1 );},0.1);
	}

if ( getprop("an24/AZS/sw0512") == 1.0 and getprop("an24/ARK-11/mode-oh") != 0.0 and getprop("an24/ARK-11/panel_nav_oh") == 1.0 ) {
	interpolate("an24/ARK-11/sub-band-khz-1", getprop("an24/ARK-11/mem1/fix" ~ buttonnr ~ "sb"), 2.0 );
	interpolate("an24/ARK-11/fine-khz-1", getprop("an24/ARK-11/mem1/fix" ~ buttonnr ~ "ff"), 2.4 );
}
      </script>
    </binding>
  </action>
</animation>

<animation>
  <type>translate</type>
  <object-name>fix7</object-name>
  <property>an24/ARK-11/mem1/animfixoh7</property>
  <factor>0.0038</factor>
  <axis>
    <x>0.0</x>
    <y>0.0</y>
    <z>-1.0</z>
  </axis>
</animation>

<!--**********************************************-->
<animation>
  <type>pick</type>
  <object-name>fix8</object-name>
  <action>
    <button>0</button>
    <repeatable>false</repeatable>
    <binding>
      <command>nasal</command>
      <script>
	var buttonnr = 8 ;
	interpolate("an24/ARK-11/mem1/animfixoh" ~ buttonnr ~ "", 1.0, 0.1 );
	var pressed = getprop("an24/ARK-11/mem1/fixohpressed");
	setprop("an24/ARK-11/mem1/animfixoh" ~ pressed ~ "", 0.0 );
	setprop("an24/ARK-11/mem1/fixohpressed", buttonnr );
	if ( getprop("an24/ARK-11/panel_nav_oh") == 0.0 or getprop("an24/ARK-11/mode-oh") == 0.0) {
        settimer(func {interpolate("an24/ARK-11/mem1/animfixoh" ~ buttonnr ~ "", 0.0, 0.1 );},0.1);
	}

if ( getprop("an24/AZS/sw0512") == 1.0 and getprop("an24/ARK-11/mode-oh") != 0.0 and getprop("an24/ARK-11/panel_nav_oh") == 1.0 ) {
	interpolate("an24/ARK-11/sub-band-khz-1", getprop("an24/ARK-11/mem1/fix" ~ buttonnr ~ "sb"), 2.0 );
	interpolate("an24/ARK-11/fine-khz-1", getprop("an24/ARK-11/mem1/fix" ~ buttonnr ~ "ff"), 2.4 );
}
      </script>
    </binding>
  </action>
</animation>

<animation>
  <type>translate</type>
  <object-name>fix8</object-name>
  <property>an24/ARK-11/mem1/animfixoh8</property>
  <factor>0.0038</factor>
  <axis>
    <x>0.0</x>
    <y>0.0</y>
    <z>-1.0</z>
  </axis>
</animation>

<!--**********************************************-->
<animation>
  <type>pick</type>
  <object-name>fix9</object-name>
  <action>
    <button>0</button>
    <repeatable>false</repeatable>
    <binding>
      <command>nasal</command>
      <script>
	var buttonnr = 9 ;
	interpolate("an24/ARK-11/mem1/animfixoh" ~ buttonnr ~ "", 1.0, 0.1 );
	var pressed = getprop("an24/ARK-11/mem1/fixohpressed");
	setprop("an24/ARK-11/mem1/animfixoh" ~ pressed ~ "", 0.0 );
	setprop("an24/ARK-11/mem1/fixohpressed", buttonnr );
	if ( getprop("an24/ARK-11/panel_nav_oh") == 0.0 or getprop("an24/ARK-11/mode-oh") == 0.0) {
        settimer(func {interpolate("an24/ARK-11/mem1/animfixoh" ~ buttonnr ~ "", 0.0, 0.1 );},0.1);
	}

if ( getprop("an24/AZS/sw0512") == 1.0 and getprop("an24/ARK-11/mode-oh") != 0.0 and getprop("an24/ARK-11/panel_nav_oh") == 1.0 ) {
	interpolate("an24/ARK-11/sub-band-khz-1", getprop("an24/ARK-11/mem1/fix" ~ buttonnr ~ "sb"), 2.0 );
	interpolate("an24/ARK-11/fine-khz-1", getprop("an24/ARK-11/mem1/fix" ~ buttonnr ~ "ff"), 2.4 );
}
      </script>
    </binding>
  </action>
</animation>

<animation>
  <type>translate</type>
  <object-name>fix9</object-name>
  <property>an24/ARK-11/mem1/animfixoh9</property>
  <factor>0.0038</factor>
  <axis>
    <x>0.0</x>
    <y>0.0</y>
    <z>-1.0</z>
  </axis>
</animation>

<!-- Text OSG -->

  <animation>
    <type>select</type>
    <object-name>desc</object-name>
    <condition>
      <property>sim/panel-hotspots</property>
    </condition>
  </animation>

  <text>
    <name>desc</name>
    <type type="string">literal</type>
    <text type="string">ARK-11 No.1 Control Panel</text>
    <draw-text type="bool">true</draw-text>
    <font>Helvetica.txf</font>
    <character-size type="double">0.044</character-size>
    <character-aspect-ratio type="double">1.0</character-aspect-ratio>
    <axis-alignment>xy-plane</axis-alignment>
    <max-height>0.2</max-height>
    <max-width>0.18</max-width>
    <font-resolution>
      <width type="int">64</width>
      <height type="int">64</height>
    </font-resolution>
    <alignment>center-center</alignment>
    <offsets>
      <x-m>  0.000 </x-m>
      <y-m>  0.000 </y-m>
      <z-m>  0.025 </z-m>
      <heading-deg>90</heading-deg>
    </offsets>
  </text>

  <text>
    <name>textosg</name>
    <offsets>
      <x-m>-0.076</x-m>
      <y-m>-0.0075</y-m>
      <z-m>0.008</z-m>
      <heading-deg>90</heading-deg>
    </offsets>
    <alignment>center-center</alignment>
    <axis-alignment>xy-plane</axis-alignment>
    <type type="string">number-value</type>
    <property>an24/ARK-11/final-freq-1</property>
    <format type="string">%.1f</format>
    <truncate type="bool">false</truncate>
    <font>arial_black.txf</font>
    <character-size type="double">0.004</character-size>
    <character-aspect-ratio type="double">1.0</character-aspect-ratio>
    <font-resolution>
      <width type="int">32</width>
      <height type="int">32</height>
    </font-resolution>
  </text>

</PropertyList>
