/*##############################################################################################
########## JS DES FONCTIONS POUR FAIRE APPARAITRE LES INFOS A DROITE DU PLAYER ################### 
/*############################################################################################## */

 /*############################################################################################## */ 
 /* Fonction retournant l objet movie */
function thisMovie(movieName) {
    if(navigator.appName.indexOf("Microsoft") != -1) {                      
        return window[movieName];
    } else {                   
        return document[movieName];
    }
}
 /*############################################################################################## */ 
/* Fonction appelee sur le clic d une video se trouvant dans la section Nos autres videos */
function sendEvent(typ,prm) {
    thisMovie('mediaplayer').sendEvent(typ,prm);
}
 /*############################################################################################## */ 
function loadFile(fil,tit,lnk,img,fid) {
    thisMovie('mediaplayer').loadFile(fil,tit,lnk,img,fid);
}
 /*############################################################################################## */ 
var currentPosition;
var currentVolume;
function getUpdate(typ,pr1,pr2) {
    if(typ == "time") { currentPosition = pr1; }
    else if(typ == "volume") { currentVolume = pr1; }
    var id = document.getElementById(typ);
    id.innerHTML = typ+ ": "+Math.round(pr1);
    pr2 == undefined ? null: id.innerHTML += ", "+Math.round(pr2);
}
 /*############################################################################################## */ 
function itemData(obj) {  
    if (obj!=null) switchProduit(obj);      
}
