{literal}
//--- Common
var isHorizontal=1;
var smColumns=1;
var smOrientation=0;
var smViewType=0;
var dmRTL=0;
var pressedItem=-2;
var itemCursor="default";
var itemTarget="_self";
var statusString="link";
var blankImage="spacer.gif";

//--- Dimensions
var menuWidth="";
var menuHeight="";
var smWidth="";
var smHeight="";

//--- Positioning
var absolutePos=1;
var posX="0";
var posY="23";
var topDX=0;
var topDY=1;
var DX=0;
var DY=5;

//--- Font
var fontStyle="bold 75% Verdana, Sans-Serif";
var fontColor=["#FFFFFF","#FFFFFF"];
var fontDecoration=["none","none"];
var fontColorDisabled="#AAAAAA";

//--- Appearance
var menuBackColor="#336699";
var menuBackImage="";
var menuBackRepeat="repeat";
var menuBorderColor="#FFFFFF";
var menuBorderWidth=0;
var menuBorderStyle="solid";

//--- Item Appearance
var itemBackColor=["#336699","#0099CC"];
var itemBackImage=["",""];
var itemBorderWidth=0;
var itemBorderColor=["#296488","#0099CC"];
var itemBorderStyle=["solid","solid"];
var itemSpacing=0;
var itemPadding="2px 3px 2px 3px";
var itemAlignTop="left";
var itemAlign="left";
var subMenuAlign="";

//--- Icons
var iconTopWidth=15;
var iconTopHeight=15;
var iconWidth=15;
var iconHeight=15;
var arrowWidth=5;
var arrowHeight=7;
var arrowImageMain=["arrow.gif",""];
var arrowImageSub=["arrow.gif",""];

//--- Separators
var separatorImage="sep_black.gif";
var separatorWidth="100%";
var separatorHeight="1px";
var separatorAlignment="left";
var separatorVImage="vsep_black.gif";
var separatorVWidth="3px";
var separatorVHeight="25px";
var separatorPadding="0px";

//--- Floatable Menu
var floatable=0;
var floatIterations=6;
var floatableX=1;
var floatableY=1;

//--- Movable Menu
var movable=0;
var moveWidth=12;
var moveHeight=20;
var moveColor="#DECA9A";
var moveImage="";
var moveCursor="move";
var smMovable=0;
var closeBtnW=15;
var closeBtnH=15;
var closeBtn="";

//--- Transitional Effects & Filters
var transparency="100";
var transition=0;
var transOptions="";
var transDuration=0;
var transDuration2=0;
var shadowLen=0;
var shadowColor="#B1B1B1";
var shadowTop=0;

//--- CSS Support (CSS-based Menu)
var cssStyle=0;
var cssSubmenu="";
var cssItem=["",""];
var cssItemText=["",""];

//--- Advanced
var dmObjectsCheck=0;
var saveNavigationPath=1;
var showByClick=0;
var noWrap=1;
var smShowPause=100;
var smHidePause=350;
var smSmartScroll=1;
var smHideOnClick=1;
var dm_writeAll=0;
var pathPrefix_img = "{/literal}{$IMAGES_URL}{literal}";
var pathPrefix_link = "{/literal}{$BASE_URL}{literal}";

//--- AJAX-like Technology
var dmAJAX=0;
var dmAJAXCount=0;

//--- Dynamic Menu
var dynamic=0;

//--- Keystrokes Support
var keystrokes=0;
var dm_focus=1;
var dm_actKey=113;

var menuItems = [
	{/literal}
        ["","index.php","home_icon.gif","home_icon.gif"],
        ["-",""],
	{if $permission->Check('punch','enabled') AND $permission->Check('punch','punch_in_out') }
        ["{t}In / Out{/t}","javascript:timePunch();"],
        ["-",""],
	{/if}

	{if $permission->Check('punch','enabled') }
        ["TimeSheet","","{if $display_exception_flag == 'red'}{$display_exception_flag}_flag.gif{/if}"],
        {if $permission->Check('punch','view') OR $permission->Check('punch','view_own')}
            ["|-",""],
            ["|{t}MyTimeSheet{/t}","timesheet/ViewUserTimeSheet.php"],
        {/if}
        {if $permission->Check('request','view') OR $permission->Check('request','view_own')}
            ["|-",""],
            ["|{t}Requests{/t}","request/UserRequestList.php"],
        {/if}
        {if $permission->Check('punch','view') OR $permission->Check('punch','view_own')}
            ["|-",""],
            ["|{t}Exceptions{/t}","punch/UserExceptionList.php","{if isset($display_exception_flag)}{$display_exception_flag}_flag.gif{/if}"],
        {/if}
        {if $permission->Check('accrual','view') OR $permission->Check('accrual','view_own')}
            ["|-",""],
            ["|{t}Accruals{/t}","accrual/UserAccrualBalanceList.php"],
        {/if}
        {if $permission->Check('pay_stub','view') OR $permission->Check('pay_stub','view_own')}
            ["|-",""],
            ["|{t}Pay Stubs{/t}","pay_stub/PayStubList.php"],
        {/if}
        ["|-",""],
        ["-",""],
	{/if}
	{if $permission->Check('schedule','view')
		OR $permission->Check('default_schedule','enabled')
		OR $permission->Check('default_schedule_template','enabled')
		OR $permission->Check('schedule_amendment','enabled')
		OR $permission->Check('schedule','view_statutory') }
        ["Schedule",""],
        {if $permission->Check('schedule','view') OR $permission->Check('schedule','view_own')}
            ["|-",""],
            ["|{t}MySchedule{/t}","schedule/ViewSchedule.php"],
        {/if}
        {if $permission->Check('recurring_schedule','enabled')}
            ["|-",""],
            ["|{t}Recurring Schedule{/t}","schedule/RecurringScheduleControlList.php"],
        {/if}
        {if $permission->Check('recurring_schedule_template','enabled')}
            ["|-",""],
            ["|{t}Recurring Schedule Template{/t}","schedule/RecurringScheduleTemplateControlList.php"],
        {/if}
        ["|-",""],
        ["-",""],
	{/if}
	{if $permission->Check('job','enabled')
			AND ( $permission->Check('job','view')
				OR $permission->Check('job','view_own')
				) }
        ["JobTracking",""],
        {if $permission->Check('job','view') OR $permission->Check('job','view_own')}
            ["|-",""],
            ["|{t}Jobs{/t}","job/JobList.php"],
        {/if}
        {if $permission->Check('job_item','view') OR $permission->Check('job_item','view_own')}
            ["|-",""],
            ["|{t}Tasks{/t}","job_item/JobItemList.php"],
        {/if}
        {if $permission->Check('job','view') OR $permission->Check('job','view_own')}
            ["|-",""],
            ["|{t}Job Groups{/t}","job/JobGroupList.php"],
        {/if}
        {if $permission->Check('job_item','view') OR $permission->Check('job_item','view_own')}
            ["|-",""],
            ["|{t}Task Groups{/t}","job_item/JobItemGroupList.php"],
        {/if}
        ["|-",""],
        ["-",""],
	{/if}
	{if $permission->Check('client','enabled')
			AND ( $permission->Check('client','view')
				OR $permission->Check('client','view_own')
				) }
        ["{t}Invoice{/t}",""],
		{if $permission->Check('client','view') OR $permission->Check('client','view_own')}
            ["|-",""],
            ["|{t}Clients{/t}","client/ClientList.php"],
		{/if}
		{if $permission->Check('invoice','view') OR $permission->Check('invoice','view_own')}
            ["|-",""],
            ["|{t}Invoices{/t}","invoice/InvoiceList.php"],
		{/if}
		{if $permission->Check('transaction','view') OR $permission->Check('transaction','view_own')}
            ["|-",""],
            ["|{t}Transactions{/t}","invoice/TransactionList.php"],
		{/if}
		{if $permission->Check('product','view') OR $permission->Check('product','view_own')}
            ["|-",""],
            ["|{t}Products{/t}","product/ProductList.php"],
		{/if}
		{if $permission->Check('tax_policy','view') OR $permission->Check('tax_policy','view_own')}
            ["|-",""],
            ["|{t}Policies{/t}",""],
       		{if $permission->Check('tax_policy','view') OR $permission->Check('tax_policy','view_own')}
                ["||-",""],
                ["||{t}Tax Policy{/t}","invoice_policy/TaxPolicyList.php"],
    		{/if}
       		{if $permission->Check('tax_area_policy','view') OR $permission->Check('tax_area_policy','view_own')}
                ["||-",""],
                ["||{t}Tax Area Policy{/t}","invoice_policy/TaxAreaPolicyList.php"],
    		{/if}
            ["||-",""],
		{/if}
		{if $permission->Check('tax_area_policy','view') OR $permission->Check('tax_area_policy','view_own')}
		["|-",""],
		["|{t}Districts{/t}","invoice/DistrictList.php"],
		{/if}
		{if $permission->Check('client','view') OR $permission->Check('client','view_own')}
            ["|-",""],
            ["|{t}Client Groups{/t}","client/ClientGroupList.php"],
        {/if}
		{if $permission->Check('product','view') OR $permission->Check('product','view_own')}
            ["|-",""],
            ["|{t}Product Groups{/t}","product/ProductGroupList.php"],
		{/if}
		{if $permission->Check('invoice_config','edit') OR $permission->Check('invoice_config','edit_own')}
            ["|-",""],
            ["|{t}Settings{/t}","invoice/EditInvoiceConfig.php"],
		{/if}
        ["|-",""],
        ["-",""],
	{/if}
	{if $permission->Check('document','enabled')
			AND ( $permission->Check('document','view')
				OR $permission->Check('document','view_own')
				OR $permission->Check('document','view_private')
				) }
        ["{t}Documents{/t}",""],
		{if $permission->Check('document','view') OR $permission->Check('document','view_own') OR $permission->Check('document','view_private')}
            ["|-",""],
            ["|{t}Documents{/t}","document/DocumentList.php"],
		{/if}
		{if $permission->Check('document','edit') }
            ["|-",""],
            ["|{t}Document Groups{/t}","document/DocumentGroupList.php"],
		{/if}
        ["|-",""],
        ["-",""],
	{/if}

	{if ( $permission->Check('station','enabled') AND $permission->Check('station','view') )
		OR ( $permission->Check('user','enabled') AND $permission->Check('user','view') )
		OR ( $permission->Check('department','enabled') AND $permission->Check('department','view') )
		OR ( $permission->Check('branch','enabled') AND $permission->Check('branch','view') )
		OR ( $permission->Check('company','enabled') AND $permission->Check('company','view') )
		OR ( $permission->Check('pay_period_schedule','enabled') AND $permission->Check('pay_period_schedule','view') )
		OR ( $permission->Check('hierarchy','enabled') AND $permission->Check('hierarchy','view') )
		OR ( $permission->Check('authorization','enabled') AND $permission->Check('authorization','view') )}
        ["Administration",""],
		{if $permission->Check('user','enabled') AND $permission->Check('user','view')}
            ["|-",""],
            ["|{t}Employee Administration{/t}","users/UserList.php"],
		{/if}
		{if ( $permission->Check('company','enabled') AND $permission->Check('company','edit_own') )
			OR ( $permission->Check('branch','enabled') AND $permission->Check('branch','view') )
			OR ( $permission->Check('station','enabled') AND $permission->Check('station','view') )
			OR ( $permission->Check('round_policy','enabled') AND $permission->Check('round_policy','view') )
			OR ( $permission->Check('permission','enabled') AND $permission->Check('permission','edit') )
			OR ( $permission->Check('hierarchy','enabled') AND $permission->Check('hierarchy','view') )
			OR ( $permission->Check('company','enabled') AND $permission->Check('company','edit_own_bank') )}
            ["|-",""],
            ["|{t}Company{/t}",""],
            {if $permission->Check('company','enabled') AND $permission->Check('company','edit_own')}
                ["||-",""],
                ["||{t}Company Information{/t}","company/EditCompany.php?id={$current_company->getId()}"],
            {/if}
            {if $permission->Check('user','enabled') AND $permission->Check('user','view')}
                ["||-",""],
                ["||{t}Employee Title Administration{/t}","users/UserTitleList.php"],
            {/if}
            {if $permission->Check('branch','enabled') AND $permission->Check('branch','view')}
                ["||-",""],
                ["||{t}Branch Administration{/t}","branch/BranchList.php"],
            {/if}
            {if $permission->Check('department','enabled') AND $permission->Check('department','view')}
                ["||-",""],
                ["||{t}Department Administration{/t}","department/DepartmentList.php"],
            {/if}
            {if $permission->Check('station','enabled') AND $permission->Check('station','view')}
                ["||-",""],
                ["||{t}Station Administration{/t}","station/StationList.php"],
            {/if}
            {if $permission->Check('user','enabled') AND $permission->Check('user','edit')}
                ["||-",""],
                ["||{t}New Hire Defaults{/t}","users/EditUserDefault.php"],
            {/if}
            {if $permission->Check('permission','enabled') AND $permission->Check('permission','edit')}
                ["||-",""],
                ["||{t}Default Employee Permissions{/t}","permission/EditPermission.php?id=-1"],
            {/if}
            {if $permission->Check('hierarchy','enabled') AND $permission->Check('hierarchy','view')}
                ["||-",""],
                ["||{t}Authorization Hierarchy{/t}","hierarchy/HierarchyControlList.php"],
            {/if}
            {if $permission->Check('company','enabled') AND $permission->Check('company','edit_own_bank')}
                ["||-",""],
                ["||{t}Company Bank Information{/t}","bank_account/EditBankAccount.php?company_id={$current_company->getId()}"],
            {/if}
            {if $permission->Check('holiday_policy','enabled') AND $permission->Check('holiday_policy','view')}
                ["||-",""],
                ["||{t}Recurring Holiday Administration{/t}","policy/RecurringHolidayList.php"],
            {/if}
            {if $permission->Check('other_field','enabled') AND $permission->Check('other_field','view')}
                ["||-",""],
                ["||{t}Other Field Administration{/t}","company/OtherFieldList.php"],
            {/if}
            ["||-",""],
		{/if}

		{if ( $permission->Check('company','enabled') AND $permission->Check('company','edit_own') )
			OR ( $permission->Check('round_policy','enabled') AND $permission->Check('round_policy','view') )
			OR ( $permission->Check('policy_group','enabled') AND $permission->Check('policy_group','view') )
			OR ( $permission->Check('schedule_policy','enabled') AND $permission->Check('schedule_policy','view') )
			OR ( $permission->Check('meal_policy','enabled') AND $permission->Check('meal_policy','view') )
			OR ( $permission->Check('over_time_policy','enabled') AND $permission->Check('over_time_policy','view') )
			OR ( $permission->Check('premium_policy','enabled') AND $permission->Check('premium_policy','view') )
			OR ( $permission->Check('accrual_policy','enabled') AND $permission->Check('accrual_policy','view') )
			OR ( $permission->Check('absence_policy','enabled') AND $permission->Check('absence_policy','view') )
			OR ( $permission->Check('round_policy','enabled') AND $permission->Check('round_policy','view') )
			OR ( $permission->Check('exception_policy','enabled') AND $permission->Check('exception_policy','view') )
			OR ( $permission->Check('holiday_policy','enabled') AND $permission->Check('holiday_policy','view') )
			}
            ["|-",""],
            ["|{t}Policies{/t}",""],
            {if $permission->Check('policy_group','enabled') AND $permission->Check('policy_group','view')}
                ["||-",""],
                ["||{t}Policy Group Administration{/t}","policy/PolicyGroupList.php"],
            {/if}
            {if $permission->Check('schedule_policy','enabled') AND $permission->Check('schedule_policy','view')}
                ["||-",""],
                ["||{t}Schedule Policy Administration{/t}","policy/SchedulePolicyList.php"],
            {/if}
            {if $permission->Check('round_policy','enabled') AND $permission->Check('round_policy','view')}
                ["||-",""],
                ["||{t}Rounding Policy Administration{/t}","policy/RoundIntervalPolicyList.php"],
            {/if}
            {if $permission->Check('meal_policy','enabled') AND $permission->Check('meal_policy','view')}
                ["||-",""],
                ["||{t}Meal Policy Administration{/t}","policy/MealPolicyList.php"],
            {/if}
            {if $permission->Check('accrual_policy','enabled') AND $permission->Check('accrual_policy','view')}
                ["||-",""],
                ["||{t}Accrual Policy Administration{/t}","policy/AccrualPolicyList.php"],
            {/if}
            {if $permission->Check('over_time_policy','enabled') AND $permission->Check('over_time_policy','view')}
                ["||-",""],
                ["||{t}Overtime Policy Administration{/t}","policy/OverTimePolicyList.php"],
            {/if}
            {if $permission->Check('premium_policy','enabled') AND $permission->Check('premium_policy','view')}
                ["||-",""],
                ["||{t}Premium Policy Administration{/t}","policy/PremiumPolicyList.php"],
            {/if}
            {if $permission->Check('absence_policy','enabled') AND $permission->Check('absence_policy','view')}
                ["||-",""],
                ["||{t}Absence Policy Administration{/t}","policy/AbsencePolicyList.php"],
            {/if}
            {if $permission->Check('exception_policy','enabled') AND $permission->Check('exception_policy','view')}
                ["||-",""],
                ["||{t}Exception Policy Administration{/t}","policy/ExceptionPolicyControlList.php"],
            {/if}
            {if $permission->Check('holiday_policy','enabled') AND $permission->Check('holiday_policy','view')}
                ["||-",""],
                ["||{t}Holiday Policy Administration{/t}","policy/HolidayPolicyList.php"],
            {/if}
            ["||-",""],
		{/if}

		{if ( $permission->Check('pay_period_schedule','enabled') AND $permission->Check('pay_period_schedule','view') )
			OR ( $permission->Check('pay_stub_amendment','enabled') AND $permission->Check('pay_stub_amendment','view') )
			OR ( $permission->Check('pay_period_schedule','enabled') AND $permission->Check('pay_period_schedule','view') )
			OR ( $permission->Check('pay_stub_amendment','enabled') AND $permission->Check('pay_stub_amendment','edit') )}
            ["|-",""],
            ["|{t}Payroll{/t}",""],
            {if $permission->Check('pay_period_schedule','enabled') AND $permission->Check('pay_period_schedule','view')}
                ["||-",""],
                ["||{t}End of Pay Period{/t}","payperiod/ClosePayPeriod.php"],
            {/if}
            {if $permission->Check('pay_stub_amendment','enabled') AND $permission->Check('pay_stub_amendment','view')}
                ["||-",""],
                ["||{t}Pay Stub Amendment Administration{/t}","pay_stub_amendment/PayStubAmendmentList.php"],
                ["||-",""],
                ["||Recurring PS Amendment Administration","pay_stub_amendment/RecurringPayStubAmendmentList.php"],
            {/if}
            {if $permission->Check('pay_period_schedule','enabled') AND $permission->Check('pay_period_schedule','view')}
                ["||-",""],
                ["||{t}Pay Period Schedule Administration{/t}","payperiod/PayPeriodScheduleList.php"],
            {/if}
            {if $permission->Check('pay_stub_account','enabled') AND $permission->Check('pay_stub_account','view')}
                ["||-",""],
                ["||{t}Pay Stub Account Administration{/t}","pay_stub/PayStubEntryAccountList.php"],
            {/if}
            {if $permission->Check('company_tax_deduction','enabled') AND $permission->Check('company_tax_deduction','view')}
                ["||-",""],
                ["||{t}Tax / Deduction Administration{/t}","company/CompanyDeductionList.php"],
            {/if}
            {if $permission->Check('pay_stub_account','enabled') AND $permission->Check('pay_stub_account','view')}
                ["||-",""],
                ["||{t}Pay Stub Account Linking{/t}","pay_stub/EditPayStubEntryAccountLink.php"],
            {/if}
            ["||-",""],
		{/if}
		{if $permission->Check('authorization','enabled') AND $permission->Check('authorization','view')}
            ["|-",""],
            ["|{t}Authorization{/t}","authorization/AuthorizationList.php"],
        {/if}
		{if $permission->Check('company','enabled') AND $permission->Check('company','view')}
            ["|-",""],
            ["|{t}Company Administration{/t}","company/CompanyList.php"],
		{/if}
		{if $permission->Check('help','enabled') AND $permission->Check('help','edit')}
            ["|-",""],
            ["|{t}Help Administration{/t}","help/HelpList.php"],
		{/if}
		{if $permission->Check('help','enabled') AND $permission->Check('help','edit')}
            ["|-",""],
            ["|{t}Help Group Administration{/t}","help/HelpGroupControlList.php"],
        {/if}
        ["|-",""],
        ["-",""],
	{/if}
	{if $permission->Check('report','enabled')}
        ["{t}Reports{/t}",""],
		{if $permission->Check('job_report','enabled') }
            ["|-",""],
            ["|{t}Job Reports{/t}",""],
            {if $permission->Check('job_report','view_job_summary')}
                ["||-",""],
                ["||{t}Job Summary{/t}","report/JobSummary.php"],
            {/if}
            {if $permission->Check('job_report','view_job_analysis')}
                ["||-",""],
                ["||{t}Job Analysis{/t}","report/JobDetail.php"],
            {/if}
            {if $permission->Check('job_report','view_job_barcode')}
                ["||-",""],
                ["||{t}Barcodes{/t}","report/JobBarcode.php"],
            {/if}
            ["||-",""],
		{/if}
		{if $permission->Check('invoice_report','enabled') }
            ["|-",""],
            ["|{t}Invoice Reports{/t}",""],
            {if $permission->Check('invoice_report','view_transaction_summary')}
                ["||-",""],
                ["||{t}Transaction Summary{/t}","report/InvoiceTransactionSummary.php"],
            {/if}
            ["||-",""],
		{/if}
		{if $permission->Check('report','view_active_shift')}
            ["|-",""],
            ["|{t}Whos In Summary{/t}","report/ActiveShiftList.php"],
		{/if}
		{if $permission->Check('report','view_user_information')}
            ["|-",""],
            ["|{t}Employee Information Summary{/t}","report/UserInformation.php"],
		{/if}
		{if $permission->Check('report','view_user_detail')}
            ["|-",""],
            ["|{t}Employee Detail{/t}","report/UserDetail.php"],
		{/if}
		{if $permission->Check('report','view_timesheet_summary')}
            ["|-",""],
            ["|{t}Timesheet Summary{/t}","report/TimesheetSummary.php"],
            ["|-",""],
            ["|{t}Timesheet Detail{/t}","report/TimesheetDetail.php"],
        {/if}
		{if $permission->Check('report','view_accrual_balance_summary')}
            ["|-",""],
            ["|{t}Accrual Balance Summary{/t}","report/AccrualBalanceSummary.php"],
		{/if}
		{if $permission->Check('report','view_pay_stub_summary')}
            ["|-",""],
            ["|{t}Pay Stub Summary{/t}","report/PayStubSummary.php"],
		{/if}
		{if $permission->Check('report','view_wages_payable_summary')}
            ["|-",""],
            ["|{t}Wages Payable Summary{/t}","report/WagesPayableSummary.php"],
		{/if}
		{if $permission->Check('report','view_general_ledger_summary')}
            ["|-",""],
            ["|{t}General Ledger Summary{/t}","report/GeneralLedgerSummary.php"],
		{/if}

		{if $permission->Check('report','view_remittance_summary')
			OR $permission->Check('report','view_t4_summary')
			OR $permission->Check('report','view_form941')}
            ["|-",""],
            ["|{t}Tax Reports{/t}",""],
			{if $current_company->getCountry() == 'CA'}
				{if $permission->Check('report','view_remittance_summary')}
					["||-",""],
					["||{t}Remittance Summary{/t}","report/RemittanceSummary.php"],
				{/if}
				{if $permission->Check('report','view_t4_summary')}
					["||-",""],
					["||{t}T4 Summary{/t}","report/T4Summary.php"],
				{/if}
			{/if}
			{if $current_company->getCountry() == 'US'}
				{if $permission->Check('report','view_form941')}
					["||-",""],
					["||{t}Form 941{/t}","report/Form941.php"],
				{/if}
				{if $permission->Check('report','view_form940')}
					["||-",""],
					["||{t}FUTA - Form 940{/t}","report/Form940.php"],
				{/if}
				{if $permission->Check('report','view_form940ez')}
					["||-",""],
					["||{t}FUTA - Form 940-EZ{/t}","report/Form940ez.php"],
				{/if}
				{if $permission->Check('report','view_formW2')}
					["||-",""],
					["||{t}Form W2 / W3{/t}","report/FormW2.php"],
				{/if}
			{/if}
			["||-",""],
		{/if}
        ["|-",""],
        ["-",""],
	{/if}
	{if $permission->Check('user','edit_own')
		OR $permission->Check('user_preference','enabled')
		OR $permission->Check('user','edit_own_bank')
		OR $permission->Check('message','enabled')}
        ["{t}My Account{/t}","","{if $unread_messages > 0}mail.png{/if}"],
        {if $permission->Check('message','enabled') }
            ["|-",""],
            ["|Messages{if $unread_messages > 0} ({$unread_messages}){/if}","message/UserMessageList.php","{if $unread_messages > 0}mail.png{/if}"],
        {/if}
        {if $permission->Check('user','edit_own')}
            ["|-",""],
            ["|{t}Contact Information{/t}","users/EditUser.php?id={$current_user->getId()}"],
        {/if}
        {if $permission->Check('user_preference','enabled')}
            ["|-",""],
            ["|{t}Preferences{/t}","users/EditUserPreference.php"],
        {/if}
        {if $permission->Check('user','edit_own')}
            ["|-",""],
            ["|{t}Web Password{/t}","users/EditUserPassword.php?id={$current_user->getId()}"],
            ["|-",""],
            ["|{t}Phone Password{/t}","users/EditUserPhonePassword.php?id={$current_user->getId()}"],
        {/if}
        {if $permission->Check('user','edit_own_bank')}
            ["|-",""],
            ["|{t}Bank Information{/t}","bank_account/EditBankAccount.php"],
        {/if}
        ["|-",""],
        ["-",""],
	{/if}
    ["{t}Help{/t}",""],
{*
    ["|-",""],
    ["|{t}TimeTrex Help{/t}","javascript:help_window('{$smarty.server.SCRIPT_NAME}')","{if $system_settings.new_version == 1}red_flag.gif{/if}"],
*}
    {if $permission->Check('company','enabled') AND $permission->Check('company','edit_own')}
        ["|-",""],
        ["|{t}Administrator Guide{/t}","http://www.timetrex.com/help/administrator_guide.pdf"],
        ["|-",""],
        ["|{t}About{/t}","help/About.php","{if $system_settings.new_version == 1}red_flag.gif{/if}"],
    {/if}
    ["-",""],
    ["{t}Logout{/t}","Logout.php"],
    ["-",""],
    ["","","tab_menu.gif","tab_menu.gif"],
	{literal}
];

dm_init();
{/literal}