<!-- tt2.splash.tabsbox -->  
[%
  # splash/tabsbox: a box with a row of tabs
  # ARGS:
  #	tabs	    # list of { text => '...', link => '...' } tabs
  #     select	    # tab to select (1 - n, 0: none)
  #     content     # box content
  #     width       # box width (default: 0, grow to fit content)
  # The following default to values set in the select style
  #     fill        # fill colour
  #     border      # border width
  #     pad	    # box padding
  #     tabalign    # alignment of tab texts
  #     tablocate   # tab location ('left', 'center', 'right')
  # + all configuration values for splash/text
    DEFAULT
	style     = select ? splash.select : splash.unselect
        bar       = style.col.bar    or splash.col.bar
        fill      = style.col.fill   or splash.col.fill
        tablocate = style.tab.locate or splash.tab.locate
    ;
    SET
	rgbcol  = splash.rgb.$edge
	imgdir  = "$splash.images/$edge"
        imgsize = splash.imgsize
        border  = border.defined ? border 
			: (style.border.defined ? style.border : splash.border)
        pad     = pad.defined ? pad 
			: (style.pad.defined ? style.pad : splash.pad)
-%]
<table border=0 cellpadding=0 cellspacing=0
  [%- IF width  %] width="[% width %]"[% END %]>
[% INCLUDE tabset UNLESS invert -%]
  <tr> 
    <td>
[%- WRAPPER splash/box col=bar  width='100%' pad=0 space=0;
	INCLUDE splash/box col=fill width='100%' space=border;
    END
%]</td>
  </tr>
[% INCLUDE tabset IF invert -%]
</table>
<!-- /splash.tabsbox -->
[% BLOCK tabset -%]
  <tr>
    <td align="[% tablocate %]">
[% INCLUDE splash/tabset style='' %]</td>
  </tr>
[% END -%]
