// JavaScript Document
window.onload=montre;
function montre(id) {
  var d = document.getElementById('s'+id);
  var t = document.getElementById(id);
  for (var i = 1; i<=5; i++) {
	if (document.getElementById('menu'+i)){document.getElementById('menu'+i).style.backgroundColor='#776';}
    if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
  }
  if (d) {d.style.display='block';}
  switch(id){
    case 'menu1': t.style.backgroundColor='#32A'; break;
	case 'menu2': t.style.backgroundColor='#B11'; break;
	case 'menu3': t.style.backgroundColor='#282'; break;
	case 'menu4': t.style.backgroundColor='#C60';
  }
}