menusGo();
	
function displayMenu(imgId, menuName, plusPosX, plusPosY) {
	var imgPosition;
	imgPosition = getObjPos(imgId);                     
	showPanel(menuName, imgPosition.x+parseInt(plusPosX), imgPosition.y+parseInt(plusPosY));
}

function getObjPos( id ) {
	var XY = new Object();
	//var imgObj = document.images[imgID];
	var imgObj = document.getElementById( id );
	
	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;
}

