Added ghetto timer; minor reorganization of animated background code