{include file='header.tpl' p="detail"} 
<br />
<table width="886" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="2" align="left" valign="top">

	</td>
  </tr>
  <tr>
    <td align="left" valign="top">
	<div id="detail_page">
		<table width="100%" border="0" cellspacing="2" cellpadding="2">
		  <tr>
			<td valign="top">
				<h2 class="h2_song">{$song}</h2>
				<h2 class="h2_artist">{$artist}</h2>
			</td>
			<td width="100px" valign="top">
			{php}
			rating_bar($_GET['vid']);
			{/php}
			<span class="comment_link"><a href="#comments" class="anchorLink">{$lang.comments}</a> ({$comments_no}) </span>
			</td>
		  </tr>
		</table>
		{if $featured == 1}
			<div class="tag_featured">
			{$lang.featured}
			<br />
		{/if}
		{include file="player.tpl" page="detail"}
		{if $featured == 1}
			</div>
		{/if}
		
		<table width="100%" border="0" cellspacing="0" cellpadding="3">
		  <tr>
		    <td align="left"><div id="lightsoff"><a href="#" ><img src="{$smarty.const._URL}/templates/{$template_dir}/images/ico_lightsoff.gif" align="absmiddle" height="30" width="95" alt="{$lang.lights_off}" border="0" /></a></div></td>
		{if $logged_in == '1'}			
		    <td align="right">
			{if $isfavorite == '1'}
			<img src="{$smarty.const._URL}/templates/{$template_dir}/images/ico_favorites2.gif"  height="30" width="95" alt="{$lang.dp_alt_1}" border="0" />
			{elseif $smarty.const._FAV_LIMIT == $countfavorites}
			<a href="{$smarty.const._URL}/favorites.php?a=show"><img src="{$smarty.const._URL}/templates/{$template_dir}/images/ico_favorites3.gif" align="absmiddle" height="30" width="95" alt="{$lang.dp_alt_2}" border="0" /></a>
			{else}
			<form action="javascript:getfav(document.getElementById('addtofavorites'));" name="addtofavorites" id="addtofavorites">
			<input type="hidden" value="{$uniq_id}" name="video_id" id="video_id" />
			<input type="hidden" value="{$s_user_id}" name="user_id" id="user_id" />
			<input TYPE="image" name="button" src="{$smarty.const._URL}/templates/{$template_dir}/images/ico_favorites.gif" border="0" alt="Submit Form" onclick="this.src='{$smarty.const._URL}/templates/{$template_dir}/images/ico_favorites2.gif'">
			</form>
			{/if}
			</td>
	      </tr>
		{else}
		<td align="right">
		  <a href="{$smarty.const._URL}/login.{$smarty.const._FEXT}"><img src="{$smarty.const._URL}/templates/{$template_dir}/images/ico_favorites.gif" align="absmiddle" height="30" width="95" alt="{$lang.dp_alt_2}" border="0" /></a>
		</td>
		</tr>
		{/if}
		{if $facebook_like_href != ''}
		<tr>
			<td colspan="2">
				<iframe src="http://www.facebook.com/plugins/like.php?href={$facebook_like_href}&amp;layout=standard&amp;show_faces=false&amp;width=400&amp;action=like&amp;colorscheme=light&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:400px; height:35px;" allowTransparency="true"></iframe>
			</td>
		</tr>
		{/if}
		<tr>
		 <td colspan="2" align="left">
		 <h3>{$lang.link_to_vid}</h3>
		 <input name="video_link" id="video_link" type="text" class="inputtext" value="{$video_link}" style="width: 440px;" onClick="SelectAll('video_link');" />			</td>
	    </tr>
		{if is_array($related_articles) && count($related_articles) > 0}
		<tr>
		    <td colspan="2" align="left">
			<h3>{$lang.articles_related}</h3>
			<div id="detail_related_articles">
			 <ul class="relatedArticleli">
			  {foreach from=$related_articles item=related key=id}
			    <li>
			   	{if $related.meta.post_thumb_show != ''}
			   	<a href="{$related.link}"><img src="{$smarty.const._ARTICLE_ATTACH_DIR}/{$related.meta.post_thumb_show}" align="left" width="55" height="55" alt="" class="artThumb" /></a>
				{/if} 				
				<a href="{$related.link}">{smarty_fewchars s=$related.title length=42}</a>
				<br />
				{if $related.meta.post_thumb_show == ''}
				<div class="minDesc">{smarty_fewchars s=$related.excerpt length=250}</div>
				{else}
				<div class="minDesc">{smarty_fewchars s=$related.excerpt length=200}</div>
				{/if}
				</li>
			  {/foreach}
			 </ul>
			</div>
			</td>
		</tr>
		{/if}
		{if !empty($description)}
		<tr>
		    <td colspan="2" align="left">
			<h3>{$lang.description}</h3>
			{$description}
			</td>
		</tr>
		{/if}
		{if !empty($tags)}
		<tr>
		    <td colspan="2" align="left">
			<h3>{$lang.tags}</h3>
			<div id="tags">
			{$tags}
			</div>
			</td>
		</tr>
		{/if}
		</table>
	</div>	
	<br />
	{if $ad_3 != ''}
	<div align="center">{$ad_3}</div>
	<br />
	{/if}
	<a name="comments" id="comments"></a>
		<div id="detail_page_comments">
		{if $logged_in == '1'}
		<h3>{$lang.post_comment}</h3>
		<span class="mycommentspan" name="mycommentspan" id="mycommentspan"></span>
		<form action="" name="myform" method="post" id="myform">
		 <textarea name="comment_txt" id="c_comment_txt" style="width:470px" rows="5" onkeyup="textLimit(this, 400);"></textarea>
		 <input type="hidden" id="c_vid" name="vid" value="{$uniq_id}" />
		 <input type="hidden" id="c_user_id" name="user_id" value="{$user_id}" />
		 <br />
		 <input type="submit" id="c_submit" name="Submit" value="{$lang.submit_comment}" class="inputbutton" />
		 
		 <span class="small-warning">* {$lang.post_comment_notice}</span>
		</form>
		{elseif $logged_in == 0 && $guests_can_comment == 1}
			<h3>{$lang.post_comment}</h3>
			<span class="mycommentspan" name="mycommentspan" id="mycommentspan"></span>
			<form action="" name="myform" method="post" id="myform">
			 {$lang.your_name}:<br />
			<input type="text" id="c_username" name="username" value="{$guestname}" class="inputtext" /><br /><br />
			{$lang.your_comment}:<br />
			<textarea id="c_comment_txt" name="comment_txt" style="width:470px" rows="5" onkeyup="textLimit(this, 400);"></textarea><br /><br />
			{$lang.confirm_comment}:<br />
			<img src="{$smarty.const._URL}/include/securimage_show.php?sid={php}echo md5(uniqid(time()));{/php}" id="image" align="absmiddle" />
			<a href="#" onclick="document.getElementById('image').src = '{$smarty.const._URL}/include/securimage_show.php?sid=' + Math.random(); return false"><img src="{$smarty.const._URL}/templates/{$template_dir}/images/reload.gif" border="0" align="absmiddle" /></a>
			<br />
     		<input class="inputtext" name="captcha" type="text" id="captcha" size="15" maxlength="15" />

			<input type="hidden" id="c_vid" name="vid" value="{$uniq_id}" />
			<input type="hidden" id="c_user_id" name="user_id" value="0" />
			<br />
			<input type="submit" id="c_submit" name="Submit" value="{$lang.submit_comment}" class="inputbutton" />
			<br /><span class="small-warning">* {$lang.post_comment_notice}</span>
			</form>
		{/if}
		<br />
		<h3>{$lang.comments}</h3>
			<div class="comment_box">
			{if $show_comments == 'empty'}
				<ol>
				<li id="preview_comment">
				</li>
				</ol>
				<div id="be_the_first">{$lang.be_the_first}</div>
			{else}
				<ol>
				<li id="preview_comment"></li>
				</ol>
				<ol id="comments_ol">
				{$show_comments}
				</ol>
			{/if}
			{if $logged_in != '1' && $guests_can_comment != 1}<br />{$must_sign_in}{/if}
			</div>
		</div>
	</td>
    <td width="305" valign="top">
	
	<div id="detail_page_video_links">
		<div class="fl">
			<ul>
			<li class="ul_title">{$lang.take_action}</li>
			<li><a href="#comments">{$lang.post_comment}</a></li>
			<li><a href="javascript:reportPopup('1', '{$uniq_id}')">{$lang.report_video}</a></li>
			</ul>
		</div>
		<div class="fr">
			<ul>
			<li class="ul_title">{$lang.share_video}</li>
			<li><a href="javascript:addmyspacePopup('{$uniq_id}')">{$lang.embed_video}</a></li>
			<li><a href="javascript:sharePopup('{$uniq_id}')">{$lang.email_video}</a></li>
			</ul>
		</div>
	</div>	
	<br />
	<br />
		<ul id="show_related" class="shadetabs">
			<li class="selected" id="tabs_select_related"><a href="#" class="{$uniq_id}">{$lang.tab_related}</a></li>
			<li id="tabs_select_sameartist"><a href="#" class="{$uniq_id}">{$lang.tab_same_artist}</a></li>
			<li id="tabs_select_other"><a href="#" class="{$uniq_id}">{$lang.tab_best}</a></li>
		</ul>
		<div id="detail_show_more">
			<div id="ajaxcontentarea" class="contentstyle">
				
				<div id="tabs_related" class="tabcontent">
				{$show_more_related}
				</div>
				
				<div id="tabs_sameartist" class="tabcontent">
				{$show_more_artist}
				</div>
				
				<div id="tabs_other" class="tabcontent">
				{$show_more_best}
				</div>
				
			</div>
		</div>
	<br />
	
	</td>
  </tr>
</table>
{include file='footer.tpl'}