(a) The local law of a bank's jurisdiction governs perfection, the effect of perfection or nonperfection, and the priority of a security interest in a deposit account maintained with that bank.
(b) The following rules determine a bank's jurisdiction for purposes of AS 45.29.301 - 45.29.342:
(1) if an agreement between the bank and the debtor governing the deposit account expressly provides that a particular jurisdiction is the bank's jurisdiction for purposes of AS 45.29.301 - 45.29.342, this chapter, or the code, that jurisdiction is the bank's jurisdiction;
(2) if (1) of this subsection does not apply and an agreement between the bank and its customer governing the deposit account expressly provides that the agreement is governed by the law of a particular jurisdiction, that jurisdiction is the bank's jurisdiction;
(3) if neither (1) nor (2) of this subsection applies and an agreement between the bank and its customer governing the deposit account expressly provides that the deposit account is maintained at an office in a particular jurisdiction, that jurisdiction is the bank's jurisdiction;
(4) if (1), (2), or (3) of this subsection does not apply, the bank's jurisdiction is the jurisdiction in which the office identified in an account statement as the office serving the customer's account is located;
(5) if (1), (2), (3), or (4) of this subsection does not apply, the bank's jurisdiction is the jurisdiction in which the chief executive office of the bank is located.