<!-- tt2.splash.tabbox -->  
[%
  # splash/tabbox: a box with a single tab
  # ARGS:
  #	title	    # box title (placed in tab)
  #     content     # box content
  #     width       # box width (default: 0, grow to fit content)
  #     tabwidth    # width of tab (default: 0, grow to fit)
  #     select	    # flag to select style (1: select, 0: unselect)
  # The following default to values set in the style
  #     col         # colour
  #     fill        # fill colour
  #     border      # border width
  #     pad	    # box padding
  #     tabalign    # alignment of tab text
  #     tablocate   # tab location ('left', 'center', 'right')
  # + all configuration values for splash/text
-%]
[%  DEFAULT 
	style = select ? splash.select : splash.unselect
	col   = 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 %]>
  <tr>
    <td align="[% tablocate %]">
	[%- INCLUDE splash/tab 
		width=tabwidth 
		align=tabalign
		content=title %]</td>
  </tr>

  <tr> 
    <td>[% WRAPPER splash/box width='100%' pad=0 space=0;
           INCLUDE splash/box col=fill width='100%' space=border;
           END
        %]</td>
  </tr>
</table>
<!-- /splash.tabbox -->
