var timerID = null;
var timerOn = false;
var timecount = 280;

function HideAll() {
document.getElementById("Ly_Entreprise").style.display = "none";
document.getElementById("Ly_Residentiel").style.display = "none";
document.getElementById("Ly_Commercial").style.display = "none";
document.getElementById("Ly_Realisation").style.display = "none";
}

function HideEntreprise() {
document.getElementById("Ly_Entreprise").style.display = "none";
}
function HideResidentiel() {
document.getElementById("Ly_Residentiel").style.display = "none";
}
function HideCommercial() {
document.getElementById("Ly_Commercial").style.display = "none";
}
function HideRealisation() {
document.getElementById("Ly_Realisation").style.display = "none";
}


function ShowContent(d) {
document.getElementById(d).style.display = "";
}

function startTimeEntreprise() {
	if (timerOn == false) {
		timerID=setTimeout( "HideEntreprise()" , timecount);
		timerOn = true;
	}
}

function startTimeResidentiel() {
	if (timerOn == false) {
		timerID=setTimeout( "HideResidentiel()" , timecount);
		timerOn = true;
	}
}

function startTimeCommercial() {
	if (timerOn == false) {
		timerID=setTimeout( "HideCommercial()" , timecount);
		timerOn = true;
	}
}

function startTimeRealisation() {
	if (timerOn == false) {
		timerID=setTimeout( "HideRealisation()" , timecount);
		timerOn = true;
	}
}

function startTime() {
	if (timerOn == false) {
		timerID=setTimeout( "HideAll()" , timecount);
		timerOn = true;
	}
}


function stopTime() {
	if (timerOn) {
		clearTimeout(timerID);
		timerID = null;
		timerOn = false;
	}
}