Returns the zero-based index of the active page.
Call this function to determine the zero-based index of the active page.