//I got the basic code for these first three functions from http://www.quirksmode.org
function findPosX(obj) {
	var curleft = 0;
	if (obj.offsetParent) {
		while (obj.offsetParent) {
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	} else if (obj.x) curleft = obj.x;
	return curleft;
}

function findPosY(obj) {
	var curtop = 0;
	if (obj.offsetParent) {
		while (obj.offsetParent) {
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	} else if (obj.y) curtop = obj.y;
	return curtop;
}

function setLyr(positioningObject, objectToSet) {
	var newX = findPosX(positioningObject);
	var newY = findPosY(positioningObject);
	objectToSet.style.top = (newY - 85) + 'px';
	objectToSet.style.left = (newX - 190) + 'px';
}