//Div Scrolling
var monscrolling = 0;//position de départ
var moncomment = 0;//position de départ
//hauteur du div
var moncommentmax = document.getElementById("contenucomment").scrollHeight;
var monscrollingmax = document.getElementById("contenunews").scrollHeight;

function ScrollingHaut()
{
	monscrolling-= 10;
	if (monscrolling < 0) {monscrolling = 0;};
	document.getElementById("contenunews").scrollTop = monscrolling;
	ScrollingTimer = setTimeout("ScrollingHaut()", 20);
}
function ScrollingBas()
{
	monscrollingmax = document.getElementById("contenunews").scrollHeight;
	monscrolling+= 10;
	if (monscrolling > monscrollingmax) {monscrolling = monscrollingmax;}
	document.getElementById("contenunews").scrollTop = monscrolling;
	ScrollingTimer = setTimeout("ScrollingBas()", 20);
}
function ScrollingStop() {clearTimeout(ScrollingTimer);}


//Div comment
function commentHaut()
{
	moncomment-= 10;
	if (moncomment < 0) {moncomment = 0;};
	document.getElementById("contenucomment").scrollTop = moncomment;
	commentTimer = setTimeout("commentHaut()", 20);
}
function commentBas()
{
	moncommentmax = document.getElementById("contenucomment").scrollHeight;
	moncomment+= 10;

	if (moncomment > moncommentmax) {moncomment = moncommentmax;}
	document.getElementById("contenucomment").scrollTop = moncomment;
	commentTimer = setTimeout("commentBas()", 20);
}
function commentStop() {clearTimeout(commentTimer);}