script for header text rotation