
var chapox = new Array();

/**
	
	cache un chapo pour améliorer la lisibilité

	fonction réversible
	
**/


function cache (obj) {
	document.getElementById(obj).style.display = "none";
}

function decache (obj) {
	document.getElementById(obj).style.display = "";
}

function addin (item) {
	chapox.push(item);
}

/**

	cache tous les chapo

	fonction réversible

**/

function cachetout (what) {

	var how = chapox.length;
	for ( i = 0; i <= how; i++) {
		if ( chapox[i] ) {
		 if ( what == 1) {
			document.getElementById( chapox[i] ).style.display = "none";
			
		 } else if (what == 2) {
			document.getElementById( chapox[i] ).style.display = "";
		 }
		}

	}

}

