var i= 0,stoppen, open_dicht= 'dicht', j;

function beginnen(elementid, hoogte)
	{
	if (stoppen)
		{
		clearInterval(stoppen);
		}
	stoppen = setInterval("fixdediv('"+elementid+"', '"+hoogte+"')",1);
	}

function fixdediv(x, hoogte)
	{
	
	if (open_dicht == 'dicht')
		{
		if(i >= hoogte)
			{
			clearInterval(stoppen);
			open_dicht = 'open';	
			return;		
			}
		else
			{
			x = document.getElementById(x);
			x.style.height = i+"px";
			i = i + 10;
			}
		}
		
	if (open_dicht == 'open')
		{
		if (i <= 0 && open_dicht != 'dicht')
			{
			clearInterval(stoppen);
			open_dicht = 'dicht';
			return;	
			}
		else
			{
			x = document.getElementById(x);
			i = i - 10;
			x.style.height = i+"px";
			}
		}
		
	}
