// Copyright (C) 1999 Dan Steinman
// Distributed under the terms of the GNU Library General Public License
// Available at http://www.dansteinman.com/dynapi/
// Modified by Ronnie Ericsson - ronnie@waycap.se

var extraX = 0
var extraY = 0
var Scr = 0
var go = false
var mouseRef = window

function initMouseEvents() {
	if(is.ns) mouseRef.document.captureEvents(Event.MOUSEMOVE)
	mouseRef.document.onmousemove = mouseMove
}

function mouseMove(e) {
	//if(is.ie) { mouseRef.document.body.scrollTop = 0 ; mouseRef.document.body.scrollLeft = 0}
	var x = (is.ns)? e.pageX : mouseRef.event.clientX + mouseRef.document.body.scrollLeft
	var y = (is.ns)? e.pageY : mouseRef.event.clientY + mouseRef.document.body.scrollTop
	if(menu.mouseMove(x,y)) return true
	else return true
}

// include drag.js and/or scroll2.js after this file to overwrite these variables
Drag	= null
Scroll	= null
Menu	= null

