function showMoveOverlayObject (parentID, followID, posVLine) {
 
    var arrPosParent = getParentPosition(parentID);
    var followWidth = getFollowWidth(followID);
 
    var tmpDivFollowWidth = followWidth / 2;
    var tmpArrPosParent = arrPosParent["width"] / 2 + arrPosParent["left"];
    var tempPosLeftResult = tmpArrPosParent - tmpDivFollowWidth;
 
    var theObject = document.getElementById(followID);
    var theLineObject = document.getElementById(posVLine);
     
    if(theObject != null) {
      //theObject.style.left = tempPosLeftResult + "px";
      theLineObject.style.left = (tmpArrPosParent-1) + "px";
      theLineObject.style.visibility = "visible";
    }

}

function getParentPosition (object) {
  var arrPos = new Array(2);

  if (!object)  {
    return r;
  }
 
  else if (typeof object == 'string') {
    object = document.getElementById(object);
  }
 
  if (typeof object != 'object') {
    return r;
  }
 
  if (typeof object.offsetWidth != null) {
    arrPos["width"] = object.offsetWidth;
    arrPos["left"] = parseInt(object.offsetLeft);
  }
 
  if (arrPos["width"]%2 != 0) {
    arrPos["width"] += 1;
  }
 
  return arrPos;
}


function getFollowWidth (object) {
  var objWidth;
 
  if (!object) return r;
  else if (typeof object == 'string') object = document.getElementById(object);
 
  if (typeof object != 'object') return r;
  
  if (object != null) {
    objWidth = object.offsetWidth;
  }
   
  var tempObjWidth = objWidth;
 
  if (tempObjWidth%2 == 0) {
 	return objWidth;
  }
 
  else {
    return (objWidth + 1) ;
  }

}

function showHideInsolvencySubMenu (id) {

  if (document.getElementById('tx_arrbszshowinsolvencies_pi2-Sub-' + id).style.display == "block") {
    document.getElementById('tx_arrbszshowinsolvencies_pi2-Sub-' + id).style.display = "none";
  } else {
    document.getElementById('tx_arrbszshowinsolvencies_pi2-Sub-' + id).style.display = "block";
  }
  
}
