<div id="main_borders">
  <div id="main_inner_borders">
    <div class="subcolumns">
      <div class="c50l">
        <h2><strong>
          <?=$title?>
          </strong></h2>
      </div>
      <div class="c50r">
            <? if ($new) { ?>
<? $atts = array(
              'width'      => '500',
              'height'     => '200',
              'scrollbars' => 'yes',
              'status'     => 'yes',
              'resizable'  => 'yes',
              'screenx'    => '0',
              'screeny'    => '0'
            ); ?>
			<?php /*?><h2 style="text-align:right; padding-right:10px"><?=date("d.m.Y",mysql_to_unix($new['date']))?></h2>
<?php */?>     <? } ?>
     </div>
    </div>
    <? if ($new) { ?>
    <p>
<? $varieties = $this->MFuncs->getVarieties(); ?>
      <? if ($varieties) { ?>
      			<? $text = str_replace('images/cat_images/', base_url().'images/cat_images/', $new['longdesc']); ?>
                <? foreach($varieties as $varieties=>$variety): ?>
                <? $text = str_replace($variety['name'], anchor_popup('variety/'.$variety['var_id'], $variety['name'], $atts), $text)?>
                <? endforeach ?>
                <?=$text?>
                <? } else { ?>
            	<?=str_replace('images/cat_images/', base_url().'images/cat_images/', $new['longdesc']); ?>
            	<? } ?>
    </p>
    <? } ?>
  </div>
</div>
