{include file="$gentemplates/_header.tpl"}
{if $menu_today eq "yes"}
	{include file="$gentemplates/_navi.tpl" submenu="3"}
{else}
	{include file="$gentemplates/_navi.tpl"}
{/if}

<script type="text/javascript" src="{$rooturl}modules/calendar/templates/{$theme}/js/overdiv_style.js"></script>
<!-- NATYS -->
<!-- <div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
<script language="JavaScript" src="{$rooturl}modules/general/templates/{$theme}/js/overlib.js"><!-- overLIB (c) Erik Bosrup --></script> 
<!-- //NATYS -->

{include file="_cal_contentheader.tpl" title=$header_date|smarty:nodefaults nav_links=$nav_links|smarty:nodefaults nav_rechts=$nav_rechts|smarty:nodefaults}
<table width="100%" border="0" class="contentback" cellspacing="0" cellpadding="0" height="300">
  <tr>
    <td valign="top">
	  {* TABLE START *}
	  <!-- table for select all -->
      {if $calendarid eq "all"}
        {include file="$gentemplates/_th9.tpl" r1=$gentemp_from|smarty:nodefaults r2=$gentemp_to|smarty:nodefaults r3="$temp_inituser" r4="$desc" r5="$priv" r6="$avail" r7="$part" r8="$temp_city" r9="$action" }
	  {else}
        {include file="_th8_cal.tpl" r1=$gentemp_from|smarty:nodefaults r2=$gentemp_to|smarty:nodefaults r3="$desc" r4="$priv" r5="$avail" r6="$part" r7="$city" r8="$action" }
      {/if}
	  
	  {if $holiday eq 1}
	  	{include file="_calendar_day_row.tpl" class="feiertag" r1="" r2="" r4="$celebration_day"}
	  {/if}
      
	    {section name=content loop=$td}
        {include file="_calendar_day_row.tpl" r1=$td[content].start|smarty:nodefaults r2=$td[content].to|smarty:nodefaults r3=$td[content].inituser|smarty:nodefaults r4=$td[content].topic|truncate:100:"...":true|smarty:nodefaults r4_type=$td[content].topic_type|smarty:nodefaults r4_color=$td[content].topic_color|smarty:nodefaults r4_1=$td[content].private|smarty:nodefaults r4_21=$td[content].availability|smarty:nodefaults r4_22=$td[content].telephone|smarty:nodefaults r4_3=$td[content].parties|smarty:nodefaults r5=$td[content].location|smarty:nodefaults r5_type=$td[content].location_type|smarty:nodefaults r6=$td[content].rowactions|smarty:nodefaults class=$td[content].class|smarty:nodefaults }
        {/section}
      {include file="$gentemplates/_tfx.tpl"}
      {* TABLE END *}
    </td>
    <td width="250" valign="top" align="center">
	
	    <table border="0" cellpadding="0" cellspacing="0" width="180" >
			<tr>
			  <td>{include file="_actual_calendar_owner.tpl"}</td>
			</tr>
			<tr align="left">
				<td class="stand">
					<img src="{$imgpathmaster}/space.gif" alt="" width="1" height="10">
				</td>
			</tr>
			<tr>
				<td>
					{include file="_select_calendar_owner.tpl"}
				</td>
			</tr>
			<tr align="left">
				<td class="stand">
					<img src="{$imgpathmaster}/space.gif" alt="" width="1" height="10">
				</td>
			</tr>
			<tr>
				<td>
					{$month_calendar|smarty:nodefaults}
				</td>
			</tr>
			<tr align="left">
				<td class="stand">
					<img src="{$imgpathmaster}/space.gif" alt="" width="1" height="10">
				</td>
			</tr>
			<tr>
				<td>
					{include file="jump_to.tpl"}
				</td>
			</tr> 
			<tr align="left">
				<td class="stand">
					<img src="{$imgpathmaster}/space.gif" alt="" width="1" height="10">
				</td>
			</tr>
			<tr>
				<td>
					{include file="calendar_legend.tpl"}
				</td>
			</tr>
	      </table>
    </td>
  </tr>
</table>

{include file="_calendar_appt_type_legend.tpl" appt_type_legend=$appt_type_legend}

{include file="$gentemplates/_footer.tpl" aktUser=$username}
