Phase Transitions in Surface Films