<?php /* Smarty version 2.6.20, created on 2016-05-05 23:05:37
         compiled from detail.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'smarty_fewchars', 'detail.tpl', 83, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'header.tpl', 'smarty_include_vars' => array('p' => 'detail')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
<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"><?php echo $this->_tpl_vars['song']; ?>
</h2>
				<h2 class="h2_artist"><?php echo $this->_tpl_vars['artist']; ?>
</h2>
			</td>
			<td width="100px" valign="top">
			<?php 
			rating_bar($_GET['vid']);
			 ?>
			<span class="comment_link"><a href="#comments" class="anchorLink"><?php echo $this->_tpl_vars['lang']['comments']; ?>
</a> (<?php echo $this->_tpl_vars['comments_no']; ?>
) </span>
			</td>
		  </tr>
		</table>
		<?php if ($this->_tpl_vars['featured'] == 1): ?>
			<div class="tag_featured">
			<?php echo $this->_tpl_vars['lang']['featured']; ?>

			<br />
		<?php endif; ?>
		<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "player.tpl", 'smarty_include_vars' => array('page' => 'detail')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
		<?php if ($this->_tpl_vars['featured'] == 1): ?>
			</div>
		<?php endif; ?>
		
		<table width="100%" border="0" cellspacing="0" cellpadding="3">
		  <tr>
		    <td align="left"><div id="lightsoff"><a href="#" ><img src="<?php echo @_URL; ?>
/templates/<?php echo $this->_tpl_vars['template_dir']; ?>
/images/ico_lightsoff.gif" align="absmiddle" height="30" width="95" alt="<?php echo $this->_tpl_vars['lang']['lights_off']; ?>
" border="0" /></a></div></td>
		<?php if ($this->_tpl_vars['logged_in'] == '1'): ?>			
		    <td align="right">
			<?php if ($this->_tpl_vars['isfavorite'] == '1'): ?>
			<img src="<?php echo @_URL; ?>
/templates/<?php echo $this->_tpl_vars['template_dir']; ?>
/images/ico_favorites2.gif"  height="30" width="95" alt="<?php echo $this->_tpl_vars['lang']['dp_alt_1']; ?>
" border="0" />
			<?php elseif (@_FAV_LIMIT == $this->_tpl_vars['countfavorites']): ?>
			<a href="<?php echo @_URL; ?>
/favorites.php?a=show"><img src="<?php echo @_URL; ?>
/templates/<?php echo $this->_tpl_vars['template_dir']; ?>
/images/ico_favorites3.gif" align="absmiddle" height="30" width="95" alt="<?php echo $this->_tpl_vars['lang']['dp_alt_2']; ?>
" border="0" /></a>
			<?php else: ?>
			<form action="javascript:getfav(document.getElementById('addtofavorites'));" name="addtofavorites" id="addtofavorites">
			<input type="hidden" value="<?php echo $this->_tpl_vars['uniq_id']; ?>
" name="video_id" id="video_id" />
			<input type="hidden" value="<?php echo $this->_tpl_vars['s_user_id']; ?>
" name="user_id" id="user_id" />
			<input TYPE="image" name="button" src="<?php echo @_URL; ?>
/templates/<?php echo $this->_tpl_vars['template_dir']; ?>
/images/ico_favorites.gif" border="0" alt="Submit Form" onclick="this.src='<?php echo @_URL; ?>
/templates/<?php echo $this->_tpl_vars['template_dir']; ?>
/images/ico_favorites2.gif'">
			</form>
			<?php endif; ?>
			</td>
	      </tr>
		<?php else: ?>
		<td align="right">
		  <a href="<?php echo @_URL; ?>
/login.<?php echo @_FEXT; ?>
"><img src="<?php echo @_URL; ?>
/templates/<?php echo $this->_tpl_vars['template_dir']; ?>
/images/ico_favorites.gif" align="absmiddle" height="30" width="95" alt="<?php echo $this->_tpl_vars['lang']['dp_alt_2']; ?>
" border="0" /></a>
		</td>
		</tr>
		<?php endif; ?>
		<?php if ($this->_tpl_vars['facebook_like_href'] != ''): ?>
		<tr>
			<td colspan="2">
				<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo $this->_tpl_vars['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>
		<?php endif; ?>
		<tr>
		 <td colspan="2" align="left">
		 <h3><?php echo $this->_tpl_vars['lang']['link_to_vid']; ?>
</h3>
		 <input name="video_link" id="video_link" type="text" class="inputtext" value="<?php echo $this->_tpl_vars['video_link']; ?>
" style="width: 440px;" onClick="SelectAll('video_link');" />			</td>
	    </tr>
		<?php if (is_array ( $this->_tpl_vars['related_articles'] ) && count ( $this->_tpl_vars['related_articles'] ) > 0): ?>
		<tr>
		    <td colspan="2" align="left">
			<h3><?php echo $this->_tpl_vars['lang']['articles_related']; ?>
</h3>
			<div id="detail_related_articles">
			 <ul class="relatedArticleli">
			  <?php $_from = $this->_tpl_vars['related_articles']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['id'] => $this->_tpl_vars['related']):
?>
			    <li>
			   	<?php if ($this->_tpl_vars['related']['meta']['post_thumb_show'] != ''): ?>
			   	<a href="<?php echo $this->_tpl_vars['related']['link']; ?>
"><img src="<?php echo @_ARTICLE_ATTACH_DIR; ?>
/<?php echo $this->_tpl_vars['related']['meta']['post_thumb_show']; ?>
" align="left" width="55" height="55" alt="" class="artThumb" /></a>
				<?php endif; ?> 				
				<a href="<?php echo $this->_tpl_vars['related']['link']; ?>
"><?php echo smarty_fewchars(array('s' => $this->_tpl_vars['related']['title'],'length' => 42), $this);?>
</a>
				<br />
				<?php if ($this->_tpl_vars['related']['meta']['post_thumb_show'] == ''): ?>
				<div class="minDesc"><?php echo smarty_fewchars(array('s' => $this->_tpl_vars['related']['excerpt'],'length' => 250), $this);?>
</div>
				<?php else: ?>
				<div class="minDesc"><?php echo smarty_fewchars(array('s' => $this->_tpl_vars['related']['excerpt'],'length' => 200), $this);?>
</div>
				<?php endif; ?>
				</li>
			  <?php endforeach; endif; unset($_from); ?>
			 </ul>
			</div>
			</td>
		</tr>
		<?php endif; ?>
		<?php if (! empty ( $this->_tpl_vars['description'] )): ?>
		<tr>
		    <td colspan="2" align="left">
			<h3><?php echo $this->_tpl_vars['lang']['description']; ?>
</h3>
			<?php echo $this->_tpl_vars['description']; ?>

			</td>
		</tr>
		<?php endif; ?>
		<?php if (! empty ( $this->_tpl_vars['tags'] )): ?>
		<tr>
		    <td colspan="2" align="left">
			<h3><?php echo $this->_tpl_vars['lang']['tags']; ?>
</h3>
			<div id="tags">
			<?php echo $this->_tpl_vars['tags']; ?>

			</div>
			</td>
		</tr>
		<?php endif; ?>
		</table>
	</div>	
	<br />
	<?php if ($this->_tpl_vars['ad_3'] != ''): ?>
	<div align="center"><?php echo $this->_tpl_vars['ad_3']; ?>
</div>
	<br />
	<?php endif; ?>
	<a name="comments" id="comments"></a>
		<div id="detail_page_comments">
		<?php if ($this->_tpl_vars['logged_in'] == '1'): ?>
		<h3><?php echo $this->_tpl_vars['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="<?php echo $this->_tpl_vars['uniq_id']; ?>
" />
		 <input type="hidden" id="c_user_id" name="user_id" value="<?php echo $this->_tpl_vars['user_id']; ?>
" />
		 <br />
		 <input type="submit" id="c_submit" name="Submit" value="<?php echo $this->_tpl_vars['lang']['submit_comment']; ?>
" class="inputbutton" />
		 
		 <span class="small-warning">* <?php echo $this->_tpl_vars['lang']['post_comment_notice']; ?>
</span>
		</form>
		<?php elseif ($this->_tpl_vars['logged_in'] == 0 && $this->_tpl_vars['guests_can_comment'] == 1): ?>
			<h3><?php echo $this->_tpl_vars['lang']['post_comment']; ?>
</h3>
			<span class="mycommentspan" name="mycommentspan" id="mycommentspan"></span>
			<form action="" name="myform" method="post" id="myform">
			 <?php echo $this->_tpl_vars['lang']['your_name']; ?>
:<br />
			<input type="text" id="c_username" name="username" value="<?php echo $this->_tpl_vars['guestname']; ?>
" class="inputtext" /><br /><br />
			<?php echo $this->_tpl_vars['lang']['your_comment']; ?>
:<br />
			<textarea id="c_comment_txt" name="comment_txt" style="width:470px" rows="5" onkeyup="textLimit(this, 400);"></textarea><br /><br />
			<?php echo $this->_tpl_vars['lang']['confirm_comment']; ?>
:<br />
			<img src="<?php echo @_URL; ?>
/include/securimage_show.php?sid=<?php echo md5(uniqid(time())); ?>" id="image" align="absmiddle" />
			<a href="#" onclick="document.getElementById('image').src = '<?php echo @_URL; ?>
/include/securimage_show.php?sid=' + Math.random(); return false"><img src="<?php echo @_URL; ?>
/templates/<?php echo $this->_tpl_vars['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="<?php echo $this->_tpl_vars['uniq_id']; ?>
" />
			<input type="hidden" id="c_user_id" name="user_id" value="0" />
			<br />
			<input type="submit" id="c_submit" name="Submit" value="<?php echo $this->_tpl_vars['lang']['submit_comment']; ?>
" class="inputbutton" />
			<br /><span class="small-warning">* <?php echo $this->_tpl_vars['lang']['post_comment_notice']; ?>
</span>
			</form>
		<?php endif; ?>
		<br />
		<h3><?php echo $this->_tpl_vars['lang']['comments']; ?>
</h3>
			<div class="comment_box">
			<?php if ($this->_tpl_vars['show_comments'] == 'empty'): ?>
				<ol>
				<li id="preview_comment">
				</li>
				</ol>
				<div id="be_the_first"><?php echo $this->_tpl_vars['lang']['be_the_first']; ?>
</div>
			<?php else: ?>
				<ol>
				<li id="preview_comment"></li>
				</ol>
				<ol id="comments_ol">
				<?php echo $this->_tpl_vars['show_comments']; ?>

				</ol>
			<?php endif; ?>
			<?php if ($this->_tpl_vars['logged_in'] != '1' && $this->_tpl_vars['guests_can_comment'] != 1): ?><br /><?php echo $this->_tpl_vars['must_sign_in']; ?>
<?php endif; ?>
			</div>
		</div>
	</td>
    <td width="305" valign="top">
	
	<div id="detail_page_video_links">
		<div class="fl">
			<ul>
			<li class="ul_title"><?php echo $this->_tpl_vars['lang']['take_action']; ?>
</li>
			<li><a href="#comments"><?php echo $this->_tpl_vars['lang']['post_comment']; ?>
</a></li>
			<li><a href="javascript:reportPopup('1', '<?php echo $this->_tpl_vars['uniq_id']; ?>
')"><?php echo $this->_tpl_vars['lang']['report_video']; ?>
</a></li>
			</ul>
		</div>
		<div class="fr">
			<ul>
			<li class="ul_title"><?php echo $this->_tpl_vars['lang']['share_video']; ?>
</li>
			<li><a href="javascript:addmyspacePopup('<?php echo $this->_tpl_vars['uniq_id']; ?>
')"><?php echo $this->_tpl_vars['lang']['embed_video']; ?>
</a></li>
			<li><a href="javascript:sharePopup('<?php echo $this->_tpl_vars['uniq_id']; ?>
')"><?php echo $this->_tpl_vars['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="<?php echo $this->_tpl_vars['uniq_id']; ?>
"><?php echo $this->_tpl_vars['lang']['tab_related']; ?>
</a></li>
			<li id="tabs_select_sameartist"><a href="#" class="<?php echo $this->_tpl_vars['uniq_id']; ?>
"><?php echo $this->_tpl_vars['lang']['tab_same_artist']; ?>
</a></li>
			<li id="tabs_select_other"><a href="#" class="<?php echo $this->_tpl_vars['uniq_id']; ?>
"><?php echo $this->_tpl_vars['lang']['tab_best']; ?>
</a></li>
		</ul>
		<div id="detail_show_more">
			<div id="ajaxcontentarea" class="contentstyle">
				
				<div id="tabs_related" class="tabcontent">
				<?php echo $this->_tpl_vars['show_more_related']; ?>

				</div>
				
				<div id="tabs_sameartist" class="tabcontent">
				<?php echo $this->_tpl_vars['show_more_artist']; ?>

				</div>
				
				<div id="tabs_other" class="tabcontent">
				<?php echo $this->_tpl_vars['show_more_best']; ?>

				</div>
				
			</div>
		</div>
	<br />
	<script type="text/javascript" src="//yandex.st/share/share.js" charset="utf-8"></script>
<div class="yashare-auto-init" data-yashareL10n="ru" data-yashareType="button" data-yashareQuickServices="yaru,vkontakte,facebook,twitter,odnoklassniki,moimir,lj,friendfeed,moikrug"></div> 
	</td>
  </tr>
</table>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'footer.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>