{literal}
<style>
body {background:black}
</style>{/literal}
{if $template_event eq 'preview'}
<table>
  <tr>
    <td valign='top' rowspan='2' ><img hspace='5' src='{get_image_link id=$user_id}'></td>
    <td width='100%' valign='top'>
      <table width='100%'>
        <tr class='header'><td align='center'>PREVIEW of {$post_vars.node_name}</td></tr>
        <tr><td>{$post_vars.node_content|preview}</td></tr>
      </table>
</table>
{* end of preview *}
{elseif $template_event eq 'filter_by'}
{get_threaded_children listing_amount=23232322323 offset=$offset types=$children_types search_type=$post_vars.search_type search=$post_vars.node_content}
{elseif $node.node_user_subchild_count eq true}
{get_threaded_children offset=0 link='yes' listing_amount=23232323232 time=$node.last_visit orderby=$listing_order }
<!--<center><span class='most_important'>pozor doslo k zmene funkcnosti systemu, NEW prispevky (vsetky) sa zobrazuju od najstarsieho k najnovsiemu zhora dolu</span></center>-->
{else}
{get_threaded_children link='yes' listing_amount=$listing_amount offset=$offset orderby=$listing_order}
{/if}

{foreach from=$get_threaded_children item=child}{if $child.template_id neq 1549834 and $child.external_link neq "session://fook"}
<table width='666' style='background:#003333'>
  <tr class='vector' style='background:#000'>
{*IGNORE USER CONDITION*}{if $ignore[$child.node_creator] neq true}
{*if $child.node_created > $node.last_visit and $child.depth>$node.vector_depth*}
    <td colspan='3' class='vector'><a href='/id/{$child.node_parent}' style='color:#000' class='childVector'>{$child.node_vector}</a></td>
  </tr>
{*/if*}
  <tr>
  {math equation="(x-y)-8" x=$child.depth y=$node.vector_depth assign="dpth"}
  {math equation="(ceil(23/pow(2,$dpth)))" assign="a"}
{if $dpth neq 0}
<td width='{math equation="((x-y)-16)+$a" x=$child.depth y=$node.vector_depth}%'></td>
{else}
<td width='{math equation="(x-y)-8" x=$child.depth y=$node.vector_depth}%'></td>
{/if}
    <td valign='top' rowspan='2' style='background:#000'>

    </td>
    <td width='{math equation="100-(x-y)" x=$child.depth y=$node.vector_depth}%'>
      <table style='border:1px solid' width='100%' height='200'></table>
    </td>
{/if}{*IGNORE USER CONDITION end*}
</tr>
</table>

<br>{/if}
{/foreach}