<table border="0" cellpadding="0" cellspacing="0" width="775">
  <tr>
  	<td class="stand" height="10" width="100%" COLSPAN="8"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
  </tr>
  <tr>
    <td class="stand" height="1" width="20"><img src="{$imgpathmaster}/space.gif" alt="" width="20" height="1" /></td>
	<td class="lines" height="1" colspan="6"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
    <td class="stand" height="1" width="20"><img src="{$imgpathmaster}/space.gif" alt="" width="20" height="1" /></td>
  </tr>
  <tr class="stand" align="left">
    <td class="stand" height="1" width="20"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
	<td class="lines" height="1" width="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
    <td class="subnavback" height="22" width="50"><img src="{$imgpathmaster}/space.gif" alt="" width="50" height="1" /></td>
    <td class="subnavback" colspan=2 align="left" NOWRAP><div class="subnavlinkon"><strong>{$legend_appt_type}</strong></div></td>
    <td class="subnavback" height="22"  WIDTH="100%">&nbsp;</td>
    <td class="lines" height="1" width="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
    <td class="stand" height="1" width="20"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
  </tr>
  <tr>
    <td class="stand" height="1" width="20"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
    <td class="lines" height="1" colspan="6"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
    <td class="stand" height="1" width="20"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
  </tr>
  <tr>
    <td class="stand" height="1" width="20"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
    <td class="lines" height="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
    <td class="stand" height="1" colspan="4"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="4" /></td>
    <td class="lines" height="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
    <td class="stand" height="1" width="20"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
  </tr>
  
 
  <tr> 
    <td class="stand" height="1" width="20"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
  	<td class="lines" height="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
    <td class="stand" height="1" colspan="4">
    <table border="0" cellpadding="0" cellspacing="0">
	<tr>
	{section name=legend loop=$appt_type_legend}
	    <td class="stand" height="22" width="50" align="center" valign="middle">&nbsp;</td>
	    <td class="stand" height="22" width="20" align="center" valign="middle" STYLE="background-color:{$appt_type_legend[legend].color};border:1px solid black;">&nbsp;</td>
	    <td class="stand" height="22" width="10" align="center" valign="middle">&nbsp;</td>
	    <td class="stand" height="22" align="center" valign="middle">{$appt_type_legend[legend].text}</td>
  	{/section}
	</tr>
	</table>
  	</td>
	<td class="lines" height="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
    <td class="stand" height="1" width="20"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
  </tr>
  <tr>
    <td class="stand" height="1" width="20"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
    <td class="lines" height="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
    <td class="stand" height="1" colspan="4"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="4" /></td>
    <td class="lines" height="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
    <td class="stand" height="1" width="20"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
  </tr>
  
  
  <tr>
    <td class="stand" height="1" width="20"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
    <td class="lines" height="1" colspan="6"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
    <td class="stand" height="1" width="20"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
  </tr>
</table>