var currentItem; var showFlag=false;

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


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


// 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(theFile) {
	var s2 = new SWFObject("http://www.zimoha.nl/mp3player/mp3player.swf", "thePlayerId", "200", "53", "7");
	s2.addVariable("file","http://www.zimoha.nl/mp3player/playlist.xml");
	s2.addVariable("backcolor","0x00000");
	s2.addVariable("frontcolor","0xa49d88");
	s2.addVariable("lightcolor","0xFFFFFF");
	s2.addVariable("displayheight","0");
	s2.addVariable('autostart','false');
	s2.addVariable('repeat','list');
	s2.addVariable('autoscroll','true');
	s2.addVariable("enablejs","true");
	s2.addVariable("javascriptid","thePlayerId"); 

	s2.write("placeholder");
}

function createWindow(adr) { 
  showFlag=true;
  sendEvent("stop");
  document.getElementById("placeholder").style.visibility="visible";
  var pWin=window.open(adr, "playerWin", "width=257,height=150,left=100,top=7,resizable=yes");
  pWin.focus();
}
