  <tr height="400">
    <td valign="top" align="left">
		<table border="0" cellspacing="0" cellpadding="0" width="100%" height="400"><tr>
			<td width="145" valign="top" align="left" bgcolor="#F0EADE" class="staffnavbar">

				<table width="100%"  border="0" cellspacing="0" cellpadding="2">
				  <tr height="1">
					<td><img src="<{$themepath}>space.gif" border="0" width="145" height="1"></td>
				  </tr>

				<{if $isitemoptions eq "true"}>
				  <tr>
					<td>
					<div class="navsection" id="itemoptionsnav"><div class="navsub">
					<div class="navtitle"><img src="<{$themepath}>doublearrowsnav.gif" align="absmiddle" border="0" />&nbsp;<{$itemoptiontitle}></div>
					<table width="100%"  border="0" cellspacing="0" cellpadding="2">
					<{foreach key=itemkey value=itemvalue from=$itemoptions}>
					  <tr class="smalltext" onMouseOver="this.className='hlrow';" onMouseOut="this.className='smalltext';" style="CURSOR: pointer;" id="itemoption<{$itemkey}>"<{if $itemvalue[menuname] != ""}> onClick="javascript:CustomPopupRefRight('<{$itemvalue[menuname]}>', 'itemoptionsnav', 'itemoption<{$itemkey}>');"<{elseif $itemvalue[customjs] != ""}> onClick="javascript:<{$itemvalue[customjs]}>;"<{else}> onClick="javascript:window.location.href='<{$itemvalue[link]}>';"<{/if}>>
						<td width="1"><img src="<{$themepath}><{$itemvalue[icon]}>"></td>
						<td><{$itemvalue[title]}></td>
						<{if $itemvalue[menuname] != ""}><td width="1" align="right"><img src="<{$themepath}>menudropright.gif"></td><{/if}>
					  </tr>
					  <{/foreach}>
					</table></div>
					</div>
					</td>
				  </tr>
				  <{/if}>
				  <{if $catlist eq "true"}>
				  <tr>
					<td>
					<div class="navsection"><div class="navsub">
					<div class="navtitle"><img src="<{$themepath}>doublearrowsnav.gif" align="absmiddle" border="0" />&nbsp;<{$language[categories]}></div>
					<table width="100%"  border="0" cellspacing="0" cellpadding="2">
					<{foreach key=itemkey value=itemvalue from=$mcategories}>
					  <tr class="smalltext" onMouseOver="this.className='hlrow';" onMouseOut="this.className='smalltext';" style="CURSOR: pointer;" onClick="javascript:window.location.href='<{$itemvalue[link]}>';">
						<td width="1"><img src="<{$themepath}>icon_folderyellow3.gif"></td>
						<td><{$itemvalue[title]}><{if $itemvalue[totalarticles] != ""}> (<{$itemvalue[totalarticles]}>)<{/if}><{if $itemvalue[totalitems] != ""}> (<{$itemvalue[totalitems]}>)<{/if}></td>
					  </tr>
					  <{/foreach}>
					</table></div>
					</div>
					</td>
				  </tr>
				  <{/if}>
			<{if $selectednav eq "1"}>
				  <{if $navtype eq "privatemessages"}>
				  <tr>
					<td>
					<div class="navsection"><div class="navsub">
					<table width="100%"  border="0" cellspacing="0" cellpadding="2">
					  <tr class="smalltext" onMouseOver="this.className='hlrow';" onMouseOut="this.className='smalltext';" style="CURSOR: pointer;" onClick="javascript:window.location.href='index.php?_m=core&_a=privatemessages';">
						<td width="1"><img src="<{$themepath}>icon_folderyellow3.gif"></td>
						<td><{$language[inbox]}></td>
					  </tr>
					  <tr class="smalltext" onMouseOver="this.className='hlrow';" onMouseOut="this.className='smalltext';" style="CURSOR: pointer;" onClick="javascript:window.location.href='index.php?_m=core&_a=privatemessagessent';">
						<td width="1"><img src="<{$themepath}>icon_folderyellow3.gif"></td>
						<td><{$language[sent]}></td>
					  </tr>
					  <tr class="smalltext" onMouseOver="this.className='hlrow';" onMouseOut="this.className='smalltext';" style="CURSOR: pointer;" onClick="javascript:window.location.href='index.php?_m=core&_a=composeprvmsg';">
						<td width="1"><img src="<{$themepath}>icon_msgsmallyellow.gif"></td>
						<td><{$language[compose]}></td>
					  </tr>
					</table></div>
					</div>
					</td>
				  </tr>
				  <{/if}>
				<{elseif $isviewticket eq "true"}>
				  <tr>
					<td>
					<div class="navsection" id="ticketnav"><div class="navsub">
					<div class="navtitle"><img src="<{$themepath}>doublearrowsnav.gif" align="absmiddle" border="0" />&nbsp;<{$language[ticketoptions]}></div>
					<table width="100%"  border="0" cellspacing="0" cellpadding="2">
					  <tr class="smalltext" onMouseOver="this.className='hlrow';" onMouseOut="this.className='smalltext';" style="CURSOR: pointer;" id="tflaglink" onClick="javascript:CustomPopupRefRight('tflagmenu', 'ticketnav', 'tflaglink');">
						<td width="1"><img src="<{$themepath}>icon_flag.gif"></td>
						<td><{$language[flagticket]}></td>
						<td width="1" align="right"><img src="<{$themepath}>menudropright.gif"></td>
					  </tr>
					  <tr class="smalltext" onMouseOver="this.className='hlrow';" onMouseOut="this.className='smalltext';" style="CURSOR: pointer;" id="tslaolink" onClick="javascript:CustomPopupRefRight('tslalink', 'ticketnav', 'tslaolink');">
						<td width="1"><img src="<{$themepath}>icon_sla.gif"></td>
						<td><{$language[slalink]}></td>
						<td width="1" align="right"><img src="<{$themepath}>menudropright.gif"></td>
					  </tr>
					  <tr class="smalltext" onMouseOver="this.className='hlrow';" onMouseOut="this.className='smalltext';" style="CURSOR: pointer;" id="tmarklink" onClick="javascript:CustomPopupRefRight('tmarkdue', 'ticketnav', 'tmarklink');">
						<td width="1"><img src="<{$themepath}>calendar.gif"></td>
						<td><{$language[markdue]}></td>
						<td width="1" align="right"><img src="<{$themepath}>menudropright.gif"></td>
					  </tr>
					  <tr class="smalltext" onMouseOver="this.className='hlrow';" onMouseOut="this.className='smalltext';" style="CURSOR: pointer;" id="toptionslink" onClick="javascript:CustomPopupRefRight('tticketoptions', 'ticketnav', 'toptionslink');">
						<td width="1"><img src="<{$themepath}>icon_settings.gif"></td>
						<td><{$language[options]}></td>
						<td width="1" align="right"><img src="<{$themepath}>menudropright.gif"></td>
					  </tr>
					<{if $canexport == true}>
					  <tr class="smalltext" onMouseOver="this.className='hlrow';" onMouseOut="this.className='smalltext';" style="CURSOR: pointer;" id="texportlink" onClick="javascript:CustomPopupRefRight('texportticket', 'ticketnav', 'texportlink');">
						<td width="1"><img src="<{$themepath}>icon_export.gif"></td>
						<td><{$language[export]}></td>
						<td width="1" align="right"><img src="<{$themepath}>menudropright.gif"></td>
					  </tr>
					  <{/if}>
					</table></div>
					</div>
					</td>
				  </tr>
				  <{/if}>
				<{if $lschathistory == true || $isteamwork == true}>
				  <tr>
					<td>
					<div style="margin-right: 4px; margin-bottom: 4px;width:100%;" id="calendar-container"></div>
					<script type="text/javascript">
					  function dateChanged(calendar) {
						// Beware that this function is called even if the end-user only
						// changed the month/year.  In order to determine if a date was
						// clicked you can use the dateClicked property of the calendar:
						if (calendar.dateClicked) {
						  // OK, a date was clicked, redirect to /yyyy/mm/dd/index.php
						  var y = calendar.date.getFullYear();
						  var m = calendar.date.getMonth()+1;     // integer, 0..11
						  var d = calendar.date.getDate();      // integer, 1..31
						  // redirect...
						<{if $isteamwork == true}>
							switchGridTab('twday', 'teamwork');
							fetchData('twday', d + "-" + m + "-" + y);
						<{else}>
							window.location = "index.php?_m=livesupport&_a=chathistory&filter=1&filterdate=" + y + "-" + m + "-" + d;
						<{/if}>
						}
					  };

					  Calendar.setup(
						{
						  flat         : "calendar-container", // ID of the parent element
						  flatCallback : dateChanged,            // our callback function
						  weekNumbers : false<{if $calfilterdate != ""}>,
						  date : "<{$calfilterdate}>"
						  <{/if}>
						}
					  );
					</script>
					</div>
					</td>
				  </tr>
				  <{elseif $tickettree != ""}>
				  <tr>
					<td>
					<div class="navsection"><div class="navsub">
					<div class="navtitle"><table width="100%"border="0" cellspacing="0" cellpadding="0"><tr><td align="left" valign="top"><img src="<{$themepath}>doublearrowsnav.gif" align="absmiddle" border="0" />&nbsp;<{$language[filtertickets]}></td><td align="right" valign="top"><a href="javascript:void(0);" onClick="javascript:oT_1.expandAllNodes();"><img src="<{$themepath}>icon_expand.gif" align="absmiddle" border="0" /></a></td></tr></table></div>
					<{$tickettree}>
					</div></div>
					</td>
				  </tr>
				  <{/if}>
				<{if $isquicklinks eq "true"}>
				  <tr>
					<td>
					<div class="navsection"><div class="navsub">
					<div class="navtitle"><img src="<{$themepath}>doublearrowsnav.gif" align="absmiddle" border="0" />&nbsp;<{$language[quickjump]}></div>
					<table width="100%"  border="0" cellspacing="0" cellpadding="2">
					<{foreach key=itemkey value=itemvalue from=$quicklinks}>
					  <tr class="smalltext" onMouseOver="this.className='hlrow';" onMouseOut="this.className='smalltext';" style="CURSOR: pointer;" onClick="javascript:<{if $itemvalue[js] != ""}><{$itemvalue[js]}><{else}>window.location.href='<{$itemvalue[link]}><{/if}>';">
						<td width="1"><img src="<{$themepath}><{if $itemvalue[icon] != ""}><{$itemvalue[icon]}><{else}>icon_rightarrowblue.gif<{/if}>"></td>
						<td><{$itemvalue[text]}></td>
					  </tr>
					  <{/foreach}>
					</table></div>
					</div>
					</td>
				  </tr>
				  <{/if}>
				  <{if $settings[g_onlusr] == 1}>
				  <tr>
					<td>
					<div class="navsection"><div class="navsub">
					<div class="navtitle"><img src="<{$themepath}>doublearrowsnav.gif" align="absmiddle" border="0" />&nbsp;<{$language[onlineusers]}></div>
					<table width="100%"  border="0" cellspacing="0" cellpadding="2">
					<{foreach key=itemkey value=itemvalue from=$onlineusers}>
					  <tr class="smalltext" onMouseOver="this.className='hlrow';" onMouseOut="this.className='smalltext';" style="CURSOR: pointer;" onClick="javascript:window.location.href='index.php?_m=core&_a=composeprvmsg&staffid=<{$itemvalue[staffid]}>';" title="<{if $itemvalue[type] == "admin"}><{$language[admincp]}><{elseif $itemvalue[type] == "winapp"}><{$language[winapp]}><{elseif $itemvalue[type] == "pda"}><{$language[pdainterface]}><{else}><{$language[staffcp]}><{/if}>">
						<td width="1"><img src="<{$themepath}><{if $itemvalue[type] == "admin"}>icon_onlinemoov.gif<{elseif $itemvalue[type] == "winapp"}>icon_online.gif<{elseif $itemvalue[type] == "pda"}>icon_onlinepda.gif<{else}>icon_onlineyellow.gif<{/if}>"></td>
						<td><{$itemvalue[fullname]}><{if $itemvalue[onlinecount] > 1}> (<{$itemvalue[onlinecount]}>)<{/if}></td>
					  </tr>
					  <{/foreach}>
					</table></div>
					</div>
					</td>
				  </tr>
				  <{/if}>

				</table>

			</td>
			<td width="1" valign="top" align="left" bgcolor="#CDCDCD"><img src="<{$themepath}>space.gif" width="1" height="1"></td>
			<td width="8" valign="top" align="left"><img src="<{$themepath}>space.gif" width="8" height="1"></td>
			<td valign="top" align="left" width="100%">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<{if $isstaffdashboard != true}>
				  <tr height="8">
					<td><img src="<{$themepath}>space.gif" height="8" width="1" border="0" /></td>
				  </tr>
					<tr>
						<td width="5" valign="middle" align="left"><img src="<{$themepath}>doublearrowsnav.gif"></td>
						<td width="100%"><span class="smalltext">&nbsp;<{$navpage}></span></td>
					</tr>
					<tr height="4">
						<td colspan="2"><img src="<{$themepath}>space.gif" height="4" width="1"></td>
					</tr>

					<tr height="1">
						<td colspan="2" bgcolor="#CCCCCC"><img src="<{$themepath}>space.gif" height="1" width="1"></td>
					</tr>
					<tr height="4">
						<td colspan="2"><img src="<{$themepath}>space.gif" height="4" width="1"></td>
					</tr>

					<tr>
						<td colspan="2"><span class="smalltext"><{$navdescription}></span></td>
					</tr>

					<tr height="4">
						<td colspan="2"><img src="<{$themepath}>space.gif" height="4" width="1"></td>
					</tr>
					<{/if}>
					<tr>
						<td colspan="2">
						
						