function makePlayer($id, $source, $type) {
	var $w, $h, $dw, $dh;
	
	switch ($type) {
		case "flv":
			$w	= '360';
			$h	= '270';
			$dw	= '360';
			$dh	= '270';
		break;
		default:
			$w	= '360';
			$h	= '70';
			$dw	= '360';
			$dh	= '50';
		break;
	}
	var	$so = new SWFObject('/embed/mediaplayer.swf','jscpl',$w,$h,'7.0.0');
	
	$so.addParam('allowscriptaccess','always');
	$so.addParam('allowfullscreen','false');
	
	$so.addVariable('width',$w);
	$so.addVariable('height',$h);
	
	$so.addVariable('displaywidth',$dw);
	$so.addVariable('displayheight',$dh);
	
	$so.addVariable('javascriptid','jscpl');
	$so.addVariable('enablejs','true');
	
	switch ($type) {
		case "flv":
		break;
		default:
			$so.addVariable('type','mp3');
			$so.addVariable('showeq','true');
		break;
	}
	
	$so.addVariable("autostart", "true");
	
	if ($source) {
		$so.addVariable('file', $source.href);
		$so.addVariable('title', $source.title);
		if ($source.name) {
			$so.addVariable('image', $source.name);
		}
	}
	
	$so.addVariable('showstop','true');
//	$so.addVariable('image','false');
	
	var $oldID	= false;
	
	if (_o("player")) {
		// remove old player
		$oldID	= _o("player").parentNode.id;
		_o("jscpl").sendEvent("PLAY","false");
		_o("player").parentNode.removeChild(_o("player"));
	}
	
	if ($oldID != ("block"+$id)) {
		$player		= document.createElement('DIV');
		$player.id	= "player";
		_o("block"+$id).appendChild($player);
		$so.write('player');
	}
	return false;
}