<?php /* Smarty version 2.6.20, created on 2016-05-05 23:15:06
         compiled from header.tpl */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php echo $this->_tpl_vars['meta_title']; ?>
</title>
<?php if ($this->_tpl_vars['no_index'] == '1'): ?>
<meta name="robots" content="noindex,nofollow">
<META NAME="GOOGLEBOT" CONTENT="NOINDEX, NOFOLLOW">
<?php endif; ?>
<meta name="keywords" content="<?php echo $this->_tpl_vars['meta_keywords']; ?>
" />
<meta name="description" content="<?php echo $this->_tpl_vars['meta_description']; ?>
" />
<link rel="shortcut icon" href="<?php echo @_URL; ?>
/<?php echo @_UPFOLDER; ?>
/favicon.ico">
<link href="<?php echo @_URL; ?>
/templates/<?php echo $this->_tpl_vars['template_dir']; ?>
/style.css" rel="stylesheet" type="text/css" />
<link type="application/atom+xml" rel="alternate" title="<?php echo $this->_tpl_vars['meta_title']; ?>
" href="<?php echo @_URL; ?>
/rss.php" />
<script type="text/javascript">
 var MELODYURL = "<?php echo @_URL; ?>
";
 var MELODYURL2 = "<?php echo @_URL2; ?>
";
 var TemplateP = "<?php echo @_URL; ?>
/templates/<?php echo $this->_tpl_vars['template_dir']; ?>
";
</script>
<?php if ($this->_tpl_vars['p'] == 'index' || $this->_tpl_vars['p'] == 'detail' || $this->_tpl_vars['p'] == 'favorites' || $this->_tpl_vars['p'] == 'article'): ?>
 <script type="text/javascript" src="<?php echo @_URL; ?>
/js/swfobject.js"></script>
<?php endif; ?>
 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
 <script type="text/javascript" src="<?php echo @_URL; ?>
/js/general.js"></script>
 <script type="text/javascript" src="<?php echo @_URL; ?>
/js/langselector.js"></script>
 <script type="text/javascript" src="<?php echo @_URL; ?>
/js/jquery.hover.js"></script>
 <?php if (@_MOD_ARTICLE == 1 && $this->_tpl_vars['p'] == 'article'): ?>
 <script type="text/javascript" src="<?php echo @_URL; ?>
/js/jquery.resize.text.js"></script>
 <script type="text/javascript" src="<?php echo @_URL; ?>
/admin/js/jquery.anchor.js"></script>
 <?php endif; ?>
 
<?php if ($this->_tpl_vars['p'] == 'upload'): ?>
 <script type="text/javascript" src="<?php echo @_URL; ?>
/js/upload.js"></script>
<?php endif; ?>
 
 <?php echo '
 <script type="text/javascript">
 jQuery(document).ready( 
  function() {
	catlist(); 
  });

  $(document).ready(function() {
	  $("#pm_sources").change(function () {
		  var str = $("select option:selected").attr(\'value\');
		  $("#pm_sources_ex").text(str);
	  })
	  .change();
  });
 </script>
 '; ?>


<?php if ($this->_tpl_vars['p'] == 'index' && $this->_tpl_vars['total_playingnow'] > 0): ?>
  <link href="<?php echo @_URL; ?>
/templates/<?php echo $this->_tpl_vars['template_dir']; ?>
/jquery.jcarousel.css" rel="stylesheet" type="text/css" />
  <script type="text/javascript" src="<?php echo @_URL; ?>
/js/jquery.jcarousel.pack.js"></script>
  <?php echo '
  <script type="text/javascript">
  jQuery(document).ready(function() {
   jQuery(\'#mycarousel\').jcarousel({
		size: '; ?>
<?php echo $this->_tpl_vars['total_playingnow']; ?>
<?php echo '
	});
  });
  </script>
  '; ?>

<?php endif; ?>

<?php if ($this->_tpl_vars['p'] == 'detail' || $this->_tpl_vars['p'] == 'article'): ?>
 <script type="text/javascript" src="<?php echo @_URL; ?>
/rating.js"></script> 
 <script type="text/javascript" src="<?php echo @_URL; ?>
/js/popup.js"></script>
 <script type="text/javascript" src="<?php echo @_URL; ?>
/js/favorites.js"></script>
 <script type="text/javascript" src="<?php echo @_URL; ?>
/js/comment.js"></script>
 <script type="text/javascript" src="<?php echo @_URL; ?>
/js/ajaxtabs/ajaxtabs.js"></script>
 <script type="text/javascript" src="<?php echo @_URL; ?>
/js/lightsoff.js"></script>
 <?php echo '
 <script type="text/javascript">
 jQuery(document).ready(function() {
   lightsoff();
 });
 </script>
 '; ?>

<?php endif; ?>
<?php if ($this->_tpl_vars['p'] == 'article'): ?>
 <script type="text/javascript" src="<?php echo @_URL; ?>
/js/prettyPhoto/jquery.prettyPhoto.min.js"></script>	
 <link rel="stylesheet" href="<?php echo @_URL; ?>
/js/prettyPhoto/css/prettyPhoto.css" type="text/css" media="screen" />
 <?php echo '
 <script type="text/javascript" charset="utf-8">
	$(document).ready(function(){
		$(\'a[rel^="prettyPhoto"]\').prettyPhoto({theme:\'light_rounded\'});
	});
 </script>
 '; ?>

<?php endif; ?>
<?php if ($this->_tpl_vars['facebook_image_src'] != ''): ?>
 <link rel="image_src" href="<?php echo $this->_tpl_vars['facebook_image_src']; ?>
" />
<?php endif; ?>
</head>
<body>
<a name="top" id="top"></a>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><img src="<?php echo @_URL; ?>
/templates/<?php echo $this->_tpl_vars['template_dir']; ?>
/images/limiter_1.gif" alt="" width="932" height="12" /></td>
</tr>
  <tr>
    <td>
	<div id="wrapper">
		<div id="logo_search">
		<div id="logo">
		<a href="<?php echo @_URL; ?>
/index.<?php echo @_FEXT; ?>
"><img src="<?php echo @_URL; ?>
/templates/<?php echo $this->_tpl_vars['template_dir']; ?>
/images/logo.png" alt="" border="0" /></a>
		</div>
		  <?php if ($this->_tpl_vars['p'] == 'article'): ?>
			<div id="search_form_articles">
				<form action="<?php echo @_URL; ?>
/article.php" method="get" id="search" name="search" onsubmit="return validateSearch('true');">
				<input name="keywords" type="text" value="" class="search_keywords" id="inputString" autocomplete="off"  />  
				<input name="btn" value="<?php echo $this->_tpl_vars['lang']['submit_search']; ?>
" type="submit" class="search_bttn" />
				</form>
			</div>
		  <?php else: ?>
			<div id="search_form">
				<form action="<?php echo @_URL; ?>
/search.php" method="get" id="search" name="search" onsubmit="return validateSearch('true');">
				<input name="keywords" type="text" value="" class="search_keywords" id="inputString" <?php if (@_SEARCHSUGGEST == 1): ?>onkeyup="lookup(this.value);" onblur="fill();" autocomplete="off"<?php endif; ?>  />  
				<input name="btn" value="<?php echo $this->_tpl_vars['lang']['submit_search']; ?>
" type="submit" class="search_bttn" />
				<div class="suggestionsBox" id="suggestions" style="display: none;">
					<div class="suggestionList" id="autoSuggestionsList">
					</div>
				</div>
				</form>	
			</div>
		  <?php endif; ?>
		</div>
		<div id="menu">
			<div id="menu_links">
			<ul>
				<li><a href="<?php echo @_URL; ?>
/index.<?php echo @_FEXT; ?>
"><?php echo $this->_tpl_vars['lang']['homepage']; ?>
</a></li>
				<?php if (@_MOD_ARTICLE == 1): ?>
				<li><a href="<?php echo @_URL; ?>
/article.<?php echo @_FEXT; ?>
"><?php echo $this->_tpl_vars['lang']['articles']; ?>
</a></li>
				<?php endif; ?>
				<li><a href="<?php echo @_URL; ?>
/topvideos.<?php echo @_FEXT; ?>
"><?php echo $this->_tpl_vars['lang']['top_videos']; ?>
</a></li>
				<li><a href="<?php echo @_URL; ?>
/newvideos.<?php echo @_FEXT; ?>
"><?php echo $this->_tpl_vars['lang']['new_videos']; ?>
</a></li>
				<li><a href="<?php echo @_URL; ?>
/randomizer.php" rel="nofollow"><?php echo $this->_tpl_vars['lang']['random_video']; ?>
</a></li>
				<?php if ($this->_tpl_vars['logged_in'] == '1'): ?>
				<li><a href="<?php echo @_URL; ?>
/profile.php?u=<?php echo $this->_tpl_vars['s_username']; ?>
"><?php echo $this->_tpl_vars['lang']['my_profile']; ?>
</a></li>
				<li><a href="<?php echo @_URL; ?>
/favorites.php?a=show"><?php echo $this->_tpl_vars['lang']['my_favorites']; ?>
</a></li>
				<li><a href="<?php echo @_URL; ?>
/suggest.<?php echo @_FEXT; ?>
"><?php echo $this->_tpl_vars['lang']['suggest']; ?>
</a></li>
				<?php endif; ?>
				<li><a href="<?php echo @_URL; ?>
/contact_us.<?php echo @_FEXT; ?>
"><?php echo $this->_tpl_vars['lang']['contact_us']; ?>
</a></li>
				<?php if ($this->_tpl_vars['logged_in'] != '1'): ?>
				<li><a href="<?php echo @_URL; ?>
/register.<?php echo @_FEXT; ?>
"><?php echo $this->_tpl_vars['lang']['register']; ?>
</a></li>
				<?php endif; ?>
				<?php if (@_ALLOW_USER_UPLOADVIDEO == '1'): ?>
				<li><span class="button_upload"><a href="<?php echo @_URL; ?>
/upload.<?php echo @_FEXT; ?>
"><?php echo $this->_tpl_vars['lang']['upload']; ?>
</a></span></li>
				<?php endif; ?>
			</ul>
			</div>
			<?php if (count ( $this->_tpl_vars['langs_array'] ) > 0): ?>
			 <ul id="lang_selector">
			   <li class="lang_selected">
				<span>
				 <img src="<?php echo $this->_tpl_vars['langs_array'][$this->_tpl_vars['current_lang_id']]['ico']; ?>
" width="16" height="11" border="0" alt="<?php echo $this->_tpl_vars['langs_array'][$this->_tpl_vars['current_lang_id']]['title']; ?>
" title="<?php echo $this->_tpl_vars['langs_array'][$this->_tpl_vars['current_lang_id']]['title']; ?>
" align="absmiddle" /> 
				 <img src="<?php echo @_URL; ?>
/templates/<?php echo $this->_tpl_vars['template_dir']; ?>
/images/lang_arrow.gif" name="arrow_profile" width="9" height="7" align="absmiddle" class="arrow">
				 </span>
			   </li>
			  <li>
			  <div class="lang_submenu">
			  <?php $_from = $this->_tpl_vars['langs_array']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['lang']):
?>
			   <?php if ($this->_tpl_vars['k'] != $this->_tpl_vars['current_lang_id']): ?>
				 <a href="#" title="<?php echo $this->_tpl_vars['lang']['title']; ?>
" name="<?php echo $this->_tpl_vars['k']; ?>
" id="lang_select_<?php echo $this->_tpl_vars['k']; ?>
"><img src="<?php echo $this->_tpl_vars['lang']['ico']; ?>
" width="16" height="11" border="0" alt="<?php echo $this->_tpl_vars['lang']['title']; ?>
" title="<?php echo $this->_tpl_vars['lang']['title']; ?>
" /></a>
			   <?php endif; ?>
			  <?php endforeach; endif; unset($_from); ?>
			  </div>
			  </li>
			 </ul>
			<?php endif; ?>
		</div>

		<?php if ($this->_tpl_vars['ad_1'] != ''): ?>
			<div align="center"><?php echo $this->_tpl_vars['ad_1']; ?>
</div>
		<?php endif; ?>

<?php if ($this->_tpl_vars['ad_1'] != ''): ?>
			<div align="center"><?php echo $this->_tpl_vars['ad_6']; ?>
</div>
		<?php endif; ?>