function journeeProgrammeTV(){
	document.location.href = 'programme.php?jour='+$F('journeeProgrammeTV');
}

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

function afficherVote(){
	appelFlash("laVisionneuse_"+main_video).afficherVote();	
}

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

function afficherPlaylist(){
	
   
   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_"+main_video).afficherPlaylist();	 
	  }
    } 	
	xhr_object.open("GET", "ajax/new_visio/playlist.php?add="+main_video, true); 
	
	xhr_object.send(); 
	
}

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

