// Mouse Event Functions
// mouse events for the Drag object and Scroll2 object
// 19991007

// Copyright (C) 1999 Dan Steinman
// Distributed under the terms of the GNU Library General Public License
// Available at http://www.dansteinman.com/dynapi/

var mouseX = 0;
var mouseY = 0;
var gotlayers = 0;

function initMouseEvents()
{
	document.onmousedown = mouseDown

	if (is.ns4) document.captureEvents(Event.MOUSEDOWN)
}

function mouseDown(e)
{
	mouseX = (is.ns || is.ns5 || is.ns6)?e.pageX:event.x+document.body.scrollLeft;
	mouseY = (is.ns || is.ns5 || is.ns6)?e.pageY:event.y+document.body.scrollTop;
}

