(1)  In the event a petition for modification of a child custody order is filed during the time that the court action may be subject to the servicemembers civil relief act, 50 U.S.C. App. section 501 et seq., because one (1) of the parties is a servicemember as defined in said act, the court shall determine if said act applies to the action pursuant to the jurisdiction provisions of the act. If the court determines that the act does apply, the court shall thereafter act in compliance with the terms of said act and, in addition, the following shall apply to the extent not in violation of said act:
(a)  If the court determines that modification is in the best interest of the child pursuant to the provisions of section 32-717, Idaho Code, and the party who is a servicemember is deployed, the court may only enter an order or decree temporarily modifying the existing child custody order during the period of deployment, and upon completion by the servicemember of the period of deployment, the order or decree shall expire sixty (60) days after notification to the court, and to all persons entitled to notice in the action, of the deployed servicemember’s completion of deployment. Provided however, that:
(i)   The court may thereafter conduct an expedited or emergency hearing for resolution of the child’s custody on the filing of a motion, filed prior to the expiration of the order, alleging that it would not be in the best interests of the child pursuant to the provisions of section 32-717, Idaho Code, if the order expires;
(ii)  If a motion is so filed, the temporary order shall be extended until the court rules on the motion; and
(iii) Following the return from deployment of a deploying parent and until the temporary order for child custody is terminated, the court shall enter a temporary order granting the deploying parent reasonable contact with the child unless it is contrary to the best interests of the child pursuant to the provisions of section 32-717, Idaho Code.
(b)  If the deployment of a party who is a servicemember affects the party’s ability or anticipated ability to appear at a regularly scheduled hearing related to a petition for modification of child custody, the court may provide for an expedited hearing to allow the servicemember to appear.
(c)  If the deployment of a party who is a servicemember prevents the servicemember from appearing in person at a hearing related to a petition for the modification of child custody, the court may provide, upon reasonable advance notice to the parties, for the servicemember to present testimony and evidence by electronic means, if such can be done without prejudice to the ability of the servicemember to adequately and reasonably present such testimony and evidence.
(2)  For purposes of this section:
(a)  "Deployed" or "deployment" means military service performed in compliance with a valid order received by an active duty or reserve member of the armed services of the United States, national guard or United States coast guard to report for combat operations, contingency operations, peacekeeping operations, temporary duty, a remote tour of duty or other active service for which the deploying party reports. The term shall include those members who are actually deployed as well as those members with valid orders preparing to be deployed;
(b)  "Electronic means" includes communication by telephone, video teleconference or the internet.