menusGo();
	
function displayMenu(imgId, menuName, plusPosX, plusPosY) {
  var imgPosition;
  imgPosition = imgXY(imgId);                     
  showPanel(menuName, imgPosition.x+parseInt(plusPosX), imgPosition.y+parseInt(plusPosY));
}

function imgXY(imgID) {
  var XY = new Object();
  var imgObj = document.images[imgID];
  if (document.layers) {
	XY.x = eval(imgObj).x;
	XY.y = eval(imgObj).y;
  } else {
	var x,y, tempEl;
	x = eval(imgObj).offsetLeft;
	y = eval(imgObj).offsetTop;
	tempEl = eval(imgObj).offsetParent;
	while (tempEl != null) {
		x += tempEl.offsetLeft;
		y += tempEl.offsetTop;
		tempEl = tempEl.offsetParent;
	}
	XY.x = x;
	XY.y = y;
  }
  return XY;
}