<?php /* Smarty version 2.6.10, created on 2006-07-27 21:05:55
         compiled from gallery:modules/imageframe/templates/containers/ImageFrame.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'counter', 'gallery:modules/imageframe/templates/containers/ImageFrame.tpl', 10, false),array('modifier', 'replace', 'gallery:modules/imageframe/templates/containers/ImageFrame.tpl', 13, false),)), $this); ?>
<?php if (isset ( $this->_tpl_vars['ImageFrameData']['data'][$this->_tpl_vars['frame']] )): ?>
  <?php $this->assign('data', $this->_tpl_vars['ImageFrameData']['data'][$this->_tpl_vars['frame']]);  endif;  echo smarty_function_counter(array('name' => 'ImageFrame_counter','assign' => 'IF_count'), $this);?>

<?php $this->assign('objectId', "IFid".($this->_tpl_vars['IF_count']));  if (! isset ( $this->_tpl_vars['data'] ) || $this->_tpl_vars['data']['type'] == 'style'): ?>
  <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['content'])) ? $this->_run_mod_handler('replace', true, $_tmp, "%ID%", $this->_tpl_vars['objectId']) : smarty_modifier_replace($_tmp, "%ID%", $this->_tpl_vars['objectId'])))) ? $this->_run_mod_handler('replace', true, $_tmp, "%CLASS%", "ImageFrame_".($this->_tpl_vars['frame'])) : smarty_modifier_replace($_tmp, "%CLASS%", "ImageFrame_".($this->_tpl_vars['frame']))); ?>

<?php elseif ($this->_tpl_vars['data']['type'] == 'image'): ?>
  <table class="ImageFrame_<?php echo $this->_tpl_vars['frame']; ?>
" border="0" cellspacing="0" cellpadding="0">
  <?php if (! empty ( $this->_tpl_vars['data']['imageTT'] ) || ! empty ( $this->_tpl_vars['data']['imageTL'] ) || ! empty ( $this->_tpl_vars['data']['imageTR'] ) || ! empty ( $this->_tpl_vars['data']['imageTTL'] ) || ! empty ( $this->_tpl_vars['data']['imageTTR'] )): ?>
    <tr>
    <td class="TL"></td>
    <?php if ($this->_tpl_vars['data']['wHL']): ?><td class="TTL"></td><?php endif; ?>
    <td class="TT"<?php if ($this->_tpl_vars['data']['wHL'] || $this->_tpl_vars['data']['wHR']): ?>
     style="width:expression((document.getElementById('<?php echo $this->_tpl_vars['objectId']; ?>
').width-<?php echo $this->_tpl_vars['data']['wHL']+$this->_tpl_vars['data']['wHR']; ?>
)+'px')"
    <?php endif; ?>><div class="H"></div></td>
    <?php if ($this->_tpl_vars['data']['wHR']): ?><td class="TTR"></td><?php endif; ?>
    <td class="TR"></td>
    </tr>
  <?php endif; ?>
  <tr>
  <?php if ($this->_tpl_vars['data']['hVT']): ?><td class="LLT"></td><?php else: ?><td class="LL"<?php if ($this->_tpl_vars['data']['hVT'] || $this->_tpl_vars['data']['hVB']): ?>
   style="height:expression((document.getElementById('<?php echo $this->_tpl_vars['objectId']; ?>
').height-<?php echo $this->_tpl_vars['data']['hVT']+$this->_tpl_vars['data']['hVB']; ?>
)+'px')"
   <?php endif; ?>><div class="V">&nbsp;</div></td><?php endif; ?>
  <td rowspan="<?php echo $this->_tpl_vars['data']['rowspan']; ?>
" colspan="<?php echo $this->_tpl_vars['data']['colspan']; ?>
" class="IMG"
  ><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['content'])) ? $this->_run_mod_handler('replace', true, $_tmp, "%ID%", $this->_tpl_vars['objectId']) : smarty_modifier_replace($_tmp, "%ID%", $this->_tpl_vars['objectId'])))) ? $this->_run_mod_handler('replace', true, $_tmp, "%CLASS%", 'ImageFrame_image') : smarty_modifier_replace($_tmp, "%CLASS%", 'ImageFrame_image')); ?>
</td>
  <?php if ($this->_tpl_vars['data']['hVT']): ?><td class="RRT"></td><?php else: ?><td class="RR"<?php if ($this->_tpl_vars['data']['hVT'] || $this->_tpl_vars['data']['hVB']): ?>
   style="height:expression((document.getElementById('<?php echo $this->_tpl_vars['objectId']; ?>
').height-<?php echo $this->_tpl_vars['data']['hVT']+$this->_tpl_vars['data']['hVB']; ?>
)+'px')"
   <?php endif; ?>><div class="V">&nbsp;</div></td><?php endif; ?>
  </tr>
  <?php if ($this->_tpl_vars['data']['hVT']): ?>
    <tr>
    <td class="LL"<?php if ($this->_tpl_vars['data']['hVT'] || $this->_tpl_vars['data']['hVB']): ?>
     style="height:expression((document.getElementById('<?php echo $this->_tpl_vars['objectId']; ?>
').height-<?php echo $this->_tpl_vars['data']['hVT']+$this->_tpl_vars['data']['hVB']; ?>
)+'px')"
    <?php endif; ?>><div class="V">&nbsp;</div></td>
    <td class="RR"<?php if ($this->_tpl_vars['data']['hVT'] || $this->_tpl_vars['data']['hVB']): ?>
     style="height:expression((document.getElementById('<?php echo $this->_tpl_vars['objectId']; ?>
').height-<?php echo $this->_tpl_vars['data']['hVT']+$this->_tpl_vars['data']['hVB']; ?>
)+'px')"
    <?php endif; ?>><div class="V">&nbsp;</div></td>
    </tr>
  <?php endif; ?>
  <?php if ($this->_tpl_vars['data']['hVB']): ?>
    <tr>
    <td class="LLB"></td>
    <td class="RRB"></td>
    </tr>
  <?php endif; ?>
  <?php if (! empty ( $this->_tpl_vars['data']['imageBB'] ) || ! empty ( $this->_tpl_vars['data']['imageBL'] ) || ! empty ( $this->_tpl_vars['data']['imageBR'] ) || ! empty ( $this->_tpl_vars['data']['imageBBL'] ) || ! empty ( $this->_tpl_vars['data']['imageBBR'] )): ?>
    <tr>
    <td class="BL"></td>
    <?php if ($this->_tpl_vars['data']['wHL']): ?><td class="BBL"></td><?php endif; ?>
    <td class="BB"<?php if ($this->_tpl_vars['data']['wHL'] || $this->_tpl_vars['data']['wHR']): ?>
     style="width:expression((document.getElementById('<?php echo $this->_tpl_vars['objectId']; ?>
').width-<?php echo $this->_tpl_vars['data']['wHL']+$this->_tpl_vars['data']['wHR']; ?>
)+'px')"
    <?php endif; ?>><div class="H"></div></td>
    <?php if ($this->_tpl_vars['data']['wHR']): ?><td class="BBR"></td><?php endif; ?>
    <td class="BR"></td>
    </tr>
  <?php endif; ?>
  </table>
<?php endif; ?>