function posLayer(whichCol,whichLayer)
{
	myPos = findPosX(document.getElementById(whichCol));
	document.getElementById(whichLayer).style.left = myPos;
}

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)
		{
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (obj.x)
		curleft += obj.x;
		
	return curleft;
}
*/
function posLayer2(whichCol,whichLayer,moveBy)
{
	myPos = findPosX(document.getElementById(whichCol));
	document.getElementById(whichLayer).style.left = myPos + parseInt(moveBy);
}