{*{include file="$gentemplates/index_top_popup.tpl"}*}
	<!-- central part -->
		<h2>{$lang.cards.choose_a_song}</h2>
		<div class="ecards_song_table">
			{foreach item=item from=$songs key=key}
				<dl>
					<dd class="max_width">
					{if $item.file}
						{*<embed id="sound_{$key}" src="{$item.file}" loop=false autostart=false height="30" width="250" pluginspage="http://www.apple.com/ru/quicktime/download/">*}
						<span id="player{$key}" align="absmiddle">
							<script type="text/javascript">
								var fv = "file={$item.file}&autostart="+false+"&title={$item.name|escape}&lightcolor=0xD12627&repeat=true";
								{literal}var FO = {{/literal}
									movie:"{$site_root}/include/mp3player/mp3player.swf",width:"300",height:"20",majorversion:"7",build:"0",bgcolor:"#FFFFFF", flashvars:fv
								{literal}};{/literal}
								UFO.create(FO, "player{$key}");
							</script>
						</span>
					{else}
						{$lang.cards.admin.no_song}
					{/if}
					</dd>
					<dd class="min_width">
						<input type="radio" name="song_id" value="{$item.id}" id="song_{$item.id}" onclick="ChooseAct(this.value, '{$item.name_unslashed}','{$item.file}');">
					</dd>
					<dd class="norm_width"><label for="song_{$item.id}">{$item.name}</label></dd>
				</dl>
			{/foreach}
				<dl>
					<dd class="max_width"></dd>
					<dd class="min_width"></dd>
					<dd>
					<input type="submit" class="button" value="{$lang.button.choose}" onclick="javascript: $('#mask').hide(); $('.window').hide();">
					</dd>
				</dl>
		</div>
	<!-- /central part -->
{literal}
<script type="text/javascript">
var choosen = 0;
function ChooseAct(id_song, song_name, song_file) {
	parent.document.getElementById('id_song').value=id_song;
	parent.document.getElementById('song_span').innerHTML=song_name;
	choosen = 1;
	return;
}

</script>
{/literal}