	// these functions are caught by the JavascriptView object of the player.
	function sendEvent(movie,typ,prm) { thisMovie( movie ).sendEvent(typ,prm); };
	function getUpdate(typ,pr1,pr2,pid) {
		if ( pid == 'media_right' && typ == 'state' && pr1 == '2' ) {
			sendEvent( 'multi_media' , 'stop' );
		} else if ( pid == 'multi_media' && typ == 'state' && pr1 == '2' ) {
			sendEvent( 'media_right' , 'stop' );
		}
	};

	// These functions are caught by the feeder object of the player.
	//function loadFile(obj) { thisMovie("mpl").loadFile(obj); };
	//function addItem(obj,idx) { thisMovie("mpl").addItem(obj,idx); }
	//function removeItem(idx) { thisMovie("mpl").removeItem(idx); }
	/*
	function getItemData(idx) {
		var obj = thisMovie("mpl").itemData(idx);
		var nodes = "";
		for(var i in obj) { 
			nodes += "<li>"+i+": "+obj[i]+"</li>"; 
		}
		document.getElementById("data").innerHTML = nodes;
	};
	*/
	
	// 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];
		}
	};

