function updateMenuPos(pMenuObj)
{
	var jWidthCounter, jWidth, y, z, jMenuCount, jTopMenuCount, jTop
	if (document.getElementById)
	{
		//jWidthCounter = eval(document.getElementById("ctl00_Header1_SubMenu1_submenuback").offsetLeft);
		jWidthCounter = findPosX(document.getElementById(gBackImage));
		jTop = findPosY(document.getElementById(gBackImage));
		jMenuCount = 0;
		for(var i=0;i <= A_MENUS[0].a_children.length - 1;i++)
		{
			document.getElementById("e0_" + jMenuCount + "o").style.left = eval(jWidthCounter)+'px';
			document.getElementById("e0_" + jMenuCount + "o").style.top = eval(jTop)+'px';
			//alert("e0_" + jMenuCount + "o");
			//alert(eval(jWidthCounter));
			jWidth = document.getElementById("e0_" + jMenuCount + "o").style.width;
			z = jWidth.indexOf('px');
			y = jWidth.substr(0,z);
			jTopMenuCount = jMenuCount;
			jMenuCount++;
			//alert(A_MENUS[0].a_index[i].a_children.length);
			//alert(A_MENUS[0].a_children[i].a_children.length);
			//if (A_MENUS[0].a_index[i].a_children.length > 0)
			if (A_MENUS[0].a_children[i].a_children != undefined) {
				if (A_MENUS[0].a_children[i].a_children.length > 0)
				{
					//for (var j=0;j <= A_MENUS[0].a_index[i].a_children.length - 1;j++)
					for (var j=0;j <= A_MENUS[0].a_children[i].a_children.length - 1;j++)
					{
						//i = i + A_MENUS[0].a_index[i].a_children.length;
						document.getElementById("e0_" + jMenuCount + "o").style.left = eval(jWidthCounter)+'px';
						//alert(eval(jTop) + eval(document.getElementById("e0_" + jTopMenuCount + "o").style.height.substr(0,document.getElementById("e0_" + jTopMenuCount + "o").style.height.indexOf('px'))));
						document.getElementById("e0_" + jMenuCount + "o").style.top = eval(jTop) + eval(document.getElementById("e0_" + jTopMenuCount + "o").style.height.substr(0,document.getElementById("e0_" + jTopMenuCount + "o").style.height.indexOf('px')))+'px';
						//alert("e0_" + jMenuCount + "o");
						//alert(eval(jWidthCounter));
						jMenuCount++;
					}
				} 
			}
			jWidthCounter = eval(jWidthCounter) + eval(y);
		}
	}
}

function findPosX(obj) {
    var curleft = 0;
    if(obj.offsetParent)
        while(1) 
        {
          curleft += obj.offsetLeft;
          if(!obj.offsetParent)
            break;
          obj = obj.offsetParent;
        }
    else if(obj.x)
        curleft += obj.x;
    return curleft;
}

function findPosY(obj)
  {
    var curtop = 0;
    if(obj.offsetParent)
        while(1)
        {
          curtop += obj.offsetTop;
          if(!obj.offsetParent)
            break;
          obj = obj.offsetParent;
        }
    else if(obj.y)
        curtop += obj.y;
    return curtop;
  }
