5 rp["#com1u"] = "/instrumentation/comm/frequencies/selected-mhz";
6 rp["#com1s"] = "/instrumentation/comm/frequencies/standby-mhz";
7 rp["#nav1u"] = "/instrumentation/nav/frequencies/selected-mhz";
8 rp["#nav1s"] = "/instrumentation/nav/frequencies/standby-mhz";
9 rp["#com2u"] = "/instrumentation/comm[1]/frequencies/selected-mhz";
10 rp["#com2s"] = "/instrumentation/comm[1]/frequencies/standby-mhz";
11 rp["#nav2u"] = "/instrumentation/nav[1]/frequencies/selected-mhz";
12 rp["#nav2s"] = "/instrumentation/nav[1]/frequencies/standby-mhz";
13 rp["#adf1u"] = "/instrumentation/adf/frequencies/selected-khz";
14 rp["#adf1s"] = "/instrumentation/adf/frequencies/standby-khz";
15 rp["#dme1u"] = "/instrumentation/dme/frequencies/selected-mhz";
17 $("#com1u").change(function(o) {
18 fgCommand.propertyAssign(rp["#com1u"], $("#com1u").val());
20 $("#com1s").change(function(o) {
21 fgCommand.propertyAssign(rp["#com1s"], $("#com1s").val());
23 $("#nav1u").change(function(o) {
24 fgCommand.propertyAssign(rp["#nav1u"], $("#nav1u").val());
26 $("#nav1s").change(function(o) {
27 fgCommand.propertyAssign(rp["#nav1s"], $("#nav1s").val());
29 $("#com2u").change(function(o) {
30 fgCommand.propertyAssign(rp["#com2u"], $("#com2u").val());
32 $("#com2s").change(function(o) {
33 fgCommand.propertyAssign(rp["#com2s"], $("#com2s").val());
35 $("#nav2u").change(function(o) {
36 fgCommand.propertyAssign(rp["#nav2u"], $("#nav2u").val());
38 $("#nav2s").change(function(o) {
39 fgCommand.propertyAssign(rp["#nav2s"], $("#nav2s").val());
41 $("#adf1u").change(function(o) {
42 fgCommand.propertyAssign(rp["#adf1u"], $("#adf1u").val());
44 $("#adf1s").change(function(o) {
45 fgCommand.propertyAssign(rp["#adf1s"], $("#adf1s").val());
47 $("#dme1u").change(function(o) {
48 fgCommand.propertyAssign(rp["#dme1u"], $("#dme1u").val());
51 $("#com1swap").click(function() {
52 fgCommand.propertySwap(rp["#com1u"], rp["#com1s"]);
54 $("#nav1swap").click(function() {
55 fgCommand.propertySwap(rp["#nav1u"], rp["#nav1s"]);
57 $("#com2swap").click(function() {
58 fgCommand.propertySwap(rp["#com2u"], rp["#com2s"]);
60 $("#nav2swap").click(function() {
61 fgCommand.propertySwap(rp["#nav2u"], rp["#nav2s"]);
63 $("#adf1swap").click(function() {
64 fgCommand.propertySwap(rp["#adf1u"], rp["#adf1s"]);
67 PropertyChangeListener(function() {
68 SetListener( rp["#com1u"], function(n) {
69 $("#com1u").val( n.value );
71 SetListener( rp["#com1s"], function(n) {
72 $("#com1s").val( n.value );
74 SetListener( rp["#nav1u"], function(n) {
75 $("#nav1u").val( n.value );
77 SetListener( rp["#nav1s"], function(n) {
78 $("#nav1s").val( n.value );
80 SetListener( rp["#com2u"], function(n) {
81 $("#com2u").val( n.value );
83 SetListener( rp["#com2s"], function(n) {
84 $("#com2s").val( n.value );
86 SetListener( rp["#nav2u"], function(n) {
87 $("#nav2u").val( n.value );
89 SetListener( rp["#nav2s"], function(n) {
90 $("#nav2s").val( n.value );
92 SetListener( rp["#adf1u"], function(n) {
93 $("#adf1u").val( n.value );
95 SetListener( rp["#adf1s"], function(n) {
96 $("#adf1s").val( n.value );
98 SetListener( rp["#dme1u"], function(n) {
99 $("#dme1u").val( n.value );