	var currentPlayer=null;
	var currentFile;
	var currentImage;
	var currentLanguage;
	
	function removeOldPlayer() {
		document.getElementById(currentPlayer).innerHTML = '<a href="javascript:;" onclick="createPlayer(\''+currentPlayer+'\', \''+currentFile+'\', \''+currentImage+'\', true, \''+currentLanguage+'\')"><img src="'+currentImage+'" border="0" alt="" /></a>';
	}
	
	function createPlayer(thePlace, theFile, theImage, go, theLanguage) {
		if (currentPlayer!=null) { removeOldPlayer(); }
	
		currentPlayer=thePlace;
		currentFile=theFile;
		currentImage=theImage;
		currentLanguage=theLanguage;

		

		var s = new SWFObject("/flash/controls/player4.5.swf?preventCache=" + new Date().valueOf(),"playerID","320","259","9.0.98");
		s.useExpressInstall('/flash/expressinstall.swf');
		s.addParam("allowfullscreen","true");
		s.addParam("allowscriptaccess","always");
		s.addParam('quality', 'high');
		s.addParam("wmode","opaque");
		s.addVariable("file",theFile);
		s.addVariable("image",theImage);
		s.addVariable('plugins', '/flash/controls/captions.swf,/flash/controls/yourlytics.swf');
		s.addVariable('captions.fontsize','18');
		s.addVariable("yourlytics.callback","/movie_log.php?w=ehd.org");
		if (go) { s.addVariable("autostart","true"); }
		if (theLanguage && theLanguage != 25) {
			s.addVariable('captions.file','http://'+location.host+'/movie-caption.xml.php?param=0+'+theLanguage+"+"+theFile);
			s.addVariable('captions.state','true');
		}
		else {
			s.addVariable('captions.file','http://'+location.host+'/movie-caption.xml.php?param=0+0+'+theFile);
			s.addVariable('captions.state','false');
		}
		s.write(thePlace);
		return false;
	}