function getDim(el)
{
   for (var lx=0,ly=0;el!=null;lx += el.offsetLeft,ly+=el.offsetTop,el=el.offsetParent);

   return {x:lx,y:ly}
}

function reDo()
{ 
   window.location.reload();
}

function reposition(menu,rel,x,y)
{
   if (!x)
   {
      x = 0;
   }

   if (!y)
   {
      y = 0;
   }

   document.getElementById(menu).style.top = ((getDim(document.getElementById(rel)).y) + y) + "px";
   document.getElementById(menu).style.left = ((getDim(document.getElementById(rel)).x) + x) + "px";
}

window.onresize = function()
{
   positionMenus();
}