function showCat(strID) {
if (document.getElementById(strID).style.display == "") document.getElementById(strID).style.display = "none";
if (document.getElementById(strID).style.display == "none")
	{
		document.getElementById(strID).style.display = "block";
		document.images[strID + "_button"].src = "img/minus.gif";
	}
else
	{
		document.getElementById(strID).style.display = "none";
		document.images[strID + "_button"].src = "img/plus.gif";
	}
}

function showRefCat() {
if (location.search) {
	var strRef = location.search.substr(1);
	
	while (strRef.search(/_/) != -1) {
	if (document.getElementById(strRef).style.display != "block")
		{
			document.getElementById(strRef).style.display = "block";
			document.images[strRef + "_button"].src = "img/minus.gif";
		}
	strRef = strRef.substring(0,strRef.lastIndexOf("_"));
	} 
}
}
function showAll() {
var strCat;
if (document.getElementById("sAll").childNodes[1].firstChild.nodeValue == 'Alle Kategorien aufklappen') {
for (i = 0; i < document.images.length; i++)
	{
	if (document.images[i].src.search(/zip|fh11|eps|psd/) == -1) {
	  strCat = (document.images[i].name).substring(0,document.images[i].name.length - 7);
	  document.getElementById(strCat).style.display = "block";
	  document.images[strCat + "_button"].src = "img/minus.gif";
		}
	}
document.getElementById("sAll").childNodes[1].firstChild.nodeValue = 'Alle Kategorien zuklappen';
}
else {
for (i = 0; i < document.images.length; i++)
	{
	if (document.images[i].src.search(/zip|fh11|eps|psd/) == -1) {
	  strCat = (document.images[i].name).substring(0,document.images[i].name.length - 7);
	  document.getElementById(strCat).style.display = "none";
	  document.images[strCat + "_button"].src = "img/plus.gif";
		}
	}
document.getElementById("sAll").childNodes[1].firstChild.nodeValue = 'Alle Kategorien aufklappen';
}
}

