<!-- ===================== -->
<!-- MAIN NAVIGATION START -->
<!-- ===================== -->

<table border="0" cellpadding="0" cellspacing="0" width="{$page_width}">
  <tr valign="top">
	<td valign="middle">
	  <table border="0" cellpadding="0" cellspacing="0"><tr>
		<td>
		  
		{if $show_navi_images eq 2 or $show_navi_images eq 4}
		<!-- primitive view begin -->

		{literal}
		<script type="text/javascript">
		var link_obj;
		function execute_link(mylink,sel_obj) {
		  if (mylink != "") {
		    if (mylink.indexOf("javascript:") != -1) {
			  if (sel_obj!=null) { link_obj=sel_obj;setTimeout('link_obj.selectedIndex=0;',5000); }
		      eval(mylink.replace("javascript:","").replace(/\\/g,""));
		    } else {
		      document.location=mylink;
		    }
		  }
		}
		</script>
		{/literal}
		{/if}
		
		{if $show_navi_images eq 2}
		<tr><td>

		<table border="0" cellpadding="0" cellspacing="0"><tr>
		<td>
		  <select onchange="execute_link(this.options[this.selectedIndex].value);">
		    {section name=data loop=$mdata}
		  	  {if $mdata[data].modulename neq "admin" && $mdata[data].modulename neq "settings"}
				<option value="{$rooturl}modules/{$mdata[data].modulename}/{if $mdata[data].base neq ""}{$mdata[data].base}{else}index.php{/if}?{$SESSION}" {if $actmodule eq $mdata[data].modulename}selected{/if}>{$mdata[data].label}</option>
			  {/if}
		    {/section}
		  </select>

		{if $sdata[0].link neq ""}
		  <select onchange="execute_link(this.options[this.selectedIndex].value);">
		    <option>{$actlabel}</option>
		  	{section name=smenu loop=$sdata}
		  	  {if $sdata[smenu].name neq "empty"} 
				<option value="{$sdata[smenu].link}">{$sdata[smenu].name}</option>
			  {/if}
		    {/section}
		  </select>
		{/if}

		{$custom_module_menu2|smarty:nodefaults}
		
		{if $showadmin eq 1}
		  <select onchange="execute_link(this.options[this.selectedIndex].value);">
		    <option>{$admin}</option>
		    <option value="{$rooturl}modules/admin/usermanager.php?{$SESSION}">{$user_manager}</option>
			<option value="{$rooturl}modules/admin2/index.php?{$SESSION}">{$rights_manager2}</option>
			<option value="{$rooturl}modules/admin/groupmanager.php?{$SESSION}">{$group_manager}</option>
			<option value="{$rooturl}modules/admin/occupationmanager.php?{$SESSION}">{$occupation_manager}</option>
			<option value="{$rooturl}modules/admin/workplacemanager.php?{$SESSION}">{$workplace_manager}</option>
			<option value="{$rooturl}modules/admin/modulemanager.php?{$SESSION}">{$module_manager}</option>
			<option value="{$rooturl}modules/admin/system.php?{$SESSION}">{$system_tools}</option>
		  </select>
		{/if}

		{if $top_moduleSettings2 neq ""}
		  <select onchange="execute_link(this.options[this.selectedIndex].value);">
		    <option>{$hashmap.settings}</option>
			{$top_moduleSettings2|smarty:nodefaults}
		  </select>
		{/if}

		  <select onchange="execute_link(this.options[this.selectedIndex].value);">
	  	    <option>{$help}</option>
		    <option value="javascript:openHelpWin('{$rooturl}{$helpurl}')">{$manual}</option>
		    {if $mgw_log_enable eq 1}<option value="javascript:openWin('{$rooturl}log.php?logid={$mgw_log_id}&mode=0&{$SESSION}',600,700)">{$log}</option>{/if}
			<OPTGROUP LABEL="{$online}">
		  	  <option value="http://www.moregroupware.org">{$project_homepage}</option>
			  <option value="http://moregroupware.sourceforge.net/download.php">{$download}</option>
		    </OPTGROUP>
			<OPTGROUP LABEL="{$feedback}">
			  <option value="{$rooturl}modules/general/diagnostics.php?{$SESSION}">{$diagnostics}</option>
			  <option value="http://sourceforge.net/tracker/?func=add&group_id=32034&atid=404018">{$submit_bug}</option>
			  <option value="http://sourceforge.net/tracker/?func=add&group_id=32034&atid=404021">{$submit_feature}</option>
			  <option value="http://sourceforge.net/tracker/?func=add&group_id=32034&atid=404019">{$submit_support}</option>
			  <option value="http://sourceforge.net/tracker/?func=add&group_id=32034&atid=404020">{$submit_patch}</option>
		    </OPTGROUP>
		    <option value="http://moregroupware.sourceforge.net/developers.php">{$about_us}</option>
		    <option value="http://moregroupware.sourceforge.net/project.php">{$about}</option>
		  </select>

		  <select onchange="if (this.options[this.selectedIndex].value) document.location=this.options[this.selectedIndex].value;">
		    <option>{$username}</option>
		    <option value="{$rooturl}index.php?view=logout&{$SESSION}">{$logout}</option>
		  </select>
		</td>
		</tr></table>

		</td></tr>
		<!-- primitive view end -->
		{/if}

		<div id="mgw_menu" style="border-left: 1px solid #FFFFFF"></div>
	    </td>
	  </tr></table>
	</td>
    	{if $sponsor_logo neq ""}<td align="center"><a href="{$sponsor_link}" target="_blank"><img src="{$sponsor_logo}" border="0" vspace="6"></a></td>{/if}
<td height="30" align="right"><a href="http://www.moregroupware.org/" target="_blank"><img src="{$imgpathgeneral}/mgw_logo.gif" border="0" vspace="3"></a></td>
  </tr>

{if $show_navi_images neq 2 and $show_navi_images neq 4}
<script type="text/javascript">var cmThemeOfficeBase = '{$imgpathgeneral}/menutheme/';</script>
<script type="text/javascript" src="{$rooturl}modules/general/templates/{$theme}/media/menutheme/JSCookMenu.js"></script>

{if $show_navi_images eq 3}
<link rel="stylesheet" href="{$rooturl}modules/general/templates/{$theme}/media/menutheme/theme2.css" type="text/css" />
{else}
<link rel="stylesheet" href="{$rooturl}modules/general/templates/{$theme}/media/menutheme/theme.css" type="text/css" />
{/if}
	<script type="text/javascript">
	var mgwMenu =
	[
{if $show_navi_images eq 1 || $show_navi_images eq 3}
		['<img class="seq2" src="{$imgpathgeneral}/modules/modules2.gif" align="absmiddle"><img class="seq1" align="absmiddle" src="{$imgpathgeneral}/modules/modules1.gif"> &nbsp;', '{$modules}', null, null, null,
	  {section name=data loop=$mdata}
	  	{if $mdata[data].modulename neq "admin" && $mdata[data].modulename neq "settings"}
	  	  {if $mdata[data].noicon eq ""}
			['<img class="seq2" src="{$imgpathgeneral}/modules/{$mdata[data].modulename}.png"><div class="seq1" align="center"><img src="{$imgpathgeneral}/modules/{$mdata[data].modulename}_mini.png"></div>', '{$mdata[data].label|addslash}', '{$rooturl}modules/{$mdata[data].modulename}/{if $mdata[data].base neq ""}{$mdata[data].base}{else}index.php{/if}?{$SESSION}', null, null],
		  {else}
			[null, '{$mdata[data].label|addslash}', '{$rooturl}modules/{$mdata[data].modulename}/{if $mdata[data].base neq ""}{$mdata[data].base}{else}index.php{/if}?{$SESSION}', null, null],
		  {/if}
		{/if}
	  {/section}
		],
		{if $sdata[0].link neq ""}
		['<img class="seq2" src="{$imgpathgeneral}/modules/functions2.gif" align="absmiddle"><img class="seq1" align="absmiddle" src="{$imgpathgeneral}/modules/functions1.gif"> &nbsp;', '{$actlabel|addslash}',null, null, null,
	  	{section name=smenu loop=$sdata}
	  	  {if $sdata[smenu].name neq "empty"} 
			[{if $sdata[smenu].pic neq ""}'<img src="{$imgpath}/{$sdata[smenu].pic}">'{else}null{/if}, '{$sdata[smenu].name|addslash}', '{$sdata[smenu].link}', {if $sdata[smenu].target neq ""}'{$sdata[smenu].target|addslash}'{else}null{/if}, null],
		  {else}
		    _cmSplit,
		  {/if}
	    {/section}
		],
		{/if}
		{$custom_module_menu}
	  {if $showadmin eq 1}
		['<img class="seq2" src="{$imgpathgeneral}/modules/admin2.gif" align="absmiddle"><img class="seq1" align="absmiddle" src="{$imgpathgeneral}/modules/admin1.gif"> &nbsp;', '{$admin|addslash}', null, null, null,
			[null, '{$user_manager|addslash}', '{$rooturl}modules/admin/usermanager.php?{$SESSION}', null, null],
			[null, '{$rights_manager2|addslash}', '{$rooturl}modules/admin2/index.php?{$SESSION}', null, null],
			[null, '{$group_manager|addslash}', '{$rooturl}modules/admin/groupmanager.php?{$SESSION}', null, null],
			[null, '{$occupation_manager|addslash}', '{$rooturl}modules/admin/occupationmanager.php?{$SESSION}', null, null],
			[null, '{$workplace_manager|addslash}', '{$rooturl}modules/admin/workplacemanager.php?{$SESSION}', null, null],
			[null, '{$module_manager|addslash}', '{$rooturl}modules/admin/modulemanager.php?{$SESSION}', null, null],
			[null, '{$system_tools|addslash}', '{$rooturl}modules/admin/system.php?{$SESSION}', null, null],
		],
	  {/if}
	  {if $top_moduleSettings2 neq ""}
		['<img class="seq2" src="{$imgpathgeneral}/modules/settings2.gif" align="absmiddle"><img class="seq1" align="absmiddle" src="{$imgpathgeneral}/modules/settings1.gif"> &nbsp;', '{$hashmap.settings|addslash}', null, null, null,
			{$top_moduleSettings}
		],
	  {/if}
		['<img class="seq2" src="{$imgpathgeneral}/modules/help2.gif" align="absmiddle"><img class="seq1" align="absmiddle" src="{$imgpathgeneral}/modules/help1.gif"> &nbsp;', '{$help|addslash}', null, null, null,
			['<img class="seq2" src="{$imgpathgeneral}/modules/manual.png"><div class="seq1" align="center"><img src="{$imgpathgeneral}/modules/manual_mini.png"></div>', '{$manual|addslash}', 'javascript:openHelpWin(\'{$rooturl}{$helpurl}\')', null, null],
			
			{if $mgw_log_enable eq 1}[null, '{$log|addslash}', 'javascript:openWin(\'{$rooturl}log.php?logid={$mgw_log_id}&mode=0&{$SESSION}\',600,700)', null, null],{/if}
			
			['<img class="seq2" src="{$imgpathgeneral}/modules/online.png"><div class="seq1" align="center"><img src="{$imgpathgeneral}/modules/online_mini.png"></div>', '{$online|addslash}', null, null, null,
				['<img class="seq2" src="{$imgpathgeneral}/modules/homepage.png"><div class="seq1" align="center"><img src="{$imgpathgeneral}/modules/homepage_mini.png"></div>', '{$project_homepage|addslash}', 'http://www.moregroupware.org', '_blank', null],
				['<img class="seq2" src="{$imgpathgeneral}/modules/download.png"><div class="seq1" align="center"><img src="{$imgpathgeneral}/modules/download_mini.png"></div>', '{$download|addslash}', 'http://moregroupware.sourceforge.net/download.php', '_blank', null],
			],
			['<img class="seq2" src="{$imgpathgeneral}/modules/feedback.png"><div class="seq1" align="center"><img src="{$imgpathgeneral}/modules/feedback_mini.png"></div>', '{$feedback|addslash}', null, null, null,
				[null, '{$diagnostics|addslash}', '{$rooturl}modules/general/diagnostics.php?{$SESSION}', '_blank', null],
				['<img class="seq2" src="{$imgpathgeneral}/modules/help.png"><div class="seq1" align="center"><img src="{$imgpathgeneral}/modules/help_mini.png"></div>', '{$submit_bug|addslash}', 'http://sourceforge.net/tracker/?func=add&group_id=32034&atid=404018', '_blank', null],
				['<img class="seq2" src="{$imgpathgeneral}/modules/feature.png"><div class="seq1" align="center"><img src="{$imgpathgeneral}/modules/feature_mini.png"></div>', '{$submit_feature|addslash}', 'http://sourceforge.net/tracker/?func=add&group_id=32034&atid=404021', '_blank', null],
				['<img class="seq2" src="{$imgpathgeneral}/modules/support.png"><div class="seq1" align="center"><img src="{$imgpathgeneral}/modules/support_mini.png"></div>', '{$submit_support|addslash}', 'http://sourceforge.net/tracker/?func=add&group_id=32034&atid=404019', '_blank', null],
				['<img class="seq2" src="{$imgpathgeneral}/modules/patch.png"><div class="seq1" align="center"><img src="{$imgpathgeneral}/modules/patch_mini.png"></div>', '{$submit_patch|addslash}', 'http://sourceforge.net/tracker/?func=add&group_id=32034&atid=404020', '_blank', null],
			],
			['<img class="seq2" src="{$imgpathgeneral}/modules/about_us.png"><div class="seq1" align="center"><img src="{$imgpathgeneral}/modules/about_us_mini.png"></div>', '{$about_us|addslash}', 'http://moregroupware.sourceforge.net/developers.php', '_blank', null],
			['<img class="seq2" src="{$imgpathgeneral}/modules/about.png"><div class="seq1" align="center"><img src="{$imgpathgeneral}/modules/about_mini.png"></div>', '{$about|addslash}', 'http://moregroupware.sourceforge.net/project.php', '_blank', null],
		],
		['<img class="seq2" src="{$imgpathgeneral}/modules/logout2.gif" align="absmiddle"><img class="seq1" align="absmiddle" src="{$imgpathgeneral}/modules/logout1.gif"> &nbsp;', '{$username|addslash}', '', null, null,
		[null, '{$logout|addslash}', '{$rooturl}index.php?view=logout&{$SESSION}', null, null],
		],
{elseif $show_navi_images eq 0}
		[null, '{$modules|addslash}', null, null, null,
	  {section name=data loop=$mdata}
	  	{if $mdata[data].modulename neq "admin" && $mdata[data].modulename neq "settings"}
			[null, '{$mdata[data].label|addslash}', '{$rooturl}modules/{$mdata[data].modulename}/{if $mdata[data].base neq ""}{$mdata[data].base}{else}index.php{/if}?{$SESSION}', null, null],
		{/if}
	  {/section}
		],
		{if $sdata[0].link neq ""}
		[null, '{$actlabel|addslash}',null, null, null,
	  	{section name=smenu loop=$sdata}
	  	  {if $sdata[smenu].name neq "empty"} 
			[null, '{$sdata[smenu].name|addslash}', '{$sdata[smenu].link}', {if $sdata[smenu].target neq ""}'{$sdata[smenu].target}'{else}null{/if}, null],
		  {else}
		    _cmSplit,
		  {/if}
	    {/section}
		],
		{/if}
		{$custom_module_menu}
	  {if $showadmin eq 1}
		[null, '{$admin|addslash}', null, null, null,
			[null, '{$user_manager|addslash}', '{$rooturl}modules/admin/usermanager.php?{$SESSION}', null, null],
			[null, '{$rights_manager2|addslash}', '{$rooturl}modules/admin2/index.php?{$SESSION}', null, null],
			[null, '{$group_manager|addslash}', '{$rooturl}modules/admin/groupmanager.php?{$SESSION}', null, null],
			[null, '{$occupation_manager|addslash}', '{$rooturl}modules/admin/occupationmanager.php?{$SESSION}', null, null],
			[null, '{$workplace_manager|addslash}', '{$rooturl}modules/admin/workplacemanager.php?{$SESSION}', null, null],
			[null, '{$module_manager|addslash}', '{$rooturl}modules/admin/modulemanager.php?{$SESSION}', null, null],
			[null, '{$system_tools|addslash}', '{$rooturl}modules/admin/system.php?{$SESSION}', null, null],
		],
	  {/if}
	  {if $top_moduleSettings2 neq ""}
		[null, '{$hashmap.settings|addslash}', null, null, null,
			{$top_moduleSettings}
		],
	  {/if}
		[null, '{$help|addslash}', null, null, null,
			[null, '{$manual|addslash}', 'javascript:openHelpWin(\'{$rooturl}{$helpurl}\')', null, null],
			
			{if $mgw_log_enable eq 1}[null, '{$manual|addslash}', 'javascript:openWin(\'{$rooturl}log.php?logid={$mgw_log_id}&mode=0&{$SESSION}\',600,700)', null, null],{/if}
			
			[null, '{$online|addslash}', null, null, null,
				[null, '{$project_homepage|addslash}', 'http://www.moregroupware.org', '_blank', null],
				[null, '{$download|addslash}', 'http://moregroupware.sourceforge.net/download.php', '_blank', null],
			],
			[null, '{$feedback|addslash}', null, null, null,
				[null, '{$diagnostics|addslash}', '{$rooturl}modules/general/diagnostics.php?{$SESSION}', '_blank', null],
				[null, '{$submit_bug|addslash}', 'http://sourceforge.net/tracker/?func=add&group_id=32034&atid=404018', '_blank', null],
				[null, '{$submit_feature|addslash}', 'http://sourceforge.net/tracker/?func=add&group_id=32034&atid=404021', '_blank', null],
				[null, '{$submit_support|addslash}', 'http://sourceforge.net/tracker/?func=add&group_id=32034&atid=404019', '_blank', null],
				[null, '{$submit_patch|addslash}', 'http://sourceforge.net/tracker/?func=add&group_id=32034&atid=404020', '_blank', null],
			],
			[null, '{$about_us|addslash}', 'http://moregroupware.sourceforge.net/developers.php', '_blank', null],
			[null, '{$about|addslash}', 'http://moregroupware.sourceforge.net/project.php', '_blank', null],
		],
		[null, '{$username|addslash}', '', null, null,
		[null, '{$logout|addslash}', '{$rooturl}index.php?view=logout&{$SESSION}', null, null],
		],
{/if}
	];
	
	cmDraw ('mgw_menu', mgwMenu, 'hbr', cmThemeOffice, 'ThemeOffice');
	</script>
{/if}

{if $show_navi_images eq 4}
<!-- static HTML  menu -->
  <tr valign="bottom">
    <td height="24" COLSPAN="3">
      <table border="0" cellpadding="0" cellspacing="0">
	<tr>
	  {if $showadmin eq 1}
  	  <!-- ADMIN MENU : -->
  	  <td>
	    <table border="0" cellpadding="0" cellspacing="0">
	      <tr>
		<td class="lines" height="1" width="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
		<td class="lines" height="1" width="1" rowspan="2"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
	      </tr>
	      <tr>
		<td class="{if $actmodule eq "admin"}navlinksbackon{else}navlinksback{/if}" height="22" align="center" valign="middle" NOWRAP>
		&nbsp;&nbsp;<a class="{if $actmodule eq "admin"}navlinkon{else}navlink{/if}" href="{$rooturl}modules/admin/usermanager.php?{$SESSION}">{$admin}</a>&nbsp;&nbsp;
		</td>
	      </tr>
	    </table>
	  </td>
	  <!-- END ADMIN MENU -->
	  {/if}
	  
	  {section name=data loop=$mdata}
	  {if $mdata[data].modulename neq "admin"}
	  <td>
	    <table border="0" cellpadding="0" cellspacing="0">
	      <tr>
		<td class="lines" height="1" width="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
		<td class="lines" height="1" width="1" rowspan="2"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
	      </tr>
	      <tr>
		<td class="{if $actmodule eq $mdata[data].modulename}navlinksbackon{else}navlinksback{/if}" height="22" align="center" valign="middle" NOWRAP>
		&nbsp;&nbsp;<a class="{if $actmodule eq $mdata[data].modulename}navlinkon{else}navlink{/if}" href="{$rooturl}modules/{$mdata[data].modulename}/{if $mdata[data].base neq ""}{$mdata[data].base}{else}index.php{/if}?{$SESSION}">{$mdata[data].label}</a>&nbsp;&nbsp;
		</td>
	      </tr>
	    </table>
	  </td>
	  {/if}
	  {/section}
	  
	  <!-- help -->
	  <td>
	    <table border="0" cellpadding="0" cellspacing="0">
	      <tr>
		<td class="lines" height="1" width="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
		<td class="lines" height="1" width="1" rowspan="2"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
	      </tr>
	      <tr>
		<td class="{if $actmodule eq "help"}navlinksbackon{else}navlinksback{/if}" height="22" align="center" valign="middle" NOWRAP>
		&nbsp;&nbsp;<a class="{if $actmodule eq "help"}navlinkon{else}navlink{/if}" href="{$rooturl}modules/help/help.php?helpmodule={if $actmodule neq "help"}{$actmodule}{else}{$helpmodule}{/if}&{$SESSION}">{$help}{if $sub_help neq ""} : {$sub_help}{/if}</a>&nbsp;&nbsp;
		</td>
	      </tr>
	    </table>
	  </td>
	  <!-- -->
    </tr>
  </table>
 </td>
</tr>
{/if}
	
<!-- ==================== -->
<!-- MAIN NAVIGATION END  -->
<!-- ==================== -->

  {if $show_navi_images eq 4 and ($sdata neq "" or ($showadmin eq 1 and $actmodule eq "admin"))}
	<!-- ===================================== -->
	<!-- STATIC HTML MENU SUB NAVIGATION START -->
	<!-- ===================================== -->

  <tr class="subnavback">
    <td colspan="2" height="15" valign="middle">
      
      <table height="15" border="0" cellpadding="0" cellspacing="0">
	<tr align="left">
	
	{if $showadmin eq 1 and $actmodule eq "admin"}
		<!-- ADMIN SUBmenu -->
		<td width="15"><img src="{$imgpathmaster}/space.gif" alt="" width="15" height="1"></td>		
	  	<td nowrap="nowrap" VALIGN="middle"><a class="{if $submenu eq 1}subnavlinkon{else}subnavlink{/if}" href="{$rooturl}modules/admin/usermanager.php?{$SESSION}" >{$user_manager}</a></td>
		<td width="15"><img src="{$imgpathmaster}/space.gif" alt="" width="15" height="1"></td>		
	  	<td nowrap="nowrap" VALIGN="middle"><a class="{if $submenu eq 2}subnavlinkon{else}subnavlink{/if}" href="{$rooturl}modules/admin2/index.php?{$SESSION}" >{$rights_manager2}</a></td>
		<td width="15"><img src="{$imgpathmaster}/space.gif" alt="" width="15" height="1"></td>		
	  	<td nowrap="nowrap" VALIGN="middle"><a class="{if $submenu eq 3}subnavlinkon{else}subnavlink{/if}" href="{$rooturl}modules/admin/groupmanager.php?{$SESSION}" >{$group_manager}</a></td>
		<td width="15"><img src="{$imgpathmaster}/space.gif" alt="" width="15" height="1"></td>		
	  	<td nowrap="nowrap" VALIGN="middle"><a class="{if $submenu eq 4}subnavlinkon{else}subnavlink{/if}" href="{$rooturl}modules/admin/occupationmanager.php?{$SESSION}" >{$occupation_manager}</a></td>
		<td width="15"><img src="{$imgpathmaster}/space.gif" alt="" width="15" height="1"></td>		
	  	<td nowrap="nowrap" VALIGN="middle"><a class="{if $submenu eq 5}subnavlinkon{else}subnavlink{/if}" href="{$rooturl}modules/admin/workplacemanager.php?{$SESSION}" >{$workplace_manager}</a></td>
		<td width="15"><img src="{$imgpathmaster}/space.gif" alt="" width="15" height="1"></td>		
	  	<td nowrap="nowrap" VALIGN="middle"><a class="{if $submenu eq 6}subnavlinkon{else}subnavlink{/if}" href="{$rooturl}modules/admin/modulemanager.php?{$SESSION}" >{$module_manager}</a></td>
		<td width="15"><img src="{$imgpathmaster}/space.gif" alt="" width="15" height="1"></td>		
	  	<td nowrap="nowrap" VALIGN="middle"><a class="{if $submenu eq 7}subnavlinkon{else}subnavlink{/if}" href="{$rooturl}modules/admin/system.php?{$SESSION}" >{$system_tools}</a></td>		
		<!-- END ADMIN SUBmenu -->
	{/if}

	  {assign var="previous_is_sep" value="false"}
	  {section name=smenu loop=$sdata}
	  {if $sdata[smenu].name eq "empty"}
	  	{if $previous_is_sep neq "true"}
	  		<td width="5"><img src="{$imgpathmaster}/space.gif" alt="" width="5" height="1"></td>
			<td width="1" class="tableheader"><FONT style="font-size: 12pt; color: #ADADAD; font-weight: normal;">|</FONT></td>
			<td width="5"><img src="{$imgpathmaster}/space.gif" alt="" width="5" height="1"></td>	
			{assign var="previous_is_sep" value="true"}
		{/if}
	  {else}
	    {if $previous_is_sep eq "false"}
		<td width="15"><img src="{$imgpathmaster}/space.gif" alt="" width="15" height="1"></td>		
		{/if}
	  <td nowrap="nowrap" VALIGN="middle"><a class="{if $submenu eq %smenu.index_next%}subnavlinkon{else}subnavlink{/if}" href="{$sdata[smenu].link|regex_replace:"/[\\\]/":""}" {if $sdata[smenu].target neq ""} target="{$sdata[smenu].target}" ONCLICK="link_obj = this;setTimeout('if(link_obj.blur)link_obj.blur();if(link_obj.blur)link_obj.blur();',5000);" {/if} >{if $sdata[smenu].pic neq ""}<img src="{$imgpath}/{$sdata[smenu].pic}" BORDER="0" ALT="{$sdata[smenu].name}" TITLE="{$sdata[smenu].name}" align="middle">{/if}{if !$sdata[smenu].static_menu.show_only_pic}{if $sdata[smenu].pic neq ""}<img src="{$imgpathmaster}/space.gif" alt="" width="5" height="1" BORDER="0">{/if}{$sdata[smenu].name}{/if}</a></td>
		{assign var="previous_is_sep" value="false"}
	  {/if}
	  {/section}

	  {if $custom_module_menu2 neq ""}
	  <!-- for webmail & calendar2 (NOT REALLY GENERIC!!) : custom_module_menu2 (change flag / calendar view) -->	
		{if $previous_is_sep neq "true"}
			<td width="5"><img src="{$imgpathmaster}/space.gif" alt="" width="5" height="1"></td>
	  		<td width="1" class="tableheader"><FONT style="font-size: 12pt; color: #ADADAD; font-weight: normal;">|</FONT></td>
		{/if}
	  	<td width="15"><img src="{$imgpathmaster}/space.gif" alt="" width="15" height="1"></td>
	  	<td>{$custom_module_menu2|smarty:nodefaults}</TD>
	  {/if}
	</tr>
      </table>
    </td>
  </tr>
	<!-- ===================================== -->
	<!-- STATIC HTML MENU SUB NAVIGATION END   -->
	<!-- ===================================== -->
  {/if}
 
{if $pagetitle neq "" and !($show_navi_images eq 4 and $submenu neq "")}
  <tr valign="top">
    <td class="lines" height="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
  </tr>
  <tr valign="top">
    <td class="category" height="2" colspan="3">&nbsp;&nbsp;{$pagetitle}</td>
  </tr>
{/if}
  <tr valign="top">
    <td class="lines" height="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
  </tr>

  {if $htmlnotify and $htmlnotifyarray}
  <tr valign="top">
    <td class="notification" align="left" valign="top" colspan="3">
      {foreach from=$htmlnotifyarray item=curr_id}
      {$curr_id}<br />
      {/foreach}
    </td>
  </tr>

  <tr valign="top">
    <td class="lines" height="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
  </tr>
  {/if}

  <tr valign="top">
    <td class="contentback" height="200" align="left" valign="top" colspan="3">
			
<!-- ==================== -->
<!-- START CONTENT        -->
<!-- ==================== -->
