<?php defined('_JEXEC') or die('Restricted access');
    if(!count($this->images)): ?>
    <div class="jg_bu_no_images">
      <?php echo JText::_('JGS_MINI_NO_IMAGES'); ?>
    </div>
<?php endif;
      foreach($this->images as $row): ?>
    <div class="jg_bu_mini">
<?php if($row->thumb_src): ?>
      <a href="javascript:if(typeof window.parent.joom_selectimage == 'function'){window.parent.joom_selectimage(<?php echo $row->id; ?>, '<?php echo stripslashes($row->imgtitle); ?>', '<?php echo JRequest::getVar('object'); ?>', '<?php echo $row->imgthumbname; ?>');}else{insertJoomPluWithId('<?php echo $row->id; ?>', '<?php echo $this->e_name; ?>');}" title="::<?php echo $row->overlib; ?>" class="hasMiniTip">
        <img src="<?php echo $row->thumb_src; ?>" border="0" height="40" width="40" alt="Thumbnail" /></a>
<?php endif;
      if(!$row->thumb_src): ?>
      <div class="jg_bu_no_mini" title="<?php echo JText::_('JGS_MINI_NO_THUMB'); ?>::<?php echo JText::sprintf('JGS_MINI_NO_THUMB_TIPTEXT', $row->id, $row->imgtitle); ?>" class="hasMiniTip">
        <?php echo JText::_('JGS_MINI_NO_THUMB'); ?></div>
<?php endif; ?>
    </div>
<?php endforeach;