var mtvnPlayers = [];
function mtvnPlayerLoaded( playerId ){
	mtvnPlayers[playerId]._onPlayerLoaded();
}
function MTVNPlayerController(id,onLoadFunctionName){
 	mtvnPlayers[id] = this;
  	this.onLoadFunctionName = onLoadFunctionName;
  	this.playerLoaded = false;
  	this.playerId = id;
  	this.player = null;

  	this._onPlayerLoaded = function(){
   		this.playerLoaded = true;
    	this.player = (navigator.appName.indexOf("Microsoft") != -1) ? window[this.playerId] : document[this.playerId];
    	var f = eval(onLoadFunctionName);
    	f(this);
  	}
}