%globalDTD; ]> document.getAnonymousElementByAttribute(this, "anonid", "scrollbox"); document.getAnonymousElementByAttribute(this, "anonid", "scrollbutton-up"); document.getAnonymousElementByAttribute(this, "anonid", "scrollbutton-down"); null null null null document.defaultView.getComputedStyle(this._scrollbox, "").direction == "ltr"; 2 || amountToScroll < -2) { scrollAmount = round(amountToScroll * 0.2); scrollAmounts.push (scrollAmount, scrollAmount, scrollAmount); amountToScroll -= 3 * scrollAmount; } while (this._isScrolling < 0 && amountToScroll < 0 || this._isScrolling > 0 && amountToScroll > 0) { amountToScroll -= (scrollAmount = round(amountToScroll * 0.5)); scrollAmounts.push(scrollAmount); } this._smoothScrollTimer = setInterval(processFrame, 60, this); processFrame(this); ]]> 0) edge += scrollBox.width; else edge--; var nextElement = this._elementFromPoint(edge); if (!nextElement) return; var targetElement; while (index < 0 && nextElement) { targetElement = nextElement; nextElement = nextElement.previousSibling; index++; } while (index > 0 && nextElement) { targetElement = nextElement; nextElement = nextElement.nextSibling; index--; } this.ensureElementIsVisible(targetElement); ]]> aX) high = mid - 1; else if (x + bO.width < aX) low = mid + 1; else return element; } return null; ]]> 0 0 0 150 3) return; var scrollLeft = (aEvent.originalTarget == this._scrollButtonUp); if (!this._isLTRScrollbox) scrollLeft = !scrollLeft; var targetElement; if (aEvent.detail == 2) { // scroll by the width of the scrollbox; make sure that the next // partly-hidden element will become fully visible. var scrollBox = this.scrollBoxObject; var edge = scrollBox.screenX; if (scrollLeft) edge -= scrollBox.width; else edge += scrollBox.width * 2; targetElement = this._elementFromPoint(edge); if (targetElement) targetElement = scrollLeft ? targetElement.nextSibling : targetElement.previousSibling; } if (!targetElement) { // scroll to the first resp. last element var container = this.hasChildNodes() ? this : document.getBindingParent(this); targetElement = scrollLeft ? container.firstChild : container.lastChild; } this.ensureElementIsVisible(targetElement); ]]>