var timerID = null;
var timerOn = false;
var timecount = 280;

function HideAll() {
document.getElementById("Ly_Toolbox").style.display = "none";
document.getElementById("Ly_Etudiant").style.display = "none";
}

function HideTool() {
document.getElementById("Ly_Toolbox").style.display = "none";
}

function HideEtudiant() {
document.getElementById("Ly_Etudiant").style.display = "none";
}


function ShowContent(d) {
document.getElementById(d).style.display = "";
}

function startTimeTool() {
	if (timerOn == false) {
		timerID=setTimeout( "HideTool()" , timecount);
		timerOn = true;
	}
}

function startTimeEtudiant() {
	if (timerOn == false) {
		timerID=setTimeout( "HideEtudiant()" , timecount);
		timerOn = true;
	}
}

function startTime() {
	if (timerOn == false) {
		timerID=setTimeout( "HideAll()" , timecount);
		timerOn = true;
	}
}

function stopTime() {
	if (timerOn) {
		clearTimeout(timerID);
		timerID = null;
		timerOn = false;
	}
}
