
function showhidden(element)
{
	var toShowHidden = window.document.getElementsByName(element);
	//window.alert(toShowHidden.length);
	for (var i = 0; i < toShowHidden.length; i++)
		{
		if(toShowHidden[i].style.visibility=='hidden')
			{
			toShowHidden[i].style.visibility='visible';
			toShowHidden[i].style.height="auto";
			toShowHidden[i].style.width="auto";
			}
		else
			{
			toShowHidden[i].style.visibility='hidden';
			toShowHidden[i].style.height="1px";
			toShowHidden[i].style.width="1px";
			}
		}
}

function hidden(element)
{
	var toShowHidden = window.document.getElementsByName(element);
	//window.alert(toShowHidden.length);
	for (var i = 0; i < toShowHidden.length; i++)
		{
		if(toShowHidden[i].style.visibility=='visible')
			{
			toShowHidden[i].style.visibility='hidden';
			toShowHidden[i].style.height="1px";
			toShowHidden[i].style.width="1px";
			}
		}
}

function hiddenByTag(element)
{
	var toShowHidden = window.document.getElementsByTagName(element);
	//window.alert(toShowHidden.length);
	for (var i = 0; i < toShowHidden.length; i++)
		{
		//if(toShowHidden[i].style.visibility=='visible')
			//{
			toShowHidden[i].style.visibility='hidden';
			toShowHidden[i].style.display="none";
			toShowHidden[i].style.height="1px";
			toShowHidden[i].style.width="1px";
			//toShowHidden[i].className = 'hidden';
			//}
		}
}

function show(element)
{
	var toShowHidden = window.document.getElementsByName(element);
	//window.alert(toShowHidden.length);
	for (var i = 0; i < toShowHidden.length; i++)
		{
		if(toShowHidden[i].style.visibility=='hidden')
			{
			toShowHidden[i].style.visibility='visible';
			toShowHidden[i].style.height="auto";
			toShowHidden[i].style.width="auto";
			}
		}
}

function showByTag(element)
{
	var toShowHidden = window.document.getElementsByTagName(element);
	//window.alert(toShowHidden.length);
	for (var i = 0; i < toShowHidden.length; i++)
		{
		//if(toShowHidden[i].style.visibility=='hidden')
			//{
			toShowHidden[i].style.visibility='visible';
			toShowHidden[i].style.display="block";
			toShowHidden[i].style.height="auto";
			toShowHidden[i].style.width="auto";
			//}
		}
}

function showID(element)
{
	var toShowHidden = window.document.getElementById(element);
	if(toShowHidden.style.visibility=='hidden' || toShowHidden.style.visibility=='')
		{
		toShowHidden.style.visibility='visible';
		toShowHidden.style.display="block";
		toShowHidden.style.height="auto";
		toShowHidden.style.width="auto";
		}
		else
		{
		toShowHidden.style.visibility='hidden';
		toShowHidden.style.display="none";
		toShowHidden.style.height="1px";
		toShowHidden.style.width="1px";
		}
}

function showDIVS()
{
	var DIVS = window.document.getElementsByTagName("DIV");
	var hDIV = window.document.getElementById("headerDIV");
	var bDIV = window.document.getElementById("bodyDIV");
	var sDIV = window.document.getElementById("search");
		for (var i = 0; i < DIVS.length; i++)
		{
		if(DIVS[i]!=hDIV && DIVS[i]!=bDIV && DIVS[i]!=sDIV)
			{
			DIVS[i].style.visibility='visible';
			DIVS[i].style.height="auto";
			DIVS[i].style.width="auto";
			DIVS[i].style.display="block";
			}
		}
}

function closeDIVS()
{
	var DIVS = window.document.getElementsByTagName("DIV");
	var hDIV = window.document.getElementById("headerDIV");
	var bDIV = window.document.getElementById("bodyDIV");
	var sDIV = window.document.getElementById("search");
		for (var i = 0; i < DIVS.length; i++)
		{
		if(DIVS[i]!=hDIV && DIVS[i]!=bDIV && DIVS[i] != sDIV)
			{
			DIVS[i].style.visibility='hidden';
			DIVS[i].style.height="1px";
			DIVS[i].style.width="1px";
			DIVS[i].style.display="none";
			}
		}
}

function enable(id)
{
	var uebersicht = document.getElementById('uebersicht');
	var kurzfassung = document.getElementById('kurzfassung');
	var alleDetails = document.getElementById('alleDetails');
	uebersicht.className = 'scope';
	kurzfassung.className = 'scope';
	alleDetails.className = 'scope';
	if(id == 'uebersicht')
	{
		uebersicht.className = "scopeBig";
	}
	else if (id == 'kurzfassung')
	{
		kurzfassung.className = "scopeBig";
	}
	else if (id == 'alleDetails')
	{
		alleDetails.className = "scopeBig";
	}	
}
