<!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>{$meta_title}</title>
{if $no_index == '1'}
<meta name="robots" content="noindex,nofollow">
<META NAME="GOOGLEBOT" CONTENT="NOINDEX, NOFOLLOW">
{/if}
<meta name="keywords" content="{$meta_keywords}" />
<meta name="description" content="{$meta_description}" />
<link rel="shortcut icon" href="{$smarty.const._URL}/{$smarty.const._UPFOLDER}/favicon.ico">
<link href="{$smarty.const._URL}/templates/{$template_dir}/style.css" rel="stylesheet" type="text/css" />
<link type="application/atom+xml" rel="alternate" title="{$meta_title}" href="{$smarty.const._URL}/rss.php" />
<script type="text/javascript">
 var MELODYURL = "{$smarty.const._URL}";
 var MELODYURL2 = "{$smarty.const._URL2}";
 var TemplateP = "{$smarty.const._URL}/templates/{$template_dir}";
</script>
{if $p == "index" || $p == "detail" || $p == "favorites" || $p == "article"}
 <script type="text/javascript" src="{$smarty.const._URL}/js/swfobject.js"></script>
{/if}
 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
 <script type="text/javascript" src="{$smarty.const._URL}/js/general.js"></script>
 <script type="text/javascript" src="{$smarty.const._URL}/js/langselector.js"></script>
 <script type="text/javascript" src="{$smarty.const._URL}/js/jquery.hover.js"></script>
 {if $smarty.const._MOD_ARTICLE == 1 && $p == 'article'}
 <script type="text/javascript" src="{$smarty.const._URL}/js/jquery.resize.text.js"></script>
 <script type="text/javascript" src="{$smarty.const._URL}/admin/js/jquery.anchor.js"></script>
 {/if}
 
{if $p == "upload"}
 <script type="text/javascript" src="{$smarty.const._URL}/js/upload.js"></script>
{/if}
 
 {literal}
 <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>
 {/literal}

{if $p == "index" && $total_playingnow > 0}
  <link href="{$smarty.const._URL}/templates/{$template_dir}/jquery.jcarousel.css" rel="stylesheet" type="text/css" />
  <script type="text/javascript" src="{$smarty.const._URL}/js/jquery.jcarousel.pack.js"></script>
  {literal}
  <script type="text/javascript">
  jQuery(document).ready(function() {
   jQuery('#mycarousel').jcarousel({
		size: {/literal}{$total_playingnow}{literal}
	});
  });
  </script>
  {/literal}
{/if}

{if $p == "detail" || $p == "article"}
 <script type="text/javascript" src="{$smarty.const._URL}/rating.js"></script> 
 <script type="text/javascript" src="{$smarty.const._URL}/js/popup.js"></script>
 <script type="text/javascript" src="{$smarty.const._URL}/js/favorites.js"></script>
 <script type="text/javascript" src="{$smarty.const._URL}/js/comment.js"></script>
 <script type="text/javascript" src="{$smarty.const._URL}/js/ajaxtabs/ajaxtabs.js"></script>
 <script type="text/javascript" src="{$smarty.const._URL}/js/lightsoff.js"></script>
 {literal}
 <script type="text/javascript">
 jQuery(document).ready(function() {
   lightsoff();
 });
 </script>
 {/literal}
{/if}
{if $p == "article"}
 <script type="text/javascript" src="{$smarty.const._URL}/js/prettyPhoto/jquery.prettyPhoto.min.js"></script>	
 <link rel="stylesheet" href="{$smarty.const._URL}/js/prettyPhoto/css/prettyPhoto.css" type="text/css" media="screen" />
 {literal}
 <script type="text/javascript" charset="utf-8">
	$(document).ready(function(){
		$('a[rel^="prettyPhoto"]').prettyPhoto({theme:'light_rounded'});
	});
 </script>
 {/literal}
{/if}
{if $facebook_image_src != ''}
 <link rel="image_src" href="{$facebook_image_src}" />
{/if}
</head>
<body>
<a name="top" id="top"></a>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><img src="{$smarty.const._URL}/templates/{$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="{$smarty.const._URL}/index.{$smarty.const._FEXT}"><img src="{$smarty.const._URL}/templates/{$template_dir}/images/logo.png" alt="" border="0" /></a>
		</div>
		  {if $p == "article"}
			<div id="search_form_articles">
				<form action="{$smarty.const._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="{$lang.submit_search}" type="submit" class="search_bttn" />
				</form>
			</div>
		  {else}
			<div id="search_form">
				<form action="{$smarty.const._URL}/search.php" method="get" id="search" name="search" onsubmit="return validateSearch('true');">
				<input name="keywords" type="text" value="" class="search_keywords" id="inputString" {if $smarty.const._SEARCHSUGGEST == 1}onkeyup="lookup(this.value);" onblur="fill();" autocomplete="off"{/if}  />  
				<input name="btn" value="{$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>
		  {/if}
		</div>
		<div id="menu">
			<div id="menu_links">
			<ul>
				<li><a href="{$smarty.const._URL}/index.{$smarty.const._FEXT}">{$lang.homepage}</a></li>
				{if $smarty.const._MOD_ARTICLE == 1}
				<li><a href="{$smarty.const._URL}/article.{$smarty.const._FEXT}">{$lang.articles}</a></li>
				{/if}
				<li><a href="{$smarty.const._URL}/topvideos.{$smarty.const._FEXT}">{$lang.top_videos}</a></li>
				<li><a href="{$smarty.const._URL}/newvideos.{$smarty.const._FEXT}">{$lang.new_videos}</a></li>
				<li><a href="{$smarty.const._URL}/randomizer.php" rel="nofollow">{$lang.random_video}</a></li>
				{if $logged_in == '1'}
				<li><a href="{$smarty.const._URL}/profile.php?u={$s_username}">{$lang.my_profile}</a></li>
				<li><a href="{$smarty.const._URL}/favorites.php?a=show">{$lang.my_favorites}</a></li>
				<li><a href="{$smarty.const._URL}/suggest.{$smarty.const._FEXT}">{$lang.suggest}</a></li>
				{/if}
				<li><a href="{$smarty.const._URL}/contact_us.{$smarty.const._FEXT}">{$lang.contact_us}</a></li>
				{if $logged_in != '1'}
				<li><a href="{$smarty.const._URL}/register.{$smarty.const._FEXT}">{$lang.register}</a></li>
				{/if}
				{if $smarty.const._ALLOW_USER_UPLOADVIDEO == '1'}
				<li><span class="button_upload"><a href="{$smarty.const._URL}/upload.{$smarty.const._FEXT}">{$lang.upload}</a></span></li>
				{/if}
			</ul>
			</div>
			{if count($langs_array) > 0}
			 <ul id="lang_selector">
			   <li class="lang_selected">
				<span>
				 <img src="{$langs_array.$current_lang_id.ico}" width="16" height="11" border="0" alt="{$langs_array.$current_lang_id.title}" title="{$langs_array.$current_lang_id.title}" align="absmiddle" /> 
				 <img src="{$smarty.const._URL}/templates/{$template_dir}/images/lang_arrow.gif" name="arrow_profile" width="9" height="7" align="absmiddle" class="arrow">
				 </span>
			   </li>
			  <li>
			  <div class="lang_submenu">
			  {foreach from=$langs_array item=lang key=k}
			   {if $k != $current_lang_id}
				 <a href="#" title="{$lang.title}" name="{$k}" id="lang_select_{$k}"><img src="{$lang.ico}" width="16" height="11" border="0" alt="{$lang.title}" title="{$lang.title}" /></a>
			   {/if}
			  {/foreach}
			  </div>
			  </li>
			 </ul>
			{/if}
		</div>

		{if $ad_1 != ''}
			<div align="center">{$ad_1}</div>
		{/if}

{if $ad_1 != ''}
			<div align="center">{$ad_6}</div>
		{/if}
