function appelFlash(movieName) {

    if (navigator.appName.indexOf("Microsoft") != -1) {
		return window[movieName];
    }
    else {
	    return document[movieName];
    }
} 

function afficherPartage(cle){
	appelFlash("laVisionneuse_"+cle).afficherPartage();	
}

function afficherExport(cle){
	appelFlash("laVisionneuse_"+cle).afficherExport();	
}

function afficherPlaylist(cle){
	var xhr_object = null; 
	     
	if(window.XMLHttpRequest) // Firefox 
	  xhr_object = new XMLHttpRequest(); 
	else if(window.ActiveXObject) // Internet Explorer 
	  xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
	else { // XMLHttpRequest non supporté par le navigateur 
	  alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
	  return; 
	} 
	
	xhr_object.onreadystatechange = function() { 
	  if(xhr_object.readyState == 4){ 
	  	appelFlash("laVisionneuse_"+cle).afficherPlaylist();	 
	  }
    } 	
	xhr_object.open("GET", "ajax/new_visio/playlist.php?add="+cle, true); 
	
	xhr_object.send(); 
}

function selectRubrique(id){
	document.getElementById('search_rub').value=id;
	document.getElementById('listeRubrique').style.display='none';
	for(i=0; i<5; i++){
		document.getElementById('Rubrique'+i).style.fontWeight='normal';
	}
	document.getElementById('Rubrique'+id).style.fontWeight='bold';
}
