// Fonction pour afficher ou cacher une question

function hideshow_auteur(elem)
	{
		if( document.getElementById(elem).style.display == "none" )
		{
			document.getElementById(elem).style.display = "block";
		} else {
			document.getElementById(elem).style.display = "none";
		}
	}


// Fonction pour rendre une question active

function turnon_auteur(elem)
	{
		if( document.getElementById(elem).className == "question" )
		{
			document.getElementById(elem).className = "question_on";
		} else {
			document.getElementById(elem).className = "question";

		}
	}
	
	
/* depliement fiche auteur*/
function showInfoAuteur(auteur_id){
	
	var nodeList;
	var show;
	
	nodeList = $(".infos_auteur_deplie");
	
	if($('#infos_auteur_' + auteur_id).is(":hidden")){
		show = false;
	}else{
		show = true;
	}
	
	for (var i = 0; i < nodeList.length ; i++){
		$('div#'+nodeList[i].id).hide();
	}
	
	if(!show){
		$('#infos_auteur_' + auteur_id).show();
	}
	
}

function new_window($id){
	document.getElementById($id).firstChild.setAttribute("target","_blank");
}
