// some variables to save
var currentPosition;
var currentVolume;
var currentItem;

// these functions are caught by the JavascriptView object of the player.
function sendEvent(typ,prm) { thisMovie("vid").sendEvent(typ,prm); };

// These functions are caught by the feeder object of the player.
function loadFile(obj) { thisMovie("vid").loadFile(obj); };
function addItem(obj,idx) { thisMovie("vid").addItem(obj,idx); }
function removeItem(idx) { thisMovie("vid").removeItem(idx); }

// This is a javascript handler for the player and is always needed.
function thisMovie(movieName) {
	if(navigator.appName.indexOf("Microsoft") != -1) {
		return window[movieName];
	} else {
		return document[movieName];
	}
};
