This is my first post of hopefully many here on code review. I am writing a function for a rotating navigation with JS and jQuery. I am using a plugin called jQuery transit for animating rotation. The code works, but it is very long for such a simple function, is. Is there any way this can be improved.?