/* / */
//Recherche detaillee
function initrech(){
	document.getElementById("auteurs").innerHTML="&nbsp;";
	document.getElementById("choix").innerHTML='Choisissez la premi&egrave;re lettre du nom';
	txt='';
	for (i=65;i<91;i++){
		if (let_aut.indexOf(String.fromCharCode(i+32))>-1)
			txt+='<a href="javascript:artiste(\''+String.fromCharCode(i+32)+'\')">'+String.fromCharCode(i)+'</a> ';
		else
			txt+='<span>'+String.fromCharCode(i)+'</span> ';
	}
	document.getElementById("lettres").innerHTML=txt;
	
	document.getElementById("musees").innerHTML="&nbsp;";
	document.getElementById("choix2").innerHTML='Choisissez la premi&egrave;re lettre de la ville';
	txt='';
	for (i=65;i<91;i++){
		if (let_mus.indexOf(String.fromCharCode(i+32))>-1)
			txt+='<a href="javascript:lieu(\''+String.fromCharCode(i+32)+'\')">'+String.fromCharCode(i)+'</a> ';
		else
			txt+='<span>'+String.fromCharCode(i)+'</span> ';
	}
	document.getElementById("lettres2").innerHTML=txt;
}
function artiste(init){
	txt='';
	i=0;
	txt+='<select name="auteur_id">';
	txt+='<option value="" class="tit_lis">Artistes</option>';
	ok=true;
	while(ok){
		if (aut[init][i]!=undefined){
			t=aut[init][i].split(";");
			txt+='<option value="'+t[1]+'">'+t[0]+'</option>';
		}
		else
			ok=false;
		i++;
	}
	txt+='  </select>';
	document.getElementById("auteurs").innerHTML=txt;
}
function lieu(init){
	txt='';
	i=0;
	txt+='<select name="musee">';
	txt+='<option value="" class="tit_lis">Lieux de conservation</option>';
	ok=true;
	while(ok){
		if (mus[init][i]!=undefined){
			t=mus[init][i].split(" / ");
			txt+='<option value="'+t[1]+'">'+mus[init][i]+'</option>';
		}
		else
			ok=false;
		i++;
	}
	txt+='  </select>';
	document.getElementById("musees").innerHTML=txt;
}
//Fin - Recherche detaillee


