User function to compute duration

These changes enhance the skrollr menu plugin by adding the option to provide a user defined function that computes animation duration.