// JavaScript Document

/* pour le menu */

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';}
}


/* pour les fenêtres pop-up */

function popimage(img) {
	titre="Agrandissement";
	w=open("",'image','width=1,height=1,toolbar=no,scrollbars=no,resizable=no');
	w.document.write("<script type='text/javascript'>function checksize() { if (document.images[0].complete) { window.resizeTo(document.images[0].width+10,document.images[0].height+55); window.focus();} else { settimeout('checksize()',250) } }</"+"script>");
	w.document.write("<body onload='checksize()' onblur='window.close()' onclick='window.close()' topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>");
	w.document.write("<img src='"+img+"' border='0' alt='image' />");
	w.document.close();
}


/* pour le lexique */

function Cache_ALL() {
  Cache_DIV('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z');
}

function Affiche_DIV(){
  var Arg = arguments;
  var Obj;
  Cache_ALL();
  for( var i=0; i< Arg.length; i++){
    Obj = document.getElementById( Arg[i]);
    if( Obj){
      Obj.style.visibility = "visible";
      //-- Ou autre méthode
      Obj.style.display = "";
    }
  }
}

function Cache_DIV(){
  var Arg = arguments;
  var Obj;
  for( var i=0; i< Arg.length; i++){
    Obj = document.getElementById( Arg[i]);
    if( Obj){
      Obj.style.visibility = "hidden";
      //-- Ou autre méthode
      Obj.style.display = "none";
    }
  }
}

