var Nexto = {

	// Selects menu element based on a.href attribute nad script name
	selectMenuElement: function(e)
	{
		if (typeof(e)=="string")
		{
			e = document.getElementById(e);
			if (!e) return;
		}
		if (e.tagName=="A" && e.getAttribute("href")==document.location.pathname)
			e.style.fontWeight="bold";
		var l = e.childNodes.length;
		for (var i=0; i<l; i++)
			Nexto.selectMenuElement(e.childNodes[i]);
	}

}

function audioPlayer(id, width, height, path)
{
	var so = new SWFObject("/swf/nexto_mp3player.swf", "audio_file_player_swf_" + id, width, height, "8");
	so.addParam("quality", "best");
	so.addParam("wmode", "transparent");
	so.addParam("flashVars", "themeColor='0x5382A5'&amp;trackPath=" + path + "&amp;isStream=true&amp;currentId=" + id);
	so.write("audio_file_player_" + id);
}

