/* fonction javascript pour menu_rg2 */

function displayBlock (id) {

	imgId = 'img' + id;
	divId = 'div' + id;
	img_plus = 'squelettes/img/plus.gif';
	img_moins = 'squelettes/img/moins.gif';

	if (document.getElementById) {
		if (document.getElementById(divId)) {
			if (document.getElementById(divId).style.display == 'none') {
				document.getElementById(divId).style.display = 'block';
				document.getElementById(imgId).src = img_moins;
			} else {
				document.getElementById(divId).style.display = 'none';
				document.getElementById(imgId).src = img_plus;
			}
		}
	} else if (document.all) {
		if (document.all[divId]) {
			if (document.all[divId].style.display == 'none') {
				document.all[divId].style.display = 'block';
				document.all[imgId].src = img_moins;
			} else {
				document.all[divId].style.display = 'none';
				document.all[imgId].src = img_plus;
			}
		}
	} else if (document.layers) {
		if (document.layers[divId]) {
			if (document.all[divId].style.display == 'none') {
				document.layers[divId].style.display = 'block';
				document.layers[imgId].src = img_moins;
			} else {
				document.layers[divId].style.display = 'none';
				document.layers[imgId].src = img_plus;
			}
		}
	}	
}
