function thisMovie(movieName) {
if(navigator.appName.indexOf("Microsoft") != -1) {
return parent.window[movieName];
} else {
return parent.window.document[movieName];
}
};
function sendEvent(typ,prm) {
thisMovie("mediaplayer").sendEvent(typ,prm);
};
function loadFile(fil) {
thisMovie("mediaplayer").loadFile(fil);
};
function getUpdate(typ,pr1,pr2) {
var id = document.getElementById(typ);
id.innerHTML = typ+ ": "+Math.round(pr1);
pr2 == undefined ? null: id.innerHTML += ", "+Math.round(pr2);
};