
/* function to find page left of an object */
var getPageOffsetLeft = function(o) {
	var x;
	x = o.get('offsetLeft');
	if (o.get('offsetParent') !=  null)
		x += getPageOffsetLeft(o.get('offsetParent'));
	return x;
};

/* function to find page top of an object */
var getPageOffsetTop = function(o) {
	var y;
	y = o.get('offsetTop');
	if (o.get('offsetParent') !=  null)
		y += getPageOffsetTop(o.get('offsetParent'));
	return y;
};

