// JavaScript Document

window.onload=montre;
function montre(id) {
var d = document.getElementById(id);

	for (var i = 1; i<=10; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}

window.onload=change;
function change(id) {	
var jd = document.getElementById(id);	
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('tmenu'+i)) {document.getElementById('tmenu'+i).style.backgroundImage='url(IMG/fleche_verte.png)';}
	}
if (jd) {jd.style.backgroundImage='url(IMG/moins_verte.png)';}
}

window.onload=color;
function color(id) {
var c = document.getElementById(id);	
for (var i = 1; i<=10; i++) {
if (document.getElementById('tmenu'+i)) {document.getElementById('tmenu'+i).style.backgroundColor='#a5f052';}
	}
if (c) {c.style.backgroundColor='#73AA37';}
}

window.onload=colortxt;
function colortxt(id) {
var ca = document.getElementById(id);	
for (var i = 1; i<=10; i++) {
if (document.getElementById('amenu'+i)) {document.getElementById('amenu'+i).style.color='#000000';}
	}
if (ca) {ca.style.color='#FFFFFF';}
}
