var leftNavWidth=208;
function getPageXY(elm)
{
  var point = { x: 0, y: 0 };
while (elm)
{
    point.x += elm.offsetLeft;
    point.y += elm.offsetTop;
	elm = elm.offsetParent;
  }
  return point;
}

function showLayer(inObj, inVal){
var strVal;
var tempObj, tempX, tempY, tempLeftNavWidth, tempXY;
tempXY = getPageXY(inVal);
//tempX = getPageX(inVal);
//tempY = getPageY(inVal);
tempObj = document.getElementById(inObj);
tempObj.style.left = tempXY.x + leftNavWidth + "px";
tempObj.style.top = tempXY.y + "px";
//alert(tempObj.style.top + " " + tempObj.style.left);
tempObj.style.visibility="visible";
strVal = inObj.replace("subNav", "");
tempObj2 = document.getElementById("tr"+strVal);
//alert(tempObj2)
tempObj2.className="tr-selected";
//alert(tempObj);
//else
//alert(inObj);

}

function hideLayer(inObj){
tempObj = document.getElementById(inObj);
//alert(eval(inObj).style.visibility);
tempObj.style.visibility="hidden";
strVal = inObj.replace("subNav", "");
tempObj2 = document.getElementById("tr"+strVal);
tempObj2.className="category-icon";
}