function BlogCat(auswahl)
{
	if(auswahl == "newCat")
	{
		document.getElementById('newCatSPAN').style.display = '';
	}
	else
	{
		document.getElementById('newCatSPAN').style.display = 'none';
	}
}
function hideLink(div1,div2)
{
	if(document.getElementById(div1).style.display != 'none')
	{
		document.getElementById(div1).style.display = 'none';
		document.getElementById(div2).style.display = '';
	}
	else
	{
		document.getElementById(div1).style.display = '';
		document.getElementById(div2).style.display = 'none';
	}
}
function showBLOG(BLOG,aaa)
{
	if (parseInt(document.getElementById(BLOG).style.height) > 0)
	{
		if(timeOut[BLOG])
		{
			clearTimeout(timeOut[BLOG]);
		}
		slideupBLOG(0,BLOG);
	}
	else
	{
		if(typeof timeOut != 'undefined')
		{
			clearTimeout(timeOut[BLOG]);
		}
		document.getElementById(BLOG).style.display = 'block';
		
		if (document.getElementById(aaa).value)
		{
		  document.getElementById(BLOG).style.height = document.getElementById(aaa).value;
		}
		else
		{
		  document.getElementById(BLOG).style.height = HoeheBLOG (BLOG);
        	  document.getElementById(aaa).value = HoeheBLOG (BLOG);
		}
		
		document.getElementById(BLOG).style.display = 'none';
		changeSizeBLOG("0px",BLOG);
		
		slideBLOG(1,BLOG,aaa);
	}
}
function HoeheBLOG(BLOG)
{
	if (document.getElementById) {
	x = document.getElementById(BLOG).offsetHeight;
	} else if (document.all){
	x = document.all.top.getAttribute("offsetHeight", "false"); 
	} else {
	x = 0;
	}
	return (x);
}
function hideBLOG(BLOG)
{
        document.getElementById(BLOG).style.display = 'none';
}
function changeSizeBLOG(height,BLOG)
{
        document.getElementById(BLOG).style.height = height;
}
function slideBLOG(down,BLOG,aaa)
{
	if(typeof timeOut == 'undefined')
	{
		timeOut = new Array;
	}
        if (down && parseInt(document.getElementById(BLOG).style.height) < document.getElementById(aaa).value)
        {
          timeOut[BLOG] = setTimeout(function () { slideBLOG(1,BLOG,aaa) }, 50);
          changeSizeBLOG(parseInt(document.getElementById(BLOG).style.height) + 5 + "px",BLOG);
          document.getElementById(BLOG).style.display = 'block';
        }
}
function slideupBLOG(down,BLOG)
{
	if(typeof timeOut == 'undefined')
	{
		timeOut = new Array;
	}
	if (!down && parseInt(document.getElementById(BLOG).style.height) > 0)
        {
          timeOut[BLOG] = setTimeout(function () { slideupBLOG(0,BLOG) }, 50);
          if ((parseInt(document.getElementById(BLOG).style.height) - 5) <= 0)
          {
            changeSizeBLOG("0px",BLOG);            
            hideBLOG(BLOG);
          }
          else
          {
            changeSizeBLOG(parseInt(document.getElementById(BLOG).style.height) - 5 + "px",BLOG);
          }
        }
}
