A FUNCTIONAL VERSION OF THE BIRKHOFF ERGODIC THEOREM FOR A NORMAL INTEGRAND: A VARIATIONAL APPROACH