function MousePosition()
{
	var x;
	var y;


	this.updatePosition = function(inEvent)
    {
        if (document.layers)
        {
			x = inEvent.pageX;
            y = inEvent.pageY;
        }
		else if (document.all)
        {
            x = window.event.x + document.body.scrollLeft;
            y = window.event.y + document.body.scrollTop;
        }
		else
        {
            x = inEvent.pageX;
            y = inEvent.pageY;
        }
    };


	this.getX = function()
	{
		return x;
	};


	this.getY = function()
	{
		return y;
	};
};

