﻿function TreeChangeCat(plusImgId, minImgId, indentId, catEmpty, UriEmptyCatDetails){

    //verander de toestand van een categorie, open of sluit naargelang nodig
    
	if (document.getElementById(indentId).style.display == 'none'){
	
	    //open

		document.getElementById(plusImgId).style.display = 'none';
		document.getElementById(minImgId).style.display = 'inline';
		document.getElementById(indentId).style.display = 'block';
		
		if(catEmpty){
			document.getElementById('VacancyDetailsIfr').src = UriEmptyCatDetails;
		}

	} else {
	
	    //sluit

	    document.getElementById(plusImgId).style.display = 'inline';
	    document.getElementById(minImgId).style.display = 'none';
	    document.getElementById(indentId).style.display = 'none';
	
	}	
	
}
function HideVacancyDetails()
{
    document.getElementById("VacancyDetails").style.display = 'none';
}
