<!-- Begin

// 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) { thisTrack("ply").sendEvent(typ,prm); };
	function getUpdate(typ,pr1,pr2,pid) {
		if(typ == "time") { currentPosition = pr1; }
		else if(typ == "volume") { currentVolume = pr1; }
		else if(typ == "item") { currentItem = pr1; setTimeout("getItemData(currentItem)",100); }
		var id = document.getElementById(typ);
		id.innerHTML = typ+ ": "+Math.round(pr1);
		pr2 == undefined ? null: id.innerHTML += ", "+Math.round(pr2);
		if(pid != "null") {
			document.getElementById("pid").innerHTML = "(received from the player with id <i>"+pid+"</i>)";
		}
	};

	// These functions are caught by the feeder object of the player.
	function loadFile(obj) { thisTrack("ply").loadFile(obj); };
	function addItem(obj,idx) { thisTrack("ply").addItem(obj,idx); }
	function removeItem(idx) { thisTrack("ply").removeItem(idx); }
	function getItemData(idx) {
		var obj = thisTrack("ply").itemData(idx);
		var nodes = "";
		for(var i in obj) { 
			nodes += "<li>"+i+": "+obj[i]+"</li>"; 
		}
		document.getElementById("data").innerHTML = nodes;
	};
    function playFile(obj) 
    { 
       // thisTrack("ply").loadFile(obj); 
       // sendEvent('playpause');
       
    };
	// This is a javascript handler for the player and is always needed.
	function thisTrack(TrackName) {
	    if(navigator.appName.indexOf("Microsoft") != -1) {
			return window[TrackName];
		} else {
			return document[TrackName];
		}
	};
	
function createPlayer(theFile) {
var s1 = new SWFObject("flash/player.swf","ply","100%","100%","7");
s1.addParam("allowfullscreen","true");
s1.addParam("allowscriptaccess","always");
s1.addParam("wmode","opaque");
s1.addParam("bgcolor","0x000000");
s1.addVariable("image","graphics/telly_440x330.jpg");
s1.addVariable("icons","false");
s1.addVariable("javascriptid","ply");
s1.addVariable("autostart","true");
s1.addVariable("smoothing","true");
s1.addVariable("volume","100");
s1.addVariable("enablejs","true");
s1.addVariable('link',theFile);
s1.addVariable("showdownload","true");
s1.addVariable("file",theFile);
s1.write("archive_videoplayer");
}

// End-->