Added some jQuery functions, added auto-switch-timer support.