function outOffer() {
	stopAnimation();
	annulerSurbrillance();
	toMenu();
}

function enterOffer(numOffer) {
	stopAnimation();
	annulerSurbrillance();
	var handiLinks = new Array();
	for (i = 0; i < document.links.length; i++) {
		if (document.links[i].className == "lienToolBox" && document.links[i].id == "a" + numOffer) {
			handiLinks.push(i);
		}
	}
	if (handiLinks != null && handiLinks.length > 1)
		startAnimation(handiLinks);
}

/*doAutoScroll = true;

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


function sortirOffres(pro_id)
{
	doAutoScroll = true;
	var tmp = new String(pro_id + "-in");
	
	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);
}
*/
