<?php
/*
  $Id$

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2010 osCommerce

  Released under the GNU General Public License
*/

  if ($messageStack->size('header') > 0) {
    echo '' . $messageStack->output('header') . '';
  }
?>

<div id="header">
  <?php if ($oscTemplate->hasBlocks('boxes_header')) { echo '<div class="boxes_header">'.$oscTemplate->getBlocks('boxes_header').'</div>'; } ?>
	<?php if ($oscTemplate->hasBlocks('boxes_above_header')) { echo '<div class="boxes_above_header">'.$oscTemplate->getBlocks('boxes_above_header').'</div>'; } ?>
  
  <a id="storeLogo" href="<?php echo tep_href_link(FILENAME_DEFAULT);?>"><?php echo tep_image(DIR_WS_IMAGES . 'logo.png', STORE_NAME);?></a>
</div>
<?php
  if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {
?>
<table>
  <tr class="headerError">
    <td class="headerError"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['error_message']))); ?></td>
  </tr>
</table>
<?php
  }

  if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {
?>
<table>
  <tr class="headerInfo">
    <td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td>
  </tr>
</table>
<?php
  }
?>
