// From my own website(!) //TODO: only do this for links in the table of contents menu function find_selflink() { var a = document.links; var i = 0; while (i < a.length) { if (a[i].href == document.URL) { var c; var j; var s_new = document.createElement("span"); s_new.className = "currentlink"; c = a[i].childNodes; for (j=0; j