<?php /* Smarty version 2.6.25, created on 2012-07-02 01:14:16
         compiled from header.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'header.tpl', 5, false),array('modifier', 'trim', 'header.tpl', 5, false),array('modifier', 'strip', 'header.tpl', 5, false),array('modifier', 'urlencode', 'header.tpl', 34, false),)), $this); ?>
<!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>
      <title><?php if (empty ( $this->_tpl_vars['tdescription'] )): ?><?php if (empty ( $this->_tpl_vars['TITLE'] )): ?><?php echo ((is_array($_tmp=((is_array($_tmp=@DIRECTORY_TITLE)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
<?php endif; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_smarty_vars['capture']['title'])) ? $this->_run_mod_handler('strip', true, $_tmp) : smarty_modifier_strip($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
<?php endif; ?> <?php echo $this->_tpl_vars['tdescription']; ?>
 </title>
      <meta http-equiv="Content-Type" content="text/html; charset=<?php echo @CHARSET; ?>
" />

      <link rel="stylesheet" type="text/css" href="<?php echo @DOC_ROOT; ?>
/templates/<?php echo @USE_TEMPLATE; ?>
/style/main.css" />
   <link rel="stylesheet" type="text/css" href="<?php echo @DOC_ROOT; ?>
/templates/<?php echo @USE_TEMPLATE; ?>
/style/fileuploader.css" />

      <?php if (@ENABLE_META_TAGS): ?>
      <?php if (! empty ( $this->_tpl_vars['MetaKeywords'] )): ?>
         <meta name="keywords" content="<?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['MetaKeywords'])) ? $this->_run_mod_handler('strip', true, $_tmp) : smarty_modifier_strip($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
" />
      <?php endif; ?>
      <?php if (! empty ( $this->_tpl_vars['MetaDescription'] )): ?>
         <meta name="description" content="<?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['MetaDescription'])) ? $this->_run_mod_handler('strip', true, $_tmp) : smarty_modifier_strip($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
" />
      <?php endif; ?>
            <?php if (! empty ( $this->_tpl_vars['MetaAuthor'] )): ?>
         <meta name="author" content="<?php echo $this->_tpl_vars['MetaAuthor']; ?>
" />
      <?php endif; ?>
      <?php if (! empty ( $this->_tpl_vars['MetaCopyright'] )): ?>
         <meta name="copyright" content="<?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['MetaCopyright'])) ? $this->_run_mod_handler('strip', true, $_tmp) : smarty_modifier_strip($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
" />
      <?php endif; ?>
      <?php if (! empty ( $this->_tpl_vars['MetaRobots'] )): ?>
         <meta name="robots" content="<?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['MetaRobots'])) ? $this->_run_mod_handler('strip', true, $_tmp) : smarty_modifier_strip($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
" />
      <?php endif; ?>
   <?php endif; ?>

      <?php if (@ENABLE_RSS && ( ! empty ( $this->_tpl_vars['search'] ) || $this->_tpl_vars['category']['ID'] > 0 || $this->_tpl_vars['list'] ) && count ( $this->_tpl_vars['links'] ) > 0): ?>
      <link rel="alternate" type="application/rss+xml" title="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['in_page_title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
" href="<?php echo @SITE_URL; ?>
/rss.php?<?php if (! empty ( $this->_tpl_vars['search'] )): ?>search=<?php echo urlencode($this->_tpl_vars['search']); ?>
<?php elseif ($this->_tpl_vars['p'] > 1): ?>p=<?php echo $this->_tpl_vars['p']; ?>
<?php elseif ($this->_tpl_vars['list']): ?>list=<?php echo $this->_tpl_vars['list']; ?>
<?php else: ?>c=<?php echo $this->_tpl_vars['category']['ID']; ?>
<?php endif; ?>" />
   <?php endif; ?>

      <?php if ($this->_tpl_vars['load_Javascript']): ?>
		<script src="<?php echo @DOC_ROOT; ?>
/javascripts/jquery-1.3.2.min.js"></script>
		<script src="<?php echo @DOC_ROOT; ?>
/javascripts/ajaxupload.js" type="text/javascript"></script>
		<script src="<?php echo @DOC_ROOT; ?>
/javascripts/jquery/jquery-ui-1.7.2.custom.min.js"></script>
		<script type="text/javascript" src="<?php echo @DOC_ROOT; ?>
/javascripts/jquery.validate.js"></script>

		
		<?php if ($this->_tpl_vars['is_detail']): ?>
			
		<link rel="stylesheet" type="text/css" href="<?php echo @DOC_ROOT; ?>
/templates/<?php echo @USE_TEMPLATE; ?>
/style/jcarousel.css" />
			<script type="text/javascript" src="<?php echo @DOC_ROOT; ?>
/javascripts/jquery/jquery.jcarousel.min.js"></script>

		<script type="text/javascript" src="<?php echo @DOC_ROOT; ?>
/javascripts/flowplayer-3.2.6.min.js"></script>
		<?php endif; ?>
		
		<script type="text/javascript">
			<?php echo 'jQuery.noConflict();'; ?>

		</script>

		       
				<script type="text/javascript" src="<?php echo @DOC_ROOT; ?>
/javascripts/formtool/formtool.js"></script>
		
	    	    <script type="text/javascript" src="<?php echo @DOC_ROOT; ?>
/javascripts/prototype/prototype.js"></script>
	    	    <script type="text/javascript" src="<?php echo @DOC_ROOT; ?>
/javascripts/scriptaculous/scriptaculous.js"></script>
       
				<script type="text/javascript" src="<?php echo @DOC_ROOT; ?>
/javascripts/thickbox/thickbox.js"></script>
		<link rel="stylesheet" href="<?php echo @DOC_ROOT; ?>
/javascripts/thickbox/ThickBox.css" type="text/css" media="screen" />
		
		<script type="text/javascript" src="<?php echo @DOC_ROOT; ?>
/javascripts/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
	   <link rel="stylesheet" href="<?php echo @DOC_ROOT; ?>
/javascripts/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
		
		<script type="text/javascript" src="<?php echo @DOC_ROOT; ?>
/javascripts/categ_selection/categ_selection.js"></script>
     
   <?php elseif ($this->_tpl_vars['uLevel'] == 1): ?>
				<script src="<?php echo @DOC_ROOT; ?>
/javascripts/jquery-1.3.2.min.js"></script>
		<script src="<?php echo @DOC_ROOT; ?>
/javascripts/jquery/jquery-ui-1.7.2.custom.min.js"></script>
   <?php endif; ?>
   
    <?php echo '
    <script type="text/javascript">
        var valid_obj = new Object();
    </script>
    '; ?>


</head>
<?php if ($this->_tpl_vars['scriptname'] == 'detail' & ! empty ( $this->_tpl_vars['link_data']['ADDRESS'] )): ?>
<body onload="load()" onunload="GUnload()">
<?php else: ?>
<body>
<?php endif; ?>
<script type="text/javascript">
<?php echo '

function increase_height() {
   height = parseInt(document.getElementById(\'slide\').style.marginTop);
   if (height<110) {
      document.getElementById(\'slide\').style.marginTop = eval(height+2)+"px";
      setTimeout("increase_height()",0.0001);
   } else {
      document.getElementById(\'panel\').style.zIndex = 200;
   }
}

function decrease_height() {
   height = parseInt(document.getElementById(\'slide\').style.marginTop);
   document.getElementById(\'panel\').style.zIndex = -1;
   if (height>0) {
      document.getElementById(\'slide\').style.marginTop = eval(height-2)+"px";
      setTimeout("decrease_height()",0.0001);
   }
}

function show_panel() {
  
   height = parseInt(document.getElementById(\'slide\').style.marginTop);
   if (height>0) {
      decrease_height();
   } else {
      increase_height();
   }
   return false;
}

function ajaxFunction()
{

var xmlHttp;

try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      }
    }
   var url = "'; ?>
<?php echo @SITE_URL; ?>
<?php echo 'update_session.php";

   xmlHttp.open("POST", url, false);
   xmlHttp.setRequestHeader( 
    \'Content-Type\', 
    \'application/x-www-form-urlencoded; charset=UTF-8\' 
); 
   xmlHttp.send(\'url=\'+window.location);
  }
</script>

'; ?>

</script>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../".($this->_tpl_vars['core_templates'])."/messages.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php if ($this->_tpl_vars['inplace_arterror'] != ''): ?>
<script type="text/javascript">
<?php echo '
   jQuery(function($) { /* some code that uses $ */ 
   $(document).ready(function(){ tb_show("Edit Article", "'; ?>
<?php echo @DOC_ROOT; ?>
<?php echo '/inplace_editart.php?ID='; ?>
<?php echo $this->_supers['session']['editart']['ID']; ?>
<?php echo '&mode=edit&KeepThis=true&TB_iframe=true&height=400&width=600", "group"); });
   });
'; ?>

</script>
<?php endif; ?>


<?php if ($this->_tpl_vars['inplace_caterror'] != ''): ?>
<script type="text/javascript">
<?php echo '
   jQuery(function($) { /* some code that uses $ */ 
   $(document).ready(function(){ tb_show("Edit Category", "'; ?>
<?php echo @DOC_ROOT; ?>
<?php echo '/inplace_editcat.php?ID='; ?>
<?php echo $this->_supers['session']['editcat']['ID']; ?>
<?php echo '&mode=edit&KeepThis=true&TB_iframe=true&height=400&width=600", "group"); });
   });
'; ?>

</script>
<?php endif; ?>

<?php if ($this->_tpl_vars['inplace_pageerror'] != ''): ?>
<script type="text/javascript">
<?php echo '
   jQuery(function($) { /* some code that uses $ */ 
   $(document).ready(function(){ tb_show("Edit Page", "'; ?>
<?php echo @DOC_ROOT; ?>
<?php echo '/inplace_editpage.php?ID='; ?>
<?php echo $this->_supers['session']['editpage']['ID']; ?>
<?php echo '&mode=edit&KeepThis=true&TB_iframe=true&height=400&width=600", "group"); });
   });
'; ?>

</script>
<?php endif; ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "validation.tpl", 'smarty_include_vars' => array('form_id' => 'login_form','validators' => $this->_tpl_vars['login_validators'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "validation.tpl", 'smarty_include_vars' => array('form_id' => 'search_form','validators' => $this->_tpl_vars['search_validators'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php if (( @REQUIRE_REGISTERED_USER == 1 || @REQUIRE_REGISTERED_USER_ARTICLE == 1 )): ?>
<div id="topwrapper">
	<div id="top">
		<?php if ($this->_tpl_vars['scriptname'] != 'profile' && $this->_tpl_vars['scriptname'] != 'login' && empty ( $this->_tpl_vars['regular_user_details'] )): ?> 
			<form method="post" action="<?php echo @DOC_ROOT; ?>
/login.php" onsubmit="ajaxFunction();">
				<table id="login" cellpadding="0" cellspacing="0">
					<tr>
						<td><label>Username:</label></td>
						<td><input type="text" name="user" value="<?php echo $this->_tpl_vars['user']; ?>
" size="20" maxlength="<?php echo @USER_LOGIN_MAX_LENGTH; ?>
" class="text" /></td>
						<td><label>Password:</label></td>	
						<td><input type="password" name="pass" value="" size="20" maxlength="<?php echo @USER_PASSWORD_MAX_LENGTH; ?>
" class="text" /></td>
						<td><input class="button" type="submit" name="login" value="Login" /></td>
						<td class="sep"><div id="loginsplit"></div></td>
						<td><a href="<?php echo @DOC_ROOT; ?>
/profile.php?mode=register" title="Magrehistro">Register to PHPLD</a></td>
					</tr>
				</table>
				<a class="lostpassword" href="<?php echo @DOC_ROOT; ?>
/profile.php?mode=sendpassword" title="makuha ang iyong password">Lost password?</a>
				<img src="<?php echo @DOC_ROOT; ?>
/templates/<?php echo @USE_TEMPLATE; ?>
/images/lost.gif" />
				 <input type="hidden" name="formSubmitted" value="1" />
			</form>
		<?php elseif (! empty ( $this->_tpl_vars['regular_user_details'] )): ?>
			<div class="user_meta">
				: <strong><?php echo ((is_array($_tmp=$this->_tpl_vars['regular_user_details']['NAME'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</strong>
				<a href="<?php echo @DOC_ROOT; ?>
/logout.php" title="Mag-log out sa account na ito">Mag-sign Out</a> 
		        <a href="<?php echo @DOC_ROOT; ?>
/profile.php?mode=logged" title="I-edit ang mga setting ng iyong account">Aking Account</a>
			</div>
		<?php endif; ?>
	</div>
</div>
<?php endif; ?>


<div id="headerwrapper">
	<div id="header">
		<a class="logo" href="<?php echo @DOC_ROOT; ?>
/"><img src="<?php echo @DOC_ROOT; ?>
/templates/<?php echo @USE_TEMPLATE; ?>
/images/logo.gif" alt="" /></a>
		<div id="searchmenu">
			<div class="left"></div>
			<div class="center">
				<div id="searchtop">
					<form action="<?php echo @DOC_ROOT; ?>
/index.php" method="get" style="float: left; margin: 0px; padding: 0px" id="search_form">
						<div id="inputleft"></div>
						<input onfocus="javascript: if (this.value=='Search') this.value='';" type="text" value="<?php if (! empty ( $this->_tpl_vars['search'] )): ?><?php echo ((is_array($_tmp=$this->_tpl_vars['search'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
<?php else: ?>Search<?php endif; ?>" name="search" />
						<div id="inputright"></div>
						<button type="submit"></button>
					</form>
					<a href="<?php echo @DOC_ROOT; ?>
/search.php?type=advanced" title="Pumunta sa advanced search page ng" accesskey="4" rel="nofollow">Advanced Maligayang pagdating<br />Search</a>
				</div>
				
				
