var tps=true;

function transformation(strdiv)
{
  var ancre = window.location.hash;
  ancre= ancre.substring(1,ancre.length); // enleve le #
  if (strdiv!='none')
    ancre=strdiv;
  else
    if(ancre.length==0)
      ancre="accueil"
  if (tps==true){
    tps=false;

    //cache tous les éléments visibles
    var lst_div_appearing= document.getElementsByClassName("appearing");
    for (i=0; i< lst_div_appearing.length; i++)
      {
	if(lst_div_appearing[i].style.display!="none")
	  {
	    Effect.BlindUp(lst_div_appearing[i], {duration:1});
	  }
      }
    //Effect.BlindUp(element_visible, {duration:1});
    element_visible=ancre;
    setTimeout("montrer('"+ancre+"')", 1050);
    setTimeout("fin()",1055);
  }
}

function montrer(div)
{
    tps=false;  
    Effect.BlindDown(div, {duration:1});
}
  




function cacher(div)
{
  if (tps==true){
    tps=false;
    Effect.BlindUp(div, {duration:1});
    setTimeout("fin()",1050);
  }
}

function fin()
{
  tps=true;
}

