var timerID = null;
var timerOn = false;
var timecount = 0;

function HideAll() {
document.getElementById("Ly_Piece").style.display = "none";
document.getElementById("Ly_Piece2").style.display = "none";
document.getElementById("Ly_Amenagement").style.display = "none";
document.getElementById("Ly_Cours").style.display = "none";
document.getElementById("Ly_Enviro").style.display = "none";
document.getElementById("Ly_Doc").style.display = "none";
document.getElementById("Ly_Autre").style.display = "none";
}

/** **/

function ShowPiece() {
	document.getElementById("Ly_Piece").src = "images/surmachination.jpg";
}


function HidePiece() {
document.getElementById("Ly_Piece").style.display = "none";
}


/** **/

function ShowPiece2() {
	document.getElementById("Ly_Piece2").src = "images/surmachination.jpg";
}


function HidePiece2() {
document.getElementById("Ly_Piece2").style.display = "none";
}

/** **/

function ShowAmenagement() {
	document.getElementById("Ly_Amenagement").src = "images/surmachination.jpg";
}


function HideAmenagement() {
document.getElementById("Ly_Amenagement").style.display = "none";
}

/** **/

function ShowCours() {
	document.getElementById("Ly_Cours").src = "images/surmachination.jpg";
}


function HideCours() {
document.getElementById("Ly_Cours").style.display = "none";
}

/** **/

function ShowEnviro() {
	document.getElementById("Ly_Enviro").src = "images/surmachination.jpg";
}


function HideEnviro() {
document.getElementById("Ly_Enviro").style.display = "none";
}

/** **/

function ShowDoc() {
	document.getElementById("Ly_Doc").src = "images/surmachination.jpg";
}


function HideDoc() {
document.getElementById("Ly_Doc").style.display = "none";
}

/** **/

function ShowAutre() {
	document.getElementById("Ly_Autre").src = "images/surmachination.jpg";
}


function HideAutre() {
document.getElementById("Ly_Autre").style.display = "none";
}


function startTimePiece() {
	if (timerOn == false) {
		timerID=setTimeout( "HidePiece()" , timecount);
		timerOn = true;
	}
}

function startTimePiece2() {
	if (timerOn == false) {
		timerID=setTimeout( "HidePiece2()" , timecount);
		timerOn = true;
	}
}

function startTimeAmenagement() {
	if (timerOn == false) {
		timerID=setTimeout( "HideAmenagement()" , timecount);
		timerOn = true;
	}
}

function startTimeCours() {
	if (timerOn == false) {
		timerID=setTimeout( "HideCours()" , timecount);
		timerOn = true;
	}
}

function startTimeEnviro() {
	if (timerOn == false) {
		timerID=setTimeout( "HideEnviro()" , timecount);
		timerOn = true;
	}
}

function startTimeDoc() {
	if (timerOn == false) {
		timerID=setTimeout( "HideDoc()" , timecount);
		timerOn = true;
	}
}

function startTimeAutre() {
	if (timerOn == false) {
		timerID=setTimeout( "HideAutre()" , timecount);
		timerOn = true;
	}
}


function ShowContent(d) {
document.getElementById(d).style.display = "";
}

function ShowContent(d) {
document.getElementById(d).style.display = "";
}

function stopTime() {
	if (timerOn) {
		clearTimeout(timerID);
		timerID = null;
		timerOn = false;
	}
}
// JavaScript Document
