var poplink;
var proto;
var poptimer;

function popLink(obj) {
	name = obj.getAttribute('id');
  pos = getOffset(obj);
	x = pos[1];
	y = pos[0] + obj.offsetHeight;
	//alert(expose(pos)); return;
	p = document.createElement("DIV");
	p.className = "popDownDiv";
	p.style.left = (x + (isIE ? 1 : 0)) + 'px';
	p.style.top = (y + (isIE ? 1 : 0)) + 'px';
	p.style.width = obj.offsetWidth - 2 + 'px';
	if (proto = document.getElementById(name + '_proto')) p.innerHTML = proto.innerHTML;
	poplink = document.body.appendChild(p);
	poplink.style.display = 'block';
	poplink.onmouseover = function() {
	  if (poptimer) window.clearTimeout(poptimer);
		this.style.display = 'block';
	}
	poplink.onmouseout = function() { poptimer = window.setTimeout( "poplink.close()",100); 	}
	poplink.close = function() {
		this.style.display = 'none';
	}
	obj.onmouseout = function() { poptimer = window.setTimeout( "poplink.close()",100); }
}
