
function initCompactor(p_oParent, p_oContent){

	/* The onclick event wasn't naturally cancelling in some versions of Firefox, hence this ugly workaround */
	p_oParent.firstChild.onclick = function(){
		return false;
	}
	p_oParent.onclick = function(){
		p_oContent.style.display = (p_oContent.style.display == 'block' || p_oParent.className.indexOf('active') != -1) ? 'none' : 'block';
		p_oParent.className = (p_oContent.style.display == 'none') ? '' : p_oParent.className + ' active';
		if(setCookie != null && p_oParent.id != undefined){
			var dtExpires = new Date();
			dtExpires.setYear(dtExpires.getFullYear() + 1);
			var sVisible = (p_oContent.style.display == 'block') ? 'true' : 'false';
			setCookie('cmpVis_' + p_oParent.id, sVisible, dtExpires);
		}
		return false;
	}
}