window.onload=function()
	{

	node=document.getElementsByTagName("A");
	for (i=0; i<node.length; i++)
		{
		node[i].onmouseover=function()
			{
			document.getElementById(this.id).style.backgroundPosition="bottom";
			window.name=this.id
			}
		node[i].onmouseout=function()
			{
			document.getElementById(this.id).style.backgroundPosition="top";
			}
		node[i].onclick=function()
			{

			for(reset=0; reset<node.length; reset++)
				{
				node[reset].style.backgroundPosition="top"
				}
			document.getElementById(this.id).blur();
			linkcheck();
	
			}
		}
		
	if (window.location.toString().indexOf("index")==-1)
		{
						
		if (window.text)
			window.text.location=window.name+".html";
		linkcheck();

		}
	}

function linkcheck()
	{
	clicked=document.getElementById(window.name);
	clicked.style.backgroundPosition="bottom"
	document.onmouseout=function()
		{
		clicked.style.backgroundPosition="bottom"
		}
}

function show(trg)
	{
	var obj=document.getElementById("p"+trg);
	if (obj.style.display=="block") 
		{
		obj.style.display="none"
		}
	else
		{
		obj.style.display="block"
		}
	obj.childNodes[0].blur()
	}