var currentPosition;
var currentVolume;

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


function sendEvent(typ,prm) {
thisMovie("flvplayer").sendEvent(typ,prm);
};


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) {
var nodes = "";
for(var i in obj) { 
	nodes += "<li>"+i+": "+obj[i]+"</li>"; 
}
document.getElementById("data").innerHTML = nodes;
};


function loadFileArray(fil) {
	thisMovie("flvplayer").loadFileArray(fil);
};


function hello(str){
	thisMovie("flvplayer").hello(str);
}

function callAllert(){
	alert('You have chose to alert me');  
}
