{config_load file=$configfile section="song"}
{if !$songVoted && $tm_ratesongs }
<script language="javascript" type="text/javascript">
imon=new Image();
imon.src='modules/{$module_name}/themes/{$tm_theme}/images/star_on.gif';
imoff=new Image();
imoff.src='modules/{$module_name}/themes/{$tm_theme}/images/star_off.gif';
{literal}
function voteSong(rate){{/literal}
document.voteForm.rate.value=rate;
{if !$tm_easyURL}
document.voteForm.action='modules.php?name={$module_name}&op=voteSong&idartist={$id_artist}&idalbum={$id_album}&idsong={$id_song}';
{elseif !$tm_easyURLtype}
document.voteForm.action='{$tm_BaseURL}/music.php/artist/{$song->artistname|urlencode}/album/{$song->albumname|urlencode}/voteSong/{$song->title|urlencode}';
{elseif $tm_easyURLtype==1}
document.voteForm.action='{$tm_BaseURL}/music.php/artist/{$id_artist}/album/{$id_album}/voteSong/{$id_song}';
{elseif $tm_easyURLtype==2}
document.voteForm.action='voteSong{$id_artist}_{$id_album}_{$id_song}.html';
{/if}
document.voteForm.submit();
{literal}}
</script>{/literal}
{/if}
<div id="tm_module">
<div id="tm_title">{$song->title} ({$song->artistname})</div>
<div id="tm_photo">
{if $albumcover_url!=""}
{if $albumcover_thumburl!=""}
<img name="foto" src="{$albumcover_thumburl}" title="{$song->title}">
{else}
<img name="foto" src="{$albumcover_url}" width="200" title="{$song->title}">
{/if}
{/if}
<table border="0">
<tr>
<td align="left" scope="col"><strong>{#Number#}:</strong></td>
<td scope="col">{$song->number}</td>
</tr>
<tr>
<td align="left"><strong>{#Title#}:</strong></td>
<td>{$song->title}</td>
</tr>
<tr>
<td align="left"><strong>{#Album#}:</strong></td>
<td>{$album_url}{$album->title}{if $album_url!=""}</a>{/if}</td>
</tr>
<tr>
<td align="left"><strong>{#Artist#}:</strong></td>
<td>{$artist_url}{$artist->name}{if $artist_url!=""}</a>{/if}</td>
</tr>
<tr>
<td align="left"><strong>{#Genre#}:</strong></td>
<td>{$song->genrename}</td>
</tr>
{foreach item="field" key="num" from=$custom_fields}
<tr>
<td><strong>{$field->description}:</strong></td>
<td>{$genericView->printCustomField($field)}</td>
</tr>
{/foreach}
<tr>
<td> </td>
<td> </td>
</tr>
</table>
{$genericView->printPlayer($song,"slim",$module_name,$tm_config)}
{if $tm_ratesongs}
<table>
<tr>
<td>
{if $message!=""}
<font color="red">{$message}</font><br>
{/if}
{#Average_rate#}:<br>
{$rate_code}<br>
{if !$songVoted} {#Rate_this_song#}:<br>
<a href="javascript:voteSong(1)" onMouseOver="focusStar(1,imon)" onMouseOut="blurStar(1,imoff)"><img name="star1" src="modules/{$module_name}/themes/{$tm_theme}/images/star_off.gif" border="0"></a><a href="javascript:voteSong(2)" onMouseOver="focusStar(2,imon)" onMouseOut="blurStar(2,imoff)"><img name="star2" src="modules/{$module_name}/themes/{$tm_theme}/images/star_off.gif" border="0"></a><a href="javascript:voteSong(3)" onMouseOver="focusStar(3,imon)" onMouseOut="blurStar(3,imoff)"><img name="star3" src="modules/{$module_name}/themes/{$tm_theme}/images/star_off.gif" border="0"></a><a href="javascript:voteSong(4)" onMouseOver="focusStar(4,imon)" onMouseOut="blurStar(4,imoff)"><img name="star4" src="modules/{$module_name}/themes/{$tm_theme}/images/star_off.gif" border="0"></a><a href="javascript:voteSong(5)" onMouseOver="focusStar(5,imon)" onMouseOut="blurStar(5,imoff)"><img name="star5" src="modules/{$module_name}/themes/{$tm_theme}/images/star_off.gif" border="0"></a>
{/if}
</td>
</tr>
</table>
{/if}
</div>
<div id="tm_right">
{$song->lyrics}
</div>
</div>
{* RELATED SONGS *}
{if count($related_songs)>0}
<div id="tm_module">
<div id="tm_title2">{#Related_Songs#}:</div>
<table width="100%" border="0" cellpadding="2">
{foreach item="song" key="num" from=$related_songs}
<tr>
<td><a href="modules.php?name={$module_name}&op=song&idartist={$song->idartist}&idalbum={$song->idalbum}&idsong={$song->id}">{$song->title}</a></td>
<td>
{$genericView->printPlayer($song,"button",$module_name,$tm_config)}
</td>
</tr>
{/foreach}
</table>
</div>
{/if}
{if true}
<div id="tm_module">
<b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
<div id="tm_title2">{#Related_Links#}:</div>
<script type="text/javascript"><!--
google_ad_client = "pub-2213784782027146";
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = "468x15_0ads_al_s";
google_ad_channel ="7208026029";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "FFFFFF";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b>
</div>
{/if}
<form name="voteForm" method="post">
<input type="hidden" name="rate">
</form>