<?php
/*
  $Id: boxad.php,v 1.2 2008/06/23 00:18:17 datazen Exp $

  CRE Loaded, Open Source E-Commerce Solutions
  http://www.creloaded.com

  Copyright (c) 2008 CRE Loaded
  Copyright (c) 2008 AlogoZone, Inc.
  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/
?>
<!-- boxad //-->
<?php
if ($banner = tep_banner_exists('dynamic', BOX_AD_BANNER_TYPE)) {
  ?>
  <tr>
    <td>
      <?php
      $bannerstring = tep_display_banner('static', $banner);
      $info_box_contents = array();
      $info_box_contents[] = array('align' => 'left',
                                   'text'  => '<font color="' . $font_color . '">' . BOX_AD_BANNER_HEADING . '</font>'
                                  );
      new $infobox_template_heading($info_box_contents, '', $column_location);
      $info_box_contents = array();
      $info_box_contents[] = array('align' => 'center',
                                   'text'  => $bannerstring
                                  );
      new $infobox_template($info_box_contents, true, true, $column_location);
      if (TEMPLATE_INCLUDE_FOOTER =='true'){
        $info_box_contents = array();
        $info_box_contents[] = array('align' => 'left',
                                     'text'  => tep_draw_separator('pixel_trans.gif', '100%', '1')
                                    );
        new $infobox_template_footer($info_box_contents, $column_location);
      }  
      ?>
    </td>
  </tr>
  <?php
}
?>
<!-- boxad eof//-->