﻿
// Changer Couleur
function AlternateColor(MyTable){
	//Récupération du nombre de lignes
	var NbLignes = MyTable.getElementsByTagName('tr').length;
	var Lignes = new Array();
	Lignes = MyTable.getElementsByTagName('tr');
	for(var i = 0 ; i < NbLignes ; i++)
	{
			if((i-1)%2 == 0)
			{
			Lignes[i].style.backgroundColor = '#82CAFF';
			Lignes[i].style.color="#000000";
		
		    }
		else{
			Lignes[i].style.backgroundColor = '#6698FF';
			Lignes[i].style.color="#000000";
	
	    	}
		
		Lignes[i].onmouseover=function(){
						this.style.backgroundColor = "#FFFC17";
						this.style.color= "#000000"; 
						soundManager.play('select');
						return false
					}
					Lignes[i].onmouseout=function(){
						
						AlternateColor(document.getElementById('raisons'));
						 return false
					}

	}
}
	
