// JavaScript Document
 var cur="";
function showPanel(obj,id)
{  if(cur!="")
		{
			$get(cur).style.display='none';
		}
	var p=getPosition(obj);
	$get(id).style.left=(p['x'])+"px";
	$get(id).style.top=(p['y']+23 )+"px";
	$get(id).style.display='block';
	cur=id;
}
function hidePanel(id)
{
	$get(id).style.display='none';
}
function $get(id)
{
	return	document.getElementById(id);
}

function getPosition(obj)
{
	var r = new Array();
	r['x'] = obj.offsetLeft;
	r['y'] = obj.offsetTop;
	while(obj = obj.offsetParent) {
		r['x'] += obj.offsetLeft;
		r['y'] += obj.offsetTop;
	}
	return r;
}

