{php $CATEGORY = cache_read('category-'.$mid.'.php');} {php $child = get_maincat(0, $mid, 1);} {loop $child $i $c} {if in_array($c[catid], array(7421))} {if $c[child]}{php $sub = get_maincat($c[catid], $CATEGORY, 1);} {loop $sub $j $s}{if $j < 4}
{set_style($s[catname], $s[style])}
  {if $s[child]}{php $sub = get_maincat($s[catid], $CATEGORY, 1);} {loop $sub $k $s1}{if $k < 6} {set_style($s1[catname], $s1[style])} {/if} {/loop} {/if}
{/if} {/loop} {/if} {/if} {/loop}