/* smooth scrolling changes links that link to other parts of this page to scroll smoothly to those links rather than jump to them directly, which can be a little disorienting. sil, http://www.kryogenix.org/ v1.0 2003-11-11 v1.1 2005-06-16 wrap it up in an object */ var ss = { fixalllinks: function() { // get a list of all links in the page var alllinks = document.getelementsbytagname('a'); // walk through the list for (var i=0;i tag corresponding to this href // first strip off the hash (first character) anchor = target.hash.substr(1); // now loop all a tags until we find one with that name var alllinks = document.getelementsbytagname('a'); var destinationlink = null; for (var i=0;i