doAutoScroll = true;

function entrerActu(act_id) 
{
	doAutoScroll = false;
	var handiLinks = new Array();
	for (i = 0; i < document.links.length; i++)
	{
		if (document.links[i].className == "lienToolBox")
		{
			regex = new RegExp("^a"+act_id + "-", "")
			
			if ( regex.test(document.links[i].id))
			{
				handiLinks.push(i);
			}
		}
	}
	
	if (handiLinks != null && handiLinks.length > 1)
	{
		startAnimation(handiLinks);
	}
}


function sortirActu(act_id)
{
	doAutoScroll = true;
	var tmp = new String("actu_" + act_id);
	
	stopAnimation();
	annulerSurbrillance();

	//tableau d'indice de liens
	handiLinks = genHandiLinks();
	
	for(i = 0; i < handiLinks.length; i++)
	{				
		if (document.links[handiLinks[i]].id != "")
		{			
			if ( document.links[handiLinks[i]].id == tmp)
			{
				break;
			}
		}
	}
	startAnimation(handiLinks, i-1);
}
