<html>
<head>
<link rel="stylesheet" href="{$BASE_URL}{$css_file}" type="text/css" />

<title>{$APPLICATION_NAME}{if $title != ''} - {$title}{/if}</title>
<SCRIPT language=JavaScript src="{$BASE_URL}global.js.php" type=text/javascript></SCRIPT>

<SCRIPT language=JavaScript>
{literal}
function help_window(group) {
	help=window.open('{/literal}{$BASE_URL}{literal}help/WindowViewHelp.php?script='+ encodeURI(group) +'&title='+ encodeURI('{/literal}{$title|escape}{literal}'),"Help","toolbar=0,status=1,menubar=0,scrollbars=1,fullscreen=no,width=400,height=600,resizable=1");
}
{/literal}
</SCRIPT>

<script type="text/javascript">var dmWorkPath = "{$BASE_URL}menu/";</script>
<script type="text/javascript" src="{$BASE_URL}menu/dmenu.js"></script>
{*<script type="text/javascript" src="{$BASE_URL}menu.js.php">*}

<script	language=JavaScript>

{literal}
//--- Common
var isHorizontal=1;
var smColumns=1;
var smOrientation=0;
var smViewType=0;
var dmRTL=0;
var pressedItem=-2;
var itemCursor="hand";
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') }
        ["{t}TimeSheet{/t}","","{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('punch','edit') OR $permission->Check('punch','edit_child')}
            ["|-",""],
            ["|{t}Mass Punch{/t}","punch/AddMassPunch.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','enabled')
		OR $permission->Check('recurring_schedule','enabled')
		OR $permission->Check('recurring_schedule_template','enabled')}
        ["{t}Schedule{/t}",""],
        {if $permission->Check('schedule','view') OR $permission->Check('schedule','view_own')}
            ["|-",""],
            ["|{t}MySchedule{/t}","schedule/ViewSchedule.php"],
        {/if}
        {if $permission->Check('schedule','edit') OR $permission->Check('schedule','edit_child')}
            ["|-",""],
            ["|{t}Mass Schedule{/t}","schedule/AddMassSchedule.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 Policies{/t}","invoice_policy/TaxPolicyList.php"],
    		{/if}
       		{if $permission->Check('shipping_policy','view') OR $permission->Check('shipping_policy','view_own')}
                ["||-",""],
                ["||{t}Shipping Policies{/t}","invoice_policy/ShippingPolicyList.php"],
    		{/if}
       		{if $permission->Check('area_policy','view') OR $permission->Check('area_policy','view_own')}
                ["||-",""],
                ["||{t}Area Policies{/t}","invoice_policy/AreaPolicyList.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('payment_gateway','edit') OR $permission->Check('payment_gateway','edit_own')}
            ["|-",""],
            ["|{t}Payment Gateway{/t}","invoice/PaymentGatewayList.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}Docs{/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('user','view_child') ) )
		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') )}
        ["{t}Admin{/t}",""],
		{if $permission->Check('user','enabled') AND ( $permission->Check('user','view') OR $permission->Check('user','view_child') )}
            ["|-",""],
            ["|{t}Employee Administration{/t}","users/UserList.php"],
		{/if}
		{if ( $permission->Check('company','enabled') AND $permission->Check('company','edit_own') )
			OR ( $permission->Check('user','enabled') AND $permission->Check('user','edit') AND $permission->Check('user','add') )
			OR ( $permission->Check('branch','enabled') AND $permission->Check('branch','view') )
			OR ( $permission->Check('currency','enabled') AND $permission->Check('currency','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','edit') AND $permission->Check('user','add')}
                ["||-",""],
                ["||{t}Employee Titles{/t}","users/UserTitleList.php"],
				["||-",""],
				["||{t}Employee Groups{/t}","users/UserGroupList.php"],
            {/if}
            {if $permission->Check('currency','enabled') AND $permission->Check('currency','view')}
                ["||-",""],
                ["||{t}Currencies{/t}","currency/CurrencyList.php"],
            {/if}
            {if $permission->Check('branch','enabled') AND $permission->Check('branch','view')}
                ["||-",""],
                ["||{t}Branches{/t}","branch/BranchList.php"],
            {/if}
            {if $permission->Check('department','enabled') AND $permission->Check('department','view')}
                ["||-",""],
                ["||{t}Departments{/t}","department/DepartmentList.php"],
            {/if}
            {if $permission->Check('station','enabled') AND $permission->Check('station','view')}
                ["||-",""],
                ["||{t}Stations{/t}","station/StationList.php"],
            {/if}
            {if $permission->Check('permission','enabled') AND $permission->Check('permission','edit')}
                ["||-",""],
                ["||{t}Permission Groups{/t}","permission/PermissionControlList.php"],
            {/if}
			{if $permission->Check('user','enabled') AND $permission->Check('user','edit') AND $permission->Check('user','add')}
                ["||-",""],
                ["||{t}New Hire Defaults{/t}","users/EditUserDefault.php"],
            {/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 Holidays{/t}","policy/RecurringHolidayList.php"],
            {/if}
            {if $permission->Check('other_field','enabled') AND $permission->Check('other_field','view')}
                ["||-",""],
                ["||{t}Other Fields{/t}","company/OtherFieldList.php"],
            {/if}
            ["||-",""],
		{/if}

		{if ( $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 Groups{/t}","policy/PolicyGroupList.php"],
            {/if}
            {if $permission->Check('schedule_policy','enabled') AND $permission->Check('schedule_policy','view')}
                ["||-",""],
                ["||{t}Schedule Policies{/t}","policy/SchedulePolicyList.php"],
            {/if}
            {if $permission->Check('round_policy','enabled') AND $permission->Check('round_policy','view')}
                ["||-",""],
                ["||{t}Rounding Policies{/t}","policy/RoundIntervalPolicyList.php"],
            {/if}
            {if $permission->Check('meal_policy','enabled') AND $permission->Check('meal_policy','view')}
                ["||-",""],
                ["||{t}Meal Policies{/t}","policy/MealPolicyList.php"],
            {/if}
            {if $permission->Check('accrual_policy','enabled') AND $permission->Check('accrual_policy','view')}
                ["||-",""],
                ["||{t}Accrual Policies{/t}","policy/AccrualPolicyList.php"],
            {/if}
            {if $permission->Check('over_time_policy','enabled') AND $permission->Check('over_time_policy','view')}
                ["||-",""],
                ["||{t}Overtime Policies{/t}","policy/OverTimePolicyList.php"],
            {/if}
            {if $permission->Check('premium_policy','enabled') AND $permission->Check('premium_policy','view')}
                ["||-",""],
                ["||{t}Premium Policies{/t}","policy/PremiumPolicyList.php"],
            {/if}
            {if $permission->Check('absence_policy','enabled') AND $permission->Check('absence_policy','view')}
                ["||-",""],
                ["||{t}Absence Policies{/t}","policy/AbsencePolicyList.php"],
            {/if}
            {if $permission->Check('exception_policy','enabled') AND $permission->Check('exception_policy','view')}
                ["||-",""],
                ["||{t}Exception Policies{/t}","policy/ExceptionPolicyControlList.php"],
            {/if}
            {if $permission->Check('holiday_policy','enabled') AND $permission->Check('holiday_policy','view')}
                ["||-",""],
                ["||{t}Holiday Policies{/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_stub_amendment','view_child') OR $permission->Check('pay_stub_amendment','view_own') ) )
			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') OR $permission->Check('pay_stub_amendment','view_child') OR $permission->Check('pay_stub_amendment','view_own') )}
                ["||-",""],
                ["||{t}Pay Stub Amendments{/t}","pay_stub_amendment/PayStubAmendmentList.php"],
                ["||-",""],
                ["||{t}Recurring PS Amendments{/t}","pay_stub_amendment/RecurringPayStubAmendmentList.php"],
            {/if}
            {if $permission->Check('pay_period_schedule','enabled') AND $permission->Check('pay_period_schedule','view')}
                ["||-",""],
                ["||{t}Pay Period Schedules{/t}","payperiod/PayPeriodScheduleList.php"],
            {/if}
            {if $permission->Check('pay_stub_account','enabled') AND $permission->Check('pay_stub_account','view')}
                ["||-",""],
                ["||{t}Pay Stub Accounts{/t}","pay_stub/PayStubEntryAccountList.php"],
            {/if}
            {if $permission->Check('company_tax_deduction','enabled') AND $permission->Check('company_tax_deduction','view')}
                ["||-",""],
                ["||{t}Taxes / Deductions{/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 $current_company->getProductEdition() > 10 AND $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_punch_summary')}
            ["|-",""],
            ["|{t}Punch Summary{/t}","report/PunchSummary.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_payroll_export')}
            ["|-",""],
            ["|{t}Payroll Export{/t}","report/PayrollExport.php"],
		{/if}
		{if $permission->Check('report','view_system_log')}
            ["|-",""],
            ["|{t}Audit Trail{/t}","report/SystemLog.php"],
		{/if}
		{if $permission->Check('report','view_general_ledger_summary')}
            ["|-",""],
            ["|{t}General Ledger Summary{/t}","report/GeneralLedgerSummary.php"],
		{/if}
		{if $permission->Check('report','view_user_barcode')}
            ["|-",""],
            ["|{t}Employee Barcodes{/t}","report/UserBarcode.php"],
		{/if}
		{if $permission->Check('report','view_remittance_summary')
			OR $permission->Check('report','view_t4_summary')
			OR $permission->Check('report','view_form941')
			OR $permission->Check('report','view_form1099misc')}
            ["|-",""],
            ["|{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_form1099misc')}
					["||-",""],
					["||Form 1099-Misc","report/Form1099Misc.php"],
				{/if}
				{if $permission->Check('report','view_formW2')}
					["||-",""],
					["||{t}Form W2 / W3{/t}","report/FormW2.php"],
				{/if}
			{/if}
			{if $permission->Check('report','view_generic_tax_summary')}
				["||-",""],
				["||{t}Tax Summary (Generic){/t}","report/GenericTaxSummary.php"],
			{/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}MyAccount{/t}","","{if $unread_messages > 0}mail.png{/if}"],
        {if $permission->Check('message','enabled') }
            ["|-",""],
            ["|{t}Messages{/t}{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}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}Help{/t}","","{if $system_settings.new_version == 1}red_flag.gif{/if}"],
		{if DEMO_MODE == FALSE}
        ["|-",""],
        ["|{t}Online University{/t}","javascript:window.open('{$BASE_URL}help/About.php?action:university=1','{t}Online_University{/t}');"],
		{/if}
        ["|-",""],
        ["|{t}Administrator Guide{/t}","http://www.timetrex.com/help/help.php?product=admin&edition={php}echo getTTProductEdition(){/php}&version={$system_settings.system_version}&language={$current_user_prefs->getLanguage()}"],
        ["|-",""],
        ["|{t}What's New{/t}","help/WhatsNew.php"],
        ["|-",""],
        ["|{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}
</script>

</head>
<body id="body" onLoad="{*onload_quick_help();*}handleMenuOverlapLogo();onload_column_expand();{$body_onload};firstElementFocus();{if (!isset($newMailPopUp) AND $unread_messages > 0)}newMailPopUp('{$BASE_URL}');{/if}">

{if $enable_ajax == TRUE}
<script type='text/javascript' src='{$BASE_URL}ajax_server.php?client=all&stub=AJAX_Server'></script>
{/if}

{if $enable_calendar == TRUE}
<style type="text/css">@import url({$BASE_URL}jscalendar/skins/aqua/theme.css);</style>
<script type="text/javascript" src="{$BASE_URL}jscalendar/calendar_stripped.js"></script>
<script type="text/javascript" src="{$BASE_URL}jscalendar/lang/calendar-{$CALENDAR_LANG}.js"></script>
<script type="text/javascript" src="{$BASE_URL}jscalendar/calendar-setup_stripped.js"></script>
{/if}

{if $enable_auto_suggest == TRUE}
<link rel="stylesheet" href="{$BASE_URL}auto_suggest/autosuggest.css" type="text/css" />
<script language="Javascript" src="{$BASE_URL}auto_suggest/autosuggest.js"></script>
<div id="autosuggest"><ul></ul></div>
{/if}

{* {getquickhelpdata} *}

<div id="container">
	<div id="rowHeader">
		<span class="imgClientLogo">
			<a href="{$BASE_URL}index.php"><img src="{if $current_company->getLogoFileName() != FALSE}{$BASE_URL}/send_file.php?object_type=company_logo{else}{$IMAGES_URL}timetrex_logo_wbg_small2.jpg{/if}" style="visibility: hidden;" id="header_logo" alt="TimeTrex"></a>
		</span>
		<div id="rowHeaderContainer">
		<div id="rowHeaderText">&nbsp;{$current_company->getName()} - {$current_user->getFullName()}</div>
		<div id="rowHeaderMenu">M</script>
		</div>
	</div>
</div>
<div id="rowBreadcrumbs">
	{*
	<span class="imgRight">
		{if $permission->Check('help','enabled') AND ( $permission->Check('help','view') OR $permission->Check('help','view_own') )}
			<a href="javascript:hideAllHelpEntries();showHelpEntry('default');placeQuickHelpWindow();showQuickHelpWindow()">
				<img src="{$IMAGES_URL}quick_help.gif" width="73" height="16" alt="">
			</a>
		{/if}
	</span>
	*}
	{displaybreadcrumbs}
	{if $DB_TIME_ZONE_ERROR == 1}
	<div id="rowError">{t escape="no" 1=$APPLICATION_NAME}WARNING: %1 was unable to set your time zone. Please contact your %1 administrator immediately.{/t} {if $permission->Check('company','enabled') AND $permission->Check('company','edit_own')}<a href="http://forums.timetrex.com/viewtopic.php?t=40">{t}For more information please click here.{/t}</a>{/if}</div>
	{/if}
	{if $CRON_OUT_OF_DATE == 1}
	<div id="rowError">{t escape="no" 1=$APPLICATION_NAME}WARNING: %1 maintenance jobs have not run in the last 48hours. Please contact your %1 administrator immediately.{/t}</div>
	{/if}
	{if $INSTALLER_ENABLED == 1}
	<div id="rowError">{t escape="no" 1=$APPLICATION_NAME}WARNING: %1 is currently in INSTALL MODE. Please go to your timetrex.ini.php file and set "installer_enabled" to "FALSE".{/t}</div>
	{/if}
	{if $VERSION_MISMATCH == 1}
	<div id="rowError">{t escape="no" 1=$APPLICATION_NAME}WARNING: %1 application version does not match database version. Please re-run the TimeTrex installer to complete the upgrade process.{/t}</div>
	{/if}
</div>
<a name="top"></a>
<!-- End Header -->
