// JavaScript Document
//_____________________________________________________________________________
var currentItem;

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


function loadFile(fil,tit,lnk,img,fid) {
	thisMovie("thePlayerId").loadFile(fil,tit,lnk,img,fid);
};


function getUpdate(typ,pr1,pr2,pid) {
	if(typ == "item") { currentItem = pr1; setTimeout("getItemData(currentItem)",100); }
};

function getItemData(idx) { 
	showUpdate("item: "+idx);
	window.frames['theIFrame'].showUpdate("item: "+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];
	}
}

function createPlayer() {
	var s1 = new SWFObject("mediaplayer/mediaplayer.swf","thePlayerId","0","0","7");
	s1.addParam("allowfullscreen","false");
	s1.addVariable("width","0");
	s1.addVariable("height","0");
	s1.addVariable("displayheight","0");
	s1.addVariable("file","mediaplayer/playlist_mp3.xml");
	s1.addVariable("linktarget","_blank");
	s1.addVariable("showicons","true");
	s1.addVariable("showeq","true");
	s1.addVariable("shuffle","false");
	s1.addVariable("autostart","true");
	s1.addVariable("repeat","true");
	s1.addVariable("volume","70");
	s1.addVariable("enablejs","true");
	s1.addVariable("javascriptid","thePlayerId"); 

	s1.write("placeholder");
}


function showUpdate(arg) {   
	document.getElementById("theText").innerHTML='player update: ['+arg+']'; 
}
<!-----------------------------------------------------------------------------


<!--innen a vezérlőframe jön:első része://-->


function SymError()
{
  return true;
}

window.onerror = SymError;

<!--innen a vezérlőframe jön:másodikrésze://-->




function showUpdate(arg) {   
	document.getElementById("theText").innerHTML='player update: ['+arg+']'; 
}
