//TALENT-ZAPPING, Powered by BLUE ACACIA : WEB AGENCY, Créateur de liens

var Timer;
var type_media_oeuvre=0;
var thematique_oeuvre=0;
var sous_thematique_oeuvre=0;
var Timer_rollover_image;
var image_en_cours="";
var image_num=0;
var oeuvre_player_selectionne=0;

function left(texte_modifier, caractere_depart, nombre_caractere) {
	var texte_modifier=texte_modifier;
	var caractere_depart=caractere_depart;
	var nombre_caractere=nombre_caractere;
	return texte_modifier.substr(caractere_depart, nombre_caractere)
}

function rollover_image_video(img, num, repertoire, url_site, lang) {
	var img=img;
	var num=num;
	var repertoire=repertoire;
	var url_site=url_site;
	var lang=lang;
	if (image_en_cours!=img) {
		window.clearTimeout(Timer_rollover_image);
		image_en_cours=img;
		image_num=0;
	}else{
		window.clearTimeout(Timer_rollover_image);
		image_en_cours=img;
	}
	image_num++;
	var XHR=new XHRConnection();
	XHR.appendData("num", num);
	XHR.appendData("num_rollover", image_num);
	XHR.appendData("url", url_site);
	XHR.appendData("lang", lang);
	XHR.appendData("repertoire", repertoire);
	XHR.appendData("formulaire", img);
	XHR.sendAndLoad(""+url_site+"includes/include_verification_rollover_image_video.php", "GET", afficher_verification_rollover_image_video);
}

var afficher_verification_rollover_image_video = function(obj) {
	var XMLDoc=obj.responseXML;
	var texte_affichage_resultat=XMLDoc.getElementsByTagName("formulaire");
	var balise_affichage = document.getElementById(texte_affichage_resultat[0].firstChild.nodeValue);
	var num=XMLDoc.getElementsByTagName("num");
	var num_rollover=XMLDoc.getElementsByTagName("num_rollover");
	var nombre=XMLDoc.getElementsByTagName("nombre");
	var repertoire=XMLDoc.getElementsByTagName("repertoire");
	var url=XMLDoc.getElementsByTagName("url");
	var lang=XMLDoc.getElementsByTagName("lang");
	if (nombre[0].firstChild.nodeValue==0) {
		image_num=0;
	}
	balise_affichage.src=''+url[0].firstChild.nodeValue+''+repertoire[0].firstChild.nodeValue+'/'+num[0].firstChild.nodeValue+'_'+image_num+'.png';
	window.Timer_rollover_image=setTimeout("rollover_image_video('"+texte_affichage_resultat[0].firstChild.nodeValue+"', '"+num[0].firstChild.nodeValue+"', '"+repertoire[0].firstChild.nodeValue+"', '"+url[0].firstChild.nodeValue+"', '"+lang[0].firstChild.nodeValue+"')", 1000);
}

function zapping_membre(type_moun, nombre_moun, texte_affichage_resultat, url_site, lang, image_une, image_deux, id_menu, affiche_image_rollover) {
	var type_moun=type_moun;
	var nombre_moun=nombre_moun;
	var texte_affichage_resultat=texte_affichage_resultat;
	var url_site=url_site;
	var lang=lang;
	var image_une=image_une;
	var image_deux=image_deux;
	var id_menu=id_menu;
	var affiche_image_rollover=affiche_image_rollover;
	document.getElementById(texte_affichage_resultat).innerHTML='<p class="texte_centre"><img src="'+url_site+'images/loader_ajax_blanc.gif" name="loader" alt="" title="" border="0" /></p>';
	if (type_moun==1) {
		document.getElementById(affiche_image_rollover).innerHTML='<a href="'+url_site+'les-talents/defaut.php?id=3&amp;rub='+id_menu+'" onclick="zapping_membre(\'1\', \''+nombre_moun+'\', \'talent_zapping_talent_contenu\', \''+url_site+'\', \''+lang+'\', \'onglet_zapping_talent\', \'onglet_zapping_zappeur\', \''+id_menu+'\', \'image_zapping_rollover\'); return false;" class="texte_blanc"><img class="image_rubrique_droite" src="'+url_site+'images/contenu/accueil/'+image_une+'_'+lang+'_over.jpg" name="'+image_une+'" id="'+image_une+'" border="0" alt="" title="" /></a><a href="" onclick="zapping_membre(\'2\', \''+nombre_moun+'\', \'talent_zapping_talent_contenu\', \''+url_site+'\', \''+lang+'\', \'onglet_zapping_talent\', \'onglet_zapping_zappeur\', \''+id_menu+'\', \'image_zapping_rollover\'); return false;" class="texte_blanc"><img class="image_rubrique_droite" src="'+url_site+'images/contenu/accueil/'+image_deux+'_'+lang+'.jpg" onmouseover="javascript: document.'+image_deux+'.src=\''+url_site+'images/contenu/accueil/'+image_deux+'_'+lang+'_over.jpg\';" onmouseout="javascript: document.'+image_deux+'.src=\''+url_site+'images/contenu/accueil/'+image_deux+'_'+lang+'.jpg\';" name="'+image_deux+'" id="'+image_deux+'" border="0" alt="" title="" /></a>';
	}else{
		document.getElementById(affiche_image_rollover).innerHTML='<a href="'+url_site+'les-talents/defaut.php?id=3&amp;rub='+id_menu+'" onclick="zapping_membre(\'1\', \'6\', \'talent_zapping_talent_contenu\', \''+url_site+'\', \''+lang+'\', \'onglet_zapping_talent\', \'onglet_zapping_zappeur\', \''+id_menu+'\', \'image_zapping_rollover\'); return false;" class="texte_blanc"><img class="image_rubrique_droite" src="'+url_site+'images/contenu/accueil/'+image_une+'_'+lang+'.jpg" onmouseover="javascript: document.'+image_une+'.src=\''+url_site+'images/contenu/accueil/'+image_une+'_'+lang+'_over.jpg\';" onmouseout="javascript: document.'+image_une+'.src=\''+url_site+'images/contenu/accueil/'+image_une+'_'+lang+'.jpg\';" name="'+image_une+'" id="'+image_une+'" border="0" alt="" title="" /></a><a href="" onclick="zapping_membre(\'2\', \''+nombre_moun+'\', \'talent_zapping_talent_contenu\', \''+url_site+'\', \''+lang+'\', \'onglet_zapping_talent\', \'onglet_zapping_zappeur\', \''+id_menu+'\', \'image_zapping_rollover\'); return false;" class="texte_blanc"><img class="image_rubrique_droite" src="'+url_site+'images/contenu/accueil/'+image_deux+'_'+lang+'_over.jpg" name="'+image_deux+'" id="'+image_deux+'" border="0" alt="" title="" /></a>';
	}
	var XHR=new XHRConnection();
	XHR.appendData("type_moun", type_moun);
	XHR.appendData("nombre_moun", nombre_moun);
	XHR.appendData("url", url_site);
	XHR.appendData("formulaire", texte_affichage_resultat);
	XHR.sendAndLoad(""+url_site+"includes/include_verification_zapping_membre.php", "GET", afficher_verification_zapping_membre);
}

var afficher_verification_zapping_membre = function(obj) {
	var XMLDoc=obj.responseXML;
	var texte_affichage_resultat=XMLDoc.getElementsByTagName("formulaire");
	var balise_affichage = document.getElementById(texte_affichage_resultat[0].firstChild.nodeValue);
	var nombre=XMLDoc.getElementsByTagName("nombre");
	var url_site=XMLDoc.getElementsByTagName("url");
	var membre_node=XMLDoc.getElementsByTagName("membre");
	var nom_membre_securite='';
	balise_affichage.innerHTML='';
	var iteration_membre=1;
	for (i=0;i<membre_node.length;i++) {
		var num = membre_node[i].getElementsByTagName("num");
		var nom = membre_node[i].getElementsByTagName("nom");
		var avatar = membre_node[i].getElementsByTagName("avatar");
		if (nom[0].firstChild.nodeValue.length>14) {
			nom_membre_securite=''+left(nom[0].firstChild.nodeValue, 0, 14)+' ...';
		}else{
			nom_membre_securite=nom[0].firstChild.nodeValue;
		}
		balise_affichage.innerHTML +='<div id="talent_'+num[0].firstChild.nodeValue+'" class="talent_zapping_talent_contenu_membre" onmouseover="javascript: document.getElementById(\'talent_photo_'+num[0].firstChild.nodeValue+'\').style.border=\'2px solid #ec2a7e\';" onmouseout="javascript: document.getElementById(\'talent_photo_'+num[0].firstChild.nodeValue+'\').style.border=\'2px solid #dedede\';"><div id="talent_photo_'+num[0].firstChild.nodeValue+'" class="talent_zapping_talent_contenu_membre_photo"><p><a href="'+url_site[0].firstChild.nodeValue+''+nom[0].firstChild.nodeValue+'" class="texte_blanc"><img src="'+url_site[0].firstChild.nodeValue+'photos/phototeque/membres/miniature/'+avatar[0].firstChild.nodeValue+'" name="membre_avatar_'+num[0].firstChild.nodeValue+'" alt="'+nom[0].firstChild.nodeValue+'" title="'+nom[0].firstChild.nodeValue+'" border="0" /></a></p></div><p class="texte_rose2"><a href="'+url_site[0].firstChild.nodeValue+''+nom[0].firstChild.nodeValue+'" class="texte_rose2">'+nom_membre_securite+'</a></p></div>';
		if ((iteration_membre%3)==0) {
			balise_affichage.innerHTML +='<div style="float: left; margin: 0px; padding: 0px; width: 358px; height: 1px; color: #FFFFFF; background-color: #FFFFFF; border: 0px solid #FFFFFF;"></div>';
		}
		iteration_membre++;
	}
}

function zapping_membre_defaut(type_moun, nombre_moun, texte_affichage_resultat, url_site, lang) {
	var type_moun=type_moun;
	var nombre_moun=nombre_moun;
	var texte_affichage_resultat=texte_affichage_resultat;
	var url_site=url_site;
	var lang=lang;
	document.getElementById(texte_affichage_resultat).innerHTML='<p class="texte_centre"><img src="'+url_site+'images/loader_ajax_blanc.gif" name="loader" alt="" title="" border="0" /></p>';
	var XHR=new XHRConnection();
	XHR.appendData("type_moun", type_moun);
	XHR.appendData("nombre_moun", nombre_moun);
	XHR.appendData("url", url_site);
	XHR.appendData("formulaire", texte_affichage_resultat);
	XHR.sendAndLoad(""+url_site+"includes/include_verification_zapping_membre.php", "GET", afficher_verification_zapping_membre_defaut);
}

var afficher_verification_zapping_membre_defaut = function(obj) {
	var XMLDoc=obj.responseXML;
	var texte_affichage_resultat=XMLDoc.getElementsByTagName("formulaire");
	var balise_affichage = document.getElementById(texte_affichage_resultat[0].firstChild.nodeValue);
	var nombre=XMLDoc.getElementsByTagName("nombre");
	var url_site=XMLDoc.getElementsByTagName("url");
	var membre_node=XMLDoc.getElementsByTagName("membre");
	var nom_membre_securite='';
	balise_affichage.innerHTML='';
	var iteration_membre=1;
	for (i=0;i<membre_node.length;i++) {
		var num = membre_node[i].getElementsByTagName("num");
		var nom = membre_node[i].getElementsByTagName("nom");
		var avatar = membre_node[i].getElementsByTagName("avatar");
		if (nom[0].firstChild.nodeValue.length>14) {
			nom_membre_securite=''+left(nom[0].firstChild.nodeValue, 0, 14)+' ...';
		}else{
			nom_membre_securite=nom[0].firstChild.nodeValue;
		}
		if ((iteration_membre%5)==0) {
			texte_separateur='<div class="talent_zapping_talent_contenu_membre_defaut_hr"></div>';
		}else{
			texte_separateur='';
		}
		balise_affichage.innerHTML +='<div id="talent_'+num[0].firstChild.nodeValue+'" class="talent_zapping_talent_contenu_membre" onmouseover="javascript: document.getElementById(\'talent_photo_'+num[0].firstChild.nodeValue+'\').style.border=\'2px solid #ec2a7e\';" onmouseout="javascript: document.getElementById(\'talent_photo_'+num[0].firstChild.nodeValue+'\').style.border=\'2px solid #dedede\';"><div id="talent_photo_'+num[0].firstChild.nodeValue+'" class="talent_zapping_talent_contenu_membre_photo"><p><a href="'+url_site[0].firstChild.nodeValue+''+nom[0].firstChild.nodeValue+'" class="texte_blanc"><img src="'+url_site[0].firstChild.nodeValue+'photos/phototeque/membres/miniature/'+avatar[0].firstChild.nodeValue+'" name="membre_avatar_'+num[0].firstChild.nodeValue+'" alt="'+nom[0].firstChild.nodeValue+'" title="'+nom[0].firstChild.nodeValue+'" border="0" /></a></p></div><p class="texte_rose2"><a href="'+url_site[0].firstChild.nodeValue+''+nom[0].firstChild.nodeValue+'" class="texte_rose2">'+nom_membre_securite+'</a></p></div>'+texte_separateur+'';
		iteration_membre++;
	}
}

function afficher_nombre_message(type_message, moun, texte_afficher_resultat, texte_afficher_resultat2, url_site, lang) {
	var type_message=type_message;
	var moun=moun;
	var texte_afficher_resultat=texte_afficher_resultat;
	var texte_afficher_resultat2=texte_afficher_resultat2;
	var url_site=url_site;
	var lang=lang;
	//document.getElementById(texte_afficher_resultat).innerHTML='';
	var XHR=new XHRConnection();
	if (type_message==1) {
		XHR.appendData("type", type_message);
		XHR.appendData("moun", moun);
		XHR.appendData("url", url_site);
		XHR.appendData("formulaire", texte_afficher_resultat);
		XHR.appendData("formulaire2", texte_afficher_resultat2);
		XHR.appendData("lang", lang);
		XHR.sendAndLoad(""+url_site+"includes/include_verification_nombre_message.php", "GET", afficher_verification_nombre_message);
	}else{
		
	}
}

var afficher_verification_nombre_message = function(obj) {
	var XMLDoc=obj.responseXML;
	var texte_affichage_resultat=XMLDoc.getElementsByTagName("formulaire");
	var balise_affichage = document.getElementById(texte_affichage_resultat[0].firstChild.nodeValue);
	var texte_affichage_resultat2=XMLDoc.getElementsByTagName("formulaire2");
	var balise_affichage2 = document.getElementById(texte_affichage_resultat2[0].firstChild.nodeValue);
	var type=XMLDoc.getElementsByTagName("type");
	var lang=XMLDoc.getElementsByTagName("lang");
	var url_texte=XMLDoc.getElementsByTagName("url_texte");
	var url_notification=XMLDoc.getElementsByTagName("url_notification");
	var texte=XMLDoc.getElementsByTagName("texte");
	var texte_notification=XMLDoc.getElementsByTagName("texte_notification");
	var nombre=XMLDoc.getElementsByTagName("nombre");
	var notification=XMLDoc.getElementsByTagName("notification");
	var url_site=XMLDoc.getElementsByTagName("url");
	var membre_node=XMLDoc.getElementsByTagName("moun");
	var nom_membre_securite='';
	if ((nombre[0].firstChild.nodeValue)>0) {
		var texte_nombre_message="<b>"+nombre[0].firstChild.nodeValue+"</b>";
	}else{
		var texte_nombre_message=""+nombre[0].firstChild.nodeValue+"";
	}
	if ((notification[0].firstChild.nodeValue)>0) {
		var texte_nombre_notification="<b>"+notification[0].firstChild.nodeValue+"</b>";
	}else{
		var texte_nombre_notification=""+notification[0].firstChild.nodeValue+"";
	}
	balise_affichage.innerHTML='';
	balise_affichage2.innerHTML='';
	balise_affichage.innerHTML='<a href="'+url_texte[0].firstChild.nodeValue+'" class="texte_gris">'+texte_nombre_message+' '+texte[0].firstChild.nodeValue+'</a>';
	balise_affichage2.innerHTML='<a href="'+url_notification[0].firstChild.nodeValue+'" class="texte_gris">'+texte_nombre_notification+' '+texte_notification[0].firstChild.nodeValue+'</a>';
	Timer = setTimeout("afficher_nombre_message('"+type[0].firstChild.nodeValue+"', '"+membre_node[0].firstChild.nodeValue+"', '"+texte_affichage_resultat[0].firstChild.nodeValue+"', '"+texte_affichage_resultat2[0].firstChild.nodeValue+"', '"+url_site[0].firstChild.nodeValue+"', '"+lang[0].firstChild.nodeValue+"');", 120000);
}

function afficher_talent_membres_oeuvres(type_oeuvre, thematique, sous_thematique, type_media, texte_afficher_resultat, texte_afficher_resultat2, texte_afficher_resultat3, url_site, lang) {
	var type_oeuvre=type_oeuvre;
	var thematique=thematique;
	var sous_thematique=sous_thematique;
	var type_media=type_media;
	var texte_afficher_resultat=texte_afficher_resultat;
	var texte_afficher_resultat2=texte_afficher_resultat2;
	var texte_afficher_resultat3=texte_afficher_resultat3;
	var url_site=url_site;
	var lang=lang;
	document.getElementById(texte_afficher_resultat).innerHTML='';
	document.getElementById(texte_afficher_resultat2).innerHTML='';
	document.getElementById(texte_afficher_resultat3).innerHTML='<p class="texte_centre"><img src="'+url_site+'images/loader_ajax_blanc.gif" name="loader_ajax" border="0" /></p>';
	window.clearTimeout(Timer_rollover_image);
	var XHR=new XHRConnection();
	XHR.appendData("type", type_oeuvre);
	XHR.appendData("thematique", thematique);
	XHR.appendData("sous_thematique", sous_thematique);
	XHR.appendData("type_media", type_media);
	XHR.appendData("formulaire", texte_afficher_resultat);
	XHR.appendData("formulaire2", texte_afficher_resultat2);
	XHR.appendData("formulaire3", texte_afficher_resultat3);
	XHR.appendData("url", url_site);
	XHR.appendData("lang", lang);
	XHR.sendAndLoad(""+url_site+"includes/include_verification_talent_membres_oeuvres.php", "GET", afficher_verification_talent_membres_oeuvres);
}

var afficher_verification_talent_membres_oeuvres = function(obj) {
	var XMLDoc=obj.responseXML;
	var texte_affichage_resultat=XMLDoc.getElementsByTagName("formulaire");
	var balise_affichage=document.getElementById(texte_affichage_resultat[0].firstChild.nodeValue);
	var texte_affichage_resultat2=XMLDoc.getElementsByTagName("formulaire2");
	var balise_affichage2=document.getElementById(texte_affichage_resultat2[0].firstChild.nodeValue);
	var texte_affichage_resultat3=XMLDoc.getElementsByTagName("formulaire3");
	var balise_affichage3=document.getElementById(texte_affichage_resultat3[0].firstChild.nodeValue);
	balise_affichage3.innerHTML='';
	var type=XMLDoc.getElementsByTagName("type");
	var type_media=XMLDoc.getElementsByTagName("type_media");
	var thematique=XMLDoc.getElementsByTagName("thematique");
	thematique_oeuvre=thematique[0].firstChild.nodeValue;
	var sous_thematique=XMLDoc.getElementsByTagName("sous_thematique");
	sous_thematique_oeuvre=sous_thematique[0].firstChild.nodeValue;
	var texte_lien_depot_oeuvre=XMLDoc.getElementsByTagName("texte_lien_depot_oeuvre");
	var texte_lien_depot_oeuvre2=XMLDoc.getElementsByTagName("texte_lien_depot_oeuvre2");
	var lang=XMLDoc.getElementsByTagName("lang");
	var url=XMLDoc.getElementsByTagName("url");
	var talent_node=XMLDoc.getElementsByTagName("talent");
	var sous_talent_node=XMLDoc.getElementsByTagName("sous_talent");
	var oeuvre_node=XMLDoc.getElementsByTagName("oeuvre");
	var iteration_talent=0;
	balise_affichage.innerHTML='<h3 class="clear_both">';
	for (var i=0;i<talent_node.length;i++) {
		var num=talent_node[i].getElementsByTagName("num");
		var titre=talent_node[i].getElementsByTagName("titre");
		if (thematique[0].firstChild.nodeValue==num[0].firstChild.nodeValue)
			var texte_over="_over";
		else
			var texte_over = "";
		balise_affichage.innerHTML +='<a href="#'+num[0].firstChild.nodeValue+'" onclick="afficher_talent_membres_oeuvres(\''+type[0].firstChild.nodeValue+'\', \''+num[0].firstChild.nodeValue+'\', \'0\', \''+type_media_oeuvre+'\', \''+texte_affichage_resultat[0].firstChild.nodeValue+'\', \''+texte_affichage_resultat2[0].firstChild.nodeValue+'\', \''+texte_affichage_resultat3[0].firstChild.nodeValue+'\', \''+url[0].firstChild.nodeValue+'\', \''+lang[0].firstChild.nodeValue+'\'); return false;" class="texte_blanc"><img class="image_rubrique_droite" src="'+url[0].firstChild.nodeValue+'images/contenu/accueil/thematiques/thematique_'+num[0].firstChild.nodeValue+'_'+lang[0].firstChild.nodeValue+''+texte_over+'.jpg" name="thematique_'+num[0].firstChild.nodeValue+'" alt="'+titre[0].firstChild.nodeValue+'" title="'+titre[0].firstChild.nodeValue+'" onmouseover="javascript: document.thematique_'+num[0].firstChild.nodeValue+'.src=\''+url[0].firstChild.nodeValue+'images/contenu/accueil/thematiques/thematique_'+num[0].firstChild.nodeValue+'_'+lang[0].firstChild.nodeValue+'_over.jpg\';" onmouseout="javascript: document.thematique_'+num[0].firstChild.nodeValue+'.src=\''+url[0].firstChild.nodeValue+'images/contenu/accueil/thematiques/thematique_'+num[0].firstChild.nodeValue+'_'+lang[0].firstChild.nodeValue+''+texte_over+'.jpg\';" border="0" /></a>';
		iteration_talent++;
	}
	balise_affichage.innerHTML +='</h3>';
	var iteration_sous_talent = 0;
	document.getElementById(texte_affichage_resultat2[0].firstChild.nodeValue).style.border='1px solid #f6f6f6';
	document.getElementById(texte_affichage_resultat2[0].firstChild.nodeValue).style.padding='2px 0px';
	for (var j=0;j<sous_talent_node.length;j++)
	{
		var num_sous_talent=sous_talent_node[j].getElementsByTagName("num");
		var titre_sous_talent=sous_talent_node[j].getElementsByTagName("titre");
		if (sous_thematique[0].firstChild.nodeValue==num_sous_talent[0].firstChild.nodeValue) {
			var texte_class_li=" background-color: #f6f6f6; color: #ec2a7e;";
			var texte_li_a=" style=\"color: #ff0060;\"";
		}
		else
		{
			var texte_class_li = "";
			var texte_li_a = " style=\"color: #434343;\"";
		}
		balise_affichage2.innerHTML +='<li style="margin: 0px; padding: 0px 5px; display: inline;'+texte_class_li+'"><a href="#'+num_sous_talent[0].firstChild.nodeValue+'" onclick="afficher_talent_membres_oeuvres(\''+type[0].firstChild.nodeValue+'\', \''+thematique[0].firstChild.nodeValue+'\', \''+num_sous_talent[0].firstChild.nodeValue+'\', \''+type_media_oeuvre+'\', \''+texte_affichage_resultat[0].firstChild.nodeValue+'\', \''+texte_affichage_resultat2[0].firstChild.nodeValue+'\', \''+texte_affichage_resultat3[0].firstChild.nodeValue+'\', \''+url[0].firstChild.nodeValue+'\', \''+lang[0].firstChild.nodeValue+'\'); return false;"'+texte_li_a+'>'+titre_sous_talent[0].firstChild.nodeValue+'</a></li>';
		iteration_sous_talent++;
	}
	var iteration_oeuvre=1;
	for (var k=0;k<oeuvre_node.length;k++) {
		var num_oeuvre=oeuvre_node[k].getElementsByTagName("num");
		var nom_oeuvre=oeuvre_node[k].getElementsByTagName("nom");
		var fichier=oeuvre_node[k].getElementsByTagName("fichier");
		var url_fichier=oeuvre_node[k].getElementsByTagName("url_fichier");
		var moun_oeuvre=oeuvre_node[k].getElementsByTagName("moun");
		var moun_nom_oeuvre=oeuvre_node[k].getElementsByTagName("moun_nom");
		var oeuvre_extension_tag=oeuvre_node[k].getElementsByTagName("oeuvre_extension_tag");
		var oeuvre_fichier_sans_extension=oeuvre_node[k].getElementsByTagName("oeuvre_fichier_sans_extension");
		var stats_vue=oeuvre_node[k].getElementsByTagName("stats_vue");
		var duree=oeuvre_node[k].getElementsByTagName("duree");
		if ((oeuvre_extension_tag[0].firstChild.nodeValue==2) || (oeuvre_extension_tag[0].firstChild.nodeValue==4)) {
			var fichier_source="photos/phototeque/oeuvres/miniature/accueil/0_image_defaut_doc.jpg";
			var fichier_source_over="";
		}else if (oeuvre_extension_tag[0].firstChild.nodeValue==3) {
			var fichier_source="photos/phototeque/oeuvres/miniature/accueil/"+oeuvre_fichier_sans_extension[0].firstChild.nodeValue+"_0.png";
			var fichier_source_over=" onmouseover=\"javascript: rollover_image_video('photo_oeuvre_"+num_oeuvre[0].firstChild.nodeValue+"', '"+num_oeuvre[0].firstChild.nodeValue+"', 'photos/phototeque/oeuvres/miniature/accueil', '"+url[0].firstChild.nodeValue+"', '"+lang[0].firstChild.nodeValue+"');\" onmouseout=\"javascript: window.clearTimeout(Timer_rollover_image);\"";
		}else{
			var fichier_source="photos/phototeque/oeuvres/miniature/accueil/"+fichier[0].firstChild.nodeValue+"";
			var fichier_source_over="";
		}
		if (nom_oeuvre[0].firstChild.nodeValue.length>15) {
			var nom_membre_oeuvres_sous_thematiques_securite=""+left(nom_oeuvre[0].firstChild.nodeValue, 0, 15)+" ...";
		}else{
			var nom_membre_oeuvres_sous_thematiques_securite=nom_oeuvre[0].firstChild.nodeValue;
		}
		if (moun_nom_oeuvre[0].firstChild.nodeValue.length>11) {
			var nom_artiste_oeuvres_sous_thematiques_securite=""+left(moun_nom_oeuvre[0].firstChild.nodeValue, 0, 11)+" ...";
		}else{
			var nom_artiste_oeuvres_sous_thematiques_securite=moun_nom_oeuvre[0].firstChild.nodeValue;
		}
		if ((duree[0].firstChild.nodeValue!="") && (duree[0].firstChild.nodeValue!="00:00:00")) {
			var texte_duree_oeuvre='<div id="temps_oeuvre_'+num_oeuvre[0].firstChild.nodeValue+'" class="talent_talent_sous_thematiques_contenu_membre_temps"><p class="texte_blanc">'+duree[0].firstChild.nodeValue+'</p></div>';
		}else{
			var texte_duree_oeuvre='';
		}
		balise_affichage3.innerHTML +='<div id="membre_oeuvre_'+num_oeuvre[0].firstChild.nodeValue+'" class="talent_talent_sous_thematiques_contenu_membre" onmouseover="javascript: document.getElementById(\'photo_membre_oeuvre_'+num_oeuvre[0].firstChild.nodeValue+'\').style.border=\'2px solid #ec2a7e\';" onmouseout="javascript: document.getElementById(\'photo_membre_oeuvre_'+num_oeuvre[0].firstChild.nodeValue+'\').style.border=\'2px solid #dedede\';"><h2 class="texte_rose2"><a href="'+url[0].firstChild.nodeValue+''+url_fichier[0].firstChild.nodeValue+'" class="texte_rose2"><b>'+nom_membre_oeuvres_sous_thematiques_securite+'</b></a></h2><div id="photo_membre_oeuvre_'+num_oeuvre[0].firstChild.nodeValue+'" class="talent_talent_sous_thematiques_contenu_membre_photo"><p><a href="'+url[0].firstChild.nodeValue+''+url_fichier[0].firstChild.nodeValue+'" class="texte_noir"><img src="'+url[0].firstChild.nodeValue+''+fichier_source+'" name="photo_oeuvre_'+num_oeuvre[0].firstChild.nodeValue+'" id="photo_oeuvre_'+num_oeuvre[0].firstChild.nodeValue+'"'+fichier_source_over+' alt="'+nom_oeuvre[0].firstChild.nodeValue+'" title="'+nom_oeuvre[0].firstChild.nodeValue+'" border="0" /></a></p>'+texte_duree_oeuvre+'</div><h2 class="image_rubrique_droite2"><a href="'+url[0].firstChild.nodeValue+''+moun_nom_oeuvre[0].firstChild.nodeValue+'" class="texte_gris">'+nom_artiste_oeuvres_sous_thematiques_securite+'</a></h2><p class="image_rubrique_droite3">'+stats_vue[0].firstChild.nodeValue+'</p></div>';
		if ((iteration_oeuvre%6)==0) {
			balise_affichage3.innerHTML +='<div class="talent_talent_sous_thematiques_contenu_membre_hr"></div>';
		}
		iteration_oeuvre++;
	}
	//alert(oeuvre_node.length);
	if (oeuvre_node.length<1)
		balise_affichage3.innerHTML = '<h2 class="texte_centre"><br /><img name="defaut" src="'+url[0].firstChild.nodeValue+'photos/phototeque/oeuvres/miniature/accueil/0_image_defaut_doc.jpg" border="0" alt="" title="" /><br /><b>'+texte_lien_depot_oeuvre[0].firstChild.nodeValue+'</b><br />'+texte_lien_depot_oeuvre2[0].firstChild.nodeValue+'<br />&nbsp;</h2>';
	pageTracker._trackPageview(''+url[0].firstChild.nodeValue+'accueil/?ajax=CNN&media='+type_media[0].firstChild.nodeValue+'&talent='+thematique[0].firstChild.nodeValue+'&sous_talent='+sous_thematique[0].firstChild.nodeValue+'');
}

function afficher_menu_deroulant_talent_type_oeuvre(div_a_afficher, champs_texte_retour, champs_cache_retour, lang, url_site) {
	var div_a_afficher=div_a_afficher;
	var champs_texte_retour=champs_texte_retour;
	var champs_cache_retour=champs_cache_retour;
	var lang = lang;
	var url_site = url_site;
	document.getElementById(champs_texte_retour).blur();
	document.getElementById(div_a_afficher).innerHTML="<p class=\"texte_centre\"><img src=\""+url_site+"images/loader_ajax_rose.gif\" name=\"loader_ajax\" border=\"0\" /></p>";
	if (document.getElementById(div_a_afficher).style.display == "")
		document.getElementById(div_a_afficher).style.display="none";
	else
		document.getElementById(div_a_afficher).style.display = "";
	var XHR=new XHRConnection();
	XHR.appendData("type", document.getElementById(champs_cache_retour).value);
	XHR.appendData("formulaire", div_a_afficher);
	XHR.appendData("formulaire2", champs_texte_retour);
	XHR.appendData("formulaire3", champs_cache_retour);
	XHR.appendData("url", url_site);
	XHR.appendData("lang", lang);
	XHR.sendAndLoad(""+url_site+"includes/include_verification_talent_types_oeuvres.php", "GET", afficher_verification_menu_deroulant_talent_type_oeuvre);
}

var afficher_verification_menu_deroulant_talent_type_oeuvre = function(obj) {
	var XMLDoc=obj.responseXML;
	var texte_affichage_resultat=XMLDoc.getElementsByTagName("formulaire");
	var balise_affichage=document.getElementById(texte_affichage_resultat[0].firstChild.nodeValue);
	balise_affichage.innerHTML='';
	var texte_affichage_resultat2=XMLDoc.getElementsByTagName("formulaire2");
	var balise_affichage2=document.getElementById(texte_affichage_resultat2[0].firstChild.nodeValue);
	var texte_affichage_resultat3=XMLDoc.getElementsByTagName("formulaire3");
	var balise_affichage3=document.getElementById(texte_affichage_resultat3[0].firstChild.nodeValue);
	var type=XMLDoc.getElementsByTagName("type");
	var oeuvre_type=XMLDoc.getElementsByTagName("oeuvre_type");
	var lang=XMLDoc.getElementsByTagName("lang");
	var url=XMLDoc.getElementsByTagName("url");
	for (var i=0;i<oeuvre_type.length;i++) {
		var num=oeuvre_type[i].getElementsByTagName("num");
		var nom=oeuvre_type[i].getElementsByTagName("nom");
		if (num[0].firstChild.nodeValue==type[0].firstChild.nodeValue) {
			texte_selectionne_debut="<b>";
			texte_selectionne_fin="</b>";
		}else{
			texte_selectionne_debut="";
			texte_selectionne_fin="";
		}
		balise_affichage.innerHTML +='<p class="texte_rose2"><a href="#" onclick="afficher_menu_deroulant_talent_type_oeuvre_selection(\''+texte_affichage_resultat[0].firstChild.nodeValue+'\', \''+texte_affichage_resultat2[0].firstChild.nodeValue+'\', \''+texte_affichage_resultat3[0].firstChild.nodeValue+'\', \''+num[0].firstChild.nodeValue+'\', \''+nom[0].firstChild.nodeValue+'\', \''+lang[0].firstChild.nodeValue+'\', \''+url[0].firstChild.nodeValue+'\'); return false;" class="texte_rose2">'+texte_selectionne_debut+''+nom[0].firstChild.nodeValue+''+texte_selectionne_fin+'</a></p>';
	}
}

function afficher_menu_deroulant_talent_type_oeuvre_selection(div_a_afficher, champs_texte_retour, champs_cache_retour, num_talent, nom_talent, lang, url_site) {
	var div_a_afficher=div_a_afficher;
	var champs_texte_retour=champs_texte_retour;
	var champs_cache_retour=champs_cache_retour;
	var num_talent=num_talent;
	var nom_talent=nom_talent;
	var lang=lang;
	var url_site=url_site;
	type_media_oeuvre=num_talent;
	document.getElementById(div_a_afficher).style.display="none";
	document.getElementById(div_a_afficher).innerHTML="";
	document.getElementById(champs_texte_retour).value=nom_talent;
	document.getElementById(champs_cache_retour).value=num_talent;
	afficher_talent_membres_oeuvres('1', thematique_oeuvre, sous_thematique_oeuvre, num_talent, 'talent_talent_thematique', 'ul_talent_talent_sous_thematiques', 'talent_talent_sous_thematiques_contenu', url_site, lang);
}

function changer_sous_rubrique_talent_defaut(formulaire_a_verifier, champs_type_media, talent_parent, nom_select_retour, texte_affichage_resultat, div_affichage_oeuvre, nombre_iteration, type_oeuvre, texte_tous, lang, url_site, url_page) {
	var formulaire_a_verifier=formulaire_a_verifier;
	var champs_type_media=champs_type_media;
	var talent_parent=talent_parent;
	var nom_select_retour=nom_select_retour;
	var texte_affichage_resultat=texte_affichage_resultat;
	var div_affichage_oeuvre=div_affichage_oeuvre;
	var nombre_iteration=nombre_iteration;
	var type_oeuvre=type_oeuvre;
	var texte_tous=texte_tous;
	var lang=lang;
	var url_page=url_page;
	var url_site=url_site;
	thematique_oeuvre=document.getElementById(talent_parent).value;
	afficher_select_zapping_oeuvres_membres(type_oeuvre, talent_parent, texte_affichage_resultat, champs_type_media, div_affichage_oeuvre, nombre_iteration, url_site, lang);
	var XHR=new XHRConnection();
	XHR.appendData("id_talent", document.getElementById(talent_parent).value);
	XHR.appendData("nom_select_retour", nom_select_retour);
	XHR.appendData("texte_tous", texte_tous);
	XHR.appendData("lang", lang);
	XHR.appendData("formulaire", texte_affichage_resultat);
	XHR.sendAndLoad(""+url_site+"includes/include_verification_sous_rubriques_talent2.php", "GET", afficher_verification_sous_rubriques_talent_defaut);
}

var afficher_verification_sous_rubriques_talent_defaut = function(obj) {
	var XMLDoc=obj.responseXML;
	var texte_affichage_resultat=XMLDoc.getElementsByTagName("formulaire");
	var balise_affichage = document.getElementById(texte_affichage_resultat[0].firstChild.nodeValue);
	var champs_select=XMLDoc.getElementsByTagName("select");
	var texte_node=XMLDoc.getElementsByTagName("texte");
	var sous_talent_node=XMLDoc.getElementsByTagName("soustalent");
	balise_affichage.length=0;
	balise_affichage.options[0] = new Option(decode_ascii(texte_node[0].firstChild.nodeValue), 0);
	for (i=0;i<sous_talent_node.length;i++) {
		var id_talent = sous_talent_node[i].getElementsByTagName("id_talent");
		var nom_talent = sous_talent_node[i].getElementsByTagName("nom");
		//alert(id_talent[0].firstChild.nodeValue);
		balise_affichage.options[i+1] = new Option(decode_ascii(nom_talent[0].firstChild.nodeValue), id_talent[0].firstChild.nodeValue);
	}
}

function afficher_select_zapping_oeuvres_membres(type_oeuvre, champs_thematique, champs_sous_thematique, champs_type_media, texte_afficher_resultat, iteration_oeuvre, url_site, lang) {
	var type_oeuvre=type_oeuvre;
	var champs_thematique=champs_thematique;
	var champs_sous_thematique=champs_sous_thematique;
	var champs_type_media=champs_type_media;
	var texte_afficher_resultat=texte_afficher_resultat;
	var iteration_oeuvre=iteration_oeuvre;
	var url_site=url_site;
	var lang=lang;
	type_media_oeuvre=document.getElementById(champs_type_media).value;
	thematique_oeuvre=document.getElementById(champs_thematique).value;
	sous_thematique_oeuvre=document.getElementById(champs_sous_thematique).value;
	document.getElementById(texte_afficher_resultat).innerHTML='<p class="texte_centre"><br /><img src="'+url_site+'images/loader_ajax_blanc.gif" name="loader_ajax" border="0" /></p>';
	var XHR=new XHRConnection();
	XHR.appendData("type", type_oeuvre);
	XHR.appendData("thematique", document.getElementById(champs_thematique).value);
	XHR.appendData("sous_thematique", document.getElementById(champs_sous_thematique).value);
	XHR.appendData("type_media", document.getElementById(champs_type_media).value);
	XHR.appendData("nombre", iteration_oeuvre);
	XHR.appendData("formulaire", texte_afficher_resultat);
	XHR.appendData("url", url_site);
	XHR.appendData("lang", lang);
	XHR.sendAndLoad(""+url_site+"includes/include_verification_talent_membres_oeuvres2.php", "GET", afficher_verification_talent_membres_oeuvres2);
}

function afficher_zapping_oeuvres_membres(type_oeuvre, texte_afficher_resultat, iteration_oeuvre, url_site, lang) {
	var type_oeuvre=type_oeuvre;
	var texte_afficher_resultat=texte_afficher_resultat;
	var iteration_oeuvre=iteration_oeuvre;
	var url_site=url_site;
	var lang=lang;
	document.getElementById(texte_afficher_resultat).innerHTML='<p class="texte_centre"><img src="'+url_site+'images/loader_ajax_blanc.gif" name="loader_ajax" border="0" /></p>';
	var XHR=new XHRConnection();
	XHR.appendData("type", type_oeuvre);
	XHR.appendData("thematique", thematique_oeuvre);
	XHR.appendData("sous_thematique", sous_thematique_oeuvre);
	XHR.appendData("type_media", type_media_oeuvre);
	XHR.appendData("nombre", iteration_oeuvre);
	XHR.appendData("formulaire", texte_afficher_resultat);
	XHR.appendData("url", url_site);
	XHR.appendData("lang", lang);
	XHR.sendAndLoad(""+url_site+"includes/include_verification_talent_membres_oeuvres2.php", "GET", afficher_verification_talent_membres_oeuvres2);
}

var afficher_verification_talent_membres_oeuvres2 = function(obj) {
	var XMLDoc=obj.responseXML;
	var texte_affichage_resultat=XMLDoc.getElementsByTagName("formulaire");
	var balise_affichage=document.getElementById(texte_affichage_resultat[0].firstChild.nodeValue);
	balise_affichage.innerHTML='';
	var type=XMLDoc.getElementsByTagName("type");
	var type_media=XMLDoc.getElementsByTagName("type_media");
	var thematique=XMLDoc.getElementsByTagName("thematique");
	thematique_oeuvre=thematique[0].firstChild.nodeValue;
	var sous_thematique=XMLDoc.getElementsByTagName("sous_thematique");
	sous_thematique_oeuvre=sous_thematique[0].firstChild.nodeValue;
	var nombre=XMLDoc.getElementsByTagName("nombre");
	var texte_lien_depot_oeuvre=XMLDoc.getElementsByTagName("texte_lien_depot_oeuvre");
	var texte_lien_depot_oeuvre2=XMLDoc.getElementsByTagName("texte_lien_depot_oeuvre2");
	var lang=XMLDoc.getElementsByTagName("lang");
	var url=XMLDoc.getElementsByTagName("url");
	var oeuvre_node=XMLDoc.getElementsByTagName("oeuvre");
	var iteration_oeuvre=1;
	for (var k=0;k<oeuvre_node.length;k++) {
		var num_oeuvre=oeuvre_node[k].getElementsByTagName("num");
		var nom_oeuvre=oeuvre_node[k].getElementsByTagName("nom");
		var fichier=oeuvre_node[k].getElementsByTagName("fichier");
		var url_fichier=oeuvre_node[k].getElementsByTagName("url_fichier");
		var moun_oeuvre=oeuvre_node[k].getElementsByTagName("moun");
		var moun_nom_oeuvre=oeuvre_node[k].getElementsByTagName("moun_nom");
		var oeuvre_extension_tag=oeuvre_node[k].getElementsByTagName("oeuvre_extension_tag");
		var oeuvre_fichier_sans_extension=oeuvre_node[k].getElementsByTagName("oeuvre_fichier_sans_extension");
		var stats_vue=oeuvre_node[k].getElementsByTagName("stats_vue");
		var duree=oeuvre_node[k].getElementsByTagName("duree");
		if ((oeuvre_extension_tag[0].firstChild.nodeValue==2) || (oeuvre_extension_tag[0].firstChild.nodeValue==4)) {
			var fichier_source="photos/phototeque/oeuvres/miniature/accueil/0_image_defaut_doc.jpg";
			var fichier_source_over="";
		}else if (oeuvre_extension_tag[0].firstChild.nodeValue==3) {
			var fichier_source="photos/phototeque/oeuvres/miniature/accueil/"+oeuvre_fichier_sans_extension[0].firstChild.nodeValue+"_0.png";
			var fichier_source_over=" onmouseover=\"javascript: rollover_image_video('photo_oeuvre_"+num_oeuvre[0].firstChild.nodeValue+"', '"+num_oeuvre[0].firstChild.nodeValue+"', 'photos/phototeque/oeuvres/miniature/accueil', '"+url[0].firstChild.nodeValue+"', '"+lang[0].firstChild.nodeValue+"');\" onmouseout=\"javascript: window.clearTimeout(Timer_rollover_image);\"";
		}else{
			var fichier_source="photos/phototeque/oeuvres/miniature/accueil/"+fichier[0].firstChild.nodeValue+"";
			var fichier_source_over="";
		}
		if (nom_oeuvre[0].firstChild.nodeValue.length>15) {
			var nom_membre_oeuvres_sous_thematiques_securite=""+left(nom_oeuvre[0].firstChild.nodeValue, 0, 15)+" ...";
		}else{
			var nom_membre_oeuvres_sous_thematiques_securite=nom_oeuvre[0].firstChild.nodeValue;
		}
		if (moun_nom_oeuvre[0].firstChild.nodeValue.length>11) {
			var nom_artiste_oeuvres_sous_thematiques_securite=""+left(moun_nom_oeuvre[0].firstChild.nodeValue, 0, 11)+" ...";
		}else{
			var nom_artiste_oeuvres_sous_thematiques_securite=moun_nom_oeuvre[0].firstChild.nodeValue;
		}
		if ((duree[0].firstChild.nodeValue!="") && (duree[0].firstChild.nodeValue!="00:00:00")) {
			var texte_duree_oeuvre='<div id="temps_oeuvre_'+num_oeuvre[0].firstChild.nodeValue+'" class="talent_talent_sous_thematiques_contenu_membre_temps"><p class="texte_blanc">'+duree[0].firstChild.nodeValue+'</p></div>';
		}else{
			var texte_duree_oeuvre='';
		}
		balise_affichage.innerHTML +='<div id="membre_oeuvre_'+num_oeuvre[0].firstChild.nodeValue+'" class="talent_talent_sous_thematiques_contenu_membre_oeuvres" onmouseover="javascript: document.getElementById(\'photo_membre_oeuvre_'+num_oeuvre[0].firstChild.nodeValue+'\').style.border=\'2px solid #ec2a7e\';" onmouseout="javascript: document.getElementById(\'photo_membre_oeuvre_'+num_oeuvre[0].firstChild.nodeValue+'\').style.border=\'2px solid #dedede\';"><h2 class="texte_rose2"><a href="'+url[0].firstChild.nodeValue+''+url_fichier[0].firstChild.nodeValue+'" class="texte_rose2"><b>'+nom_membre_oeuvres_sous_thematiques_securite+'</b></a></h2><div id="photo_membre_oeuvre_'+num_oeuvre[0].firstChild.nodeValue+'" class="talent_talent_sous_thematiques_contenu_membre_photo"><p><a href="'+url[0].firstChild.nodeValue+''+url_fichier[0].firstChild.nodeValue+'" class="texte_rose2"><img src="'+url[0].firstChild.nodeValue+''+fichier_source+'" name="photo_oeuvre_'+num_oeuvre[0].firstChild.nodeValue+'" id="photo_oeuvre_'+num_oeuvre[0].firstChild.nodeValue+'"'+fichier_source_over+' alt="'+nom_oeuvre[0].firstChild.nodeValue+'" title="'+nom_oeuvre[0].firstChild.nodeValue+'" border="0" /></a></p>'+texte_duree_oeuvre+'</div><h2 class="image_rubrique_droite2"><a href="'+url[0].firstChild.nodeValue+''+moun_nom_oeuvre[0].firstChild.nodeValue+'" class="texte_gris">'+nom_artiste_oeuvres_sous_thematiques_securite+'</a></h2><p class="image_rubrique_droite3">'+stats_vue[0].firstChild.nodeValue+'</p></div>';
		if ((iteration_oeuvre%nombre[0].firstChild.nodeValue)==0) {
			balise_affichage.innerHTML +='<div class="talent_zapping_talent_contenu_membre_defaut_hr"></div>';
		}
		iteration_oeuvre++;
	}
	//alert(oeuvre_node.length);
	if (oeuvre_node.length<1) {
		balise_affichage.innerHTML='<h2 class="texte_centre"><br /><img name="defaut" src="'+url[0].firstChild.nodeValue+'photos/phototeque/oeuvres/miniature/accueil/0_image_defaut_doc.jpg" border="0" alt="" title="" /><br /><b>'+texte_lien_depot_oeuvre[0].firstChild.nodeValue+'</b><br />'+texte_lien_depot_oeuvre2[0].firstChild.nodeValue+'<br />&nbsp;</h2>';
	}
}

function afficher_menu_deroulant_formulaire_recherche_type_oeuvre(div_a_afficher, champs_texte_retour, champs_cache_retour, lang, url_site) {
	var div_a_afficher=div_a_afficher;
	var champs_texte_retour=champs_texte_retour;
	var champs_cache_retour=champs_cache_retour;
	var lang=lang;
	var url_site=url_site;
	document.getElementById(champs_texte_retour).blur();
	document.getElementById(div_a_afficher).innerHTML="<p class=\"texte_centre\"><img src=\""+url_site+"images/loader_ajax_rose.gif\" name=\"loader_ajax\" border=\"0\" /></p>";
	if (document.getElementById(div_a_afficher).style.display=="") {
		document.getElementById(div_a_afficher).style.display="none";
	}else{
		document.getElementById(div_a_afficher).style.display="";
	}
	var XHR=new XHRConnection();
	XHR.appendData("type", document.getElementById(champs_cache_retour).value);
	XHR.appendData("formulaire", div_a_afficher);
	XHR.appendData("formulaire2", champs_texte_retour);
	XHR.appendData("formulaire3", champs_cache_retour);
	XHR.appendData("url", url_site);
	XHR.appendData("lang", lang);
	XHR.sendAndLoad(""+url_site+"includes/include_verification_talent_types_oeuvres.php", "GET", afficher_verification_menu_deroulant_formulaire_recherche_type_oeuvre);
}

var afficher_verification_menu_deroulant_formulaire_recherche_type_oeuvre = function(obj) {
	var XMLDoc=obj.responseXML;
	var texte_affichage_resultat=XMLDoc.getElementsByTagName("formulaire");
	var balise_affichage=document.getElementById(texte_affichage_resultat[0].firstChild.nodeValue);
	balise_affichage.innerHTML='';
	var texte_affichage_resultat2=XMLDoc.getElementsByTagName("formulaire2");
	var balise_affichage2=document.getElementById(texte_affichage_resultat2[0].firstChild.nodeValue);
	var texte_affichage_resultat3=XMLDoc.getElementsByTagName("formulaire3");
	var balise_affichage3=document.getElementById(texte_affichage_resultat3[0].firstChild.nodeValue);
	var type=XMLDoc.getElementsByTagName("type");
	var oeuvre_type=XMLDoc.getElementsByTagName("oeuvre_type");
	var lang=XMLDoc.getElementsByTagName("lang");
	var url=XMLDoc.getElementsByTagName("url");
	for (var i=0;i<oeuvre_type.length;i++) {
		var num=oeuvre_type[i].getElementsByTagName("num");
		var nom=oeuvre_type[i].getElementsByTagName("nom");
		if (num[0].firstChild.nodeValue==type[0].firstChild.nodeValue) {
			texte_selectionne_debut="<b>";
			texte_selectionne_fin="</b>";
		}else{
			texte_selectionne_debut="";
			texte_selectionne_fin="";
		}
		balise_affichage.innerHTML +='<p class="texte_rose2"><a href="#" onclick="afficher_menu_deroulant_formulaire_recherche_type_oeuvre_selection(\''+texte_affichage_resultat[0].firstChild.nodeValue+'\', \''+texte_affichage_resultat2[0].firstChild.nodeValue+'\', \''+texte_affichage_resultat3[0].firstChild.nodeValue+'\', \''+num[0].firstChild.nodeValue+'\', \''+nom[0].firstChild.nodeValue+'\', \''+lang[0].firstChild.nodeValue+'\', \''+url[0].firstChild.nodeValue+'\'); return false;" class="texte_rose2">'+texte_selectionne_debut+''+nom[0].firstChild.nodeValue+''+texte_selectionne_fin+'</a></p>';
	}
}

function afficher_menu_deroulant_formulaire_recherche_type_oeuvre_selection(div_a_afficher, champs_texte_retour, champs_cache_retour, num_talent, nom_talent, lang, url_site) {
	var div_a_afficher=div_a_afficher;
	var champs_texte_retour=champs_texte_retour;
	var champs_cache_retour=champs_cache_retour;
	var num_talent=num_talent;
	var nom_talent=nom_talent;
	var lang=lang;
	var url_site=url_site;
	type_media_oeuvre=num_talent;
	document.getElementById(div_a_afficher).style.display="none";
	document.getElementById(div_a_afficher).innerHTML="";
	document.getElementById(champs_texte_retour).value=nom_talent;
	document.getElementById(champs_cache_retour).value=num_talent;
	//afficher_talent_membres_oeuvres('1', thematique_oeuvre, sous_thematique_oeuvre, num_talent, 'talent_talent_thematique', 'ul_talent_talent_sous_thematiques', 'talent_talent_sous_thematiques_contenu', url_site, lang);
}

function afficher_menu_deroulant_formulaire_recherche_talent_oeuvre(div_a_afficher, champs_texte_retour, champs_cache_retour, presence_select_custom_sous_talent, sous_champs_texte_retour, sous_champs_cache_retour, texte_defaut, lang, url_site) {
	var div_a_afficher=div_a_afficher;
	var champs_texte_retour=champs_texte_retour;
	var champs_cache_retour=champs_cache_retour;
	var presence_select_custom_sous_talent=presence_select_custom_sous_talent;
	var sous_champs_texte_retour=sous_champs_texte_retour;
	var sous_champs_cache_retour=sous_champs_cache_retour;
	var texte_defaut=texte_defaut;
	var lang=lang;
	var url_site=url_site;
	document.getElementById(champs_texte_retour).blur();
	document.getElementById(div_a_afficher).innerHTML="<p class=\"texte_centre\"><img src=\""+url_site+"images/loader_ajax_rose.gif\" name=\"loader_ajax\" border=\"0\" /></p>";
	if (document.getElementById(div_a_afficher).style.display=="") {
		document.getElementById(div_a_afficher).style.display="none";
	}else{
		document.getElementById(div_a_afficher).style.display="";
	}
	if (presence_select_custom_sous_talent==1) {
		document.getElementById(sous_champs_texte_retour).value=texte_defaut;
		document.getElementById(sous_champs_cache_retour).value=0;
	}
	var XHR=new XHRConnection();
	XHR.appendData("talent", document.getElementById(champs_cache_retour).value);
	XHR.appendData("formulaire", div_a_afficher);
	XHR.appendData("formulaire2", champs_texte_retour);
	XHR.appendData("formulaire3", champs_cache_retour);
	XHR.appendData("url", url_site);
	XHR.appendData("lang", lang);
	XHR.sendAndLoad(""+url_site+"includes/include_verification_talent_talent_oeuvres.php", "GET", afficher_verification_menu_deroulant_formulaire_recherche_talent_oeuvre);
}

var afficher_verification_menu_deroulant_formulaire_recherche_talent_oeuvre = function(obj) {
	var XMLDoc=obj.responseXML;
	var texte_affichage_resultat=XMLDoc.getElementsByTagName("formulaire");
	var balise_affichage=document.getElementById(texte_affichage_resultat[0].firstChild.nodeValue);
	balise_affichage.innerHTML='';
	var texte_affichage_resultat2=XMLDoc.getElementsByTagName("formulaire2");
	var balise_affichage2=document.getElementById(texte_affichage_resultat2[0].firstChild.nodeValue);
	var texte_affichage_resultat3=XMLDoc.getElementsByTagName("formulaire3");
	var balise_affichage3=document.getElementById(texte_affichage_resultat3[0].firstChild.nodeValue);
	var talent=XMLDoc.getElementsByTagName("talent");
	var oeuvre_talent=XMLDoc.getElementsByTagName("oeuvre_talent");
	var lang=XMLDoc.getElementsByTagName("lang");
	var url=XMLDoc.getElementsByTagName("url");
	for (var i=0;i<oeuvre_talent.length;i++) {
		var num=oeuvre_talent[i].getElementsByTagName("num");
		var nom=oeuvre_talent[i].getElementsByTagName("nom");
		if (num[0].firstChild.nodeValue==talent[0].firstChild.nodeValue) {
			texte_selectionne_debut="<b>";
			texte_selectionne_fin="</b>";
		}else{
			texte_selectionne_debut="";
			texte_selectionne_fin="";
		}
		balise_affichage.innerHTML +='<p class="texte_rose2"><a href="#" onclick="afficher_menu_deroulant_formulaire_recherche_talent_oeuvre_selection(\''+texte_affichage_resultat[0].firstChild.nodeValue+'\', \''+texte_affichage_resultat2[0].firstChild.nodeValue+'\', \''+texte_affichage_resultat3[0].firstChild.nodeValue+'\', \''+num[0].firstChild.nodeValue+'\', \''+nom[0].firstChild.nodeValue+'\', \''+lang[0].firstChild.nodeValue+'\', \''+url[0].firstChild.nodeValue+'\'); return false;" class="texte_rose2">'+texte_selectionne_debut+''+nom[0].firstChild.nodeValue+''+texte_selectionne_fin+'</a></p>';
	}
}

function afficher_menu_deroulant_formulaire_recherche_talent_oeuvre_selection(div_a_afficher, champs_texte_retour, champs_cache_retour, num_talent, nom_talent, lang, url_site) {
	var div_a_afficher=div_a_afficher;
	var champs_texte_retour=champs_texte_retour;
	var champs_cache_retour=champs_cache_retour;
	var num_talent=num_talent;
	var nom_talent=nom_talent;
	var lang=lang;
	var url_site=url_site;
	type_media_oeuvre=num_talent;
	document.getElementById(div_a_afficher).style.display="none";
	document.getElementById(div_a_afficher).innerHTML="";
	document.getElementById(champs_texte_retour).value=nom_talent;
	document.getElementById(champs_cache_retour).value=num_talent;
	//afficher_talent_membres_oeuvres('1', thematique_oeuvre, sous_thematique_oeuvre, num_talent, 'talent_talent_thematique', 'ul_talent_talent_sous_thematiques', 'talent_talent_sous_thematiques_contenu', url_site, lang);
}

function afficher_menu_deroulant_formulaire_recherche_sous_talent_oeuvre(div_a_afficher, champs_texte_retour, champs_cache_retour, valeur_id_talent, lang, url_site) {
	var div_a_afficher=div_a_afficher;
	var champs_texte_retour=champs_texte_retour;
	var champs_cache_retour=champs_cache_retour;
	var valeur_id_talent=valeur_id_talent;
	var lang=lang;
	var url_site=url_site;
	document.getElementById(champs_texte_retour).blur();
	document.getElementById(div_a_afficher).innerHTML="<p class=\"texte_centre\"><img src=\""+url_site+"images/loader_ajax_rose.gif\" name=\"loader_ajax\" border=\"0\" /></p>";
	if (document.getElementById(div_a_afficher).style.display=="") {
		document.getElementById(div_a_afficher).style.display="none";
	}else{
		document.getElementById(div_a_afficher).style.display="";
	}
	var XHR=new XHRConnection();
	XHR.appendData("talent", document.getElementById(valeur_id_talent).value);
	XHR.appendData("sous_talent", document.getElementById(champs_cache_retour).value);
	XHR.appendData("formulaire", div_a_afficher);
	XHR.appendData("formulaire2", champs_texte_retour);
	XHR.appendData("formulaire3", champs_cache_retour);
	XHR.appendData("url", url_site);
	XHR.appendData("lang", lang);
	XHR.sendAndLoad(""+url_site+"includes/include_verification_talent_sous_talent_oeuvres.php", "GET", afficher_verification_menu_deroulant_formulaire_recherche_sous_talent_oeuvre);
}

var afficher_verification_menu_deroulant_formulaire_recherche_sous_talent_oeuvre = function(obj) {
	var XMLDoc=obj.responseXML;
	var texte_affichage_resultat=XMLDoc.getElementsByTagName("formulaire");
	var balise_affichage=document.getElementById(texte_affichage_resultat[0].firstChild.nodeValue);
	balise_affichage.innerHTML='';
	var texte_affichage_resultat2=XMLDoc.getElementsByTagName("formulaire2");
	var balise_affichage2=document.getElementById(texte_affichage_resultat2[0].firstChild.nodeValue);
	var texte_affichage_resultat3=XMLDoc.getElementsByTagName("formulaire3");
	var balise_affichage3=document.getElementById(texte_affichage_resultat3[0].firstChild.nodeValue);
	var talent=XMLDoc.getElementsByTagName("talent");
	var sous_talent=XMLDoc.getElementsByTagName("sous_talent");
	var oeuvre_sous_talent=XMLDoc.getElementsByTagName("oeuvre_sous_talent");
	var lang=XMLDoc.getElementsByTagName("lang");
	var url=XMLDoc.getElementsByTagName("url");
	for (var i=0;i<oeuvre_sous_talent.length;i++) {
		var num=oeuvre_sous_talent[i].getElementsByTagName("num");
		var nom=oeuvre_sous_talent[i].getElementsByTagName("nom");
		if (num[0].firstChild.nodeValue==sous_talent[0].firstChild.nodeValue) {
			texte_selectionne_debut="<b>";
			texte_selectionne_fin="</b>";
		}else{
			texte_selectionne_debut="";
			texte_selectionne_fin="";
		}
		balise_affichage.innerHTML +='<p class="texte_rose2"><a href="#" onclick="afficher_menu_deroulant_formulaire_recherche_sous_talent_oeuvre_selection(\''+texte_affichage_resultat[0].firstChild.nodeValue+'\', \''+texte_affichage_resultat2[0].firstChild.nodeValue+'\', \''+texte_affichage_resultat3[0].firstChild.nodeValue+'\', \''+num[0].firstChild.nodeValue+'\', \''+nom[0].firstChild.nodeValue+'\', \''+lang[0].firstChild.nodeValue+'\', \''+url[0].firstChild.nodeValue+'\'); return false;" class="texte_rose2">'+texte_selectionne_debut+''+nom[0].firstChild.nodeValue+''+texte_selectionne_fin+'</a></p>';
	}
}

function afficher_menu_deroulant_formulaire_recherche_sous_talent_oeuvre_selection(div_a_afficher, champs_texte_retour, champs_cache_retour, num_talent, nom_talent, lang, url_site) {
	var div_a_afficher=div_a_afficher;
	var champs_texte_retour=champs_texte_retour;
	var champs_cache_retour=champs_cache_retour;
	var num_talent=num_talent;
	var nom_talent=nom_talent;
	var lang=lang;
	var url_site=url_site;
	type_media_oeuvre=num_talent;
	document.getElementById(div_a_afficher).style.display="none";
	document.getElementById(div_a_afficher).innerHTML="";
	document.getElementById(champs_texte_retour).value=nom_talent;
	document.getElementById(champs_cache_retour).value=num_talent;
	//afficher_talent_membres_oeuvres('1', thematique_oeuvre, sous_thematique_oeuvre, num_talent, 'talent_talent_thematique', 'ul_talent_talent_sous_thematiques', 'talent_talent_sous_thematiques_contenu', url_site, lang);
}

function afficher_menu_deroulant_formulaire_recherche_sexe_oeuvre(div_a_afficher, champs_texte_retour, champs_cache_retour, lang, url_site) {
	var div_a_afficher=div_a_afficher;
	var champs_texte_retour=champs_texte_retour;
	var champs_cache_retour=champs_cache_retour;
	var lang=lang;
	var url_site=url_site;
	document.getElementById(champs_texte_retour).blur();
	document.getElementById(div_a_afficher).innerHTML="<p class=\"texte_centre\"><img src=\""+url_site+"images/loader_ajax_rose.gif\" name=\"loader_ajax\" border=\"0\" /></p>";
	if (document.getElementById(div_a_afficher).style.display=="") {
		document.getElementById(div_a_afficher).style.display="none";
	}else{
		document.getElementById(div_a_afficher).style.display="";
	}
	var XHR=new XHRConnection();
	XHR.appendData("sexe", document.getElementById(champs_cache_retour).value);
	XHR.appendData("formulaire", div_a_afficher);
	XHR.appendData("formulaire2", champs_texte_retour);
	XHR.appendData("formulaire3", champs_cache_retour);
	XHR.appendData("url", url_site);
	XHR.appendData("lang", lang);
	XHR.sendAndLoad(""+url_site+"includes/include_verification_talent_sexe_oeuvres.php", "GET", afficher_verification_menu_deroulant_formulaire_recherche_sexe_oeuvre);
}

var afficher_verification_menu_deroulant_formulaire_recherche_sexe_oeuvre = function(obj) {
	var XMLDoc=obj.responseXML;
	var texte_affichage_resultat=XMLDoc.getElementsByTagName("formulaire");
	var balise_affichage=document.getElementById(texte_affichage_resultat[0].firstChild.nodeValue);
	balise_affichage.innerHTML='';
	var texte_affichage_resultat2=XMLDoc.getElementsByTagName("formulaire2");
	var balise_affichage2=document.getElementById(texte_affichage_resultat2[0].firstChild.nodeValue);
	var texte_affichage_resultat3=XMLDoc.getElementsByTagName("formulaire3");
	var balise_affichage3=document.getElementById(texte_affichage_resultat3[0].firstChild.nodeValue);
	var sexe=XMLDoc.getElementsByTagName("sexe");
	var oeuvre_sexe=XMLDoc.getElementsByTagName("oeuvre_sexe");
	var lang=XMLDoc.getElementsByTagName("lang");
	var url=XMLDoc.getElementsByTagName("url");
	for (var i=0;i<oeuvre_sexe.length;i++) {
		var num=oeuvre_sexe[i].getElementsByTagName("num");
		var nom=oeuvre_sexe[i].getElementsByTagName("nom");
		if (num[0].firstChild.nodeValue==sexe[0].firstChild.nodeValue) {
			texte_selectionne_debut="<b>";
			texte_selectionne_fin="</b>";
		}else{
			texte_selectionne_debut="";
			texte_selectionne_fin="";
		}
		balise_affichage.innerHTML +='<p class="texte_rose2"><a href="#" onclick="afficher_menu_deroulant_formulaire_recherche_sexe_oeuvre_selection(\''+texte_affichage_resultat[0].firstChild.nodeValue+'\', \''+texte_affichage_resultat2[0].firstChild.nodeValue+'\', \''+texte_affichage_resultat3[0].firstChild.nodeValue+'\', \''+num[0].firstChild.nodeValue+'\', \''+nom[0].firstChild.nodeValue+'\', \''+lang[0].firstChild.nodeValue+'\', \''+url[0].firstChild.nodeValue+'\'); return false;" class="texte_rose2">'+texte_selectionne_debut+''+nom[0].firstChild.nodeValue+''+texte_selectionne_fin+'</a></p>';
	}
}

function afficher_menu_deroulant_formulaire_recherche_sexe_oeuvre_selection(div_a_afficher, champs_texte_retour, champs_cache_retour, num_talent, nom_talent, lang, url_site) {
	var div_a_afficher=div_a_afficher;
	var champs_texte_retour=champs_texte_retour;
	var champs_cache_retour=champs_cache_retour;
	var num_talent=num_talent;
	var nom_talent=nom_talent;
	var lang=lang;
	var url_site=url_site;
	type_media_oeuvre=num_talent;
	document.getElementById(div_a_afficher).style.display="none";
	document.getElementById(div_a_afficher).innerHTML="";
	document.getElementById(champs_texte_retour).value=nom_talent;
	document.getElementById(champs_cache_retour).value=num_talent;
	//afficher_talent_membres_oeuvres('1', thematique_oeuvre, sous_thematique_oeuvre, num_talent, 'talent_talent_thematique', 'ul_talent_talent_sous_thematiques', 'talent_talent_sous_thematiques_contenu', url_site, lang);
}

function afficher_menu_deroulant_formulaire_recherche_grade_oeuvre(div_a_afficher, champs_texte_retour, champs_cache_retour, lang, url_site) {
	var div_a_afficher=div_a_afficher;
	var champs_texte_retour=champs_texte_retour;
	var champs_cache_retour=champs_cache_retour;
	var lang=lang;
	var url_site=url_site;
	document.getElementById(champs_texte_retour).blur();
	document.getElementById(div_a_afficher).innerHTML="<p class=\"texte_centre\"><img src=\""+url_site+"images/loader_ajax_rose.gif\" name=\"loader_ajax\" border=\"0\" /></p>";
	if (document.getElementById(div_a_afficher).style.display=="") {
		document.getElementById(div_a_afficher).style.display="none";
	}else{
		document.getElementById(div_a_afficher).style.display="";
	}
	var XHR=new XHRConnection();
	XHR.appendData("grade", document.getElementById(champs_cache_retour).value);
	XHR.appendData("formulaire", div_a_afficher);
	XHR.appendData("formulaire2", champs_texte_retour);
	XHR.appendData("formulaire3", champs_cache_retour);
	XHR.appendData("url", url_site);
	XHR.appendData("lang", lang);
	XHR.sendAndLoad(""+url_site+"includes/include_verification_talent_grade_oeuvres.php", "GET", afficher_verification_menu_deroulant_formulaire_recherche_grade_oeuvre);
}

var afficher_verification_menu_deroulant_formulaire_recherche_grade_oeuvre = function(obj) {
	var XMLDoc=obj.responseXML;
	var texte_affichage_resultat=XMLDoc.getElementsByTagName("formulaire");
	var balise_affichage=document.getElementById(texte_affichage_resultat[0].firstChild.nodeValue);
	balise_affichage.innerHTML='';
	var texte_affichage_resultat2=XMLDoc.getElementsByTagName("formulaire2");
	var balise_affichage2=document.getElementById(texte_affichage_resultat2[0].firstChild.nodeValue);
	var texte_affichage_resultat3=XMLDoc.getElementsByTagName("formulaire3");
	var balise_affichage3=document.getElementById(texte_affichage_resultat3[0].firstChild.nodeValue);
	var grade=XMLDoc.getElementsByTagName("grade");
	var oeuvre_grade=XMLDoc.getElementsByTagName("oeuvre_grade");
	var lang=XMLDoc.getElementsByTagName("lang");
	var url=XMLDoc.getElementsByTagName("url");
	for (var i=0;i<oeuvre_grade.length;i++) {
		var num=oeuvre_grade[i].getElementsByTagName("num");
		var nom=oeuvre_grade[i].getElementsByTagName("nom");
		if (num[0].firstChild.nodeValue==grade[0].firstChild.nodeValue) {
			texte_selectionne_debut="<b>";
			texte_selectionne_fin="</b>";
		}else{
			texte_selectionne_debut="";
			texte_selectionne_fin="";
		}
		balise_affichage.innerHTML +='<p class="texte_rose2"><a href="#" onclick="afficher_menu_deroulant_formulaire_recherche_grade_oeuvre_selection(\''+texte_affichage_resultat[0].firstChild.nodeValue+'\', \''+texte_affichage_resultat2[0].firstChild.nodeValue+'\', \''+texte_affichage_resultat3[0].firstChild.nodeValue+'\', \''+num[0].firstChild.nodeValue+'\', \''+nom[0].firstChild.nodeValue+'\', \''+lang[0].firstChild.nodeValue+'\', \''+url[0].firstChild.nodeValue+'\'); return false;" class="texte_rose2">'+texte_selectionne_debut+''+nom[0].firstChild.nodeValue+''+texte_selectionne_fin+'</a></p>';
	}
}

function afficher_menu_deroulant_formulaire_recherche_grade_oeuvre_selection(div_a_afficher, champs_texte_retour, champs_cache_retour, num_talent, nom_talent, lang, url_site) {
	var div_a_afficher=div_a_afficher;
	var champs_texte_retour=champs_texte_retour;
	var champs_cache_retour=champs_cache_retour;
	var num_talent=num_talent;
	var nom_talent=nom_talent;
	var lang=lang;
	var url_site=url_site;
	type_media_oeuvre=num_talent;
	document.getElementById(div_a_afficher).style.display="none";
	document.getElementById(div_a_afficher).innerHTML="";
	document.getElementById(champs_texte_retour).value=nom_talent;
	document.getElementById(champs_cache_retour).value=num_talent;
	//afficher_talent_membres_oeuvres('1', thematique_oeuvre, sous_thematique_oeuvre, num_talent, 'talent_talent_thematique', 'ul_talent_talent_sous_thematiques', 'talent_talent_sous_thematiques_contenu', url_site, lang);
}

function afficher_formulaire_recherche_choix_battle(image_bouton, valeur_champs_battle, url) {
	var image_bouton=image_bouton;
	var valeur_champs_battle=valeur_champs_battle;
	var url=url;
	if (document.getElementById(valeur_champs_battle).value==0) {
		document.getElementById(valeur_champs_battle).value=1;
		document.getElementById(image_bouton).src=''+url+'images/bouton_checkbox_custom_over.jpg'
	}else{
		document.getElementById(valeur_champs_battle).value=0;
		document.getElementById(image_bouton).src=''+url+'images/bouton_checkbox_custom.jpg'
	}
}

function afficher_formulaire_recherche_oeuvres_suggestions(div_a_afficher, champs_mots_cles_recherche, champs_media_defaut_oeuvre, champs_talent_defaut_oeuvre, champs_sous_talent_oeuvre, champs_grade_oeuvre, champs_sexe_oeuvre, champs_battle_oeuvre, id_recherche, pagination, lang, url_site) {
	var div_a_afficher=div_a_afficher;
	var champs_mots_cles_recherche=champs_mots_cles_recherche;
	var champs_media_defaut_oeuvre=champs_media_defaut_oeuvre;
	var champs_talent_defaut_oeuvre=champs_talent_defaut_oeuvre;
	var champs_sous_talent_oeuvre=champs_sous_talent_oeuvre;
	var champs_grade_oeuvre=champs_grade_oeuvre;
	var champs_sexe_oeuvre=champs_sexe_oeuvre;
	var champs_battle_oeuvre=champs_battle_oeuvre;
	var id_recherche=id_recherche;
	var pagination=pagination;
	var lang=lang;
	var url_site=url_site;
	document.getElementById(div_a_afficher).innerHTML='';
	document.getElementById(div_a_afficher).style.display='none';
	if (document.getElementById(champs_mots_cles_recherche).value.length>3) {
		document.getElementById(div_a_afficher).innerHTML='<p style="text-align: center;"><img src="'+url_site+'images/loader_ajax_rose.gif" name="loader_ajax_rose" alt="" title="" border="0" /></p>';
		document.getElementById(div_a_afficher).style.display='';
		var XHR=new XHRConnection();
		XHR.appendData("mots", document.getElementById(champs_mots_cles_recherche).value);
		XHR.appendData("media", document.getElementById(champs_media_defaut_oeuvre).value);
		XHR.appendData("talent", document.getElementById(champs_talent_defaut_oeuvre).value);
		XHR.appendData("sous_talent", document.getElementById(champs_sous_talent_oeuvre).value);
		XHR.appendData("grade", document.getElementById(champs_grade_oeuvre).value);
		XHR.appendData("sexe", document.getElementById(champs_sexe_oeuvre).value);
		XHR.appendData("battle", document.getElementById(champs_battle_oeuvre).value);
		XHR.appendData("id_recherche", id_recherche);
		XHR.appendData("pagination", pagination);
		XHR.appendData("formulaire", div_a_afficher);
		XHR.appendData("formulaire2", champs_mots_cles_recherche);
		XHR.appendData("url", url_site);
		XHR.appendData("lang", lang);
		XHR.sendAndLoad(""+url_site+"includes/include_verification_talent_oeuvres_suggestions.php", "GET", afficher_verification_formulaire_recherche_oeuvres_suggestions);
	}
}

function afficher_formulaire_recherche_oeuvres_valeurs_suggestions(div_a_afficher, champs_mots_cles_recherche, champs_media_defaut_oeuvre, champs_talent_defaut_oeuvre, champs_sous_talent_oeuvre, champs_grade_oeuvre, champs_sexe_oeuvre, champs_battle_oeuvre, id_recherche, pagination, lang, url_site) {
	var div_a_afficher=div_a_afficher;
	var champs_mots_cles_recherche=champs_mots_cles_recherche;
	var champs_media_defaut_oeuvre=champs_media_defaut_oeuvre;
	var champs_talent_defaut_oeuvre=champs_talent_defaut_oeuvre;
	var champs_sous_talent_oeuvre=champs_sous_talent_oeuvre;
	var champs_grade_oeuvre=champs_grade_oeuvre;
	var champs_sexe_oeuvre=champs_sexe_oeuvre;
	var champs_battle_oeuvre=champs_battle_oeuvre;
	var id_recherche=id_recherche;
	var pagination=pagination;
	var lang=lang;
	var url_site=url_site;
	document.getElementById(div_a_afficher).innerHTML='<p class="texte_centre"><img src="'+url_site+'images/loader_ajax_rose.gif" name="loader_ajax" alt="" title="" border="0" /></p>';
	document.getElementById(div_a_afficher).style.display='';
	var XHR=new XHRConnection();
	XHR.appendData("mots", champs_mots_cles_recherche);
	XHR.appendData("media", champs_media_defaut_oeuvre);
	XHR.appendData("talent", champs_talent_defaut_oeuvre);
	XHR.appendData("sous_talent", champs_sous_talent_oeuvre);
	XHR.appendData("grade", champs_grade_oeuvre);
	XHR.appendData("sexe", champs_sexe_oeuvre);
	XHR.appendData("battle", champs_battle_oeuvre);
	XHR.appendData("id_recherche", id_recherche);
	XHR.appendData("pagination", pagination);
	XHR.appendData("formulaire", div_a_afficher);
	XHR.appendData("formulaire2", champs_mots_cles_recherche);
	XHR.appendData("url", url_site);
	XHR.appendData("lang", lang);
	XHR.sendAndLoad(""+url_site+"includes/include_verification_talent_oeuvres_suggestions.php", "GET", afficher_verification_formulaire_recherche_oeuvres_suggestions);
}

var afficher_verification_formulaire_recherche_oeuvres_suggestions = function(obj) {
	var XMLDoc=obj.responseXML;
	var texte_affichage_resultat=XMLDoc.getElementsByTagName("formulaire");
	var balise_affichage=document.getElementById(texte_affichage_resultat[0].firstChild.nodeValue);
	balise_affichage.innerHTML='';
	var texte_affichage_resultat2=XMLDoc.getElementsByTagName("formulaire2");
	var balise_affichage2=document.getElementById(texte_affichage_resultat2[0].firstChild.nodeValue);
	var mots=XMLDoc.getElementsByTagName("mots");
	var media=XMLDoc.getElementsByTagName("media");
	var talent=XMLDoc.getElementsByTagName("talent");
	var sous_talent=XMLDoc.getElementsByTagName("sous_talent");
	var grade=XMLDoc.getElementsByTagName("grade");
	var sexe=XMLDoc.getElementsByTagName("sexe");
	var battle=XMLDoc.getElementsByTagName("battle");
	var resultats=XMLDoc.getElementsByTagName("resultats");
	var id_recherche=XMLDoc.getElementsByTagName("id_recherche");
	var pagination=XMLDoc.getElementsByTagName("pagination");
	var url=XMLDoc.getElementsByTagName("url");
	var lang=XMLDoc.getElementsByTagName("lang");
	var oeuvres_suggestions_node=XMLDoc.getElementsByTagName("suggestions_oeuvres");
	var texte_type="";
	var texte_talent="";
	var texte_sous_talent="";
	if (oeuvres_suggestions_node.length<1) {
		document.getElementById(texte_affichage_resultat[0].firstChild.nodeValue).style.display='none';
	}
	var texte_pagination="<p class=\"texte_centre\">";
	if ((parseInt(id_recherche[0].firstChild.nodeValue, 0))>=(parseInt(pagination[0].firstChild.nodeValue, 0))) {
		var pagination_precedente=id_recherche[0].firstChild.nodeValue-pagination[0].firstChild.nodeValue;
		texte_pagination +="<a class=\"texte_gris\" href=\"#\" onclick=\"afficher_formulaire_recherche_oeuvres_valeurs_suggestions('"+texte_affichage_resultat[0].firstChild.nodeValue+"', '"+mots[0].firstChild.nodeValue+"', '"+media[0].firstChild.nodeValue+"', '"+talent[0].firstChild.nodeValue+"', '"+sous_talent[0].firstChild.nodeValue+"', '"+grade[0].firstChild.nodeValue+"', '"+sexe[0].firstChild.nodeValue+"', '"+battle[0].firstChild.nodeValue+"', '"+pagination_precedente+"', '"+pagination[0].firstChild.nodeValue+"', '"+lang[0].firstChild.nodeValue+"', '"+url[0].firstChild.nodeValue+"'); return false;\">&lt;&lt;</a>";
	}
	
	var nb_page=Math.floor(resultats[0].firstChild.nodeValue/pagination[0].firstChild.nodeValue);
	if ((resultats[0].firstChild.nodeValue/pagination[0].firstChild.nodeValue)==nb_page) {
		nb_page--;
	}
	nb_page++;
	for (var indices_pages=1;indices_pages<=nb_page;indices_pages++) {
		var numero_pagination=(indices_pages-1)*pagination[0].firstChild.nodeValue;
		if (id_recherche[0].firstChild.nodeValue==numero_pagination) {
			var texte_gras_pagination_ouvert="<b>";
			var texte_gras_pagination_ferme="</b>";
		}else{
			var texte_gras_pagination_ouvert="";
			var texte_gras_pagination_ferme="";
		}
		texte_pagination +=" <a class=\"texte_rose2\" href=\"#\" onclick=\"afficher_formulaire_recherche_oeuvres_valeurs_suggestions('"+texte_affichage_resultat[0].firstChild.nodeValue+"', '"+mots[0].firstChild.nodeValue+"', '"+media[0].firstChild.nodeValue+"', '"+talent[0].firstChild.nodeValue+"', '"+sous_talent[0].firstChild.nodeValue+"', '"+grade[0].firstChild.nodeValue+"', '"+sexe[0].firstChild.nodeValue+"', '"+battle[0].firstChild.nodeValue+"', '"+numero_pagination+"', '"+pagination[0].firstChild.nodeValue+"', '"+lang[0].firstChild.nodeValue+"', '"+url[0].firstChild.nodeValue+"'); return false;\">"+texte_gras_pagination_ouvert+""+indices_pages+""+texte_gras_pagination_ferme+"</a> ";
	}
	
	if ((resultats[0].firstChild.nodeValue-pagination[0].firstChild.nodeValue)>id_recherche[0].firstChild.nodeValue) {
		var pagination_suivante=id_recherche[0].firstChild.nodeValue+pagination[0].firstChild.nodeValue;
		texte_pagination +="<a class=\"texte_gris\" href=\"#\" onclick=\"afficher_formulaire_recherche_oeuvres_valeurs_suggestions('"+texte_affichage_resultat[0].firstChild.nodeValue+"', '"+mots[0].firstChild.nodeValue+"', '"+media[0].firstChild.nodeValue+"', '"+talent[0].firstChild.nodeValue+"', '"+sous_talent[0].firstChild.nodeValue+"', '"+grade[0].firstChild.nodeValue+"', '"+sexe[0].firstChild.nodeValue+"', '"+battle[0].firstChild.nodeValue+"', '"+pagination_suivante+"', '"+pagination[0].firstChild.nodeValue+"', '"+lang[0].firstChild.nodeValue+"', '"+url[0].firstChild.nodeValue+"'); return false;\">&gt;&gt;</a>";			
	}
	
	texte_pagination +="</p>";
	balise_affichage.innerHTML +=''+texte_pagination+'<p class="clear_both">&nbsp;</p>';
	
	for (var i=0;i<oeuvres_suggestions_node.length;i++) {
		var num_oeuvre=oeuvres_suggestions_node[i].getElementsByTagName("num");
		var nom_oeuvre=oeuvres_suggestions_node[i].getElementsByTagName("nom");
		var oeuvre_media=oeuvres_suggestions_node[i].getElementsByTagName("oeuvre_media");
		var oeuvre_talent=oeuvres_suggestions_node[i].getElementsByTagName("oeuvre_talent");
		var oeuvre_sous_talent=oeuvres_suggestions_node[i].getElementsByTagName("oeuvre_sous_talent");
		var oeuvre_fichier=oeuvres_suggestions_node[i].getElementsByTagName("oeuvre_fichier");
		var oeuvre_description=oeuvres_suggestions_node[i].getElementsByTagName("oeuvre_description");
		var oeuvre_extension_tag=oeuvres_suggestions_node[i].getElementsByTagName("oeuvre_extension_tag");
		var oeuvre_fichier_sans_extension=oeuvres_suggestions_node[i].getElementsByTagName("oeuvre_fichier_sans_extension");
		var oeuvre_lien=oeuvres_suggestions_node[i].getElementsByTagName("oeuvre_lien");
		var moun=oeuvres_suggestions_node[i].getElementsByTagName("moun");
		var nom_moun=oeuvres_suggestions_node[i].getElementsByTagName("nom_moun");
		if (texte_type!=oeuvre_media[0].firstChild.nodeValue) {
			texte_type=oeuvre_media[0].firstChild.nodeValue;
			var texte_affichage_type="<h2 class=\"affichage_texte_type\"><b>"+oeuvre_media[0].firstChild.nodeValue+"</b></h2>";
		}else{
			texte_type=oeuvre_media[0].firstChild.nodeValue;
			var texte_affichage_type="";
		}
		if (texte_talent!=oeuvre_talent[0].firstChild.nodeValue) {
			texte_talent=oeuvre_talent[0].firstChild.nodeValue;
			var texte_affichage_talent="<h2 class=\"affichage_texte_talent\"><b>"+oeuvre_talent[0].firstChild.nodeValue+"</b></h2>";
		}else{
			texte_talent=oeuvre_talent[0].firstChild.nodeValue;
			var texte_affichage_talent="";
		}
		if (texte_sous_talent!=oeuvre_sous_talent[0].firstChild.nodeValue) {
			texte_sous_talent=oeuvre_sous_talent[0].firstChild.nodeValue;
			var texte_affichage_sous_talent="<h2 class=\"affichage_texte_sous_talent\">"+oeuvre_sous_talent[0].firstChild.nodeValue+"</h2>";
		}else{
			texte_sous_talent=oeuvre_sous_talent[0].firstChild.nodeValue;
			var texte_affichage_sous_talent="";
		}
		if ((oeuvre_extension_tag[0].firstChild.nodeValue==2) || (oeuvre_extension_tag[0].firstChild.nodeValue==4)) {
			var fichier_source="photos/phototeque/oeuvres/miniature/profil/0_image_defaut_doc.jpg";
			var fichier_source_over="";
		}else if (oeuvre_extension_tag[0].firstChild.nodeValue==3) {
			var fichier_source="photos/phototeque/oeuvres/miniature/profil/"+oeuvre_fichier_sans_extension[0].firstChild.nodeValue+"_0.png";
			var fichier_source_over=" onmouseover=\"javascript: rollover_image_video('miniature_recherche_video_"+num_oeuvre[0].firstChild.nodeValue+"', '"+num_oeuvre[0].firstChild.nodeValue+"', 'photos/phototeque/oeuvres/miniature/profil', '"+url[0].firstChild.nodeValue+"', '"+lang[0].firstChild.nodeValue+"');\" onmouseout=\"javascript: window.clearTimeout(Timer_rollover_image);\"";
			
		}else{
			var fichier_source="photos/phototeque/oeuvres/miniature/profil/"+oeuvre_fichier[0].firstChild.nodeValue+"";
			var fichier_source_over="";
		}
		if ((i+1)<oeuvres_suggestions_node.length) {
			var texte_separateur="<hr style=\"margin: 0px; margin: 0px; text-align: center; width: 296px; height: 2px; background-color: #ec2a7e; color: #ec2a7e; border: 0px solid #ec2a7e;\" /><p>&nbsp;</p>";
		}else{
			var texte_separateur="";
		}
		var texte_description_oeuvre=left(decode_ascii(oeuvre_description[0].firstChild.nodeValue), 0, 100);
		balise_affichage.innerHTML +=''+texte_affichage_type+''+texte_affichage_talent+''+texte_affichage_sous_talent+'<p class="affichage_texte_oeuvre"><a href="'+url[0].firstChild.nodeValue+''+oeuvre_lien[0].firstChild.nodeValue+'" class="texte_noir"><img src="'+url[0].firstChild.nodeValue+''+fichier_source+'" name="miniature_recherche_video_'+num_oeuvre[0].firstChild.nodeValue+'" id="miniature_recherche_video_'+num_oeuvre[0].firstChild.nodeValue+'"'+fichier_source_over+' border="0" alt="'+nom_oeuvre[0].firstChild.nodeValue+'" title="'+nom_oeuvre[0].firstChild.nodeValue+'" class="affichage_image_recherche" style="margin: 0px 4px 4px 0px;" /></a><a href="'+url[0].firstChild.nodeValue+''+oeuvre_lien[0].firstChild.nodeValue+'" class="texte_gris"><b>'+nom_oeuvre[0].firstChild.nodeValue+'</b></a><br /><br /><a href="'+url[0].firstChild.nodeValue+''+oeuvre_lien[0].firstChild.nodeValue+'" class="texte_gris">'+texte_description_oeuvre+' ...</a></p><p class="clear_both">&nbsp;</p>'+texte_separateur+'';
	}
}

function changer_sous_rubrique_talent_defaut_recherche(formulaire_a_verifier, champs_type_media, champs_talent, champs_sous_talent, mots, grade, sexe, battle, nom_select_retour, texte_affichage_resultat, div_affichage_oeuvre, nombre_iteration, type_oeuvre, texte_tous, lang, url_site, url_page) {
	var formulaire_a_verifier=formulaire_a_verifier;
	var champs_type_media=champs_type_media;
	var champs_talent=champs_talent;
	var champs_sous_talent=champs_sous_talent;
	var mots=mots;
	var grade=grade;
	var sexe=sexe;
	var battle=battle;
	var nom_select_retour=nom_select_retour;
	var texte_affichage_resultat=texte_affichage_resultat;
	var div_affichage_oeuvre=div_affichage_oeuvre;
	var nombre_iteration=nombre_iteration;
	var type_oeuvre=type_oeuvre;
	var texte_tous=texte_tous;
	var lang=lang;
	var url_page=url_page;
	var url_site=url_site;
	//thematique_oeuvre=document.getElementById(talent_parent).value;
	afficher_select_zapping_oeuvres_membres_recherche(type_oeuvre, champs_type_media, champs_talent, champs_sous_talent, mots, grade, sexe, battle, texte_affichage_resultat, div_affichage_oeuvre, nombre_iteration, url_site, url_page, lang);
	var XHR=new XHRConnection();
	XHR.appendData("id_talent", document.getElementById(champs_talent).value);
	XHR.appendData("nom_select_retour", nom_select_retour);
	XHR.appendData("texte_tous", texte_tous);
	XHR.appendData("lang", lang);
	XHR.appendData("formulaire", texte_affichage_resultat);
	XHR.sendAndLoad(""+url_site+"includes/include_verification_sous_rubriques_talent2.php", "GET", afficher_verification_sous_rubriques_talent_defaut_recherche);
}

var afficher_verification_sous_rubriques_talent_defaut_recherche = function(obj) {
	var XMLDoc=obj.responseXML;
	var texte_affichage_resultat=XMLDoc.getElementsByTagName("formulaire");
	var balise_affichage = document.getElementById(texte_affichage_resultat[0].firstChild.nodeValue);
	var champs_select=XMLDoc.getElementsByTagName("select");
	var texte_node=XMLDoc.getElementsByTagName("texte");
	var sous_talent_node=XMLDoc.getElementsByTagName("soustalent");
	balise_affichage.length=0;
	balise_affichage.options[0] = new Option(decode_ascii(texte_node[0].firstChild.nodeValue), 0);
	for (i=0;i<sous_talent_node.length;i++) {
		var id_talent = sous_talent_node[i].getElementsByTagName("id_talent");
		var nom_talent = sous_talent_node[i].getElementsByTagName("nom");
		//alert(id_talent[0].firstChild.nodeValue);
		balise_affichage.options[i+1] = new Option(decode_ascii(nom_talent[0].firstChild.nodeValue), id_talent[0].firstChild.nodeValue);
	}
}

function afficher_select_zapping_oeuvres_membres_recherche(type_oeuvre, champs_type_media, champs_talent, champs_sous_talent, mots, grade, sexe, battle, texte_affichage_resultat, div_affichage_oeuvre, nombre_iteration, url_site, url_page, lang) {
	var type_oeuvre=type_oeuvre;
	var champs_type_media=champs_type_media;
	var champs_talent=champs_talent;
	var champs_sous_talent=champs_sous_talent;
	var mots=mots;
	var grade=grade;
	var sexe=sexe;
	var battle=battle;
	var texte_affichage_resultat=texte_affichage_resultat;
	var div_affichage_oeuvre=div_affichage_oeuvre;
	var nombre_iteration=nombre_iteration;
	var url_site=url_site;
	var url_page=url_page;
	var lang=lang;
	type_media_oeuvre=document.getElementById(champs_type_media).value;
	thematique_oeuvre=document.getElementById(champs_talent).value;
	sous_thematique_oeuvre=document.getElementById(champs_sous_talent).value;
	document.getElementById(div_affichage_oeuvre).innerHTML='<p class="texte_centre"><br /><img src="'+url_site+'images/loader_ajax_blanc.gif" name="loader_ajax" border="0" /></p>';
	var XHR=new XHRConnection();
	XHR.appendData("type", type_oeuvre);
	XHR.appendData("thematique", document.getElementById(champs_talent).value);
	XHR.appendData("sous_thematique", document.getElementById(champs_sous_talent).value);
	XHR.appendData("type_media", document.getElementById(champs_type_media).value);
	XHR.appendData("mots", mots);
	XHR.appendData("grade", grade);
	XHR.appendData("sexe", sexe);
	XHR.appendData("battle", battle);
	XHR.appendData("nombre", nombre_iteration);
	XHR.appendData("formulaire", div_affichage_oeuvre);
	XHR.appendData("url", url_site);
	XHR.appendData("url_page", url_page);
	XHR.appendData("lang", lang);
	XHR.sendAndLoad(""+url_site+"includes/include_verification_talent_membres_oeuvres_recherche.php", "GET", afficher_verification_talent_membres_oeuvres_recherche);
}

var afficher_verification_talent_membres_oeuvres_recherche = function(obj) {
	var XMLDoc=obj.responseXML;
	var texte_affichage_resultat=XMLDoc.getElementsByTagName("formulaire");
	var balise_affichage=document.getElementById(texte_affichage_resultat[0].firstChild.nodeValue);
	balise_affichage.innerHTML='';
	var type=XMLDoc.getElementsByTagName("type");
	var type_media=XMLDoc.getElementsByTagName("type_media");
	var thematique=XMLDoc.getElementsByTagName("thematique");
	thematique_oeuvre=thematique[0].firstChild.nodeValue;
	var sous_thematique=XMLDoc.getElementsByTagName("sous_thematique");
	sous_thematique_oeuvre=sous_thematique[0].firstChild.nodeValue;
	var nombre=XMLDoc.getElementsByTagName("nombre");
	var texte_lien_depot_oeuvre=XMLDoc.getElementsByTagName("texte_lien_depot_oeuvre");
	var texte_lien_depot_oeuvre2=XMLDoc.getElementsByTagName("texte_lien_depot_oeuvre2");
	var lang=XMLDoc.getElementsByTagName("lang");
	var url=XMLDoc.getElementsByTagName("url");
	var oeuvre_node=XMLDoc.getElementsByTagName("oeuvre");
	var iteration_oeuvre=1;
	for (var k=0;k<oeuvre_node.length;k++) {
		var num_oeuvre=oeuvre_node[k].getElementsByTagName("num");
		var nom_oeuvre=oeuvre_node[k].getElementsByTagName("nom");
		var fichier=oeuvre_node[k].getElementsByTagName("fichier");
		var url_fichier=oeuvre_node[k].getElementsByTagName("url_fichier");
		var moun_oeuvre=oeuvre_node[k].getElementsByTagName("moun");
		var moun_nom_oeuvre=oeuvre_node[k].getElementsByTagName("moun_nom");
		var oeuvre_extension_tag=oeuvre_node[k].getElementsByTagName("oeuvre_extension_tag");
		var oeuvre_fichier_sans_extension=oeuvre_node[k].getElementsByTagName("oeuvre_fichier_sans_extension");
		var stats_vue=oeuvre_node[k].getElementsByTagName("stats_vue");
		var duree=oeuvre_node[k].getElementsByTagName("duree");
		if ((oeuvre_extension_tag[0].firstChild.nodeValue==2) || (oeuvre_extension_tag[0].firstChild.nodeValue==4)) {
			var fichier_source="photos/phototeque/oeuvres/miniature/accueil/0_image_defaut_doc.jpg";
			var fichier_source_over="";
		}else if (oeuvre_extension_tag[0].firstChild.nodeValue==3) {
			var fichier_source="photos/phototeque/oeuvres/miniature/accueil/"+oeuvre_fichier_sans_extension[0].firstChild.nodeValue+"_0.png";
			var fichier_source_over=" onmouseover=\"javascript: rollover_image_video('photo_oeuvre_"+num_oeuvre[0].firstChild.nodeValue+"', '"+num_oeuvre[0].firstChild.nodeValue+"', 'photos/phototeque/oeuvres/miniature/accueil', '"+url[0].firstChild.nodeValue+"', '"+lang[0].firstChild.nodeValue+"');\" onmouseout=\"javascript: window.clearTimeout(Timer_rollover_image);\"";
		}else{
			var fichier_source="photos/phototeque/oeuvres/miniature/accueil/"+fichier[0].firstChild.nodeValue+"";
			var fichier_source_over="";
		}
		if (nom_oeuvre[0].firstChild.nodeValue.length>15) {
			var nom_membre_oeuvres_sous_thematiques_securite=""+left(nom_oeuvre[0].firstChild.nodeValue, 0, 15)+" ...";
		}else{
			var nom_membre_oeuvres_sous_thematiques_securite=nom_oeuvre[0].firstChild.nodeValue;
		}
		if (moun_nom_oeuvre[0].firstChild.nodeValue.length>11) {
			var nom_artiste_oeuvres_sous_thematiques_securite=""+left(moun_nom_oeuvre[0].firstChild.nodeValue, 0, 11)+" ...";
		}else{
			var nom_artiste_oeuvres_sous_thematiques_securite=moun_nom_oeuvre[0].firstChild.nodeValue;
		}
		if ((duree[0].firstChild.nodeValue!="") && (duree[0].firstChild.nodeValue!="00:00:00")) {
			var texte_duree_oeuvre='<div id="temps_oeuvre_'+num_oeuvre[0].firstChild.nodeValue+'" class="talent_talent_sous_thematiques_contenu_membre_temps"><p class="texte_blanc">'+duree[0].firstChild.nodeValue+'</p></div>';
		}else{
			var texte_duree_oeuvre='';
		}
		balise_affichage.innerHTML +='<div id="membre_oeuvre_'+num_oeuvre[0].firstChild.nodeValue+'" class="talent_talent_sous_thematiques_contenu_membre_oeuvres" onmouseover="javascript: document.getElementById(\'photo_membre_oeuvre_'+num_oeuvre[0].firstChild.nodeValue+'\').style.border=\'2px solid #ec2a7e\';" onmouseout="javascript: document.getElementById(\'photo_membre_oeuvre_'+num_oeuvre[0].firstChild.nodeValue+'\').style.border=\'2px solid #dedede\';"><h2 class="texte_rose2"><a href="'+url[0].firstChild.nodeValue+''+url_fichier[0].firstChild.nodeValue+'" class="texte_rose2"><b>'+nom_membre_oeuvres_sous_thematiques_securite+'</b></a></h2><div id="photo_membre_oeuvre_'+num_oeuvre[0].firstChild.nodeValue+'" class="talent_talent_sous_thematiques_contenu_membre_photo"><p><a href="'+url[0].firstChild.nodeValue+''+url_fichier[0].firstChild.nodeValue+'" class="texte_noir"><img src="'+url[0].firstChild.nodeValue+''+fichier_source+'" name="photo_oeuvre_'+num_oeuvre[0].firstChild.nodeValue+'" id="photo_oeuvre_'+num_oeuvre[0].firstChild.nodeValue+'"'+fichier_source_over+' alt="'+nom_oeuvre[0].firstChild.nodeValue+'" title="'+nom_oeuvre[0].firstChild.nodeValue+'" border="0" /></a></p>'+texte_duree_oeuvre+'</div><h2 class="image_rubrique_droite2"><a href="'+url[0].firstChild.nodeValue+''+moun_nom_oeuvre[0].firstChild.nodeValue+'" class="texte_gris">'+nom_artiste_oeuvres_sous_thematiques_securite+'</a></h2><p class="image_rubrique_droite3">'+stats_vue[0].firstChild.nodeValue+'</p></div>';
		if ((iteration_oeuvre%nombre[0].firstChild.nodeValue)==0) {
			balise_affichage.innerHTML +='<div class="talent_zapping_talent_contenu_membre_defaut_hr"></div>';
		}
		iteration_oeuvre++;
	}
	//alert(oeuvre_node.length);
	if (oeuvre_node.length<1) {
		balise_affichage.innerHTML='<h2 class="texte_centre"><br /><img name="defaut" src="'+url[0].firstChild.nodeValue+'photos/phototeque/oeuvres/miniature/accueil/0_image_defaut_doc.jpg" border="0" alt="" title="" /><br /><b>'+texte_lien_depot_oeuvre[0].firstChild.nodeValue+'</b><br />'+texte_lien_depot_oeuvre2[0].firstChild.nodeValue+'<br />&nbsp;</h2>';
	}
}

function changer_sous_rubrique_talent_defaut_moteur_recherche(formulaire_a_verifier, talent_parent, nom_select_retour, texte_affichage_resultat, texte_tous, url_site, lang) {
	var formulaire_a_verifier=formulaire_a_verifier;
	var talent_parent=talent_parent;
	var nom_select_retour=nom_select_retour;
	var texte_affichage_resultat=texte_affichage_resultat;
	var url_site=url_site;
	var lang=lang;
	var texte_tous=texte_tous;
	var XHR=new XHRConnection();
	XHR.appendData("id_talent", document.getElementById(talent_parent).value);
	XHR.appendData("nom_select_retour", nom_select_retour);
	XHR.appendData("lang", lang);
	XHR.appendData("texte_tous", texte_tous);
	XHR.appendData("formulaire", texte_affichage_resultat);
	XHR.sendAndLoad(""+url_site+"includes/include_verification_sous_rubriques_talent2.php", "GET", afficher_verification_sous_rubriques_talent_defaut_moteur_recherche);
}

var afficher_verification_sous_rubriques_talent_defaut_moteur_recherche = function(obj) {
	var XMLDoc=obj.responseXML;
	var texte_affichage_resultat=XMLDoc.getElementsByTagName("formulaire");
	var balise_affichage = document.getElementById(texte_affichage_resultat[0].firstChild.nodeValue);
	var champs_select=XMLDoc.getElementsByTagName("select");
	var sous_talent_node=XMLDoc.getElementsByTagName("soustalent");
	var texte_node=XMLDoc.getElementsByTagName("texte");
	balise_affichage.length=0;
	balise_affichage.options[0] = new Option(""+texte_node[0].firstChild.nodeValue+"", "0");
	for (i=0;i<sous_talent_node.length;i++) {
		var id_talent = sous_talent_node[i].getElementsByTagName("id_talent");
		var nom_talent = sous_talent_node[i].getElementsByTagName("nom");
		//alert(id_talent[0].firstChild.nodeValue);
		balise_affichage.options[i+1] = new Option(decode_ascii(nom_talent[0].firstChild.nodeValue), id_talent[0].firstChild.nodeValue);
	}
}

function moteur_recherche_membre_suggestion(formulaire_a_verifier, champs_type_membre_talent, champs_type_membre_zappeur, champs_type_membre_contact, champs_type_membre_fan, champs_type_membre_online, champs_sexe_recherche, champs_age_debut_recherche, champs_age_fin_recherche, champs_mots_recherche, champs_statut_recherche, champs_ville_recherche, champs_hobbie_recherche, champs_gout_recherche, champs_livre_recherche, champs_interet_recherche, champs_sortie_recherche, champs_film_recherche, champs_photos_recherche, texte_affichage_resultat, moun, lang, url_site, texte_defaut, nombre_hobbies, nombre_gouts, nombre_livres, nombre_interets, nombre_sorties, nombre_films, recherche_detaillee, id_recherche, pagination) {
	var formulaire_a_verifier=formulaire_a_verifier;
	var champs_type_membre_talent=champs_type_membre_talent;
	var champs_type_membre_zappeur=champs_type_membre_zappeur;
	var champs_type_membre_contact=champs_type_membre_contact;
	var champs_type_membre_fan=champs_type_membre_fan;
	var champs_type_membre_online=champs_type_membre_online;
	var champs_sexe_recherche=champs_sexe_recherche;
	var champs_age_debut_recherche=champs_age_debut_recherche;
	var champs_age_fin_recherche=champs_age_fin_recherche;
	var champs_mots_recherche=champs_mots_recherche;
	var champs_statut_recherche=champs_statut_recherche;
	var champs_ville_recherche=champs_ville_recherche;
	var champs_hobbie_recherche=champs_hobbie_recherche;
	var champs_gout_recherche=champs_gout_recherche;
	var champs_livre_recherche=champs_livre_recherche;
	var champs_interet_recherche=champs_interet_recherche;
	var champs_sortie_recherche=champs_sortie_recherche;
	var champs_film_recherche=champs_film_recherche;
	var champs_photos_recherche=champs_photos_recherche;
	var texte_affichage_resultat=texte_affichage_resultat;
	var moun=moun;
	var lang=lang;
	var url_site=url_site;
	var texte_defaut=texte_defaut;
	var nombre_hobbies=nombre_hobbies;
	var nombre_gouts=nombre_gouts;
	var nombre_livres=nombre_livres;
	var nombre_interets=nombre_interets;
	var nombre_sorties=nombre_sorties;
	var nombre_films=nombre_films;
	var recherche_detaillee=recherche_detaillee;
	var id_recherche=id_recherche;
	var pagination=pagination;
	
	var critere_hobbie=0;
	var critere_gout=0;
	var critere_livre=0;
	var critere_interet=0;
	var critere_sortie=0;
	var critere_film=0;
	if (recherche_detaillee>0) {
		for (var i=1;i<=nombre_hobbies;i++) {
			if (document.getElementById(champs_hobbie_recherche+""+i).checked==true) {
				critere_hobbie=1;
			}
		}
		for (var j=1;j<=nombre_gouts;j++) {
			if (document.getElementById(champs_gout_recherche+""+j).checked==true) {
				critere_gout=1;
			}
		}
		for (var k=1;k<=nombre_livres;k++) {
			if (document.getElementById(champs_livre_recherche+""+k).checked==true) {
				critere_livre=1;
			}
		}
		for (var l=1;l<=nombre_interets;l++) {
			if (document.getElementById(champs_interet_recherche+""+l).checked==true) {
				critere_interet=1;
			}
		}
		for (var m=1;m<=nombre_sorties;m++) {
			if (document.getElementById(champs_sortie_recherche+""+m).checked==true) {
				critere_sortie=1;
			}
		}
		for (var n=1;n<=nombre_films;n++) {
			if (document.getElementById(champs_film_recherche+""+n).checked==true) {
				critere_film=1;
			}
		}
	}
	
	if (moun=="") {
		moun=0;	
	}
	if (document.getElementById(champs_mots_recherche).value==texte_defaut) {
		document.getElementById(champs_mots_recherche).value='';
	}
	/*}else if (document.getElementById(champs_mots_recherche).value=='') {
		document.getElementById(champs_mots_recherche).value=''+texte_defaut+''
	}*/
	document.getElementById(texte_affichage_resultat).style.display='none';
	document.getElementById(texte_affichage_resultat).innerHTML='';
	
	if (document.getElementById(champs_type_membre_talent).checked==true) {
		var type_moun_talent=document.getElementById(champs_type_membre_talent).value;
	}else{
		var type_moun_talent=0;
	}
	
	if (document.getElementById(champs_type_membre_zappeur).checked==true) {
		var type_moun_zappeur=document.getElementById(champs_type_membre_zappeur).value;
	}else{
		var type_moun_zappeur=0;
	}
	
	if (document.getElementById(champs_type_membre_contact).checked==true) {
		var type_moun_contact=document.getElementById(champs_type_membre_contact).value;
	}else{
		var type_moun_contact=0;
	}
	
	if (document.getElementById(champs_type_membre_fan).checked==true) {
		var type_moun_fan=document.getElementById(champs_type_membre_fan).value;
	}else{
		var type_moun_fan=0;
	}
	
	if (document.getElementById(champs_type_membre_online).checked==true) {
		var type_membre_online=document.getElementById(champs_type_membre_online).value;
	}else{
		var type_membre_online=0;
	}
	
	if ((document.getElementById(champs_mots_recherche).value.length>3) && (document.getElementById(champs_mots_recherche).value!=texte_defaut)) {
		//alert(moun);
		document.getElementById(texte_affichage_resultat).innerHTML='<p class="texte_centre"><img src="'+url_site+'images/loader_ajax_rose.gif" name="loader_ajax" alt="" title="" border="0" /></p>';
		document.getElementById(texte_affichage_resultat).style.display='';
		var XHR=new XHRConnection();
		XHR.appendData("moun_visiteur", moun);
		XHR.appendData("type_moun_talent", type_moun_talent);
		XHR.appendData("type_moun_zappeur", type_moun_zappeur);
		XHR.appendData("type_moun_contact", type_moun_contact);
		XHR.appendData("type_moun_fan", type_moun_fan);
		XHR.appendData("type_membre_online", type_membre_online);
		XHR.appendData("sexe_moun", document.getElementById(champs_sexe_recherche).value);
		XHR.appendData("mots", document.getElementById(champs_mots_recherche).value);
		XHR.appendData("statut_moun", document.getElementById(champs_statut_recherche).value);
		XHR.appendData("ville_moun", document.getElementById(champs_ville_recherche).value);
		XHR.appendData("age_debut_moun", document.getElementById(champs_age_debut_recherche).value);
		XHR.appendData("age_fin_moun", document.getElementById(champs_age_fin_recherche).value);
		XHR.appendData("hobbie_moun", critere_hobbie);
		XHR.appendData("gout_moun", critere_gout);
		XHR.appendData("livre_moun", critere_livre);
		XHR.appendData("interet_moun", critere_interet);
		XHR.appendData("sortie_moun", critere_sortie);
		XHR.appendData("film_moun", critere_film);
		XHR.appendData("photo_moun", document.getElementById(champs_photos_recherche).value);
		XHR.appendData("id_recherche", id_recherche);
		XHR.appendData("pagination", pagination);
		XHR.appendData("lang", lang);
		XHR.appendData("url", url_site);
		XHR.appendData("texte_defaut", texte_defaut);
		XHR.appendData("formulaire", texte_affichage_resultat);
		XHR.sendAndLoad(""+url_site+"includes/include_verification_recherche_membre_suggestions.php", "GET", afficher_verification_moteur_recherche_membre_suggestion);
	}
}

function moteur_recherche_membre_valeurs_suggestion(formulaire_a_verifier, champs_type_membre_talent, champs_type_membre_zappeur, champs_type_membre_contact, champs_type_membre_fan, type_membre_online, champs_sexe_recherche, champs_age_debut_recherche, champs_age_fin_recherche, champs_mots_recherche, champs_statut_recherche, champs_ville_recherche, critere_hobbie, critere_gout, critere_livre, critere_interet, critere_sortie, critere_film, champs_photos_recherche, texte_affichage_resultat, moun, lang, url_site, texte_defaut, id_recherche, pagination) {
	var formulaire_a_verifier=formulaire_a_verifier;
	var champs_type_membre_talent=champs_type_membre_talent;
	var champs_type_membre_zappeur=champs_type_membre_zappeur;
	var champs_type_membre_contact=champs_type_membre_contact;
	var champs_type_membre_fan=champs_type_membre_fan;
	var type_membre_online=type_membre_online;
	var champs_sexe_recherche=champs_sexe_recherche;
	var champs_age_debut_recherche=champs_age_debut_recherche;
	var champs_age_fin_recherche=champs_age_fin_recherche;
	var champs_mots_recherche=champs_mots_recherche;
	var champs_statut_recherche=champs_statut_recherche;
	var champs_ville_recherche=champs_ville_recherche;
	var champs_photos_recherche=champs_photos_recherche;
	var texte_affichage_resultat=texte_affichage_resultat;
	var moun=moun;
	var lang=lang;
	var url_site=url_site;
	var texte_defaut=texte_defaut;
	var recherche_detaillee=recherche_detaillee;
	var id_recherche=id_recherche;
	var pagination=pagination;
	
	var critere_hobbie=critere_hobbie;
	var critere_gout=critere_gout;
	var critere_livre=critere_livre;
	var critere_interet=critere_interet;
	var critere_sortie=critere_sortie;
	var critere_film=critere_film;
	
	document.getElementById(texte_affichage_resultat).innerHTML='<p class="texte_centre"><img src="'+url_site+'images/loader_ajax_rose.gif" name="loader_ajax" alt="" title="" border="0" /></p>';
	document.getElementById(texte_affichage_resultat).style.display='';
	var XHR=new XHRConnection();
	XHR.appendData("moun_visiteur", moun);
	XHR.appendData("type_moun_talent", champs_type_membre_talent);
	XHR.appendData("type_moun_zappeur", champs_type_membre_zappeur);
	XHR.appendData("type_moun_contact", champs_type_membre_contact);
	XHR.appendData("type_moun_fan", champs_type_membre_fan);
	XHR.appendData("type_membre_online", type_membre_online);
	XHR.appendData("sexe_moun", champs_sexe_recherche);
	XHR.appendData("mots", champs_mots_recherche);
	XHR.appendData("statut_moun", champs_statut_recherche);
	XHR.appendData("ville_moun", champs_ville_recherche);
	XHR.appendData("age_debut_moun", champs_age_debut_recherche);
	XHR.appendData("age_fin_moun", champs_age_fin_recherche);
	XHR.appendData("hobbie_moun", critere_hobbie);
	XHR.appendData("gout_moun", critere_gout);
	XHR.appendData("livre_moun", critere_livre);
	XHR.appendData("interet_moun", critere_interet);
	XHR.appendData("sortie_moun", critere_sortie);
	XHR.appendData("film_moun", critere_film);
	XHR.appendData("photo_moun", champs_photos_recherche);
	XHR.appendData("id_recherche", id_recherche);
	XHR.appendData("pagination", pagination);
	XHR.appendData("lang", lang);
	XHR.appendData("url", url_site);
	XHR.appendData("texte_defaut", texte_defaut);
	XHR.appendData("formulaire", texte_affichage_resultat);
	XHR.sendAndLoad(""+url_site+"includes/include_verification_recherche_membre_suggestions.php", "GET", afficher_verification_moteur_recherche_membre_suggestion);
}

var afficher_verification_moteur_recherche_membre_suggestion = function(obj) {
	var XMLDoc=obj.responseXML;
	var texte_affichage_resultat=XMLDoc.getElementsByTagName("formulaire");
	var balise_affichage = document.getElementById(texte_affichage_resultat[0].firstChild.nodeValue);
	balise_affichage.innerHTML='';
	var mots=XMLDoc.getElementsByTagName("mots");
	var visiteur=XMLDoc.getElementsByTagName("visiteur");
	var talent=XMLDoc.getElementsByTagName("talent");
	var zappeur=XMLDoc.getElementsByTagName("zappeur");
	var contact=XMLDoc.getElementsByTagName("contact");
	var fan=XMLDoc.getElementsByTagName("fan");
	var online=XMLDoc.getElementsByTagName("online");
	var sexe=XMLDoc.getElementsByTagName("sexe");
	var age_debut=XMLDoc.getElementsByTagName("age_debut");
	var age_fin=XMLDoc.getElementsByTagName("age_fin");
	var statut=XMLDoc.getElementsByTagName("statut");
	var ville=XMLDoc.getElementsByTagName("ville");
	var hobbie=XMLDoc.getElementsByTagName("hobbie");
	var gout=XMLDoc.getElementsByTagName("gout");
	var livre=XMLDoc.getElementsByTagName("livre");
	var interet=XMLDoc.getElementsByTagName("interet");
	var sortie=XMLDoc.getElementsByTagName("sortie");
	var film=XMLDoc.getElementsByTagName("film");
	var id_recherche=XMLDoc.getElementsByTagName("id_recherche");
	var pagination=XMLDoc.getElementsByTagName("pagination");
	var resultats=XMLDoc.getElementsByTagName("resultats");
	var photo=XMLDoc.getElementsByTagName("photo");
	var texte=XMLDoc.getElementsByTagName("texte");
	var url_site=XMLDoc.getElementsByTagName("url");
	var lang=XMLDoc.getElementsByTagName("lang");
	var moun_node=XMLDoc.getElementsByTagName("moun");
	var iteration_membre=1;
	var texte_pagination="<p class=\"texte_centre\">";
	if ((parseInt(id_recherche[0].firstChild.nodeValue, 0))>=(parseInt(pagination[0].firstChild.nodeValue, 0))) {
		var pagination_precedente=id_recherche[0].firstChild.nodeValue-pagination[0].firstChild.nodeValue;
		texte_pagination +="<a class=\"texte_gris\" href=\"#\" onclick=\"moteur_recherche_membre_valeurs_suggestion('"+texte_affichage_resultat[0].firstChild.nodeValue+"', '"+talent[0].firstChild.nodeValue+"', '"+zappeur[0].firstChild.nodeValue+"', '"+contact[0].firstChild.nodeValue+"', '"+fan[0].firstChild.nodeValue+"', '"+online[0].firstChild.nodeValue+"', '"+sexe[0].firstChild.nodeValue+"', '"+age_debut[0].firstChild.nodeValue+"', '"+age_fin[0].firstChild.nodeValue+"', '"+mots[0].firstChild.nodeValue+"', '"+statut[0].firstChild.nodeValue+"', '"+ville[0].firstChild.nodeValue+"', '"+hobbie[0].firstChild.nodeValue+"', '"+gout[0].firstChild.nodeValue+"', '"+livre[0].firstChild.nodeValue+"', '"+interet[0].firstChild.nodeValue+"', '"+sortie[0].firstChild.nodeValue+"', '"+film[0].firstChild.nodeValue+"', '"+photo[0].firstChild.nodeValue+"', '"+texte_affichage_resultat[0].firstChild.nodeValue+"', '"+visiteur[0].firstChild.nodeValue+"', '"+lang[0].firstChild.nodeValue+"', '"+url_site[0].firstChild.nodeValue+"', '"+texte[0].firstChild.nodeValue+"', '"+pagination_precedente+"', '"+pagination[0].firstChild.nodeValue+"'); return false;\">&lt;&lt;</a>";
	}
	
	var nb_page=Math.floor(resultats[0].firstChild.nodeValue/pagination[0].firstChild.nodeValue);
	if ((resultats[0].firstChild.nodeValue/pagination[0].firstChild.nodeValue)==nb_page) {
		nb_page--;
	}
	nb_page++;
	for (var indices_pages=1;indices_pages<=nb_page;indices_pages++) {
		var numero_pagination=(indices_pages-1)*pagination[0].firstChild.nodeValue;
		if (id_recherche[0].firstChild.nodeValue==numero_pagination) {
			var texte_gras_pagination_ouvert="<b>";
			var texte_gras_pagination_ferme="</b>";
		}else{
			var texte_gras_pagination_ouvert="";
			var texte_gras_pagination_ferme="";
		}
		texte_pagination +=" <a class=\"texte_rose2\" href=\"#\" onclick=\"moteur_recherche_membre_valeurs_suggestion('"+texte_affichage_resultat[0].firstChild.nodeValue+"', '"+talent[0].firstChild.nodeValue+"', '"+zappeur[0].firstChild.nodeValue+"', '"+contact[0].firstChild.nodeValue+"', '"+fan[0].firstChild.nodeValue+"', '"+online[0].firstChild.nodeValue+"', '"+sexe[0].firstChild.nodeValue+"', '"+age_debut[0].firstChild.nodeValue+"', '"+age_fin[0].firstChild.nodeValue+"', '"+mots[0].firstChild.nodeValue+"', '"+statut[0].firstChild.nodeValue+"', '"+ville[0].firstChild.nodeValue+"', '"+hobbie[0].firstChild.nodeValue+"', '"+gout[0].firstChild.nodeValue+"', '"+livre[0].firstChild.nodeValue+"', '"+interet[0].firstChild.nodeValue+"', '"+sortie[0].firstChild.nodeValue+"', '"+film[0].firstChild.nodeValue+"', '"+photo[0].firstChild.nodeValue+"', '"+texte_affichage_resultat[0].firstChild.nodeValue+"', '"+visiteur[0].firstChild.nodeValue+"', '"+lang[0].firstChild.nodeValue+"', '"+url_site[0].firstChild.nodeValue+"', '"+texte[0].firstChild.nodeValue+"', '"+numero_pagination+"', '"+pagination[0].firstChild.nodeValue+"'); return false;\">"+texte_gras_pagination_ouvert+""+indices_pages+""+texte_gras_pagination_ferme+"</a> ";
	}
	
	if ((resultats[0].firstChild.nodeValue-pagination[0].firstChild.nodeValue)>id_recherche[0].firstChild.nodeValue) {
		var pagination_suivante=id_recherche[0].firstChild.nodeValue+pagination[0].firstChild.nodeValue;
		texte_pagination +="<a class=\"texte_gris\" href=\"#\" onclick=\"moteur_recherche_membre_valeurs_suggestion('"+texte_affichage_resultat[0].firstChild.nodeValue+"', '"+talent[0].firstChild.nodeValue+"', '"+zappeur[0].firstChild.nodeValue+"', '"+contact[0].firstChild.nodeValue+"', '"+fan[0].firstChild.nodeValue+"', '"+online[0].firstChild.nodeValue+"', '"+sexe[0].firstChild.nodeValue+"', '"+age_debut[0].firstChild.nodeValue+"', '"+age_fin[0].firstChild.nodeValue+"', '"+mots[0].firstChild.nodeValue+"', '"+statut[0].firstChild.nodeValue+"', '"+ville[0].firstChild.nodeValue+"', '"+hobbie[0].firstChild.nodeValue+"', '"+gout[0].firstChild.nodeValue+"', '"+livre[0].firstChild.nodeValue+"', '"+interet[0].firstChild.nodeValue+"', '"+sortie[0].firstChild.nodeValue+"', '"+film[0].firstChild.nodeValue+"', '"+photo[0].firstChild.nodeValue+"', '"+texte_affichage_resultat[0].firstChild.nodeValue+"', '"+visiteur[0].firstChild.nodeValue+"', '"+lang[0].firstChild.nodeValue+"', '"+url_site[0].firstChild.nodeValue+"', '"+texte[0].firstChild.nodeValue+"', '"+pagination_suivante+"', '"+pagination[0].firstChild.nodeValue+"'); return false;\">&gt;&gt;</a>";			
	}
	
	texte_pagination +="</p><p>&nbsp;</p>";
	balise_affichage.innerHTML=''+texte_pagination+'<div style="float: left; margin: 0px; padding: 0px; width: 430px; height: 1px; color: #f0f0f0; background-color: #f0f0f0; border: 0px solid #f0f0f0;"></div>';
	
	for (var i=0;i<moun_node.length;i++) {
		var num = moun_node[i].getElementsByTagName("num");
		var type = moun_node[i].getElementsByTagName("type");
		var nom = moun_node[i].getElementsByTagName("nom");
		var avatar = moun_node[i].getElementsByTagName("avatar");
		if (nom[0].firstChild.nodeValue.length>14) {
			nom_membre_securite=''+left(nom[0].firstChild.nodeValue, 0, 14)+' ...';
		}else{
			nom_membre_securite=nom[0].firstChild.nodeValue;
		}
		balise_affichage.innerHTML +='<div id="talent_'+num[0].firstChild.nodeValue+'" class="talent_zapping_talent_contenu_membre" onmouseover="javascript: document.getElementById(\'talent_photo_'+num[0].firstChild.nodeValue+'\').style.border=\'2px solid #ec2a7e\';" onmouseout="javascript: document.getElementById(\'talent_photo_'+num[0].firstChild.nodeValue+'\').style.border=\'2px solid #dedede\';"><div id="talent_photo_'+num[0].firstChild.nodeValue+'" class="talent_zapping_talent_contenu_membre_photo"><p><a href="'+url_site[0].firstChild.nodeValue+''+nom[0].firstChild.nodeValue+'" class="texte_blanc"><img src="'+url_site[0].firstChild.nodeValue+'photos/phototeque/membres/miniature/'+avatar[0].firstChild.nodeValue+'" name="membre_avatar_'+num[0].firstChild.nodeValue+'" alt="'+nom[0].firstChild.nodeValue+'" title="'+nom[0].firstChild.nodeValue+'" border="0" /></a></p></div><p class="texte_rose2"><a href="'+url_site[0].firstChild.nodeValue+''+nom[0].firstChild.nodeValue+'" class="texte_rose2">'+nom_membre_securite+'</a></p></div>';
		if ((iteration_membre%4)==0) {
			balise_affichage.innerHTML +='<div style="float: left; margin: 0px; padding: 0px; width: 430px; height: 1px; color: #f0f0f0; background-color: #f0f0f0; border: 0px solid #f0f0f0;"></div>';
		}
		iteration_membre++;
	}
	if (moun_node.length<1) {
		balise_affichage.style.display='none';
	}
}

function afficher_menu_deroulant_formulaire_recherche_sexe_membre(div_a_afficher, champs_texte_retour, champs_cache_retour, lang, url_site) {
	var div_a_afficher=div_a_afficher;
	var champs_texte_retour=champs_texte_retour;
	var champs_cache_retour=champs_cache_retour;
	var lang=lang;
	var url_site=url_site;
	document.getElementById(champs_texte_retour).blur();
	document.getElementById(div_a_afficher).innerHTML="<p class=\"texte_centre\"><img src=\""+url_site+"images/loader_ajax_rose.gif\" name=\"loader_ajax\" border=\"0\" /></p>";
	if (document.getElementById(div_a_afficher).style.display=="") {
		document.getElementById(div_a_afficher).style.display="none";
	}else{
		document.getElementById(div_a_afficher).style.display="";
	}
	var XHR=new XHRConnection();
	XHR.appendData("sexe", document.getElementById(champs_cache_retour).value);
	XHR.appendData("formulaire", div_a_afficher);
	XHR.appendData("formulaire2", champs_texte_retour);
	XHR.appendData("formulaire3", champs_cache_retour);
	XHR.appendData("url", url_site);
	XHR.appendData("lang", lang);
	XHR.sendAndLoad(""+url_site+"includes/include_verification_talent_sexe_membre.php", "GET", afficher_verification_menu_deroulant_formulaire_recherche_sexe_membre);
}

var afficher_verification_menu_deroulant_formulaire_recherche_sexe_membre = function(obj) {
	var XMLDoc=obj.responseXML;
	var texte_affichage_resultat=XMLDoc.getElementsByTagName("formulaire");
	var balise_affichage=document.getElementById(texte_affichage_resultat[0].firstChild.nodeValue);
	balise_affichage.innerHTML='';
	var texte_affichage_resultat2=XMLDoc.getElementsByTagName("formulaire2");
	var balise_affichage2=document.getElementById(texte_affichage_resultat2[0].firstChild.nodeValue);
	var texte_affichage_resultat3=XMLDoc.getElementsByTagName("formulaire3");
	var balise_affichage3=document.getElementById(texte_affichage_resultat3[0].firstChild.nodeValue);
	var sexe=XMLDoc.getElementsByTagName("sexe");
	var sexe_type=XMLDoc.getElementsByTagName("sexe_type");
	var lang=XMLDoc.getElementsByTagName("lang");
	var url=XMLDoc.getElementsByTagName("url");
	for (var i=0;i<sexe_type.length;i++) {
		var num=sexe_type[i].getElementsByTagName("num");
		var nom=sexe_type[i].getElementsByTagName("nom");
		if (num[0].firstChild.nodeValue==sexe[0].firstChild.nodeValue) {
			texte_selectionne_debut="<b>";
			texte_selectionne_fin="</b>";
		}else{
			texte_selectionne_debut="";
			texte_selectionne_fin="";
		}
		balise_affichage.innerHTML +='<p class="texte_rose2"><a href="#" onclick="afficher_menu_deroulant_formulaire_recherche_sexe_membre_selection(\''+texte_affichage_resultat[0].firstChild.nodeValue+'\', \''+texte_affichage_resultat2[0].firstChild.nodeValue+'\', \''+texte_affichage_resultat3[0].firstChild.nodeValue+'\', \''+num[0].firstChild.nodeValue+'\', \''+nom[0].firstChild.nodeValue+'\', \''+lang[0].firstChild.nodeValue+'\', \''+url[0].firstChild.nodeValue+'\'); return false;" class="texte_rose2">'+texte_selectionne_debut+''+nom[0].firstChild.nodeValue+''+texte_selectionne_fin+'</a></p>';
	}
}

function afficher_menu_deroulant_formulaire_recherche_sexe_membre_selection(div_a_afficher, champs_texte_retour, champs_cache_retour, num_talent, nom_talent, lang, url_site) {
	var div_a_afficher=div_a_afficher;
	var champs_texte_retour=champs_texte_retour;
	var champs_cache_retour=champs_cache_retour;
	var num_talent=num_talent;
	var nom_talent=nom_talent;
	var lang=lang;
	var url_site=url_site;
	type_media_oeuvre=num_talent;
	document.getElementById(div_a_afficher).style.display="none";
	document.getElementById(div_a_afficher).innerHTML="";
	document.getElementById(champs_texte_retour).value=nom_talent;
	document.getElementById(champs_cache_retour).value=num_talent;
}

function afficher_menu_deroulant_formulaire_recherche_age_membre(div_a_afficher, champs_texte_retour, champs_cache_retour, lang, url_site, age_cas) {
	var div_a_afficher=div_a_afficher;
	var champs_texte_retour=champs_texte_retour;
	var champs_cache_retour=champs_cache_retour;
	var lang=lang;
	var url_site=url_site;
	var age_cas=age_cas;
	document.getElementById(champs_texte_retour).blur();
	document.getElementById(div_a_afficher).innerHTML="<p class=\"texte_centre\"><img src=\""+url_site+"images/loader_ajax_rose.gif\" name=\"loader_ajax\" border=\"0\" /></p>";
	if (document.getElementById(div_a_afficher).style.display=="") {
		document.getElementById(div_a_afficher).style.display="none";
	}else{
		document.getElementById(div_a_afficher).style.display="";
	}
	var XHR=new XHRConnection();
	XHR.appendData("age", document.getElementById(champs_cache_retour).value);
	XHR.appendData("formulaire", div_a_afficher);
	XHR.appendData("formulaire2", champs_texte_retour);
	XHR.appendData("formulaire3", champs_cache_retour);
	XHR.appendData("url", url_site);
	XHR.appendData("lang", lang);
	XHR.appendData("age_cas", age_cas);
	XHR.sendAndLoad(""+url_site+"includes/include_verification_talent_age_membre.php", "GET", afficher_verification_menu_deroulant_formulaire_recherche_age_membre);
}

var afficher_verification_menu_deroulant_formulaire_recherche_age_membre = function(obj) {
	var XMLDoc=obj.responseXML;
	var texte_affichage_resultat=XMLDoc.getElementsByTagName("formulaire");
	var balise_affichage=document.getElementById(texte_affichage_resultat[0].firstChild.nodeValue);
	balise_affichage.innerHTML='';
	var texte_affichage_resultat2=XMLDoc.getElementsByTagName("formulaire2");
	var balise_affichage2=document.getElementById(texte_affichage_resultat2[0].firstChild.nodeValue);
	var texte_affichage_resultat3=XMLDoc.getElementsByTagName("formulaire3");
	var balise_affichage3=document.getElementById(texte_affichage_resultat3[0].firstChild.nodeValue);
	var age=XMLDoc.getElementsByTagName("age");
	var age_type=XMLDoc.getElementsByTagName("age_type");
	var lang=XMLDoc.getElementsByTagName("lang");
	var url=XMLDoc.getElementsByTagName("url");
	var age_cas=XMLDoc.getElementsByTagName("age_cas");
	for (var i=0;i<age_type.length;i++) {
		var num=age_type[i].getElementsByTagName("num");
		var nom=age_type[i].getElementsByTagName("nom");
		if (num[0].firstChild.nodeValue==age[0].firstChild.nodeValue) {
			texte_selectionne_debut="<b>";
			texte_selectionne_fin="</b>";
		}else{
			texte_selectionne_debut="";
			texte_selectionne_fin="";
		}
		balise_affichage.innerHTML +='<p class="texte_rose2"><a href="#" onclick="afficher_menu_deroulant_formulaire_recherche_age_membre_selection(\''+texte_affichage_resultat[0].firstChild.nodeValue+'\', \''+texte_affichage_resultat2[0].firstChild.nodeValue+'\', \''+texte_affichage_resultat3[0].firstChild.nodeValue+'\', \''+num[0].firstChild.nodeValue+'\', \''+nom[0].firstChild.nodeValue+'\', \''+lang[0].firstChild.nodeValue+'\', \''+url[0].firstChild.nodeValue+'\'); return false;" class="texte_rose2">'+texte_selectionne_debut+''+nom[0].firstChild.nodeValue+''+texte_selectionne_fin+'</a></p>';
	}
}

function afficher_menu_deroulant_formulaire_recherche_age_membre_selection(div_a_afficher, champs_texte_retour, champs_cache_retour, num_talent, nom_talent, lang, url_site) {
	var div_a_afficher=div_a_afficher;
	var champs_texte_retour=champs_texte_retour;
	var champs_cache_retour=champs_cache_retour;
	var num_talent=num_talent;
	var nom_talent=nom_talent;
	var lang=lang;
	var url_site=url_site;
	type_media_oeuvre=num_talent;
	document.getElementById(div_a_afficher).style.display="none";
	document.getElementById(div_a_afficher).innerHTML="";
	document.getElementById(champs_texte_retour).value=nom_talent;
	document.getElementById(champs_cache_retour).value=num_talent;
}

function afficher_menu_deroulant_formulaire_recherche_statut_membre(div_a_afficher, champs_texte_retour, champs_cache_retour, lang, url_site) {
	var div_a_afficher=div_a_afficher;
	var champs_texte_retour=champs_texte_retour;
	var champs_cache_retour=champs_cache_retour;
	var lang=lang;
	var url_site=url_site;
	document.getElementById(champs_texte_retour).blur();
	document.getElementById(div_a_afficher).innerHTML="<p class=\"texte_centre\"><img src=\""+url_site+"images/loader_ajax_rose.gif\" name=\"loader_ajax\" border=\"0\" /></p>";
	if (document.getElementById(div_a_afficher).style.display=="") {
		document.getElementById(div_a_afficher).style.display="none";
	}else{
		document.getElementById(div_a_afficher).style.display="";
	}
	var XHR=new XHRConnection();
	XHR.appendData("statut", document.getElementById(champs_cache_retour).value);
	XHR.appendData("formulaire", div_a_afficher);
	XHR.appendData("formulaire2", champs_texte_retour);
	XHR.appendData("formulaire3", champs_cache_retour);
	XHR.appendData("url", url_site);
	XHR.appendData("lang", lang);
	XHR.sendAndLoad(""+url_site+"includes/include_verification_talent_statut_membre.php", "GET", afficher_verification_menu_deroulant_formulaire_recherche_statut_membre);
}

var afficher_verification_menu_deroulant_formulaire_recherche_statut_membre = function(obj) {
	var XMLDoc=obj.responseXML;
	var texte_affichage_resultat=XMLDoc.getElementsByTagName("formulaire");
	var balise_affichage=document.getElementById(texte_affichage_resultat[0].firstChild.nodeValue);
	balise_affichage.innerHTML='';
	var texte_affichage_resultat2=XMLDoc.getElementsByTagName("formulaire2");
	var balise_affichage2=document.getElementById(texte_affichage_resultat2[0].firstChild.nodeValue);
	var texte_affichage_resultat3=XMLDoc.getElementsByTagName("formulaire3");
	var balise_affichage3=document.getElementById(texte_affichage_resultat3[0].firstChild.nodeValue);
	var statut=XMLDoc.getElementsByTagName("statut");
	var statut_type=XMLDoc.getElementsByTagName("statut_type");
	var lang=XMLDoc.getElementsByTagName("lang");
	var url=XMLDoc.getElementsByTagName("url");
	for (var i=0;i<statut_type.length;i++) {
		var num=statut_type[i].getElementsByTagName("num");
		var nom=statut_type[i].getElementsByTagName("nom");
		if (num[0].firstChild.nodeValue==statut[0].firstChild.nodeValue) {
			texte_selectionne_debut="<b>";
			texte_selectionne_fin="</b>";
		}else{
			texte_selectionne_debut="";
			texte_selectionne_fin="";
		}
		balise_affichage.innerHTML +='<p class="texte_rose2"><a href="#" onclick="afficher_menu_deroulant_formulaire_recherche_statut_membre_selection(\''+texte_affichage_resultat[0].firstChild.nodeValue+'\', \''+texte_affichage_resultat2[0].firstChild.nodeValue+'\', \''+texte_affichage_resultat3[0].firstChild.nodeValue+'\', \''+num[0].firstChild.nodeValue+'\', \''+nom[0].firstChild.nodeValue+'\', \''+lang[0].firstChild.nodeValue+'\', \''+url[0].firstChild.nodeValue+'\'); return false;" class="texte_rose2">'+texte_selectionne_debut+''+nom[0].firstChild.nodeValue+''+texte_selectionne_fin+'</a></p>';
	}
}

function afficher_menu_deroulant_formulaire_recherche_statut_membre_selection(div_a_afficher, champs_texte_retour, champs_cache_retour, num_talent, nom_talent, lang, url_site) {
	var div_a_afficher=div_a_afficher;
	var champs_texte_retour=champs_texte_retour;
	var champs_cache_retour=champs_cache_retour;
	var num_talent=num_talent;
	var nom_talent=nom_talent;
	var lang=lang;
	var url_site=url_site;
	type_media_oeuvre=num_talent;
	document.getElementById(div_a_afficher).style.display="none";
	document.getElementById(div_a_afficher).innerHTML="";
	document.getElementById(champs_texte_retour).value=nom_talent;
	document.getElementById(champs_cache_retour).value=num_talent;
}

function afficher_informations_oeuvre_lecture(oeuvre, membre, texte_afficher_resultat, url_site, lang) {
	var oeuvre=oeuvre;
	var membre=membre;
	var texte_afficher_resultat=texte_afficher_resultat;
	var url_site=url_site;
	var lang=lang;
	document.getElementById(texte_afficher_resultat).innerHTML="<p class=\"texte_centre\"><img src=\""+url_site+"images/loader_ajax_rose.gif\" name=\"loader_ajax\" border=\"0\" /></p>";
	var XHR=new XHRConnection();
	XHR.appendData("formulaire", texte_afficher_resultat);
	XHR.appendData("oeuvre", oeuvre);
	XHR.appendData("moun", membre);
	XHR.appendData("url", url_site);
	XHR.appendData("lang", lang);
	XHR.sendAndLoad(""+url_site+"includes/include_verification_afficher_informations_oeuvre.php", "GET", afficher_verification_afficher_informations_oeuvre);
}

function afficher_informations_oeuvre_lecture_battle(oeuvre, membre, texte_afficher_resultat, champs_mise, url_site, lang) {
	var oeuvre=oeuvre;
	var membre=membre;
	var texte_afficher_resultat=texte_afficher_resultat;
	var champs_mise=champs_mise;
	var url_site=url_site;
	var lang=lang;
	document.getElementById(texte_afficher_resultat).innerHTML="<p class=\"texte_centre\"><img src=\""+url_site+"images/loader_ajax_rose.gif\" name=\"loader_ajax\" border=\"0\" /></p>";
	document.getElementById(champs_mise).value=oeuvre;
	var XHR=new XHRConnection();
	XHR.appendData("formulaire", texte_afficher_resultat);
	XHR.appendData("oeuvre", oeuvre);
	XHR.appendData("moun", membre);
	XHR.appendData("url", url_site);
	XHR.appendData("lang", lang);
	XHR.sendAndLoad(""+url_site+"includes/include_verification_afficher_informations_oeuvre.php", "GET", afficher_verification_afficher_informations_oeuvre);
}

var afficher_verification_afficher_informations_oeuvre = function(obj) {
	//document.title += 'A';
	var XMLDoc=obj.responseXML;
	var texte_affichage_resultat=XMLDoc.getElementsByTagName("formulaire");
	var balise_affichage=document.getElementById(texte_affichage_resultat[0].firstChild.nodeValue);
	balise_affichage.innerHTML='';
	var selection=XMLDoc.getElementsByTagName("selection");
	var moun=XMLDoc.getElementsByTagName("moun");
	var lang=XMLDoc.getElementsByTagName("lang");
	var url=XMLDoc.getElementsByTagName("url_page");
	var oeuvre=XMLDoc.getElementsByTagName("oeuvre");
	var action_tomate=XMLDoc.getElementsByTagName("action_tomate");
	var action_applaudir=XMLDoc.getElementsByTagName("action_applaudir");
	var action_standing_ovation=XMLDoc.getElementsByTagName("action_standing_ovation");
	var action_battle=XMLDoc.getElementsByTagName("action_battle");
	var action_forwarder=XMLDoc.getElementsByTagName("action_forwarder");
	var action_playlist=XMLDoc.getElementsByTagName("action_playlist");
	var action_commentaires=XMLDoc.getElementsByTagName("action_commentaires");
	var action_telecharger=XMLDoc.getElementsByTagName("action_telecharger");
	var action_malentendants=XMLDoc.getElementsByTagName("action_malentendants");
	var texte_lien_permanent=XMLDoc.getElementsByTagName("texte_lien_permanent");
	var texte_lien_exportable=XMLDoc.getElementsByTagName("texte_lien_exportable");
	var texte_description=XMLDoc.getElementsByTagName("texte_description");
	var texte_tous_commentaires=XMLDoc.getElementsByTagName("texte_tous_commentaires");
	var texte_tags=XMLDoc.getElementsByTagName("texte_tags");
	for (var i=0;i<oeuvre.length;i++) {
		var num=oeuvre[i].getElementsByTagName("num");
		var titre=oeuvre[i].getElementsByTagName("titre");
		var autorisation=oeuvre[i].getElementsByTagName("autorisation");
		var oeuvre_extension_tag=oeuvre[i].getElementsByTagName("oeuvre_extension_tag");
		var num_auteur=oeuvre[i].getElementsByTagName("num_auteur");
		var auteur=oeuvre[i].getElementsByTagName("auteur");
		var duree=oeuvre[i].getElementsByTagName("duree");
		var vues=oeuvre[i].getElementsByTagName("vues");
		var applaudissements=oeuvre[i].getElementsByTagName("applaudissements");
		var tomates=oeuvre[i].getElementsByTagName("tomates");
		var standing_ovations=oeuvre[i].getElementsByTagName("standing_ovations");
		var playlist=oeuvre[i].getElementsByTagName("playlist");
		var commentaires=oeuvre[i].getElementsByTagName("commentaires");
		var lien_battle=oeuvre[i].getElementsByTagName("lien_battle");
		var lien_applaudir=oeuvre[i].getElementsByTagName("lien_applaudir");
		var lien_jeter_tomate=oeuvre[i].getElementsByTagName("lien_jeter_tomate");
		var lien_commentaires=oeuvre[i].getElementsByTagName("lien_commentaires");
		var lien_standing_ovation=oeuvre[i].getElementsByTagName("lien_standing_ovation");
		var liste_commentaires=oeuvre[i].getElementsByTagName("liste_commentaires");
		var lien_permanent=oeuvre[i].getElementsByTagName("lien_permanent");
		var lecteur_exportable=oeuvre[i].getElementsByTagName("lecteur_exportable");
		var description=oeuvre[i].getElementsByTagName("description");
		var description_malentendants=oeuvre[i].getElementsByTagName("description_malentendants");
		var tags=oeuvre[i].getElementsByTagName("tags");
		var oeuvre_fichier_sans_extension=oeuvre[i].getElementsByTagName("oeuvre_fichier_sans_extension");
		var lien_suggerer_contenus=oeuvre[i].getElementsByTagName("lien_suggerer_contenus");
		var lien_acheter=oeuvre[i].getElementsByTagName("lien_acheter");
		var lien_telecharger=oeuvre[i].getElementsByTagName("lien_telecharger");
		var lien_playlister=oeuvre[i].getElementsByTagName("lien_playlister");
		if (titre[0].firstChild.nodeValue.length > 26)
			var nom_titre_informations_oeuvres_securite=''+left(titre[0].firstChild.nodeValue, 0, 26) + '...';
		else
		{
			var nom_titre_informations_oeuvres_securite=''+titre[0].firstChild.nodeValue+'';
		}
		if (auteur[0].firstChild.nodeValue.length > 17)
			var nom_artiste_informations_oeuvres_securite = left(auteur[0].firstChild.nodeValue, 0, 17) + '...';
		else
			var nom_artiste_informations_oeuvres_securite = auteur[0].firstChild.nodeValue;
		if ((oeuvre_extension_tag[0].firstChild.nodeValue == 3) || (oeuvre_extension_tag[0].firstChild.nodeValue == 4))
			var texte_duree = '<li class="duree_gauche"></li><li class="duree_contenu"><b>'+duree[0].firstChild.nodeValue+'</b></li><li class="duree_droite"></li><li class="spacer"></li>';
		else
			var texte_duree = '';
		if (autorisation[0].firstChild.nodeValue == 1)
			var image_over = "_over";
		else
			var image_over = "";
		balise_affichage.innerHTML +='<div id="talent_fiche_player_oeuvre_haut"><ul><li class="titre_gauche"></li><li class="titre_contenu"><h2 class="texte_blanc" title="'+titre[0].firstChild.nodeValue+'"><b>'+nom_titre_informations_oeuvres_securite+'</b></h2></li><li class="titre_droite"></li><li class="auteur_gauche"></li><li class="auteur_contenu"><h2 class="texte_noir"><a href="'+url[0].firstChild.nodeValue+''+auteur[0].firstChild.nodeValue+'" class="texte_noir"><b>'+nom_artiste_informations_oeuvres_securite+'</b></a></h2></li><li class="auteur_droite"></li><li class="spacer"></li>'+texte_duree+'<li class="interactions_lucratives">'+lien_telecharger[0].firstChild.nodeValue+'<img src="'+url[0].firstChild.nodeValue+'images/contenu/defaut/player/onglet_telecharger_'+lang[0].firstChild.nodeValue+''+image_over+'.jpg" name="onglet_telecharger" border="0" alt="" title="" class="texte_alignement_vertical" /></a> '+lien_acheter[0].firstChild.nodeValue+'<img src="'+url[0].firstChild.nodeValue+'images/contenu/defaut/player/onglet_acheter_'+lang[0].firstChild.nodeValue+''+image_over+'.jpg" name="onglet_telecharger" border="0" alt="" title="" class="texte_alignement_vertical" /></a></li></ul></div><div id="talent_fiche_player_oeuvre_contenu"><p>&nbsp;</p><h3 class="texte_formulaire"><b>'+texte_description[0].firstChild.nodeValue+'</b></h3><p class="texte_formulaire">'+description[0].firstChild.nodeValue+'</p><p class="clear_both">&nbsp;</p><ul class="interactions_oeuvres"><li class="titre_interactions_oeuvres">'+lien_applaudir[0].firstChild.nodeValue+'<img src="'+url[0].firstChild.nodeValue+'images/contenu/defaut/player/bouton_applaudir_'+lang[0].firstChild.nodeValue+'.jpg" name="bouton_applaudir_'+num[0].firstChild.nodeValue+'" border="0" alt="'+action_applaudir[0].firstChild.nodeValue+'" title="'+action_applaudir[0].firstChild.nodeValue+'" class="texte_alignement_vertical" /></a></li><li class="titre_interactions_oeuvres"><a href="'+url[0].firstChild.nodeValue+'vbox/ci/sample/inviter.php?dico=1173&amp;type=2" onclick="shadowbox_inviation(\''+url[0].firstChild.nodeValue+'vbox/ci/sample/inviter.php\', 0, 2, 1173, 650, 700); return false;" class="texte_blanc"><img src="'+url[0].firstChild.nodeValue+'images/contenu/defaut/player/bouton_forwarder_'+lang[0].firstChild.nodeValue+'.jpg" name="bouton_forwarder_'+num[0].firstChild.nodeValue+'" border="0" alt="'+action_forwarder[0].firstChild.nodeValue+'" title="'+action_forwarder[0].firstChild.nodeValue+'" class="texte_alignement_vertical" /></a></li><li class="titre_interactions_oeuvres">'+lien_battle[0].firstChild.nodeValue+'<img src="'+url[0].firstChild.nodeValue+'images/contenu/defaut/player/bouton_lancer_battle_'+lang[0].firstChild.nodeValue+'.jpg" name="bouton_lancer_battle_'+num[0].firstChild.nodeValue+'" border="0" alt="'+action_battle[0].firstChild.nodeValue+'" title="'+action_battle[0].firstChild.nodeValue+'" class="texte_alignement_vertical" /></a></li></ul><ul class="interactions_oeuvres"><li class="titre_interactions_oeuvres">'+lien_standing_ovation[0].firstChild.nodeValue+'<img src="'+url[0].firstChild.nodeValue+'images/contenu/defaut/player/bouton_standing_ovation_'+lang[0].firstChild.nodeValue+'.jpg" name="bouton_standing_ovation_'+num[0].firstChild.nodeValue+'" border="0" alt="'+action_standing_ovation[0].firstChild.nodeValue+'" title="'+action_standing_ovation[0].firstChild.nodeValue+'" class="texte_alignement_vertical" /></a></li><li class="titre_interactions_oeuvres">'+lien_playlister[0].firstChild.nodeValue+'<img src="'+url[0].firstChild.nodeValue+'images/contenu/defaut/player/bouton_playlister_'+lang[0].firstChild.nodeValue+'.jpg" name="bouton_playlister_'+num[0].firstChild.nodeValue+'" border="0" alt="'+action_playlist[0].firstChild.nodeValue+'" title="'+action_playlist[0].firstChild.nodeValue+'" class="texte_alignement_vertical" /></a></li><li class="titre_interactions_oeuvres"><img src="'+url[0].firstChild.nodeValue+'images/contenu/defaut/player/bouton_version_malentendant_'+lang[0].firstChild.nodeValue+'.jpg" name="bouton_version_malentendant_'+num[0].firstChild.nodeValue+'" border="0" alt="'+action_malentendants[0].firstChild.nodeValue+'" title="'+action_malentendants[0].firstChild.nodeValue+'" class="texte_alignement_vertical" /></li></ul><form id="talent_fiche_informations_divers" action="" method="post"><ul class="interactions_informations_divers"><li class="titre_interactions_informations_divers">'+lien_jeter_tomate[0].firstChild.nodeValue+'<img src="'+url[0].firstChild.nodeValue+'images/contenu/defaut/player/bouton_jeter_tomate_'+lang[0].firstChild.nodeValue+'.jpg" name="bouton_jeter_tomate_'+num[0].firstChild.nodeValue+'" border="0" alt="'+action_tomate[0].firstChild.nodeValue+'" title="'+action_tomate[0].firstChild.nodeValue+'" class="texte_alignement_vertical" /></a></li><li class="titre_interactions_informations_divers">'+lien_commentaires[0].firstChild.nodeValue+'<img src="'+url[0].firstChild.nodeValue+'images/contenu/defaut/player/bouton_commentaires_'+lang[0].firstChild.nodeValue+'.jpg" name="bouton_commentaires_'+num[0].firstChild.nodeValue+'" border="0" alt="'+action_commentaires[0].firstChild.nodeValue+'" title="'+action_commentaires[0].firstChild.nodeValue+'" class="texte_alignement_vertical" /></a></li><li class="titre_options_informations_divers"><span class="texte_blanc">'+texte_lien_permanent[0].firstChild.nodeValue+'</span> <input type="text" readonly="readonly" id="talent_fiche_informations_divers_lien_permanent" name="talent_fiche_informations_divers_lien_permanent" onclick="javascript: selectionner_tout_texte(\'talent_fiche_informations_divers_lien_permanent\');" value="'+lien_permanent[0].firstChild.nodeValue+'" class="options_informations_divers_champs" /></li><li class="titre_options_informations_divers"><span class="texte_blanc">'+texte_lien_exportable[0].firstChild.nodeValue+'</span> <input type="text" readonly="readonly" id="talent_fiche_informations_divers_lecteur_exportable" name="talent_fiche_informations_divers_lecteur_exportable" onclick="javascript: selectionner_tout_texte(\'talent_fiche_informations_divers_lecteur_exportable\');" value="'+lecteur_exportable[0].firstChild.nodeValue+'" class="options_informations_divers_champs" /></li></ul><ul class="statistiques_informations_divers"><li class="titre_statistiques_informations_divers">'+vues[0].firstChild.nodeValue+'<br />'+applaudissements[0].firstChild.nodeValue+'<br />'+standing_ovations[0].firstChild.nodeValue+'<br />'+tomates[0].firstChild.nodeValue+'<br />'+commentaires[0].firstChild.nodeValue+'<br />'+playlist[0].firstChild.nodeValue+'</li></ul></form><p class="clear_both">&nbsp;</p><h3 class="texte_formulaire"><a href="" onclick="savoir_menu(\'oeuvre_commentaires_'+num[0].firstChild.nodeValue+'\'); return false;" class="texte_gris"><b>'+commentaires[0].firstChild.nodeValue.toUpperCase()+'</b> '+texte_tous_commentaires[0].firstChild.nodeValue+'</a></h3><div id="oeuvre_commentaires_'+num[0].firstChild.nodeValue+'" style="width: 100%; display: none;" class="clear_both">'+liste_commentaires[0].firstChild.nodeValue+'</div><p class="clear_both">&nbsp;</p><h3 class="texte_formulaire"><b>'+texte_tags[0].firstChild.nodeValue+'</b></h3><p class="texte_formulaire">'+tags[0].firstChild.nodeValue+'</p><p>&nbsp;</p><h3 class="texte_droite">'+lien_suggerer_contenus[0].firstChild.nodeValue+'</h3><p>&nbsp;</p></div><div id="talent_fiche_player_oeuvre_bas"></div>';
	}
}

function selection_oeuvre_talent_battle(formulaire_a_verifier, texte_afficher_resultat, type_oeuvre, type_media, type_talent, type_sous_talent, id_oeuvre_selectionne, url_site, lang, pagination, voir, moun) {
	var formulaire_a_verifier=formulaire_a_verifier;
	var texte_afficher_resultat=texte_afficher_resultat;
	var type_oeuvre=type_oeuvre;
	var type_media=type_media;
	var type_talent=type_talent;
	var type_sous_talent=type_sous_talent;
	var id_oeuvre_selectionne=id_oeuvre_selectionne;
	var url_site=url_site;
	var lang=lang;
	var pagination=pagination;
	var voir=voir;
	var moun=moun;
	document.getElementById(texte_afficher_resultat).innerHTML="<p style=\"text-align: center;\"><img src=\""+url_site+"images/loader_ajax_rose.gif\" name=\"loader_ajax\" border=\"0\" /></p>";
	var XHR=new XHRConnection();
	XHR.appendData("formulaire", texte_afficher_resultat);
	XHR.appendData("formulaire2", formulaire_a_verifier);
	XHR.appendData("formulaire3", type_media);
	XHR.appendData("formulaire4", type_talent);
	XHR.appendData("formulaire5", type_sous_talent);
	XHR.appendData("type", type_oeuvre);
	XHR.appendData("media", document.getElementById(type_media).value);
	XHR.appendData("talent", document.getElementById(type_talent).value);
	XHR.appendData("sous_talent", document.getElementById(type_sous_talent).value);
	XHR.appendData("oeuvre_select", id_oeuvre_selectionne);
	XHR.appendData("moun", moun);
	XHR.appendData("pagination", pagination);
	XHR.appendData("voir", voir);
	XHR.appendData("url", url_site);
	XHR.appendData("lang", lang);
	XHR.sendAndLoad(""+url_site+"includes/include_verification_afficher_selection_oeuvre_talent_battle.php", "GET", afficher_verification_selection_oeuvre_talent_battle);
}

var afficher_verification_selection_oeuvre_talent_battle = function(obj) {
	var XMLDoc=obj.responseXML;
	var texte_affichage_resultat=XMLDoc.getElementsByTagName("formulaire");
	var balise_affichage=document.getElementById(texte_affichage_resultat[0].firstChild.nodeValue);
	balise_affichage.innerHTML='';
	var formulaire_a_verifier=XMLDoc.getElementsByTagName("formulaire2");
	var champs_media=XMLDoc.getElementsByTagName("formulaire3");
	var champs_talent=XMLDoc.getElementsByTagName("formulaire4");
	var champs_sous_talent=XMLDoc.getElementsByTagName("formulaire5");
	var oeuvre_select=XMLDoc.getElementsByTagName("oeuvre_select");
	var moun_exclu=XMLDoc.getElementsByTagName("moun_exclu");
	var oeuvre_type=XMLDoc.getElementsByTagName("oeuvre_type");
	var lang=XMLDoc.getElementsByTagName("lang");
	var url_page=XMLDoc.getElementsByTagName("url_page");
	var pagination=XMLDoc.getElementsByTagName("pagination");
	var voir=XMLDoc.getElementsByTagName("voir");
	var texte_precedent=XMLDoc.getElementsByTagName("texte_precedent");
	var texte_suivant=XMLDoc.getElementsByTagName("texte_suivant");
	var total=XMLDoc.getElementsByTagName("total");
	var oeuvre=XMLDoc.getElementsByTagName("oeuvres");
	var texte_pagination="<p style=\"clear: both; margin: 10px 4px; padding: 0px; text-align: right;\">";
	if (pagination[0].firstChild.nodeValue>=voir[0].firstChild.nodeValue) {
		var pagination_precedente=pagination[0].firstChild.nodeValue-voir[0].firstChild.nodeValue;
		texte_pagination +="<a class=\"texte_noir\" href=\"\" onclick=\"selection_oeuvre_talent_battle('"+formulaire_a_verifier[0].firstChild.nodeValue+"', '"+texte_affichage_resultat[0].firstChild.nodeValue+"', '"+oeuvre_type[0].firstChild.nodeValue+"', '"+champs_media[0].firstChild.nodeValue+"', '"+champs_talent[0].firstChild.nodeValue+"', '"+champs_sous_talent[0].firstChild.nodeValue+"', '"+oeuvre_select[0].firstChild.nodeValue+"', '"+url_page[0].firstChild.nodeValue+"', '"+lang[0].firstChild.nodeValue+"', '"+pagination_precedente+"', '"+voir[0].firstChild.nodeValue+"', '"+moun_exclu[0].firstChild.nodeValue+"'); return false;\">"+texte_precedent[0].firstChild.nodeValue+"</a> | ";
	}else{
		texte_pagination +=""+texte_precedent[0].firstChild.nodeValue+" | ";
	}
	
	var nb_page=Math.floor(total[0].firstChild.nodeValue/voir[0].firstChild.nodeValue);
	if ((total[0].firstChild.nodeValue/voir[0].firstChild.nodeValue)==nb_page) {
		nb_page--;
	}
	nb_page++;
	for (var indices_pages=1;indices_pages<=nb_page;indices_pages++) {
		var numero_pagination=(indices_pages-1)*voir[0].firstChild.nodeValue;
		if (pagination[0].firstChild.nodeValue==numero_pagination) {
			var texte_gras_pagination_ouvert="<b>";
			var texte_gras_pagination_ferme="</b>";
		}else{
			var texte_gras_pagination_ouvert="";
			var texte_gras_pagination_ferme="";
		}
		texte_pagination +=" <a class=\"texte_noir\" href=\"\" onclick=\"selection_oeuvre_talent_battle('"+formulaire_a_verifier[0].firstChild.nodeValue+"', '"+texte_affichage_resultat[0].firstChild.nodeValue+"', '"+oeuvre_type[0].firstChild.nodeValue+"', '"+champs_media[0].firstChild.nodeValue+"', '"+champs_talent[0].firstChild.nodeValue+"', '"+champs_sous_talent[0].firstChild.nodeValue+"', '"+oeuvre_select[0].firstChild.nodeValue+"', '"+url_page[0].firstChild.nodeValue+"', '"+lang[0].firstChild.nodeValue+"', '"+numero_pagination+"', '"+voir[0].firstChild.nodeValue+"', '"+moun_exclu[0].firstChild.nodeValue+"'); return false;\">"+texte_gras_pagination_ouvert+""+indices_pages+""+texte_gras_pagination_ferme+"</a> ";
	}
	
	if ((total[0].firstChild.nodeValue-voir[0].firstChild.nodeValue)>pagination[0].firstChild.nodeValue) {
		var pagination_suivante=pagination[0].firstChild.nodeValue+voir[0].firstChild.nodeValue;
		texte_pagination +=" | <a class=\"texte_noir\" href=\"\" onclick=\"selection_oeuvre_talent_battle('"+formulaire_a_verifier[0].firstChild.nodeValue+"', '"+texte_affichage_resultat[0].firstChild.nodeValue+"', '"+oeuvre_type[0].firstChild.nodeValue+"', '"+champs_media[0].firstChild.nodeValue+"', '"+champs_talent[0].firstChild.nodeValue+"', '"+champs_sous_talent[0].firstChild.nodeValue+"', '"+oeuvre_select[0].firstChild.nodeValue+"', '"+url_page[0].firstChild.nodeValue+"', '"+lang[0].firstChild.nodeValue+"', '"+pagination_suivante+"', '"+voir[0].firstChild.nodeValue+"', '"+moun_exclu[0].firstChild.nodeValue+"'); return false;\">"+texte_suivant[0].firstChild.nodeValue+"</a>";			
	}else{
		texte_pagination +=" | "+texte_suivant[0].firstChild.nodeValue+"";
	}
	
	texte_pagination +="</p>";
	balise_affichage.innerHTML=''+texte_pagination+'';
	for (var i=0;i<oeuvre.length;i++) {
		var num=oeuvre[i].getElementsByTagName("num");
		var titre=oeuvre[i].getElementsByTagName("titre");
		var oeuvre_extension_tag=oeuvre[i].getElementsByTagName("oeuvre_extension_tag");
		var num_auteur=oeuvre[i].getElementsByTagName("moun");
		var auteur=oeuvre[i].getElementsByTagName("nom");
		var type_auteur=oeuvre[i].getElementsByTagName("type_moun");
		var duree=oeuvre[i].getElementsByTagName("duree");
		var oeuvre_url=oeuvre[i].getElementsByTagName("oeuvre_url");
		var oeuvre_mise_en_avant=oeuvre[i].getElementsByTagName("oeuvre_mise_en_avant");
		var oeuvre_fichier=oeuvre[i].getElementsByTagName("oeuvre_fichier");
		var oeuvre_fichier_sans_extension=oeuvre[i].getElementsByTagName("oeuvre_fichier_sans_extension");
		if ((oeuvre_extension_tag[0].firstChild.nodeValue==2) || (oeuvre_extension_tag[0].firstChild.nodeValue==4)) {
			var fichier_source=""+url_page[0].firstChild.nodeValue+"photos/phototeque/oeuvres/miniature/accueil/0_image_defaut_doc.jpg";
			var fichier_source_over="";
			if (oeuvre_extension_tag[0].firstChild.nodeValue==2) {
				var texte_fichier_type="<span style=\"color: #ff6600;\"><b>Fichier texte</b></span>";
				var texte_duree_oeuvre="&nbsp;";
			}
			if (oeuvre_extension_tag[0].firstChild.nodeValue==4) {
				var texte_fichier_type="<span style=\"color: #0066cc;\"><b>Fichier audio</b></span>";
				var texte_duree_oeuvre="[<b>"+duree[0].firstChild.nodeValue+"</b>]";
			}
		}else if (oeuvre_extension_tag[0].firstChild.nodeValue==3) {
			var fichier_source=""+url_page[0].firstChild.nodeValue+"photos/phototeque/oeuvres/miniature/accueil/"+oeuvre_fichier_sans_extension[0].firstChild.nodeValue+"_0.png";
			var fichier_source_over=" onmouseover=\"javascript: rollover_image_video('miniature_video_"+num[0].firstChild.nodeValue+"', '"+num[0].firstChild.nodeValue+"', 'photos/phototeque/oeuvres/miniature/accueil', '"+url_page[0].firstChild.nodeValue+"', '"+lang[0].firstChild.nodeValue+"');\" onmouseout=\"javascript: window.clearTimeout(Timer_rollover_image);\"";
			var texte_fichier_type="<span style=\"color: #000000;\"><b>Fichier vid&eacute;o</b></span>";
			var texte_duree_oeuvre="[<b>"+duree[0].firstChild.nodeValue+"</b>]";
		}else{
			var fichier_source=""+url_page[0].firstChild.nodeValue+"photos/phototeque/oeuvres/miniature/accueil/"+oeuvre_fichier[0].firstChild.nodeValue+"";
			var fichier_source_over="";
			var texte_fichier_type="<span style=\"color: #336600;\"><b>Fichier image</b></span>";
			var texte_duree_oeuvre="&nbsp;";
		}
		if (oeuvre_mise_en_avant[0].firstChild.nodeValue==1) {
			var texte_mise_en_avant="<p style=\"text-align: center; margin: 4px; padding: 0px;\"><img src=\""+url_page[0].firstChild.nodeValue+"admin/images/cms/icone_membre_acces_en_attente.gif\" name=\"mis_en_avant_"+num[0].firstChild.nodeValue+"\" alt=\"Oeuvre mis en avant (Bloc CNN)\" title=\"Oeuvre mis en avant (Bloc CNN)\" /></p>";
		}else{
			var texte_mise_en_avant="";
		}
		if (oeuvre_select[0].firstChild.nodeValue==num[0].firstChild.nodeValue) {
			var texte_oeuvre_select=" checked=\"checked\"";
		}else{
			var texte_oeuvre_select="";
		}
		balise_affichage.innerHTML +='<div id="oeuvre_'+num[0].firstChild.nodeValue+'" style="float: left; margin: 4px; padding: 0px; border: 1px solid #CCCCCC; width: 186px; height: 300px;"><p style="margin: 4px; padding: 0px; text-align: center; color: #ec2a7e;"><b>'+titre[0].firstChild.nodeValue+'</b></p><p style="text-align: center; margin: 4px; padding: 0px;"><img style="margin: 0px; padding: 0px;" name="miniature_video_'+num[0].firstChild.nodeValue+'"  id="miniature_video_'+num[0].firstChild.nodeValue+'" src="'+fichier_source+'" border="0" alt="'+titre[0].firstChild.nodeValue+'" title="'+titre[0].firstChild.nodeValue+'"'+fichier_source_over+' /></p>'+texte_mise_en_avant+'<p style="margin: 4px; padding: 0px; text-align: center; color: #ec2a7e;"><b>'+auteur[0].firstChild.nodeValue+'</b><br />'+texte_fichier_type+'</p><p style="text-align: center; margin: 4px; padding: 0px;">&nbsp;</p><p style="text-align: center; margin: 4px; padding: 0px;"><input type="radio" name="id_oeuvre" value="'+num[0].firstChild.nodeValue+'" style="vertical-align: middle;"'+texte_oeuvre_select+'> &nbsp;S&eacute;lectionner</p>';
	}
	balise_affichage.innerHTML +=''+texte_pagination+'';
}

function changer_sous_rubrique_talent_battle(formulaire_a_verifier, champs_type_media, talent_parent, nom_select_retour, texte_affichage_resultat, div_affichage_oeuvre, id_oeuvre_selectione, type_oeuvre, texte_tous, lang, url_site, url_page, pagination, voir, moun) {
	var formulaire_a_verifier=formulaire_a_verifier;
	var champs_type_media=champs_type_media;
	var talent_parent=talent_parent;
	var nom_select_retour=nom_select_retour;
	var texte_affichage_resultat=texte_affichage_resultat;
	var div_affichage_oeuvre=div_affichage_oeuvre;
	var id_oeuvre_selectione=id_oeuvre_selectione;
	var type_oeuvre=type_oeuvre;
	var texte_tous=texte_tous;
	var lang=lang;
	var url_page=url_page;
	var url_site=url_site;
	var pagination=pagination;
	var voir=voir;
	var moun=moun;
	selection_oeuvre_talent_battle(formulaire_a_verifier, div_affichage_oeuvre, type_oeuvre, champs_type_media, talent_parent, nom_select_retour, id_oeuvre_selectione, url_site, lang, pagination, voir, moun);
	var XHR=new XHRConnection();
	XHR.appendData("id_talent", document.getElementById(talent_parent).value);
	XHR.appendData("nom_select_retour", nom_select_retour);
	XHR.appendData("texte_tous", texte_tous);
	XHR.appendData("lang", lang);
	XHR.appendData("formulaire", texte_affichage_resultat);
	XHR.sendAndLoad(""+url_site+"includes/include_verification_sous_rubriques_talent2.php", "GET", afficher_verification_sous_rubriques_talent_defaut);
}

function afficher_menu_deroulant_talent_battle_talents(div_a_afficher, champs_texte_retour, div_afficher_texte, champs_cache_retour, lang, url_site) {
	var div_a_afficher=div_a_afficher;
	var champs_texte_retour=champs_texte_retour;
	var champs_cache_retour=champs_cache_retour;
	var div_afficher_texte=div_afficher_texte;
	var lang=lang;
	var url_site=url_site;
	document.getElementById(champs_texte_retour).blur();
	document.getElementById(div_a_afficher).innerHTML="<p class=\"texte_centre\"><img src=\""+url_site+"images/loader_ajax_rose.gif\" name=\"loader_ajax\" border=\"0\" /></p>";
	if (document.getElementById(div_a_afficher).style.display=="") {
		document.getElementById(div_a_afficher).style.display="none";
	}else{
		document.getElementById(div_a_afficher).style.display="";
	}
	var XHR=new XHRConnection();
	XHR.appendData("talent", document.getElementById(champs_cache_retour).value);
	XHR.appendData("formulaire", div_a_afficher);
	XHR.appendData("formulaire2", champs_texte_retour);
	XHR.appendData("formulaire3", champs_cache_retour);
	XHR.appendData("formulaire4", div_afficher_texte);
	XHR.appendData("url", url_site);
	XHR.appendData("lang", lang);
	XHR.sendAndLoad(""+url_site+"includes/include_verification_talent_battle_talents.php", "GET", afficher_verification_menu_deroulant_talent_battle_talents);
}

var afficher_verification_menu_deroulant_talent_battle_talents = function(obj) {
	var XMLDoc=obj.responseXML;
	var texte_affichage_resultat=XMLDoc.getElementsByTagName("formulaire");
	var balise_affichage=document.getElementById(texte_affichage_resultat[0].firstChild.nodeValue);
	balise_affichage.innerHTML='';
	var texte_affichage_resultat2=XMLDoc.getElementsByTagName("formulaire2");
	var balise_affichage2=document.getElementById(texte_affichage_resultat2[0].firstChild.nodeValue);
	var texte_affichage_resultat3=XMLDoc.getElementsByTagName("formulaire3");
	var balise_affichage3=document.getElementById(texte_affichage_resultat3[0].firstChild.nodeValue);
	var texte_affichage_resultat4=XMLDoc.getElementsByTagName("formulaire4");
	var balise_affichage4=document.getElementById(texte_affichage_resultat4[0].firstChild.nodeValue);
	var talent=XMLDoc.getElementsByTagName("talent");
	var oeuvre_talent=XMLDoc.getElementsByTagName("oeuvre_talent");
	var lang=XMLDoc.getElementsByTagName("lang");
	var url=XMLDoc.getElementsByTagName("url");
	for (var i=0;i<oeuvre_talent.length;i++) {
		var num=oeuvre_talent[i].getElementsByTagName("num");
		var nom=oeuvre_talent[i].getElementsByTagName("nom");
		if (num[0].firstChild.nodeValue==talent[0].firstChild.nodeValue) {
			texte_selectionne_debut="<b>";
			texte_selectionne_fin="</b>";
		}else{
			texte_selectionne_debut="";
			texte_selectionne_fin="";
		}
		balise_affichage.innerHTML +='<p class="texte_rose2"><a href="#" onclick="afficher_menu_deroulant_talent_battle_talents_selection(\''+texte_affichage_resultat[0].firstChild.nodeValue+'\', \''+texte_affichage_resultat2[0].firstChild.nodeValue+'\', \''+texte_affichage_resultat4[0].firstChild.nodeValue+'\', \''+texte_affichage_resultat3[0].firstChild.nodeValue+'\', \''+num[0].firstChild.nodeValue+'\', \''+nom[0].firstChild.nodeValue+'\', \''+lang[0].firstChild.nodeValue+'\', \''+url[0].firstChild.nodeValue+'\'); return false;" class="texte_rose2">'+texte_selectionne_debut+''+nom[0].firstChild.nodeValue+''+texte_selectionne_fin+'</a></p>';
	}
}

function afficher_menu_deroulant_talent_battle_talents_selection(div_a_afficher, champs_texte_retour, div_afficher_texte, champs_cache_retour, num_talent, nom_talent, lang, url_site) {
	var div_a_afficher=div_a_afficher;
	var champs_texte_retour=champs_texte_retour;
	var div_afficher_texte=div_afficher_texte;
	var champs_cache_retour=champs_cache_retour;
	var num_talent=num_talent;
	var nom_talent=nom_talent;
	var lang=lang;
	var url_site=url_site;
	type_media_oeuvre=num_talent;
	document.getElementById(div_a_afficher).style.display="none";
	document.getElementById(div_a_afficher).innerHTML="";
	document.getElementById(champs_texte_retour).value=nom_talent;
	document.getElementById(champs_cache_retour).value=num_talent;
	afficher_zapping_talent_battles('1', '1', champs_cache_retour, div_afficher_texte, url_site, lang);
}

function afficher_zapping_talent_battles(type_oeuvre, battle_mis_en_avant, champs_cache_retour, div_afficher_texte, url_site, lang) {
	var type_oeuvre=type_oeuvre;
	var battle_mis_en_avant=battle_mis_en_avant;
	var champs_cache_retour=champs_cache_retour;
	var div_afficher_texte=div_afficher_texte;
	var url_site=url_site;
	var lang=lang;
	var XHR=new XHRConnection();
	XHR.appendData("talent", document.getElementById(champs_cache_retour).value);
	XHR.appendData("formulaire", div_afficher_texte);
	XHR.appendData("type", type_oeuvre);
	XHR.appendData("battle_mis_en_avant", battle_mis_en_avant);
	XHR.appendData("url", url_site);
	XHR.appendData("lang", lang);
	XHR.sendAndLoad(""+url_site+"includes/include_verification_talent_battle_zapping.php", "GET", afficher_verification_zapping_talent_battles);
}

var afficher_verification_zapping_talent_battles = function(obj) {
	var XMLDoc=obj.responseXML;
	var texte_affichage_resultat=XMLDoc.getElementsByTagName("formulaire");
	var balise_affichage=document.getElementById(texte_affichage_resultat[0].firstChild.nodeValue);
	balise_affichage.innerHTML='';
	var battle_talent=XMLDoc.getElementsByTagName("battle_talent");
	var lang=XMLDoc.getElementsByTagName("lang");
	var url=XMLDoc.getElementsByTagName("url");
	for (var i=0;i<battle_talent.length;i++) {
		var num=battle_talent[i].getElementsByTagName("num");
		var oeuvre=battle_talent[i].getElementsByTagName("oeuvre");
		var nom_oeuvre=battle_talent[i].getElementsByTagName("nom_oeuvre");
		var artiste=battle_talent[i].getElementsByTagName("artiste");
		var oeuvre_extension_tag=battle_talent[i].getElementsByTagName("oeuvre_extension_tag");
		var oeuvre_fichier_sans_extension=battle_talent[i].getElementsByTagName("oeuvre_fichier_sans_extension");
		var fichier=battle_talent[i].getElementsByTagName("fichier");
		var texte_vues=battle_talent[i].getElementsByTagName("texte_vues");
		var nom_talent=battle_talent[i].getElementsByTagName("nom_talent");
		var oeuvre_defie=battle_talent[i].getElementsByTagName("oeuvre_defie");
		var nom_oeuvre_defie=battle_talent[i].getElementsByTagName("nom_oeuvre_defie");
		var artiste_defie=battle_talent[i].getElementsByTagName("artiste_defie");
		var oeuvre_extension_tag_defie=battle_talent[i].getElementsByTagName("oeuvre_extension_tag_defie");
		var oeuvre_fichier_sans_extension_defie=battle_talent[i].getElementsByTagName("oeuvre_fichier_sans_extension_defie");
		var fichier_defie=battle_talent[i].getElementsByTagName("fichier_defie");
		var texte_vues_defie=battle_talent[i].getElementsByTagName("texte_vues_defie");
		var nom_talent_defie=battle_talent[i].getElementsByTagName("nom_talent_defie");
		var texte_parier=battle_talent[i].getElementsByTagName("texte_parier");
		//Membre défieur
		if ((oeuvre_extension_tag[0].firstChild.nodeValue==2) || (oeuvre_extension_tag[0].firstChild.nodeValue==4)) {
			var fichier_source="photos/phototeque/oeuvres/miniature/accueil/0_image_defaut_doc.jpg";
			var fichier_source_over=" onmouseover=\"javascript: document.getElementById('battle_photo_oeuvre_"+oeuvre[0].firstChild.nodeValue+"').style.border='2px solid #ec2a7e';\" onmouseout=\"javascript: document.getElementById('battle_photo_oeuvre_"+oeuvre[0].firstChild.nodeValue+"').style.border='2px solid #dedede';\"";
		}else if (oeuvre_extension_tag[0].firstChild.nodeValue==3) {
			var fichier_source="photos/phototeque/oeuvres/miniature/accueil/"+oeuvre_fichier_sans_extension[0].firstChild.nodeValue+"_0.png";
			var fichier_source_over=" onmouseover=\"document.getElementById('battle_photo_oeuvre_"+oeuvre[0].firstChild.nodeValue+"').style.border='2px solid #ec2a7e'; rollover_image_video('battle_photo_oeuvre_"+oeuvre[0].firstChild.nodeValue+"', '"+oeuvre[0].firstChild.nodeValue+"', 'photos/phototeque/oeuvres/miniature/accueil', '"+url[0].firstChild.nodeValue+"', '"+lang[0].firstChild.nodeValue+"');\" onmouseout=\"document.getElementById('battle_photo_oeuvre_"+oeuvre[0].firstChild.nodeValue+"').style.border='2px solid #dedede'; window.clearTimeout(Timer_rollover_image);\"";
		}else{
			var fichier_source="photos/phototeque/oeuvres/miniature/accueil/"+fichier[0].firstChild.nodeValue+"";
			var fichier_source_over="";
		}
		if (nom_oeuvre[0].firstChild.nodeValue.length>150) {
			var nom_membre_oeuvres_securite=""+left(decode_ascii(nom_oeuvre[0].firstChild.nodeValue), 0, 150)+" ...";
		}else{
			var nom_membre_oeuvres_securite=nom_oeuvre[0].firstChild.nodeValue;
		}
		if (artiste[0].firstChild.nodeValue.length>12) {
			var nom_artiste_oeuvres_securite=""+left(decode_ascii(artiste[0].firstChild.nodeValue), 0, 12)+" ...";
		}else{
			var nom_artiste_oeuvres_securite=artiste[0].firstChild.nodeValue;
		}
		//Membre défié
		if ((oeuvre_extension_tag_defie[0].firstChild.nodeValue==2) || (oeuvre_extension_tag_defie[0].firstChild.nodeValue==4)) {
			var fichier_source_defie="photos/phototeque/oeuvres/miniature/accueil/0_image_defaut_doc.jpg";
			var fichier_source_over_defie=" onmouseover=\"javascript: document.getElementById('battle_photo_oeuvre_defie_"+oeuvre_defie[0].firstChild.nodeValue+"').style.border='2px solid #ec2a7e';\" onmouseout=\"javascript: document.getElementById('battle_photo_oeuvre_defie_"+oeuvre_defie[0].firstChild.nodeValue+"').style.border='2px solid #dedede';\"";
		}else if (oeuvre_extension_tag_defie[0].firstChild.nodeValue==3) {
			var fichier_source_defie="photos/phototeque/oeuvres/miniature/accueil/"+oeuvre_fichier_sans_extension_defie[0].firstChild.nodeValue+"_0.png";
			var fichier_source_over_defie=" onmouseover=\"document.getElementById('battle_photo_oeuvre_defie_"+oeuvre_defie[0].firstChild.nodeValue+"').style.border='2px solid #ec2a7e'; rollover_image_video('battle_photo_oeuvre_defie_"+oeuvre_defie[0].firstChild.nodeValue+"', '"+oeuvre_defie[0].firstChild.nodeValue+"', 'photos/phototeque/oeuvres/miniature/accueil', '"+url[0].firstChild.nodeValue+"', '"+lang[0].firstChild.nodeValue+"');\" onmouseout=\"document.getElementById('battle_photo_oeuvre_defie_"+oeuvre_defie[0].firstChild.nodeValue+"').style.border='2px solid #dedede'; window.clearTimeout(Timer_rollover_image);\"";
		}else{
			var fichier_source_defie="photos/phototeque/oeuvres/miniature/accueil/"+fichier_defie[0].firstChild.nodeValue+"";
			var fichier_source_over_defie="";
		}
		if (nom_oeuvre_defie[0].firstChild.nodeValue.length>150) {
			var nom_membre_oeuvres_securite_defie=""+left(decode_ascii(nom_oeuvre_defie[0].firstChild.nodeValue), 0, 150)+" ...";
		}else{
			var nom_membre_oeuvres_securite_defie=nom_oeuvre_defie[0].firstChild.nodeValue;
		}
		if (artiste_defie[0].firstChild.nodeValue.length>12) {
			var nom_artiste_oeuvres_securite_defie=""+left(decode_ascii(artiste_defie[0].firstChild.nodeValue), 0, 12)+" ...";
		}else{
			var nom_artiste_oeuvres_securite_defie=artiste_defie[0].firstChild.nodeValue;
		}
		balise_affichage.innerHTML +='<ul class="talent_battle_versus"><li class="talent_a_ma_gauche"><h2 class="clear_both"><span class="texte_rose2"><b>'+nom_talent[0].firstChild.nodeValue+'</b></span></h2><a href="'+url[0].firstChild.nodeValue+'talent-battle/defaut.php?id=2&amp;kombat='+num[0].firstChild.nodeValue+'&amp;view='+oeuvre[0].firstChild.nodeValue+'" class="texte_blanc"><img src="'+url[0].firstChild.nodeValue+''+fichier_source+'" id="battle_photo_oeuvre_'+oeuvre[0].firstChild.nodeValue+'" name="battle_photo_oeuvre_'+oeuvre[0].firstChild.nodeValue+'"'+fichier_source_over+' border="0" alt="'+nom_oeuvre[0].firstChild.nodeValue+'" title="'+nom_oeuvre[0].firstChild.nodeValue+'" /></a> <a href="'+url[0].firstChild.nodeValue+'talent-battle/defaut.php?id=2&amp;kombat='+num[0].firstChild.nodeValue+'&amp;view='+oeuvre[0].firstChild.nodeValue+'" class="texte_gris"><b>'+nom_membre_oeuvres_securite+'</b></a><h2 class="parier_a_ma_gauche"><a href="'+url[0].firstChild.nodeValue+'talent-battle/defaut.php?id=2&amp;kombat='+num[0].firstChild.nodeValue+'&amp;view='+oeuvre[0].firstChild.nodeValue+'" class="texte_gris"><b>'+texte_parier[0].firstChild.nodeValue+'</b></a></h2><h2><a href="'+url[0].firstChild.nodeValue+''+artiste[0].firstChild.nodeValue+'" title="'+artiste[0].firstChild.nodeValue+'" class="texte_gris"><b>'+nom_artiste_oeuvres_securite+'</b></a> &nbsp; '+texte_vues[0].firstChild.nodeValue+'</h2></li><li class="talent_a_ma_droite"><h2 class="clear_both"><span class="texte_rose2"><b>'+nom_talent_defie[0].firstChild.nodeValue+'</b></span></h2><a href="'+url[0].firstChild.nodeValue+'talent-battle/defaut.php?id=2&amp;kombat='+num[0].firstChild.nodeValue+'&amp;view='+oeuvre_defie[0].firstChild.nodeValue+'" class="texte_blanc"><img src="'+url[0].firstChild.nodeValue+''+fichier_source_defie+'" id="battle_photo_oeuvre_defie_'+oeuvre_defie[0].firstChild.nodeValue+'" name="battle_photo_oeuvre_defie_'+oeuvre_defie[0].firstChild.nodeValue+'"'+fichier_source_over_defie+' border="0" alt="'+nom_oeuvre_defie[0].firstChild.nodeValue+'" title="'+nom_oeuvre_defie[0].firstChild.nodeValue+'" /></a> <a href="'+url[0].firstChild.nodeValue+'talent-battle/defaut.php?id=2&amp;kombat='+num[0].firstChild.nodeValue+'&amp;view='+oeuvre_defie[0].firstChild.nodeValue+'" class="texte_gris"><b>'+nom_membre_oeuvres_securite_defie+'</b></a><h2 class="parier_a_ma_droite"><a href="'+url[0].firstChild.nodeValue+'talent-battle/defaut.php?id=2&amp;kombat='+num[0].firstChild.nodeValue+'&amp;view='+oeuvre_defie[0].firstChild.nodeValue+'" class="texte_gris"><b>'+texte_parier[0].firstChild.nodeValue+'</b></a></h2><h2><a href="'+url[0].firstChild.nodeValue+''+artiste_defie[0].firstChild.nodeValue+'" title="'+artiste_defie[0].firstChild.nodeValue+'" class="texte_gris"><b>'+nom_artiste_oeuvres_securite_defie+'</b></a> &nbsp; '+texte_vues_defie[0].firstChild.nodeValue+'</h2></li></ul>';
	}
	if (battle_talent.length<1) {
		balise_affichage.innerHTML='<p class="texte_centre"><img src="'+url[0].firstChild.nodeValue+'images/fond_pas_battle_en_cours.jpg" name="fond_pas_battle_en_cours" alt="" title="" border="0" /></p>';
	}
}

function statistique_publicites(pub, url_publicite, target, moun, rubrique, url_site, lang) {
	var pub=pub;
	var url_publicite=url_publicite;
	var target=target;
	var moun=moun;
	var rubrique=rubrique;
	var url_site=url_site;
	var lang=lang;
	var XHR=new XHRConnection();
	XHR.appendData("pub", pub);
	XHR.appendData("target", target);
	XHR.appendData("formulaire", url_publicite);
	XHR.appendData("moun", moun);
	XHR.appendData("rubrique", rubrique);
	XHR.appendData("url", url_site);
	XHR.appendData("lang", lang);
	XHR.sendAndLoad(""+url_site+"includes/include_verification_talent_publicites.php", "GET", afficher_verification_statistique_publicites);
}

var afficher_verification_statistique_publicites = function (obj) {
	var XMLDoc=obj.responseXML;
	var texte_affichage_resultat=XMLDoc.getElementsByTagName("formulaire");
	var pub=XMLDoc.getElementsByTagName("pub");
	var target=XMLDoc.getElementsByTagName("target");
	var moun=XMLDoc.getElementsByTagName("moun");
	var rubrique=XMLDoc.getElementsByTagName("rubrique");
	var lang=XMLDoc.getElementsByTagName("lang");
	var url=XMLDoc.getElementsByTagName("url");
	
	if (target[0].firstChild.nodeValue == 0)
		window.location.replace(""+texte_affichage_resultat[0].firstChild.nodeValue+"");
	else
		window.open(texte_affichage_resultat[0].firstChild.nodeValue);
}