function showSubMenu($header_id)
{

if($header_id != "pics")
{
	var xmlHttp;
	var xmlHttp2;
	var xmlHttp3;

	try
	{   
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
		xmlHttp2=new XMLHttpRequest();
		xmlHttp3=new XMLHttpRequest();
	}
	catch (e)
	{
		// Internet Explorer
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
			xmlHttp2=new ActiveXObject("Msxml2.XMLHTTP");
			xmlHttp3=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			try
			{        
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
				xmlHttp2=new ActiveXObject("Microsoft.XMLHTTP");
				xmlHttp3=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e)
			{
				alert("Whoops! Your browser does not support ajax! Shame on you!");
				return false;       
			}
		}
	}

xmlHttp.onreadystatechange=function()
{
	if(xmlHttp.readyState==4)
	{
		document.getElementById('content').innerHTML = xmlHttp.responseText;
		
		if(document.getElementById('content').offsetHeight < 250)
		{
			var $string = (document.getElementById('content').offsetHeight + 600);
		}
		else
		{
			var $string = (document.getElementById('content').offsetHeight + 400);
		}
			
		$string += 'px';
		
		document.getElementById('site').style.height = $string;
	}
}

xmlHttp2.onreadystatechange=function()
{
	if(xmlHttp2.readyState==4)
	{
		document.getElementById('submenu').innerHTML = xmlHttp2.responseText;
	}
}

xmlHttp3.onreadystatechange=function()
{
	if(xmlHttp3.readyState==4)
	{
		document.getElementById('contentheader').innerHTML = '&nbsp;&nbsp;' + xmlHttp3.responseText;
	}
}

	xmlHttp.open("GET","include/getcontent.run.php?is_mainpage=" + $header_id + "", true);
	xmlHttp.send(null);
	
	xmlHttp2.open("GET","include/getsubmenu.run.php?submenu=" + $header_id + "", true);
	xmlHttp2.send(null);
	
	xmlHttp3.open("GET","include/getcontentheader.run.php?is_mainpage=" + $header_id + "", true);
	xmlHttp3.send(null);
}
else
{
	var xmlHttp;
	var xmlHttp2;
	
	try
	{   
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
		xmlHttp2=new XMLHttpRequest();
	}
	catch (e)
	{
		// Internet Explorer
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
			xmlHttp2=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			try
			{        
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
				xmlHttp2=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e)
			{
				alert("Whoops! Your browser does not support ajax! Shame on you!");
				return false;       
			}
		}
	}
	
	xmlHttp.onreadystatechange=function()
	{
		if(xmlHttp.readyState == 4)
		{
			document.getElementById('content').innerHTML = xmlHttp.responseText;
			
			if(document.getElementById('content').offsetHeight < 250)
			{
				var $string = (document.getElementById('content').offsetHeight + 600);
			}
			else
			{
				var $string = (document.getElementById('content').offsetHeight + 400);
			}
				
			$string += 'px';
			
			document.getElementById('site').style.height = $string;
		}
	}
	
	xmlHttp2.onreadystatechange=function()
	{
		if(xmlHttp2.readyState==4)
		{
			document.getElementById('submenu').innerHTML = xmlHttp2.responseText;
			document.getElementById('contentheader').innerHTML = '&nbsp;&nbsp;FOTO\'S';
		}
	}
	
	xmlHttp.open("GET","include/getcontent.run.php?pics=true", true);
	xmlHttp.send(null);
	
	xmlHttp2.open("GET","include/getsubmenu.run.php?pics=true", true);
	xmlHttp2.send(null);
}

}