<!-- tt2.splash.button -->  
[%
  # splash/button: a single button with rounded corners
  # ARGS:
  #	content	    # button text
  #     alt         # alt text for image links
  #     width       # button width
  #     select      # flag to indicate style (1: select, 0: unselect)
  # The following arguments default to values set in the style
  #     col         # button colour
  #     textcol     # text colour
  #     font        # text font
  #     size        # text size
  #     bold        # make text bold
  #     align       # text alignment
  DEFAULT 
	style   = select ? splash.select : splash.unselect
	col     = style.col.bar   or splash.col.bar
	textcol = style.col.text  or splash.col.text
	font    = style.font.face or splash.font.face
	size    = style.font.size or splash.font.size
        width   = style.button.width or splash.button.width
        align   = style.button.align or splash.button.align;
    SET
	rgbcol  = splash.rgb.$col
	imgdir  = "$splash.images/$col"
        imgsize = splash.imgsize;
	bold    = bold.defined ? bold : style.font.bold;
	bold    = bold.defined ? bold : splash.font.bold;
-%]
<table border=0 [% IF width %]width="[% width %]"[% END %]
       bgcolor="[% rgbcol %]" cellpadding=0 cellspacing=0>
  <tr height="[% imgsize %]" valign=top>
    <td width="[% imgsize %]"><img
        src="[% imgdir %]/topleft.png" 
	width="[% imgsize %]" height="[% imgsize %]"
	[%- IF alt %] alt="[% alt %]"[% END %]></td>
    <td rowspan=2 valign="middle"[% IF align %] align="[% align %]"[% END %]
	[%- IF width %] width="100%"[% END %]>
        [%- INCLUDE splash/text col=textcol -%]
    </td>
    <td width="[% imgsize %]" align="right"><img 
        src="[% imgdir %]/topright.png"
        width="[% imgsize %]" height="[% imgsize %]"
	[%- IF alt %] alt="[% alt %]"[% END %]></td>
  </tr>
  <tr height="[% imgsize %]" valign=bottom>
     <td width="[% imgsize %]" align=left><img 
	 src="[% imgdir %]/botleft.png" 
  	 width="[% imgsize %]" height="[% imgsize %]"
	 [%- IF alt %] alt="[% alt %]"[% END %]></td>
     <td width="[% imgsize %]" align=right><img 
	 src="[% imgdir %]/botright.png" 
  	 width="[% imgsize %]" height="[% imgsize %]"
	 [%- IF alt %] alt="[% alt %]"[% END %]></td>
  </tr>
</table>
<!-- /tt2.splash.button -->  


