ExtScroll = {
	
	id: null,
	
	initialize: function() {
		var eventName;
		if(NavigatorInfo.isFirefox) {
			eventName = "DOMMouseScroll";
		} else if(NavigatorInfo.isIE) {
			eventName = "onmousewheel";
		} else {
			eventName = "mousewheel";
		}
		var target = document;
	    if (target.addEventListener) target.addEventListener(eventName, ExtScroll.onWheel, false);
	    if (target.attachEvent) target.attachEvent(eventName, ExtScroll.onWheel);
	},
	
	onWheel: function(e) {
		clearInterval(Scroller.interval);
		ExtScroll.onComplete();
	},
	
	goto: function(d,id) {
		Scroller.speed = 10;
		ExtScroll.id = id;
		var h = document.body.scrollHeight;
		if(d > h) d = h; 
		clearInterval(Scroller.interval);
		Scroller.interval=setInterval('Scroller.scroll('+d+')',10);	
	},
	
	onComplete: function() {
		if(!ExtScroll.id) return;
		var el = document.getElementById(ExtScroll.id);
		el.onScroll();
		ExtScroll.id = null;
	}
	
}

ExtScroll.initialize();