function rollon_r(id)
{
	var ligne = document.getElementById('ligne'+id);
	var fleche = document.getElementById('fleche'+id);
	var lien = document.getElementById('lien'+id);

	ligne.style.backgroundPosition = '0px -44px';
	ligne.style.color = '#fff';
	lien.style.color = '#fff';
	fleche.src = 'http://www.elite-auto.fr/images/pictos/fleche-modeles-over.gif';
}
function rollon_b(id)
{
	var ligne = document.getElementById('ligne'+id);
	var fleche = document.getElementById('fleche'+id);
	var lien = document.getElementById('lien'+id);

	ligne.style.backgroundPosition = '0px -66px';
	ligne.style.color = '#fff';
	lien.style.color = '#fff';
	fleche.src = 'http://www.elite-auto.fr/images/pictos/fleche-modeles-over.gif';
}
function rollon_s(id)
{
	var ligne = document.getElementById('ligne'+id);
	var fleche = document.getElementById('fleche'+id);

	ligne.style.backgroundPosition = '0px -88px';
	ligne.style.color = '#fff';
	fleche.src = 'http://www.elite-auto.fr/images/pictos/fleche-modeles-over.gif';
}
function rollout(id, type)
{
	var ligne = document.getElementById('ligne'+id);
	var fleche = document.getElementById('fleche'+id);
	var lien = document.getElementById('lien'+id);

	if(type == 1) ligne.style.backgroundPosition = '0px 0px';
	else if(type == 2) ligne.style.backgroundPosition = '0px -22px';
	ligne.style.color = '#494949';
	fleche.src = 'http://www.elite-auto.fr/images/pictos/fleche-modeles.gif';
	lien.style.color = '#494949';
}

function rollouts(id, type)
{
	var ligne = document.getElementById('ligne'+id);
	var fleche = document.getElementById('fleche'+id);

	if(type == 1) ligne.style.backgroundPosition = '0px 0px';
	else if(type == 2) ligne.style.backgroundPosition = '0px -22px';
	ligne.style.color = '#494949';
	fleche.src = 'http://www.elite-auto.fr/images/pictos/fleche-modeles.gif';
}

function backover_elite(id,promo)
{
	if(promo==true)
	{
		var ligne = document.getElementById('ligne'+id);
		var lien = document.getElementById('lien'+id);
		ligne.style.backgroundPosition = '0px -171px';
		ligne.style.color = '#ffffff';
		lien.style.color = '#ffffff';
	}
	else
	{
		var ligne = document.getElementById('ligne'+id);
		var lien = document.getElementById('lien'+id);
		ligne.style.backgroundPosition = '0px -68px';
		ligne.style.color = '#494949';
		lien.style.color = '#494949';
	}
}
function backout_elite(id, type,promo)
{
	if(promo==true)
	{
		var ligne = document.getElementById('ligne'+id);
		var lien = document.getElementById('lien'+id);
	
		if(type == 1) ligne.style.backgroundPosition = '0px -102px';
		else if(type == 2) ligne.style.backgroundPosition = '0px -136px';
		ligne.style.color = '#494949';
		lien.style.color = '#494949';
	}
	else
	{
		var ligne = document.getElementById('ligne'+id);
		var lien = document.getElementById('lien'+id);
		
		if(type == 2) ligne.style.backgroundPosition = '0px 0px';
		else if(type == 1) ligne.style.backgroundPosition = '0px -34px';
		ligne.style.color = '#494949';
		lien.style.color = '#494949';
	}
}
