var timerID = null;
var timerOn = false;
var timecount = 0;

function HideAll() {
document.getElementById("Ly_Piece").style.display = "none";
document.getElementById("Ly_Medias").style.display = "none";
document.getElementById("Ly_Joindre").style.display = "none";
document.getElementById("Ly_Collaborateurs").style.display = "none";
}

/** **/

function ShowPiece() {
}

function ShowMedias() {
}

function ShowJoindre() {
}

function ShowCollaborateurs() {
}


function HidePiece() {
document.getElementById("Ly_Piece").style.display = "none";
}

function HideMedias() {
document.getElementById("Ly_Medias").style.display = "none";
}

function HideJoindre() {
document.getElementById("Ly_Joindre").style.display = "none";
}

function HideCollaborateurs() {
document.getElementById("Ly_Collaborateurs").style.display = "none";
}


function startTimePiece() {
	if (timerOn == false) {
		timerID=setTimeout( "HidePiece()" , timecount);
		timerOn = true;
	}
}
function startTimeMedias() {
	if (timerOn == false) {
		timerID=setTimeout( "HideMedias()" , timecount);
		timerOn = true;
	}
}
function startTimeJoindre() {
	if (timerOn == false) {
		timerID=setTimeout( "HideJoindre()" , timecount);
		timerOn = true;
	}
}
function startTimeCollaborateurs() {
	if (timerOn == false) {
		timerID=setTimeout( "HideCollaborateurs()" , 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;
	}
}
