/**
 * Point Class
 *
 * @author 	Eric Jeker <eric.jeker@virtua.ch>
 * @version	0.1
 * @licence DWYW : Do Whatever You Want
**/

var Point = {
	x : 0,
	y : 0,
	
	// Set the x & y from an element
	setFromElement : function (el)	{
		Point.x = el.offsetLeft ;
		Point.y = el.offsetTop ;
	},

	// Set the x & y from an event
	setFromEvent : function (ev)	{
		Point.x = ev.clientX ;
		Point.y = ev.clientY ;
	}
}