// JavaScript Document
var isNS = (navigator.appName == "Netscape");
function getIEXCoord(imgElem) {
        xPos = eval(imgElem).offsetLeft;		
		tempEl = eval(imgElem).offsetParent;
        while (tempEl != null) {
                xPos += tempEl.offsetLeft;
                tempEl = tempEl.offsetParent;
        }
        return xPos;
}

function getIEYCoord(imgElem) {
        yPos = eval(imgElem).offsetTop;
        tempEl = eval(imgElem).offsetParent;
        while (tempEl != null) {
                yPos += tempEl.offsetTop;
                tempEl = tempEl.offsetParent;
        }
        return yPos;
}
function getXCoord(imgID) {		
		if (isNS) xPos = imgID.x;
        else xPos = getIEXCoord(imgID)			
		return xPos;
}

function getYCoord(imgID) {
  if (isNS) yPos = imgID.y;
  else yPos = getIEYCoord(imgID); 
  return yPos;
}
var posTop=0;
var posLeft=0;
function show_position(id)
{
	id="details_img"+id;		
	posTop = getYCoord(document.getElementById(id));
	posLeft = getXCoord(document.getElementById(id));	
	document.getElementById('layer1').style.left = posLeft-250+"px";
	document.getElementById('layer1').style.top =  posTop-10+"px";
}