
var hh=0;
var inter;

//we show the box by setting the visibility of the element and incrementing the height smoothly
function ShowBox()
{

//Depending on the amount of text, set the maximum height here in pixels
	if(hh==500)
	{
	clearInterval(inter);
	window.document.location = "#contactform";
	return;
	}

	obj = document.getElementById("cover");
	obj.style.visibility = 'visible';
	hh+=10;
	obj.style.height = hh + 'px';
}

//same way as above but reversed
function HideBox()
{
	obj = document.getElementById("cover");

	if(hh==2)
	{
	obj.style.visibility = 'hidden';
	obj.style.height = '0.1em';
	clearInterval(inter);
	return;
	}
	hh-=2;
	obj.style.height = hh + 'px';
}

function checkInputContactform(){
	frm = document.fontactform;
	if(frm.email_from.value == ""){
		frm.email_from.focus();
		alert("Vul s.v.p. uw email adres in.");
		return false;
	}
	return true;
}



function ShowBoxSWF()
{

//Depending on the amount of text, set the maximum height here in pixels
	if(hh==470)
	{
	clearInterval(inter);
	window.document.location = "#swfbox";
	return;
	}

	obj = document.getElementById("SWFuitleg");
	obj.style.visibility = 'visible';
	hh+=10;
	obj.style.height = hh + 'px';
}

//same way as above but reversed
function HideBoxSWF()
{
	obj = document.getElementById("SWFuitleg");

	if(hh==2)
	{
	obj.style.visibility = 'hidden';
	obj.style.height = '0.1em';
	clearInterval(inter);
	return;
	}
	hh-=2;
	obj.style.height = hh + 'px';
}


