
function showhideaddthis(idpost) {
	if  (document.getElementById(idpost).style.display == "none") {
	document.getElementById(idpost).style.display = "block";
	}

	else {
	document.getElementById(idpost).style.display = "none";
	}
}

function appearthis(idcomment) {
	if  (document.getElementById(idcomment).style.display == "none") {
       Effect.Appear(idcomment, { duration: 1 });
	}

	else {
	document.getElementById(idcomment).style.display = "none";
	}
}


function upanddown(ladiv) {
	if  (document.getElementById(ladiv).style.display == "none") {
	Effect.BlindDown(ladiv, { duration: 0.6 });
	}

	else {
	Effect.BlindUp(ladiv, { duration: 0.6 });
	}
}


function closethis(content, chapeau, cat, fauxtitre){
	if  (document.getElementById(content).style.display == "none", document.getElementById(cat).style.display == "none", document.getElementById(chapeau).style.display == "none" ) {
	document.getElementById(fauxtitre).style.display = "none";
	Effect.Appear(content, { duration: 0.5 });
	Effect.Appear(cat, { duration: 0.5 });
	Effect.BlindDown(chapeau, { duration: 0.5 });
	}

	else {
	Effect.Appear(fauxtitre);
	document.getElementById(cat).style.display = "none";
	Effect.BlindUp(chapeau, { duration: 0.25 });
	document.getElementById(content).style.display = "none";
	}
}



var indic = 0 ;

	function scrollgauche(ladiv) {
		if (indic == 0) {
		new Effect.Move(ladiv, { x: -500 , y: 0, mode: 'absolute', duration: 0.5});
		indic++;
		}
		else if (indic == 1) {
		new Effect.Move(ladiv, { x: -1000 , y: 0, mode: 'absolute', duration: 0.5 });
		indic++;
		}
		else if (indic == 2) {
		new Effect.Move(ladiv, { x: -1500 , y: 0, mode: 'absolute', duration: 0.5 });
		indic++;
		}
		else if (indic == 3) {
		new Effect.Move(ladiv, { x: -2000 , y: 0, mode: 'absolute', duration: 0.5});
		indic++;
		}
		else if (indic == 4) {
		new Effect.Move(ladiv, { x: -2050, y: 0, mode: 'absolute', duration: 0.2});
		new Effect.Move(ladiv, { x: -2000 , y: 0, mode: 'absolute', duration: 0.5, queue: 'end' });
		}
	}
	function scrolldroite(ladiv) {
		if (indic == 0) {
		new Effect.Move(ladiv, { x: 50, y: 0, mode: 'absolute', duration: 0.2});
		new Effect.Move(ladiv, { x: 0 , y: 0, mode: 'absolute', duration: 0.4, queue: 'end' });
		}
		else if (indic == 1) {
		new Effect.Move(ladiv, { x: 0 , y: 0, mode: 'absolute', duration: 0.5});
		indic--;
		}
		else if (indic == 2) {
		new Effect.Move(ladiv, { x: -500 , y: 0, mode: 'absolute', duration: 0.5});
		indic--;
		}
		else if (indic == 3) {
		new Effect.Move(ladiv, { x: -1000 , y: 0, mode: 'absolute', duration: 0.5});
		indic--;
		}
		else if (indic == 4) {
		new Effect.Move(ladiv, { x: -1500 , y: 0, mode: 'absolute', duration: 0.5});
		indic--;
		}
	}

function gotop(idopenpost)
{
	$(idopenpost).style.zIndex=zindexmax;
	zindexmax++;
}

var zindexmax=10;

