function positionne()
	{form2.position.value="0";
}
	
function reloadactu()
{
	scrollY = 0;
	window.actu.scroll(0, scrollY);
}

function reloadcategactu()
{
	scrollY = 0;
	window.categactu.scroll(0, scrollY);
}


var scrollY = 0;
var timerID = null;
alt=0,curpos1=0,curpos2=-1;
function test()
	{alert('ici');}
	
function actubas()
{
	if (scrollY<0)
	{
		scrollY = 0;
	}
	
	if (document.all)
	{
		temp=actu.document.body.scrollTop;
	}
	else
	{
		temp=window.actu.pageYOffset;
	}

	if (alt==0)
	{
		alt=1;
		curpos1=temp;
	}
	else
	{
		alt=0;
		curpos2=temp;
	}
	scrollY=temp;
	if (curpos1 != curpos2)
	{
		scrollY++;
		window.actu.scroll(0, scrollY);
		timerID = setTimeout("actubas()", 20);
	}
	else
	{
		stopactu();
	}		
}

function actuhaut()
{	if (document.all)
	{
		temp=actu.document.body.scrollTop;
	}
	else
	{
		temp=window.actu.pageYOffset;
	}
	scrollY=temp;
	
	if (scrollY >= 0)
	{
		scrollY--;
		window.actu.scroll(0, scrollY);
		timerID = setTimeout("actuhaut()", 20);
	}
	else
	{
		stopactu();
	}	
}

function stopactu()
{
	clearTimeout(timerID);
}

function verifrch()
{
	if (document.rch.recherche.value.length < 2)
     {
     	alert ('Le mot recherché doit faire au moins 2 caractères');
        return false;
     }
     return true;
}



function categactubas()
{
	if (scrollY<0)
	{
		scrollY = 0;
	}
	
	if (document.all)
	{
		temp=categactu.document.body.scrollTop;
	}
	else
	{
		temp=window.categactu.pageYOffset;
	}

	if (alt==0)
	{
		alt=1;
		curpos1=temp;
	}
	else
	{
		alt=0;
		curpos2=temp;
	}
	scrollY=temp;
	if (curpos1 != curpos2)
	{
		scrollY++;
		window.categactu.scroll(0, scrollY);
		timerID = setTimeout("categactubas()", 20);
	}
	else
	{
		stopactu();
	}		
}

function categactuhaut()
{	if (document.all)
	{
		temp=categactu.document.body.scrollTop;
	}
	else
	{
		temp=window.categactu.pageYOffset;
	}
	scrollY=temp;
	
	if (scrollY >= 0)
	{
		scrollY--;
		window.categactu.scroll(0, scrollY);
		timerID = setTimeout("categactuhaut()", 20);
	}
	else
	{
		stopactu();
	}	
}

function stopcategactu()
{
	clearTimeout(timerID);
}

