if ($width && $height && $cfile->image_size['type'] != 13 && $cfile->image_size['type'] != 4) {
        print view_image_file($work['pict'], $_SESSION['login'], "upload", array('max_dim' => 200, 'class' => 'b-prev__pic', 'id' => 'work_image'));
    } else {
        ?>
                                                                <div id="work_image" class="b-layout b-layout_padtop_20 b-layout_padlr_10">
                                                                    <table cellspacing="0" cellpadding="0" border="0" class="b-layout__table b-layout__table_width_full">
                                                                            <tr class="b-layout__tr">
                                                                                <td class="b-icon-layout__icon"><i class="b-icon b-icon_attach_<?php 
        echo getICOFile($cfile->getext());
        ?>
"></i></td>
                                                                                <td class="b-icon-layout__files"><div class="b-layout__txt b-layout__txt_padtop_5"><a href="<?php 
        echo WDCPREFIX . '/' . $cfile->path . $cfile->name;
        ?>
" class="b-icon-layout__link b-icon-layout__link_fontsize_13"><?php 
        echo uploader::cutNameFile($cfile->original_name, portfolio::FILE_NAME_LENGTH_EDIT);
        ?>
</a></div></td>
                                                                                <td class="b-icon-layout__size" style="padding-right:0;"><div class="b-layout__txt b-layout__txt_padtop_5">,<?php 
        echo ConvertBtoMB($cfile->size);
        ?>
</div></td>
                                                                            </tr>
                                                                    </table>
                                                                      <div id="swf_params" class="b-select b-select_padtop_10 b-select_center" <?php 
        echo strtolower(preg_replace("#.*(\\.[a-zA-Z0-9]*)\$#", '$1', $cfile->name)) != ".swf" ? 'style="display:none"' : '';
        ?>
>
                                                                          <label for="wmode" class="b-select__label b-select__label_inline-block b-select__label_fontsize_11">wmode: </label>
                                                                          <select id="wmode" class="b-select__select b-select__select_width_70" name="wmode">
                                                                              <option>window</option>