// JavaScript Document

/*window.onload=montre;*/
function montre(id,zone) { 
	var d = document.getElementById('s'+id);
	var t = document.getElementById(id);
	var k = document.getElementById(zone);
	for (var i = 1; i<=6; i++) {
		if (document.getElementById('menu'+i) && 'menu'+i!=zone) {
				document.getElementById('menu'+i).style.backgroundColor='#5f6c34';}
		if (document.getElementById('smenu'+i)) {
				document.getElementById('smenu'+i).style.display='none';}
	}
	if (d) {d.style.display='block';}
	switch(zone){
			case 'menu1': k.style.backgroundColor='#5f6c34'; break;
			case 'smenu1': k.style.backgroundColor='#5f6c34'; break;
			case 'menu2': k.style.backgroundColor='#5f6c34'; break;
			case 'menu3': k.style.backgroundColor='#5f6c34'; break;
			case 'menu4': k.style.backgroundColor='#5f6c34'; break;
			case 'menu5': k.style.backgroundColor='#5f6c34'; break;
			case 'menu6': k.style.backgroundColor='#5f6c34'; 
	}
	switch(id){
			case 'menu1': t.style.backgroundColor='#505a31'; break;
			case 'smenu1': t.style.backgroundColor='#505a31'; break;
			case 'menu2': t.style.backgroundColor='#505a31'; break;
			case 'menu3': t.style.backgroundColor='#505a31'; break;
			case 'menu4': t.style.backgroundColor='#505a31'; break;
			case 'menu5': t.style.backgroundColor='#505a31'; break;
			case 'menu6': t.style.backgroundColor='#505a31'; 
	}
}
