function boebsInit()
{
	fixHNavigatie("funct_navig","bollen_navig",50);
	fixH("kolom_links","kolom_rechts",300);
}

function fixHNavigatie(one,two, min_h) {
	if (document.getElementById(one)) {
	var lh=document.getElementById(one).offsetHeight+42;
	var rh=document.getElementById(two).offsetHeight;
	var nh = Math.max(lh, rh, min_h);
	if(lh<rh){
	document.getElementById(one).style.height=nh-35+"px";
	document.getElementById(two).style.height=nh+"px";		
	}else{
		document.getElementById(one).style.height=nh-35+"px";
		document.getElementById(two).style.height=nh+"px";
	}
	}
}

function fixH(one,two, min_h) {
	if (document.getElementById(one)) {
	var lh=document.getElementById(one).offsetHeight;
	var rh=document.getElementById(two).offsetHeight;
	var nh = Math.max(lh, rh, min_h);
	//HET ANDERE DEEL FADE REEDS UIT
	if (lh>rh){
		document.getElementById(two).style.height=nh+80+"px";
	}
	}
}

function boebs_team(id, action,user)
{
	makeHttpRequest_x_ajax('Ajax2Mpact.php?actie=boebsteam&id='+id+'&action='+action+'&user='+user);
}

function boebs_team_load(user)
{
	makeHttpRequest_x_ajax('Ajax2Mpact.php?actie=boebsteam'+'&user='+user);
}

function boebs_breedbeeld()
{
	document.getElementById('kolom_links').className='hidden';
	document.getElementById('kolom_rechts').className='honderdprocent';
	document.getElementById('breedbeeld_instellen').className='hidden';
	document.getElementById('smalbeeld_instellen').className='';
	document.getElementById('ankers').className='hidden';
	document.getElementById('bap').className='';
	
}

function boebs_smalbeeld()
{
	document.getElementById('kolom_links').className='';
	document.getElementById('kolom_rechts').className='';
	document.getElementById('breedbeeld_instellen').className='';
	document.getElementById('smalbeeld_instellen').className='hidden';
	document.getElementById('ankers').className='';
	document.getElementById('bap').className='hidden';
}

function boebs_add_activiteit(item_id, user_id)
{
	makeHttpRequest_x_ajax('Ajax2Mpact.php?actie=boebsbap'+'&doe=add&item_id='+item_id+'&user='+user_id);
}

function boebs_remove_activiteit(item_id, user_id)
{
	makeHttpRequest_x_ajax('Ajax2Mpact.php?actie=boebsbap'+'&doe=remove&item_id='+item_id+'&user='+user_id);
}
