function sendhi (ref,color){

	elements = document.getElementsByTagName("span");
	for(i=0;i<elements.length;i++){
		e = elements[i].getAttributeNode('class');
		if(e){
			if(e.value==ref){
				elements[i].style.backgroundColor = color;
			}
		}
	}

}

function desendhi(ref){

	elements = document.getElementsByTagName("span");
	for(i=0;i<elements.length;i++){
		
		e = elements[i].getAttributeNode('class');
		if(e){
			if(e.value==ref){
				elements[i].style.backgroundColor = "white";
			}
		}
	}
}


function highlight (citation,ref){

	switch (citation){

		case 'approchant' :
			sendhi(ref,"#c0c0c0");
			break;
		case 'identique' :
			sendhi(ref,"#709ce6");//#709CE6;
			break;
		case 'topos' :
			sendhi(ref,"red");
			break;
		default :	
			break;
	}

}

