{config_load file=$configfile section="album"}
{if !$albumVoted && $tm_ratealbums}
<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 voteAlbum(rate){{/literal}
document.voteForm.rate.value=rate;
{if !$tm_easyURL}
document.voteForm.action='modules.php?name={$module_name}&op=voteAlbum&idartist={$id_artist}&idalbum={$id_album}&idsong={$id_song}';
{elseif !$tm_easyURLtype}
document.voteForm.action='{$tm_BaseURL}/music.php/artist/{$album->artistname|urlencode}/voteAlbum/{$album->title|urlencode}';
{elseif $tm_easyURLtype==2}
document.voteForm.action='voteAlbum{$id_artist}_{$id_album}.html';
{else}
document.voteForm.action='{$tm_BaseURL}/music.php/artist/{$id_artist}/voteAlbum/{$id_album}';
{/if}
document.voteForm.submit();
{literal}}{/literal}
</script>
{/if}
<script type="text/javascript" src="modules/{$module_name}/themes/{$tm_theme}/js/common.js"></script>
<script type="text/javascript" src="modules/{$module_name}/themes/{$tm_theme}/js/album.js"></script>
<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_title">{$album->title} ({$artist->getName()})</div>
<div id="tm_module">
<table width="100%" border="0">
<tr>
<td scope="col" align="center" valign="top">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td>
{if $frontcover_url!=""}
<a href="#" onClick="window.open('{$frontcover_url}','frontcover','toolbar=no, menubar=no,statusbar=no')">
{if $frontcover_thumburl!=""}
<img name="foto" id="tm_img" src="{$frontcover_thumburl}" title="{$album->artistname} - {$album->title}">
{else}
<img name="foto" id="tm_img" src="{$frontcover_url}" width="100" title="{$album->artistname} - {$album->title}">
{/if}
</a>
{/if}
</td>
</tr>
<tr>
<td>
{if $backcover_url!=""}
<a href="#" onClick="window.open('{$backcover_url}','backcover','toolbar=no, menubar=no,statusbar=no')"><img name="foto" id="tm_img" src="{$backcover_url}" width="100" alt="{$album->artistname} - {$album->title}" title="{$album->artistname} - {$album->title}"></a>
{/if}
</td>
</tr>
</table>
</td>
<td scope="col" valign="top">
<table border="0">
<tr>
<td align="left" scope="col"><strong>{#Artist#}:</strong></td>
<td scope="col">{$artist_url}{$artist->name}{if $artist_url!=""}</a>{/if}</td>
</tr>
<tr>
<td align="left" scope="col"><strong>{#Title#}:</strong></td>
<td scope="col">{$album->title}</td>
</tr>
<tr>
<td align="left"><strong>{#Date#}:</strong></td>
<td>{$album->yeardate}</td>
</tr>
<tr>
<td align="left"><strong>{#Genre#}:</strong></td>
<td>{if $album->genrename!=""}{$album->genrename}{else} {#NA#}{/if}</td>
</tr>
{foreach item="field" key="num" from=$custom_fields}
<tr>
<td><strong>{$field->description}:</strong></td>
<td>{$genericView->printCustomField($field)}</td>
</tr>
{/foreach}
</table>
</td>
<td scope="col" valign="top">
{if $shop_url!="" }
<a href="{$shop_url}"><img src="modules/{$module_name}/themes/{$tm_theme}/images/buy.gif" border="0" title="{#Buy_this_album#}"></a><br><br>
{/if}
{if $tm_ratealbums}
{if $message!=""}
<font color="red">{$message}</font><br>
{/if}
{#Average_rate#}:<br>
{$rate_code}<br>
{if !$albumVoted}
{#Rate_this_album#}:<br><a href="javascript:voteAlbum(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:voteAlbum(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:voteAlbum(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:voteAlbum(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:voteAlbum(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}
{/if}
</td>
</tr>
</table>
</div>
<div id="tm_module">
<center>{$genericView->printAlbumPlayer($album,$module_name,$tm_BaseURL,$tm_theme)}</center>
</div>
{if $album->comments!="" }
<div id="tm_module">
<div id="tm_title2">{#Comments#}:</div>
<div id="tm_text">{$album->comments}</div>
</div>
{/if}
{* SONG LIST *}
{if count($song_list)>0}
<div id="tm_module">
<div id="tm_title2">{#Song_list#}:</div>
<table width="100%" border="0" cellpadding="2">
<tr>
<td colspan="4"> </td>
</tr>
{* Songs list *} {include file="songlist_list.tpl"}
</table>
</div>
{/if}
{* RELATED ALBUMS *}
{if count($related_albums)>0}
<div id="tm_module">
<div id="tm_title2">{#Related_Albums#}:</div>
<table width="100%" border="0" cellpadding="2">
<tr><td>
{foreach item="album" key="num" from=$related_albums}
{if $album->frontcover_file!=""}
<a href="modules.php?name={$module_name}&op=album&idartist={$album->idartist}&idalbum={$album->getId()}"><img id="tm_img" src="modules/{$module_name}/photos/albums/{$album->getFrontCoverFile()}" width="75" title="{$album->title} ({$album->getArtistname()})"></a>
{elseif $album->frontcover_url!=""}
<a href="modules.php?name={$module_name}&op=album&idartist={$album->idartist}&idalbum={$album->getId()}"><img id="tm_img" src="{$album->getFrontCoverUrl()}" width="75" title="{$album->title} ({$album->artistname})"></a>
{else}
<a href="modules.php?name={$module_name}&op=album&idartist={$album->idartist}&idalbum={$album->getId()}"><img id="tm_img" src="modules/{$module_name}/photos/anonym.jpg" width="75" title="{$album->title} ({$album->getArtistname()})"></a>
{/if}
{/foreach}
</td></tr>
</table>
</div>
{/if}
{* RELATED LINKS *}
{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>
{if $shop_url!="" && $shop_url|truncate:21:""=="http://www.amazon.com"}
<script type="text/javascript" src="http://www.assoc-amazon.com/s/link-enhancer?tag=sergidscom02-20&o=1">
</script>
<noscript>
<img src="http://www.assoc-amazon.com/s/noscript?tag=sergidscom02-20" alt="" />
</noscript>
{/if}