function afficheFiche(id,nb)
{
	for(var i = 0; i <nb ; i++)
	{
		document.getElementById('titreMenuPlat'+i).className = "";
		document.getElementById('onglet'+i).style.display = "none";
	}
	
	document.getElementById('onglet'+id).style.display = "block";
	document.getElementById('titreMenuPlat'+id).className = "blancNormal";
		
}

function tailleCache(objImage,id)
{
	if(document.getElementById(id))
		document.getElementById(id).style.height = objImage.height+"px";

}

function majContenu()
{
	document.getElementById('divInitial').style.display = "none";
	//document.getElementById('lienmaj').style.display = "none";
	document.getElementById('maj').style.display = "block";
}


function majFiche(id,id2)
{
	document.getElementById(id2).style.display = "none";
	document.getElementById(id).style.display = "block";
}

function cachemajFiche(id,id2)
{
	document.getElementById(id2).style.display = "block";
	document.getElementById(id).style.display = "none";
}


function cachemajContenu()
{
	document.getElementById('divInitial').style.display = "block";
	//document.getElementById('lienmaj').style.display = "none";
	document.getElementById('maj').style.display = "none";
}

/*function afficheDivInfo(x,y)
{
	document.getElementById('info').style.display = "block";
	document.getElementById('info').style.opacity = "0.3";

	document.getElementById('info').style.top =  x+"px";
	document.getElementById('info').style.left = y+"px";
}

function cacheDivInfo()
{
	document.getElementById('info').style.display = "none";
}

function WhereMouse( e ){
  var DocRef;    // Variable pour IE uniquement

  // L'événement est passée à la fonction
  // donc tous sauf IE…
  if( e){                     // Dans ce cas on obtient directement la position dans la page
    Mouse_X = e.pageX;
    Mouse_Y = e.pageY;
  }
  else{                      // Dans ce cas on obtient la position relative à la fenêtre d'affichage
    Mouse_X = event.clientX;
    Mouse_Y = event.clientY;

    //-- Il faut traiter le CAS des DOCTYPE sous IE
    if( document.documentElement && document.documentElement.clientWidth) // Donc DOCTYPE
      DocRef = document.documentElement;   // Dans ce cas c'est documentElement qui est réfèrence
    else
      DocRef = document.body;                    // Dans ce cas c'est body qui est réfèrence

    //-- On rajoute la position liée aux ScrollBars
    Mouse_X += DocRef.scrollLeft;
    Mouse_Y += DocRef.scrollTop;
  }
 afficheDivInfo(Mouse_X,Mouse_Y);
}*/

/*var positionCurseurX;
var positionCurseurY;*/

function startShowEditMenu(){
	document.getElementById('info').style.display = "block";
	document.getElementById('contenuInitial').style.border = '1px solid #b9d274';

	/*if (positionCurseurX && positionCurseurY)
	{	document.getElementById('info').style.left = (positionCurseurX + 30) + "px";
		document.getElementById('info').style.top = (positionCurseurY + 30) + "px";
	}*/	

}

function stopShowEditMenu()
{	document.getElementById('info').style.display = "none";
	document.getElementById('contenuInitial').style.border = 0;
}

function startShowEditMenu2(fiche,info){
	document.getElementById(info).style.display = "block";
	document.getElementById(fiche).style.border = '1px solid #b9d274';	

}

function stopShowEditMenu2(fiche,info)
{	document.getElementById(info).style.display = "none";
	document.getElementById(fiche).style.border = 0;
}

/*function position(e) {
	if (navigator.appName.substring(0,3) == "Net") {
		positionCurseurX = e.pageX;
		positionCurseurY = e.pageY;
	}
	else {
		positionCurseurX = event.x + document.body.scrollLeft;
		positionCurseurY = event.y + document.body.scrollTop;
	}
}

if(navigator.appName.substring(0,3) == "Net") document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = position;
*/