//gen menu ver. 4.0

level_1 = new Array('abt_mpfs', 'abt_mpfa', 'mpf_edu', 'enforc', 'super', 'inv_reg', 'reg_use', 'leg_reg', 'orso', 'sitemap', 'contactus', 'search', 'subscribe', 'notices', 'quicklinks', 'whatsnew', 'e_card', 'e_alert', 'interactive');

//level 2

function genmenu(){
	//gentable(lev_div+'link','alt','orgcolor','target','layer');
	if(fol == 0){ //About the MPF System
		gentable(lev_div+'abt_mpfs/abt_mpfs_bgd/abt_mpfs_bgd.html', 'Background', '#EBB3B3', '', '');
		gentable(lev_div+'abt_mpfs/abt_mpfs_mil/abt_mpfs_mil.html', 'Milestones', '#EBB3B3', '', '');		
		gentable(lev_div+'abt_mpfs/abt_mpfs_tms/abt_mpfs_tms.html', 'Types of MPF Schemes', '#EBB3B3', '', '');
		gentable(lev_div+'abt_mpfs/abt_mpfs_ftp/abt_mpfs_ftp.html', 'Four-tier Protection', '#EBB3B3', '', 'y');
		gentable(lev_div+'abt_mpfs/abt_mpfs_fms/abt_mpfs_fms.html', 'Features of the MPF System', '#EBB3B3', '', 'y');
		gentable(lev_div+'abt_mpfs/abt_mpfs_is/abt_mpfs_is.html', 'Industry Schemes', '#EBB3B3', '', '');

	}else if(fol == 1){ //About the MPFA
		gentable(lev_div+'abt_mpfa/abt_mpfa_wel/abt_mpfa_wel.html', 'Welcome', '#EADBB2', '', '');
		gentable(lev_div+'abt_mpfa/abt_mpfa_mr/abt_mpfa_mr.html', 'Mission and Role', '#EADBB2', '', '');
		gentable(lev_div+'abt_mpfa/abt_mpfa_rs/abt_mpfa_rs.html', 'Regulatory Structure', '#EADBB2', '', '');
		gentable(lev_div+'abt_mpfa/abt_mpfa_os/abt_mpfa_os.html', 'Organizational Structure', '#EADBB2', '', 'y');
		gentable(lev_div+'abt_mpfa/abt_mpfa_pp/abt_mpfa_pp.html', 'Performance Pledges', '#EADBB2', '', 'y');
		gentable(lev_div+'abt_mpfa/abt_mpfa_cg/abt_mpfa_cg.html', 'Corporate Governance', '#EADBB2', '', 'y');
		gentable(lev_div+'abt_mpfa/abt_mpfa_jo/abt_mpfa_jo.html', 'Job Opportunities', '#EADBB2', '', '');
		gentable(lev_div+'../staff/', 'Staff News', '#EADBB2', '', '');

	}else if(fol == 2){ //MPF Education
		gentable(lev_div+'mpf_edu/mpf_edu_laymi/mpf_edu_laymi.html', 'Look After Your MPF Investment', '#DFC4A9', '', 'y');
		gentable(lev_div+'mpf_edu/mpf_edu_mftf/mpf_edu_mftf.html', 'MPF Funds and Their Features', '#DFC4A9', '', '');
		gentable(lev_div+'mpf_edu/mpf_edu_mafi/mpf_edu_mafi.html', 'More About Fund Investment', '#DFC4A9', '', 'y');
		gentable(lev_div+'mpf_edu/mpf_edu_cal/mpf_edu_cal.html', 'Calculators', '#DFC4A9', '', 'y');
		gentable(lev_div+'mpf_edu/mpf_edu_yc/mpf_edu_yc.html', 'Youth Corner', '#DFC4A9', '', 'y');
	
	}else if(fol == 3){ //Enforcement
		/*gentable(lev_div+'enforc/enforc.html#p1', 'Objective', '#B4D8BC', '', '');
		gentable(lev_div+'enforc/enforc.html#p2', 'Enforcement Measures', '#B4D8BC', '', '');
		gentable(lev_div+'enforc/enforc.html#p3', 'Handling Complaint', '#B4D8BC', '', '');
		gentable(lev_div+'enforc/enforc.html#p4', 'Proactive Inspection', '#B4D8BC', '', '');
		gentable(lev_div+'enforc/enforc.html#p5', 'Financial Penalty', '#B4D8BC', '', '');
		gentable(lev_div+'enforc/enforc.html#p6', 'Prosecutions', '#B4D8BC', '', '');*/
		gentable(lev_div+'enforc/enforc.html', 'Enforcement Overview', '#B4D8BC', '', 'y');
		gentable(lev_div+'enforc/enforc_nc/enforc_nc.asp', 'Non-Compliant Employer and Officer Records', '#B4D8BC', '', '');
		gentable(lev_div+'enforc/enforc_lc/enforc_lc.html', 'Landmark Cases', '#B4D8BC', '', '');
		gentable(lev_div+'enforc/enforc_cf/enforc_cf.html', 'Learn More About MPF Regulations', '#B4D8BC', '', '');	

			
	}else if(fol == 4){ //Supervision
		gentable(lev_div+'super/super_obj/super_obj.html', 'Objectives', '#ADD9DD', '', '');
		gentable(lev_div+'super/super_st/super_st.html', 'Supervision of Trustees', '#ADD9DD', '', 'y');
		gentable(lev_div+'super/super_si/super_si.html', 'Supervision of Intermediaries', '#ADD9DD', '', 'y');
			
	}else if(fol == 5){ //Investment Regulation
		gentable(lev_div+'inv_reg/inv_reg_ir/inv_reg_ir.html', 'Investment Restrictions', '#B7BBDD', '', 'y');
		gentable(lev_div+'inv_reg/inv_reg_ed/inv_reg_ed.html', 'Enhancing Disclosure', '#B7BBDD', '', 'y');
	
	}else if(fol == 6){ //Registers & Useful Lists
		gentable(lev_div+'reg_use/reg_use_amt/reg_use_amt.asp', 'List of Approved MPF Trustees & Their Background', '#CDB9D7', '', '');
		gentable(lev_div + 'reg_use/reg_use_ams/reg_use_ams.asp', 'List of Registered MPF Schemes & Constituent Funds', '#CDB9D7', '', '');
		gentable(lev_div+'reg_use/reg_use_mir/reg_use_mir.html', 'MPF Intermediaries Register', '#CDB9D7', '', '');
		//gentable(lev_div+'reg_use/reg_use_rmi/reg_use_rmi.asp', 'List of Registered MPF Intermediaries', '#CDB9D7', '', '');
		gentable(lev_div+'reg_use/reg_use_os/reg_use_os.asp', 'Index of ORSO Schemes', '#CDB9D7', '', '');
		gentable(lev_div+'reg_use/reg_use_meos/reg_use_meos.asp', 'MPF Exempted ORSO Schemes Public Register', '#CDB9D7', '', '');
		gentable(lev_div+'reg_use/reg_use_aob/reg_use_aob.html', 'List of Approved Overseas Banks', '#CDB9D7', '', '');
		gentable(lev_div+'reg_use/reg_use_aotc/reg_use_aotc.html', 'List of Approved Overseas Trust Companies', '#CDB9D7', '', '');
		gentable(lev_div+'reg_use/reg_use_itcis/reg_use_itcis.html', 'List of Approved Index-tracking Collective Investment Schemes ("ITCIS")', '#CDB9D7', '', '');
	
	}else if(fol == 7){ //Legislation & Regulations
		gentable(lev_div+'leg_reg/leg_reg_leg/leg_reg_leg.html', 'Legislation', '#CDB8B8', '', 'y');
		gentable(lev_div+'leg_reg/leg_reg_reg/leg_reg_reg.html', 'Regulations', '#CDB8B8', '', 'y');
		gentable(lev_div+'leg_reg/leg_reg_cod/leg_reg_cod.html', 'Codes', '#CDB8B8', '', '');
		gentable(lev_div+'leg_reg/leg_reg_gui/leg_reg_gui.html', 'Guidelines', '#CDB8B8', '', 'y');
		gentable(lev_div+'leg_reg/leg_reg_cir/leg_reg_cir.html', 'Circulars', '#CDB8B8', '', 'y');
		gentable(lev_div+'leg_reg/leg_reg_sta/leg_reg_sta.html', 'Standards', '#CDB8B8', '', '');
		gentable(lev_div+'leg_reg/leg_reg_bpn/leg_reg_bpn.html', 'Best Practice Notes', '#CDB8B8', '', '');
		gentable(lev_div+'leg_reg/leg_reg_mous/leg_reg_mous.html', 'Memorandum of Understanding', '#CDB8B8', '', '');
		//gentable(lev_div+'leg_reg/leg_reg_gic/leg_reg_gic_disc.asp', 'Guidance Note on Government\'s Injection of Contributions', '#CDB8B8', '', '');
	
	}else if(fol == 8){ //ORSO
		gentable(lev_div+'orso/orso_over/orso_over.html', 'Overview', '#CCCCCC', '', '');
		gentable(lev_div+'orso/orso_ors/orso_ors.html', 'Occupational Retirement Schemes', '#CCCCCC', '', 'y');
		gentable(lev_div+'orso/orso_mmb/orso_mmb.html', 'Minimum MPF Benefits', '#CCCCCC', '', '');
		gentable(lev_div+'orso/orso_ne/orso_ne.html', 'Notes to Employees', '#CCCCCC', '', 'y');
		gentable(lev_div+'orso/orso_nre/orso_nre.html', 'Notes to Relevant Employers', '#CCCCCC', '', 'y');
		gentable(lev_div+'orso/orso_reg/orso_reg.html', 'Register of ORSO Schemes', '#CCCCCC', '', '');
		//gentable(lev_div+'orso/orso_gors/orso_gors.html', 'A Guide to Occupational Retirement Schemes', '#CCCCCC', '', '');	
		
	}
}

//end level 2


// level 3
function genlayer(){	
	//genlaytab(lev_div+'link', 'alt', 'orgcolor', 'overcol','target','layer');

	for(l=0; l<layer.length; l++){ 
		if(layer[l] == "Four-tier Protection"){
			genlayerheader(l);
			genlaytab(lev_div+'abt_mpfs/abt_mpfs_ftp/abt_mpfs_ftp.html#a1', 'Stringent Approval & Registration Criteria', '#EBB3B3', '#D66666','','');
			genlaytab(lev_div+'abt_mpfs/abt_mpfs_ftp/abt_mpfs_ftp.html#a2', 'On-going Monitoring', '#EBB3B3', '#D66666','','');
			genlaytab(lev_div+'abt_mpfs/abt_mpfs_ftp/abt_mpfs_ftp.html#a3', 'Professional Indemnity Insurance', '#EBB3B3', '#D66666','','');
			genlaytab(lev_div+'abt_mpfs/abt_mpfs_ftp/abt_mpfs_ftp.html#a4', 'Compensation Fund', '#EBB3B3', '#D66666','','');		
			genlayerfooter();

		}else if(layer[l] == "Features of the MPF System"){
			genlayerheader(l);
			genlaytab(lev_div+'abt_mpfs/abt_mpfs_fms/abt_mpfs_fms_def/abt_mpfs_fms_def.html', 'Definition', '#EBB3B3', '#D66666','','');
			genlaytab(lev_div+'abt_mpfs/abt_mpfs_fms/abt_mpfs_fms_cov/abt_mpfs_fms_cov.html', 'Coverage', '#EBB3B3', '#D66666','','');
			genlaytab(lev_div+'abt_mpfs/abt_mpfs_fms/abt_mpfs_fms_enr/abt_mpfs_fms_enr.html', 'Enrolment', '#EBB3B3', '#D66666','','');
			genlaytab(lev_div+'abt_mpfs/abt_mpfs_fms/abt_mpfs_fms_con/abt_mpfs_fms_con.html', 'Contributions', '#EBB3B3', '#D66666','','');
			genlaytab(lev_div+'abt_mpfs/abt_mpfs_fms/abt_mpfs_fms_ri/abt_mpfs_fms_ri.html', 'Rights, Obligations & Benefits', '#EBB3B3', '#D66666','','');
			genlaytab(lev_div+'abt_mpfs/abt_mpfs_fms/abt_mpfs_fms_tc/abt_mpfs_fms_tc.html', 'Tax Concessions', '#EBB3B3', '#D66666','','');
			genlaytab(lev_div+'abt_mpfs/abt_mpfs_fms/abt_mpfs_fms_olssp/abt_mpfs_fms_olssp.html', 'Offsetting of Severance or Long Service Payments', '#EBB3B3', '#D66666','','');			
			genlaytab(lev_div+'abt_mpfs/abt_mpfs_fms/abt_mpfs_fms_bp/abt_mpfs_fms_bp.html', 'Withdrawl of Accrued Benefits', '#EBB3B3', '#D66666','','');			
			genlaytab(lev_div+'abt_mpfs/abt_mpfs_fms/abt_mpfs_fms_cep/abt_mpfs_fms_cep.html', 'Change of Employment', '#EBB3B3', '#D66666','','');
			genlaytab(lev_div+'abt_mpfs/abt_mpfs_fms/abt_mpfs_fms_ub/abt_mpfs_fms_ub.html', 'Unclaimed Benefits', '#EBB3B3', '#D66666','','');
			genlayerfooter();

		}else if(layer[l] == "Organizational Structure"){ 
			genlayerheader(l);
			genlaytab(lev_div+'abt_mpfa/abt_mpfa_os/abt_mpfa_os_mb/abt_mpfa_os_mb.html', 'Management Board', '#EADBB2', '#D6B866','','');
			genlaytab(lev_div+'abt_mpfa/abt_mpfa_os/abt_mpfa_os_sc/abt_mpfa_os_sc.html', 'Supporting Committees', '#EADBB2', '#D6B866','','');
			genlaytab(lev_div+'abt_mpfa/abt_mpfa_os/abt_mpfa_os_sac/abt_mpfa_os_sac.html', 'Statutory Advisory Committees', '#EADBB2', '#D6B866','','');
			genlaytab(lev_div+'abt_mpfa/abt_mpfa_os/abt_mpfa_os_sab/abt_mpfa_os_sab.html', 'Statutory Appeal Boards', '#EADBB2', '#D6B866','','');		
			genlayerfooter();

		}else if(layer[l] == "Performance Pledges"){ 
			genlayerheader(l);
			genlaytab(lev_div+'abt_mpfa/abt_mpfa_pp/abt_mpfa_pp_ce/abt_mpfa_pp_ce.html', 'Enquiries & Complaints', '#EADBB2', '#D6B866','','');
			genlaytab(lev_div+'abt_mpfa/abt_mpfa_pp/abt_mpfa_pp_ci/abt_mpfa_pp_ci.html', 'Complaints Investigation', '#EADBB2', '#D6B866','','');
			//genlaytab(lev_div+'abt_mpfa/abt_mpfa_pp/abt_mpfa_pp_orso/abt_mpfa_pp_orso.html', 'ORSO', '#EADBB2', '#D6B866','','');
			genlayerfooter();

		}else if(layer[l] == "Corporate Governance"){ 
			genlayerheader(l);
			genlaytab(lev_div+'abt_mpfa/abt_mpfa_cg/abt_mpfa_cg_mb/abt_mpfa_cg_mb.html', 'The Management Board', '#EADBB2', '#D6B866','','');
			genlaytab(lev_div+'abt_mpfa/abt_mpfa_cg/abt_mpfa_cg_at/abt_mpfa_cg_at.html', 'Accountability and Transparency', '#EADBB2', '#D6B866','','');
			genlaytab(lev_div+'abt_mpfa/abt_mpfa_cg/abt_mpfa_cg_ic/abt_mpfa_cg_ic.html', 'Internal Control', '#EADBB2', '#D6B866','','');
			genlaytab(lev_div+'abt_mpfa/abt_mpfa_cg/abt_mpfa_cg_ir/abt_mpfa_cg_ir.html', 'Independent Reviews', '#EADBB2', '#D6B866','','');
			genlayerfooter();

		}else if(layer[l] == "Look After Your MPF Investment"){ 
			genlayerheader(l);
			genlaytab(lev_div+'mpf_edu/mpf_edu_laymi/mpf_edu_laymi_uyn/mpf_edu_laymi_uyn.html', 'Know Your Needs', '#DFC4A9', '#C08953','','');
			genlaytab(lev_div+'mpf_edu/mpf_edu_laymi/mpf_edu_laymi_kyf/mpf_edu_laymi_kyf.html', 'Know Your Funds', '#DFC4A9', '#C08953','','');
			genlaytab(lev_div+'mpf_edu/mpf_edu_laymi/mpf_edu_laymi_rri/mpf_edu_laymi_rri.html', 'Read Relevant Information', '#DFC4A9', '#C08953','','');
			genlayerfooter();

		}else if(layer[l] == "More About Fund Investment"){ 
			genlayerheader(l);
			genlaytab(lev_div+'mpf_edu/mpf_edu_mafi/mpf_edu_mafi_wf/mpf_edu_mafi_wf.html', 'Investing in Funds', '#DFC4A9', '#C08953','','');
			genlaytab(lev_div+'mpf_edu/mpf_edu_mafi/mpf_edu_mafi_bfu/mpf_edu_mafi_bfu.html', 'Transaction of Funds', '#DFC4A9', '#C08953','','');
			genlaytab(lev_div+'mpf_edu/mpf_edu_mafi/mpf_edu_mafi_da/mpf_edu_mafi_da.html', 'Dollar-Cost Averaging', '#DFC4A9', '#C08953','','');
			//genlaytab(lev_div+'mpf_edu/mpf_edu_mafi/mpf_edu_mafi_ig/mpf_edu_mafi_ig.html', 'Investment Glossary', '#DFC4A9', '#C08953','','');
			genlayerfooter();

		}else if(layer[l] == "Calculators"){ 
			genlayerheader(l);
			genlaytab(lev_div+'mpf_edu/mpf_edu_cal/mpf_edu_cal_crn/mpf_edu_cal_crn.html', 'Calculator on Retirement Needs', '#DFC4A9', '#C08953','','');
			genlaytab(lev_div+'mpf_edu/mpf_edu_cal/mpf_edu_cal_cmab/mpf_edu_cal_cmab.html', 'Calculator on MPF Accrued Benefits', '#DFC4A9', '#C08953','','');
			genlayerfooter();

		}else if(layer[l] == "Youth Corner"){ 
			genlayerheader(l);		
			genlaytab(lev_div+'mpf_edu/mpf_edu_yc/mpf_edu_yc_em/mpf_edu_yc_em.html', 'Education Materials', '#DFC4A9', '#C08953','','');
			genlaytab(lev_div+'mpf_edu/mpf_edu_yc/mpf_edu_yc_ya/mpf_edu_yc_ya.html', 'Youth Activities', '#DFC4A9', '#C08953','','');
			//genlaytab(lev_div+'mpf_edu/mpf_edu_yc/mpf_edu_yc_tp/mpf_edu_yc_tp.html', 'Talk Package', '#DFC4A9', '#C08953','','');
			genlaytab(lev_div+'mpf_edu/mpf_edu_yc/mpf_edu_yc_ya/mpf_edu_yc_ya_lskit2011.html', 'Teaching Kit for Liberal Studies', '#DFC4A9', '#C08953','','');
			genlayerfooter();

		}else if(layer[l] == "Supervision of Trustees"){ 
			genlayerheader(l);
			genlaytab(lev_div+'super/super_st/super_st_rr/super_st_rr.html', 'Registration Requirements', '#ADD9DD', '#5BB4BC','','');
			genlaytab(lev_div+'super/super_st/super_st_psa/super_st_psa.html', 'Proactive Supervisory Approach', '#ADD9DD', '#5BB4BC','','');
			genlaytab(lev_div+'super/super_st/super_st_cs/super_st_cs.html', 'Compliance Standards', '#ADD9DD', '#5BB4BC','','');
			genlaytab(lev_div + 'super/super_st/super_st_lmrt/super_st_lmrt.html', 'List of Approved Trustees', '#ADD9DD', '#5BB4BC', '', '');
			genlayerfooter();

		}else if(layer[l] == "Supervision of Intermediaries"){ 
			genlayerheader(l);
			genlaytab(lev_div+'super/super_si/super_si_ra/super_si_ra.html', 'Regulatory Approach', '#ADD9DD', '#5BB4BC','','');
			genlaytab(lev_div+'super/super_si/super_si_rr/super_si_rr.html', 'Registration Requirements', '#ADD9DD', '#5BB4BC','','');
			genlaytab(lev_div+'super/super_si/super_si_mie/super_si_mie.html', 'MPF Intermediaries Examination', '#ADD9DD', '#5BB4BC','','');
			genlaytab(lev_div+'super/super_si/super_si_cpd/super_si_cpd.html', 'Continuing Professional Development', '#ADD9DD', '#5BB4BC','','');
			genlaytab(lev_div+'super/super_si/super_si_lmri/super_si_lmri.html', 'List of Registered MPF Intermediaries', '#ADD9DD', '#5BB4BC','','');
			genlayerfooter();

		}else if(layer[l] == "Investment Restrictions"){ 
			genlayerheader(l);
			genlaytab(lev_div+'inv_reg/inv_reg_ir/inv_reg_ir_im/inv_reg_ir_im.html', 'Investment Management', '#B7BBDD', '#6F77BB','','');
			genlaytab(lev_div+'inv_reg/inv_reg_ir/inv_reg_ir_pi/inv_reg_ir_pi.html', 'Permissible Investments', '#B7BBDD', '#6F77BB','','');
			genlaytab(lev_div+'inv_reg/inv_reg_ir/inv_reg_ir_gr/inv_reg_ir_gr.html', 'General Restrictions', '#B7BBDD', '#6F77BB','','');
			genlayerfooter();

		}else if(layer[l] == "Enhancing Disclosure"){
			genlayerheader(l);
			genlaytab(lev_div+'inv_reg/inv_reg_ed/inv_reg_ed_pb/inv_reg_ed_pb.html', 'Purpose and Benefits', '#B7BBDD', '#6F77BB','','');
			genlaytab(lev_div+'inv_reg/inv_reg_ed/inv_reg_ed_dt/inv_reg_ed_dt.html', 'Disclosure Tools', '#B7BBDD', '#6F77BB','','');
			genlaytab(lev_div+'inv_reg/inv_reg_ed/inv_reg_ed_udt/inv_reg_ed_udt.html', 'Utilising the Disclosure Tools', '#B7BBDD', '#6F77BB','','');
			genlayerfooter();

		}else if(layer[l] == "Legislation"){ 
			genlayerheader(l);
			genlaytab('http://sc.mpfa.org.hk/gb/www.legislation.gov.hk/blis_ind.nsf/CurAllEngDoc?OpenView&Start=485&Count=30&Expand=485#485', 'Mandatory Provident Fund Schemes Ordinance (Cap 485)', '#CDB8B8', '#9C7272','_blank','');
			genlaytab('http://sc.mpfa.org.hk/gb/www.legislation.gov.hk/blis_ind.nsf/CurAllEngDoc?OpenView&Start=426&Count=30&Expand=426#426', 'Occupational Retirement Schemes Ordinance (Cap 426)', '#CDB8B8', '#9C7272','_blank','');
			genlayerfooter();

		}else if(layer[l] == "Regulations"){ 
			genlayerheader(l);
			genlaytab('http://sc.mpfa.org.hk/gb/www.legislation.gov.hk/blis_ind.nsf/CurAllEngDoc?OpenView&Start=485&Count=30&Expand=485.2#485.2', 'MPFS (General) Regulation', '#CDB8B8', '#9C7272','_blank','');
			genlaytab('http://sc.mpfa.org.hk/gb/www.legislation.gov.hk/blis_ind.nsf/CurAllEngDoc?OpenView&Start=485&Count=30&Expand=485.3#485.3', 'MPFS (Exemption) Regulation', '#CDB8B8', '#9C7272','_blank','');
			genlaytab('http://sc.mpfa.org.hk/gb/www.legislation.gov.hk/blis_ind.nsf/CurAllEngDoc?OpenView&Start=485&Count=30&Expand=485.4#485.4', 'MPFS (Fees) Regulation', '#CDB8B8', '#9C7272','_blank','');
			genlayerfooter();

		}else if(layer[l] == "Guidelines"){ 
			genlayerheader(l);
			genlaytab(lev_div+'leg_reg/leg_reg_gui/leg_reg_gui_p1/leg_reg_gui_p1.html', 'Part I. Licensing', '#CDB8B8', '#9C7272','','');
			genlaytab(lev_div+'leg_reg/leg_reg_gui/leg_reg_gui_p2/leg_reg_gui_p2.html', 'Part II. Reporting Requirements', '#CDB8B8', '#9C7272','','');
			genlaytab(lev_div+'leg_reg/leg_reg_gui/leg_reg_gui_p3/leg_reg_gui_p3.html', 'Part III. Investment', '#CDB8B8', '#9C7272','','');
			genlaytab(lev_div+'leg_reg/leg_reg_gui/leg_reg_gui_p4/leg_reg_gui_p4.html', 'Part IV. Scheme Operations', '#CDB8B8', '#9C7272','','');
			genlaytab(lev_div+'leg_reg/leg_reg_gui/leg_reg_gui_p5/leg_reg_gui_p5.html', 'Part V. ORSO Interface', '#CDB8B8', '#9C7272','','');
     			genlaytab(lev_div+'leg_reg/leg_reg_gui/leg_reg_gui_01.html', 'Previous Versions', '#CDB8B8', '#9C7272','','');
			genlayerfooter();

		}else if(layer[l] == "Circulars"){ 
			genlayerheader(l);
			genlaytab(lev_div+'leg_reg/leg_reg_cir/leg_reg_cir_mpf/leg_reg_cir_mpf.html', 'MPF', '#CDB8B8', '#9C7272','','');
			genlaytab(lev_div+'leg_reg/leg_reg_cir/leg_reg_cir_orso/leg_reg_cir_orso.html', 'ORSO', '#CDB8B8', '#9C7272','','');			
			genlayerfooter();

		}else if(layer[l] == "Occupational Retirement Schemes"){ 
			genlayerheader(l);
			genlaytab(lev_div+'orso/orso_ors/orso_ors_orso/orso_ors_orso.html', 'Occupational Retirement Schemes Ordinance', '#CCCCCC', '#999999','','');
			genlaytab(lev_div+'orso/orso_ors/orso_ors_ruoo/orso_ors_ruoo.html', 'Requirements Under the ORS Ordinance', '#CCCCCC', '#999999','','');
			genlaytab(lev_div+'orso/orso_ors/orso_ors_msr/orso_ors_msr.html', 'The MPF Schemes (Exemption) Regulation', '#CCCCCC', '#999999','','');
			genlaytab(lev_div+'orso/orso_ors/orso_ors_ruer/orso_ors_ruer.html', 'Requirements under the Exemption Regulation', '#CCCCCC', '#999999','','');			
			genlayerfooter();

		}else if(layer[l] == "Notes to Employees"){ 
			genlayerheader(l);
			genlaytab(lev_div+'orso/orso_ne/orso_ne_ri/orso_ne_ri.html', 'Receipt of Information', '#CCCCCC', '#999999','','');			
			genlaytab(lev_div+'orso/orso_ne/orso_ne_cc/orso_ne_cc.html', 'Consultative Committee', '#CCCCCC', '#999999','','');
			genlaytab(lev_div+'orso/orso_ne/orso_ne_oo/orso_ne_oo.html', 'Offer of Option', '#CCCCCC', '#999999','','');
			genlaytab(lev_div+'orso/orso_ne/orso_ne_tc/orso_ne_tc.html', 'Tax Concession', '#CCCCCC', '#999999','','');
			genlayerfooter();

		}else if(layer[l] == "Notes to Relevant Employers"){ 
			genlayerheader(l);
			genlaytab(lev_div+'orso/orso_nre/orso_nre_org/orso_nre_org.html', 'Obligations', '#CCCCCC', '#999999','','');
			genlaytab(lev_div+'orso/orso_nre/orso_nre_tc/orso_nre_tc.html', 'Tax Concession', '#CCCCCC', '#999999','','');
			genlaytab(lev_div+'orso/orso_nre/orso_nre_oslsp/orso_nre_oslsp.html', 'Offsetting of Severance and Long Service Payments', '#CCCCCC', '#999999','','');
			genlayerfooter();

		}else if(layer[l] == "Statistics"){ 
			genlayerheader(l);
			genlaytab(lev_div+'quicklinks/quicklinks_sta/quicklinks_sta_ms.html', 'MPF Statistics', '#e8edfa', '#799fe3','','');
			genlaytab(lev_div+'quicklinks/quicklinks_sta/quicklinks_sta_oss.html', 'ORSO Scheme Statistics', '#e8edfa', '#799fe3','','');
			genlayerfooter();

		}else if(layer[l] == "LegCo Matters"){ 
			genlayerheader(l);
			genlaytab(lev_div+'quicklinks/quicklinks_lm/quicklinks_lm_lb.html', 'LegCo Brief', '#e8edfa', '#799fe3','','');
			genlaytab(lev_div+'quicklinks/quicklinks_lm/quicklinks_lm_pp.html', 'Panel Paper', '#e8edfa', '#799fe3','','');
			genlaytab(lev_div+'quicklinks/quicklinks_lm/quicklinks_lm_lq.html', 'LegCo Question', '#e8edfa', '#799fe3','','');
			genlaytab(lev_div+'quicklinks/quicklinks_lm/quicklinks_lm_md.html', 'Motion Debate', '#e8edfa', '#799fe3','','');
			genlayerfooter();

		}else if(layer[l] == "Publication"){ 
			genlayerheader(l);
			genlaytab(lev_div+'quicklinks/quicklinks_pub/quicklinks_pub_ar.html', 'Annual Report', '#e8edfa', '#799fe3','','');
			genlaytab(lev_div+'quicklinks/quicklinks_pub/quicklinks_pub_mb.html', 'MPF Booklet & Publication', '#e8edfa', '#799fe3','','');
			genlayerfooter();

		}else if(layer[l] == "Published Articles"){ 
			genlayerheader(l);
			genlaytab(lev_div+'quicklinks/quicklinks_pa/quicklinks_pa_mp.html', 'Member Protection', '#e8edfa', '#799fe3','','');
			genlaytab(lev_div+'quicklinks/quicklinks_pa/quicklinks_pa_mi.html', 'MPF Investment', '#e8edfa', '#799fe3','','');
			genlayerfooter();

		}else if(layer[l] == "Event Calender"){ 
			genlayerheader(l);
			genlaytab(lev_div+'quicklinks/quicklinks_ec/quicklinks_ec_ue.html', 'Upcoming Events', '#e8edfa', '#799fe3','','');
			genlaytab(lev_div+'quicklinks/quicklinks_ec/quicklinks_ec_pa.html', 'Past Activities', '#e8edfa', '#799fe3','','');
			genlayerfooter();

		}else if(layer[l] == "Forms"){ 
			genlayerheader(l);
			genlaytab(lev_div+'quicklinks_forms/quicklinks_forms_ms.html', 'MPF Schemes', '#e8edfa', '#799fe3','','');
			genlaytab(lev_div+'quicklinks_forms/quicklinks_forms_os.html', 'ORSO Schemes', '#e8edfa', '#799fe3','','');
			genlaytab(lev_div+'quicklinks_forms/quicklinks_forms_meos.html', 'MPF Exempted ORSO Schemes', '#e8edfa', '#799fe3','','');
			genlayerfooter();

		}else if(layer[l] == "FAQs"){ 
			genlayerheader(l);
			genlaytab(lev_div+'quicklinks/quicklinks_faqs/quicklinks_faqs_em.html', 'Employees', '#e8edfa', '#799fe3','','');
			genlaytab(lev_div+'quicklinks/quicklinks_faqs/quicklinks_faqs_ems.html', 'Employers', '#e8edfa', '#799fe3','','');
			genlaytab(lev_div+'quicklinks/quicklinks_faqs/quicklinks_faqs_sep.html', 'Self-Employed Persons', '#e8edfa', '#799fe3','','');
			genlaytab(lev_div+'quicklinks/quicklinks_faqs/quicklinks_faqs_int.html', 'Intermediaries', '#e8edfa', '#799fe3','','');
			genlaytab(lev_div+'quicklinks/quicklinks_faqs/quicklinks_faqs_orso.html', 'ORSO', '#e8edfa', '#799fe3','','');
			genlayerfooter();

		}else if(layer[l] == "Enforcement Overview"){ 
			genlayerheader(l);
			genlaytab(lev_div+'enforc/enforc.html#p1', 'Objective', '#B4D8BC', '#6AB279','','');
			genlaytab(lev_div+'enforc/enforc.html#p2', 'Enforcement Measures', '#B4D8BC', '#6AB279','','');
			genlaytab(lev_div+'enforc/enforc.html#p3', 'Handling Complaint', '#B4D8BC', '#6AB279','','');
			genlaytab(lev_div+'enforc/enforc.html#p4', 'Proactive Inspection', '#B4D8BC', '#6AB279','','');
			genlaytab(lev_div+'enforc/enforc.html#p5', 'Financial Penalty', '#B4D8BC', '#6AB279','','');		
			genlaytab(lev_div+'enforc/enforc.html#p6', 'Prosecutions', '#B4D8BC', '#6AB279','','');		
			genlayerfooter();

		}
	}	
	
}

//end level 4

function gensublayer(){
	//genlaytab(lev_div+'link','alt','orgcolor','target','layer');
	for(m=0; m<lalt.length; m++){ // level 4
	
		if(lalt[m] == "Coverage"){			
			genlayerheader2(m);
			genlaytab(lev_div+'abt_mpfs/abt_mpfs_fms/abt_mpfs_fms_cov/abt_mpfs_fms_cov_ep/abt_mpfs_fms_cov_ep.html', 'Exempt Persons', '#EBB3B3', '#D66666','','');
			genlaytab(lev_div+'abt_mpfs/abt_mpfs_fms/abt_mpfs_fms_cov/abt_mpfs_fms_cov_ewohk/abt_mpfs_fms_cov_ewohk.html', 'Employees Working Outside Hong Kong', '#EBB3B3', '#D66666','','');
			genlayerfooter();

		}else if(lalt[m] == "Contributions"){ 
			genlayerheader2(m);
			genlaytab(lev_div+'abt_mpfs/abt_mpfs_fms/abt_mpfs_fms_con/abt_mpfs_fms_con_ves/abt_mpfs_fms_con_ves.html', 'Vesting', '#EBB3B3', '#D66666','','');
			genlaytab(lev_div+'abt_mpfs/abt_mpfs_fms/abt_mpfs_fms_con/abt_mpfs_fms_con_bp/abt_mpfs_fms_con_bp.html', 'Benefit Projection', '#EBB3B3', '#D66666','','');
			genlayerfooter();

		}else if(lalt[m] == "Rights, Obligations & Benefits"){ 
			genlayerheader2(m);
			genlaytab(lev_div+'abt_mpfs/abt_mpfs_fms/abt_mpfs_fms_ri/abt_mpfs_fms_ri_rbe/abt_mpfs_fms_ri_rbe.html', 'Rights & Benefits for Employee', '#EBB3B3', '#D66666','','');
			genlaytab(lev_div+'abt_mpfs/abt_mpfs_fms/abt_mpfs_fms_ri/abt_mpfs_fms_ri_oe/abt_mpfs_fms_ri_oe.html', 'Obligations for Employer', '#EBB3B3', '#D66666','','');
			genlayerfooter();

		}else if(lalt[m] == "Change of Employment"){ 
			genlayerheader2(m);
			genlaytab(lev_div+'abt_mpfs/abt_mpfs_fms/abt_mpfs_fms_cep/abt_mpfs_fms_cep_pa/abt_mpfs_fms_cep_pa.html', 'Preserved Accounts', '#EBB3B3', '#D66666','','');			
			genlayerfooter();

		}else if(lalt[m] == "Supporting Committees"){ 
			genlayerheader2(m);
			genlaytab(lev_div+'abt_mpfa/abt_mpfa_os/abt_mpfa_os_sc/abt_mpfa_os_sc_adc/abt_mpfa_os_sc_adc.html', 'Administrative Committee', '#EADBB2', '#D6B866','','');
			genlaytab(lev_div+'abt_mpfa/abt_mpfa_os/abt_mpfa_os_sc/abt_mpfa_os_sc_fc/abt_mpfa_os_sc_fc.html', 'Finance Committee', '#EADBB2', '#D6B866','','');
			genlaytab(lev_div+'abt_mpfa/abt_mpfa_os/abt_mpfa_os_sc/abt_mpfa_os_sc_gc/abt_mpfa_os_sc_gc.html', 'Guidelines Committee', '#EADBB2', '#D6B866','','');
			genlaytab(lev_div+'abt_mpfa/abt_mpfa_os/abt_mpfa_os_sc/abt_mpfa_os_sc_ac/abt_mpfa_os_sc_ac.html', 'Audit Committee', '#EADBB2', '#D6B866','','');
			genlaytab(lev_div+'abt_mpfa/abt_mpfa_os/abt_mpfa_os_sc/abt_mpfa_os_sc_tb/abt_mpfa_os_sc_tb.html', 'Tender Board', '#EADBB2', '#D6B866','','');
			genlayerfooter();

		}else if(lalt[m] == "Statutory Advisory Committees"){ 
			genlayerheader2(m);
			genlaytab(lev_div+'abt_mpfa/abt_mpfa_os/abt_mpfa_os_sac/abt_mpfa_os_sac_msac/abt_mpfa_os_sac_msac.html', 'MPF Scheme Advisory Committee', '#EADBB2', '#D6B866','','');
			genlaytab(lev_div+'abt_mpfa/abt_mpfa_os/abt_mpfa_os_sac/abt_mpfa_os_sac_misc/abt_mpfa_os_sac_misc.html', 'MPF Industry Schemes Committee', '#EADBB2', '#D6B866','','');
			genlayerfooter();

		}else if(lalt[m] == "Statutory Appeal Boards"){ 
			genlayerheader2(m);
			genlaytab(lev_div+'abt_mpfa/abt_mpfa_os/abt_mpfa_os_sab/abt_mpfa_os_sab_msab/abt_mpfa_os_sab_msab.html', 'MPF Schemes Appeal Board', '#EADBB2', '#D6B866','','');
			genlaytab(lev_div+'abt_mpfa/abt_mpfa_os/abt_mpfa_os_sab/abt_mpfa_os_sab_orsab/abt_mpfa_os_sab_orsab.html', 'Occupational Retirement Schemes Appeal Board', '#EADBB2', '#D6B866','','');
			genlayerfooter();

		}else if(lalt[m] == "Education materials"){ 
			genlayerheader2(m);
			genlaytab(lev_div+'mpf_edu/mpf_edu_yc/mpf_edu_yc_em/mpf_edu_yc_em_yl/mpf_edu_yc_em_yl.html', 'Youth leaflet', '#DFC4A9', '#C08953','','');
			genlaytab(lev_div+'mpf_edu/mpf_edu_yc/mpf_edu_yc_em/mpf_edu_yc_em_ay/mpf_edu_yc_em_ay.html', 'Articles for youth', '#DFC4A9', '#C08953','','');
			genlayerfooter();

		}
	}

}

// end level 4


