var JQUERY4U = {} |
JQUERY4U.UTIL = |
{ |
/* |
* Utility function used to make anchor links animate smoothly instead of jumping. |
*/ |
smoothAnchor: |
function ( anchorClass ) |
{ |
$ ( 'a.' +anchorClass ).click ( function () |
{ |
elementClick = $ ( this ).attr ( "href" ) |
destination = $ ( elementClick ).offset().top; |
$ ( "html:not(:animated),body:not(:animated)" ).animate ( { scrollTop: destination}, 1100 ); |
return false ; |
} ) |
} |
} |