function searchAuthor(e)
{
	var authors=$('authors');
	if (authors.style.display=="block")
	{
		authors.style.display="none";
		return false;
	}
	authors.style.display="block";
	p=findPos(e);
	p[1]+=e.offsetHeight;
	p[0]-=50;
	authors.style.top=p[1]+"px";
	authors.style.left=p[0]+"px";
	return false;
}
function searchCategory(e)
{
	var cats=$('categories');
	if (cats.style.display=="block")
	{
		cats.style.display="none";
		return false;
	}
	cats.style.display="block";
	p=findPos(e);
	p[1]+=e.offsetHeight;
	p[0]-=50;
	cats.style.top=p[1]+"px";
	cats.style.left=p[0]+"px";
	return false;
}
function searchDate(e)
{
	var dates=$('dates');
	if (dates.style.display=="block")
	{
		dates.style.display="none";
		return false;
	}
	dates.style.display="block";
	p=findPos(e);
	p[1]+=e.offsetHeight;
	p[0]-=50;
	dates.style.top=p[1]+"px";
	dates.style.left=p[0]+"px";
	return false;
}
function findPos(e)
{
	var x=y=0;
	while (e)
	{
		x+=e.offsetLeft;
		y+=e.offsetTop;
		e=e.offsetParent;
	}
	return [x,y];
}
