// Move an element directly on top of another element (and optionally
// make it the same size)
function Cover(bottom, top, ignoreSize)
{
    var location = Sys.UI.DomElement.getLocation(bottom);
    top.style.position = 'absolute';
    top.style.top = location.y + 'px';
    top.style.left = location.x + 'px';
    if (!ignoreSize)
    {
        top.style.height = bottom.offsetHeight + 'px';
        top.style.width = bottom.offsetWidth + 'px';
    }
}

function findPos(obj)
{
	var curleft = curtop = 0;
	if (obj.offsetParent)
	{
	    do {
	        curleft += obj.offsetLeft;
	        curtop += obj.offsetTop;
	    } while (obj = obj.offsetParent);
	}
    return [curleft,curtop];
}