function getElementPosition(img) {
	var curleft = curtop = 0;
	if (img.offsetParent) {
		do {
			curleft += img.offsetLeft;
			curtop += img.offsetTop;
		} while (img = img.offsetParent);
	}
	return [ curleft, curtop ];
}
function removeAbsoluteOver(lyr) {
	lyr.innerHTML = '';
}
function absoluteOver(img, lyr) {
	var coors = getElementPosition(img);
	var x = document.getElementById(lyr);
	x.style.position = 'absolute';
	x.innerHTML = '<img alt="" src="' + img.src + '" width="'
			+ img.naturalWidth + '" height="' + img.naturalHeight
			+ '" onMouseOut="removeAbsoluteOver(this.parentNode);" >';
	x.style.top = '0px';
	x.style.left = '50px';
	x.style.zIndex = '100';
}
