function swapVisibleElm(elmId)
{
    if(document.getElementById(elmId)){
	if(document.getElementById(elmId).style.visibility=='hidden' || document.getElementById(elmId).style.visibility==''){
	    document.getElementById(elmId).style.visibility='visible';
	    document.getElementById(elmId).style.display='block';
	}else{
	    document.getElementById(elmId).style.visibility='hidden';
	    document.getElementById(elmId).style.display='none';	
	}
    }
}


function swapAgenda(agendaID)
{
    agElm=document.getElementById('AgContent_'+agendaID);
    agContainerElm=document.getElementById('AgContainer_'+agendaID);
    
    if(agContainerElm.className=="")
    {
	// agenda is nog niet opgengeklapt, openklappen dus 
	agElm.className='padding1 visible'; // content niet meer hidden
	agContainerElm.className='on'; // containter openen (+ icoon)
    }
    else
    {
	// agenda inhoud reeds open, en op agenda geklikt: sluiten dus
	agElm.className='padding1 hidden'; // content hidden
	agContainerElm.className=''; // containter sluiten (- icoon)
    }	    
}

function openAgenda(agendaID)
{
    agElm=document.getElementById('AgContent_'+agendaID);
    agContainerElm=document.getElementById('AgContainer_'+agendaID);
    
    if(agContainerElm && agContainerElm.className=="")
    {
	// agenda is nog niet opgengeklapt, openklappen dus 
	agElm.className='padding1 visible'; // content niet meer hidden
	agContainerElm.className='on'; // containter openen (+ icoon)
    }
    else
    {
	// agenda is al open, of bestaat niet
    }
}


function swapSprekerOverzicht()
{
    spElm=document.getElementById('sprekerOverzicht');
    
    if(spElm.style.visibility=='hidden')
    {
	spElm.style.visibility='visible';
	spElm.style.display='block';
    }
    else
    {
	spElm.style.visibility='hidden';
	spElm.style.display='none';
    }
}

function swapZoeken()
{
    spElm=document.getElementById('zoeken');
    
    if(spElm.style.visibility=='hidden')
    {
	spElm.style.visibility='visible';
	spElm.style.display='block';
    }
    else
    {
	spElm.style.visibility='hidden';
	spElm.style.display='none';
    }
    calc_mediacolumn();
}

