//gen menu ver. 4.0

level = new Array('eindex.html', 'whatsnew', 'aboutus', 'publications', 'access', 'permit', 'pubforms', 'faq', 'eservices', 'tender', 'links', 'search', 'sitemap', 'contactus', 'notices', 'agriculture', 'fisheries', 'country', 'conservation', 'quarantine', 'equestrian','group_visit','form','privacy');
//level 1

function genmenu(){

	if (  level[fol]=="quarantine" ) { 
	 gentable(lev_div+'quarantine/qua_awc/qua_awc.html', 'Animal Welfare and Control', '', 'y');
	 gentable(lev_div+'quarantine/qua_res/qua_res.html', 'Responsible Pet Ownership', '', 'y');
	 gentable(lev_div+'quarantine/qua_live/qua_live.html', 'Livestock Keeping', '', 'y');
	 gentable(lev_div+'quarantine/qua_ie/qua_ie.html', 'Import and Export of Animals and Animal Products', '', 'y');
	 gentable(lev_div+'quarantine/qua_vetlab/qua_vetlab.html', 'Veterinary Laboratory', '', 'y');
	 gentable(lev_div+'quarantine/qua_plants/qua_plants.html', 'Plant Quarantine', '', 'y');
	 gentable(lev_div+'quarantine/qua_pvp/qua_pvp.html', 'Plant Varieties Protection', '', 'y');
	 gentable(lev_div+'quarantine/qua_pesticide/qua_pesticide.html', 'Pesticides', '', 'y');
	 gentable(lev_div+'quarantine/qua_vb/qua_vb.html', 'Veterinary Bulletin', '', '');
 }

else if (  level[fol]=="fisheries" ) { 
	 gentable(lev_div+'fisheries/fish_abt/fish_abt.html', 'About Fisheries Branch', '', '');
	 gentable(lev_div+'fisheries/fish_aqu/fish_aqu.html', 'Aquaculture', '', 'y');
	 gentable(lev_div+'fisheries/fish_cap/fish_cap.html', 'Capture Fisheries', '', 'y');
	 gentable(lev_div+'fisheries/fish_marine/fish_marine.html', 'Marine Fish Wholesale Marketing', '', '');
	 gentable(lev_div+'fisheries/fish_edu/fish_edu.html', 'Fisheries education', '', '');
 }

else if (  level[fol]=="equestrian" || level[fol]=="form" ) { 
	 gentable(lev_div+'equestrian/background/background.html', 'Background', '', '');
	 gentable(lev_div+'equestrian/whatsnew/whatsnew.html', 'What\'s New', '', '');
	 gentable(lev_div+'equestrian/role/role.html', 'Role of AFCD', '', '');
	 gentable(lev_div+'equestrian/related/related.html', 'Related Legislation', '', '');
	 gentable(lev_div+'equestrian/inform/inform.html', 'Information for the Events', '', '');
	 gentable(lev_div+'equestrian/bqm/bqm.html', 'Quarantine and Biosecurity Measures', '', '');
	 gentable(lev_div+'equestrian/eforms/forms.html', 'Electronic Forms', '', '');
	 gentable(lev_div+'equestrian/links/links.html', 'Links', '', '');
	 gentable(lev_div+'equestrian/contact/contact.html', 'Contact Us', '', '');
 }

else if (  level[fol]=="country" ) { 
	 gentable(lev_div+'country/cou_vis/cou_vis.html', 'Visiting Country Parks', '', 'y');
	 gentable(lev_div+'country/cou_lea/cou_lea.html', 'Learning about Country Parks', '', 'y');
	 gentable(lev_div+'country/cou_pub/cou_pub.html', 'Publications and Gallery', '', 'y');
	 gentable(lev_div+'country/cou_app/cou_app.html', 'Applying Permits', '', 'y');
	 gentable(lev_div+'country/cou_wha/cou_wha.html', 'What\'s new / Highlights', '', '');
	 gentable(lev_div+'country/cou_con/cou_con.html', 'Contact Us', '', 'y');
	 gentable(lev_div+'country/cou_how/cou_how.html', 'How you can help', '', 'y');
	 gentable(lev_div+'country/cou_rel/cou_rel.html', 'Related Links', '', '');
 }

else if (  level[fol]=="conservation" ) { 
	 gentable(lev_div+'conservation/conservation.html', 'About Conservation', '', '');
	 gentable(lev_div+'conservation/con_nncp/con_nncp.html', 'New Nature Conservation Policy', '', 'y');
	 gentable(lev_div+'conservation/con_end/con_end.html', 'Endangered Species Protection', '', 'y');
	 gentable(lev_div+'conservation/con_flo/con_flo_intro/con_flo_intro.html', 'Flora Conservation', '', 'y');
	 gentable(lev_div+'conservation/con_fau/con_fau_local/con_fau_local.html', 'Fauna Conservation', '', 'y');
	 gentable(lev_div+'conservation/con_wet/con_wet_abt/con_wet_abt_gen/con_wet_abt_gen.html', 'Wetland Conservation', '', 'y');
	 gentable(lev_div+'conservation/con_mar/con_mar_chi/con_mar_chi_chi/con_mar_chi_chi.html', 'Marine Conservation', '', 'y');
	 gentable(lev_div+'conservation/con_nat/con_nat_intro/con_nat_intro.html', 'Nature Conservation', '', 'y');
	 gentable(lev_div+'conservation/con_wetpark/con_wetpark.html', 'Wetland Park', '', '');
	 gentable(lev_div+'conservation/hkbiodiversity/hkbiodiversity.html', 'Hong Kong Biodiversity', '', 'y');
	 gentable(lev_div+'conservation/con_gmo/con_gmo.html', 'Genetically Modified Organisms Register', '', 'y');
	 gentable(lev_div+'conservation/con_tech/con_tech.html', 'Technical Publications', '', '');
	 gentable(lev_div+'publications/publications_con/pub_con_hkbio.html', 'Newsletter : Hong Kong Biodiversity', '', '');
	 gentable(lev_div+'whatsnew/what_con/what_con.html', 'Updated News', '', '');
	 gentable(lev_div+'conservation/con_rel/con_rel.html', 'Related Web', '', '');
 }

else if (  level[fol]=="agriculture" ) { 
	 gentable(lev_div+'agriculture/agr_hk/agr_hk.html', 'Agriculture in HK', '', 'y');
	 gentable(lev_div+'agriculture/agr_orgfarm/agr_orgfarm.html', 'Organic Farming', '', '');
	 gentable(lev_div+'agriculture/agr_ceg/agr_ceg.html', 'Introduction of Controlled Environment Greenhouse', '', 'y');
	 gentable(lev_div+'agriculture/agr_accfarm/agr_accfarm_intro/agr_accfarm_intro.html', 'Accredited Farm', '', 'y');
	 gentable(lev_div+'agriculture/agr_useful/agr_useful.html', 'Useful Crop Information', '', 'y');
	 gentable(lev_div+'agriculture/agr_loan/agr_loan_erf/agr_loan_erf.html', 'Loan Fund & Emergency Relief', '', 'y');
	 gentable(lev_div+'agriculture/agr_fresh/agr_fresh.html', 'Fresh Food Supply & Consumption', '', 'y');
	 gentable(lev_div+'agriculture/agr_gov/agr_gov.html', 'Government Wholesale Food Markets', '', 'y');
	 gentable(lev_div+'agriculture/agr_sim/agr_sim.html', 'A Simple Guide to the Formation and Registration of Co-operative Societies and Credit Unions', '', '');
	 gentable(lev_div+'agriculture/agr_live/agr_live.html', 'Livestock Keeping Licence', '', '');
 }

 else { 
	 gentable(lev_div+'whatsnew/whatsnew.html', 'What\'s New', '', 'y');
	 gentable(lev_div+'aboutus/vision_mission/abt_vision_mission.html', 'About Us', '', 'y');
	 gentable(lev_div+'publications/publications.html', 'Publications and Press Releases', '', 'y');
	 gentable(lev_div+'access/access.html', 'Access to Information', '', '');
	 gentable(lev_div+'permit/permit.html', 'Permit and Licence', '', 'y');
	 gentable(lev_div+'pubforms/pubforms.html', 'Public Forms', '', 'y');
	 gentable(lev_div+'faq/faq.html', 'FAQ', '', 'y');
	 gentable(lev_div+'eservices/eservices.html', 'Electronic Services', '', 'y');
	 gentable(lev_div+'tender/tender.html', 'Tender/Leasing Notices', '', 'y');
	 gentable(lev_div+'links/links.html', 'Links', '', '');
	 gentable(lev_div+'contactus/contactus.html', 'Contact Us', '', '');
 }

	
}

//end level 1


//level 2

function gensubmenu(){
//gensubtable(lev_div+'link','alt', 'target','layer');
	 if(level[fol] == "quarantine" && ly == "Plant Varieties Protection"){ 
	 gensubtable(lev_div+'quarantine/qua_pvp/qua_pvp_pb.html', 'Application for Plant Breeder\'s Right', '', '');
	 gensubtable(lev_div+'quarantine/qua_pvp/files/pvpleafletb.pdf', 'Leaflet - General Information about Plant Varieties Protection (PDF file format)', '', '');
	 gensubtable(lev_div+'quarantine/qua_pvp/qua_pvp_grant.html', 'New Plant Varieties Application Approved under the Plant Varieties Protection Ordinance Chapter 490', '', '');
	 gensubtable(lev_div+'quarantine/qua_pvp/qua_pvp_apply.html', 'New Plant Varieties Application Received under the Plant Varieties Protection Ordinance Chapter 490', '', '');
	 gensubtable(lev_div+'quarantine/qua_plants/qua_plants_pq/qua_plants_pq_imp/qua_plants_frmindex.html', 'Download Application Forms and Guidelines', '', '');
 
} 
 else if(level[fol] == "quarantine" && ly == "Responsible Pet Ownership"){
	 gensubtable(lev_div+'quarantine/qua_awc/qua_awc_ac/qua_awc_ac_pro/qua_awc_ac_pro.html', 'Be a Responsible Pet Owner', '', '');
	 gensubtable(lev_div+'quarantine/qua_awc/qua_awc_ac/qua_awc_ac_pro/images/neuter.jpg', 'Adoption is better than Buying', '', '');
	 gensubtable(lev_div+'quarantine/qua_awc/qua_awc_ac/qua_awc_ac_pro/images/neuter.jpg', 'Spay and Neuter your Companion Animals', '', '');
	 gensubtable(lev_div+'quarantine/qua_awc/qua_awc_ac/qua_awc_ac_pro/images/reunion.jpg', 'Promptly Report Change of Ownership and Loss for Speed Re-union', '', '');

} 
 else if(level[fol] == "quarantine" && ly == "Veterinary Laboratory"){
	 gensubtable(lev_div+'quarantine/qua_vetlab/qua_vetlab_wm/qua_vetlab_wm.html', 'Welcome Message', '', '');
	 gensubtable(lev_div+'quarantine/qua_vetlab/qua_vetlab_cim/qua_vetlab_cim.html', 'Contact Information and Maps', '', '');
	 gensubtable(lev_div+'quarantine/qua_vetlab/qua_vetlab_ndr/qua_vetlab_ndr.html', 'Newsletters - Disease reports', '', 'y');

} 
 else if(level[fol] == "quarantine" && ly == "Plant Quarantine"){
	 gensubtable(lev_div+'quarantine/qua_plants/qua_plants_pq/qua_plants_pq.html', 'Plant Quarantine', '', 'y');
	 gensubtable(lev_div+'quarantine/qua_plants/qua_plants_pq/qua_plants_pq_imp/qua_plants_frmindex.html', 'Download Application Forms and Guidelines', '', '');

} 
 else if(level[fol] == "quarantine" && ly == "Pesticides"){
	 gensubtable(lev_div+'quarantine/qua_pesticide/qua_pes_whats/qua_pes_whats.html', 'What\' s New', '', '');
	 gensubtable(lev_div+'quarantine/qua_pesticide/qua_pes_pes/qua_pes_pes.html', 'Pesticide Control and Related Information', '', '');
	 gensubtable(lev_div+'publications/publications_qua/pub_qua_pes/qua_pes_app.html', 'Application Forms and Guidelines', '', '');
	 gensubtable(lev_div+'quarantine/qua_pesticide/qua_pes_con/qua_pes_con.html', 'Control on trading and domestic activities of pesticides listed under the Rotterdam Convention', '', '');
	 gensubtable(lev_div+'publications/publications_qua/pub_qua_pes/qua_pes_lea.html', 'Leaflets', '', '');

} 
 else if(level[fol] == "quarantine" && ly == "Import and Export of Animals and Animal Products"){
	 gensubtable(lev_div+'quarantine/qua_ie/qua_ie_ipab/qua_ie_ipab.html', 'Import of Animals and Birds', '', 'y');
	 gensubtable(lev_div+'quarantine/qua_ie/qua_ie_eapao/qua_ie_eapao.html', 'Export of Animals & Products of Animal Origin', '', 'y');
	 gensubtable(lev_div+'quarantine/qua_ie/qua_ie_ies/qua_ie_ies.html', 'Collection of Animals at Hong Kong International Airport', '', 'y');
	 gensubtable(lev_div+'quarantine/qua_ie/qua_ie_iqddu/qdd_ie.html', 'Quarantine Detector Dog Programme', '', 'y');
	 gensubtable(lev_div+'quarantine/qua_ie/qua_ie_ipab/qua_ie_ipab_fsp/qua_ie_ipab_fsp.html', 'Report Information Against Illegal Imports of Animals', '', '');

} 
 else if(level[fol] == "quarantine" && ly == "Livestock Keeping"){
	 gensubtable(lev_div+'quarantine/qua_ie/qua_ie_ipab/qua_ie_ipab_ilpbp/qua_ie_ipab_ilpbp.html', 'Import of Live Pigs for Breeding Purposes', '', '');
	 gensubtable(lev_div+'publications/publications_qua/files/fmdc.pdf', 'Prevention of Foot-and-Mouth Disease', '', '');
	 gensubtable(lev_div+'quarantine/qua_live/qua_live_ol/qua_live_ol.html', 'Other Links', '', '');

} 
 else if(level[fol] == "quarantine" && ly == "Animal Welfare and Control"){
	 gensubtable(lev_div+'quarantine/qua_awc/qua_awc.html', 'Animal Welfare', '', 'y');
	 gensubtable(lev_div+'quarantine/qua_awc/qua_awc_ac/qua_awc_ac.html', 'Animal Control', '', 'y');
	 gensubtable(lev_div+'quarantine/qua_awc/qua_awc_lic/qua_awc_lic.html', 'Licensing of Animal Business', '', 'y');
	 gensubtable(lev_div+'quarantine/qua_awc/qua_awc_leg/qua_awc_leg.html', 'Legislation Pertaining to Animals Enforced by Animal Management Division', '', 'y');

} 
 if(level[fol] == "fisheries" && ly == "Aquaculture"){ 
	 gensubtable(lev_div+'fisheries/fish_aqu/fish_aqu.html', 'Marine fish culture, Pond fish culture and Oyster culture', '', '');
	 gensubtable(lev_div+'fisheries/fish_aqu/fish_aqu_env/fish_aqu_env.html', 'Aquaculture environment', '', '');
	 gensubtable(lev_div+'fisheries/fish_aqu/fish_aqu_mfco/fish_aqu_mfco.html', 'Marine Fish Culture Ordinance', '', '');
	 gensubtable(lev_div+'fisheries/fish_aqu/fish_aqu_good/fish_aqu_good.html', 'Good aquaculture practices', '', '');
	 gensubtable(lev_div+'fisheries/fish_aqu/fish_aqu_techdev/fish_aqu_techdev.html', 'Technological development', '', '');
	 gensubtable(lev_div+'fisheries/fish_aqu/fish_aqu_techsup/fish_aqu_techsup.html', 'Technical support and financial assistance', '', '');
 
} 
 else if(level[fol] == "fisheries" && ly == "Capture Fisheries"){
	 gensubtable(lev_div+'fisheries/fish_cap/fish_cap_latest/fish_cap_latest.html', 'Latest status', '', '');
	 gensubtable(lev_div+'fisheries/fish_cap/fish_cap_fpo/fish_cap_fpo.html', 'Fisheries Protection Ordinance', '', '');
	 gensubtable(lev_div+'fisheries/fish_cap/fish_cap_con/fish_cap_con.html', 'Conservation of fisheries resources', '', '');
	 gensubtable(lev_div+'fisheries/fish_cap/fish_cap_techsup/fish_cap_techsup.html', 'Technical support, training, liaison services and financial assistance', '', '');
	 gensubtable(lev_div+'fisheries/fish_cap/fish_cap_main/fish_cap_main.html', 'Mainland fishermen deckhands scheme', '', '');

} 
 if(level[fol] == "country" && ly == "Visiting Country Parks"){ 
	 gensubtable('http://www.geopark.gov.hk/en_index.html', 'Hong Kong National Geopark Park', '_BLANK', '');
	 gensubtable(lev_div+'country/cou_vis/cou_vis_cou/cou_vis_cou.html', 'Country Parks', '', 'y');
	 gensubtable(lev_div+'country/cou_vis/cou_vis_mar/cou_vis_mar.html', 'Marine Parks', '', 'y');
	 gensubtable('http://www.hkwalkers.net/eng/index.htm', 'Hiking Trails', '_BLANK', '');
	 gensubtable(lev_div+'country/cou_vis/cou_vis_rec/cou_vis_rec.html', 'Recreational Facilities', '', 'y');
	 gensubtable(lev_div+'country/cou_vis/cou_vis_cam/cou_vis_cam.html', 'Camp Sites', '', 'y');
	 gensubtable(lev_div+'country/cou_vis/cou_vis_mou/cou_vis_mou.html', 'Mountain Bike Activity', '', 'y');
 
} 
 else if(level[fol] == "country" && ly == "How you can help"){
	 gensubtable(lev_div+'country/cou_how/cou_how_rep/cou_how_rep.html', 'Report and Suggest to us', '', '');
	 gensubtable(lev_div+'country/cou_how/cou_how_vis/cou_how_vis.html', 'Visitor Liaison Group', '', 'y');
	 gensubtable(lev_div+'country/cou_how/cou_how_vol/cou_how_vol.html', 'Volunteers', '', 'y');
	 gensubtable(lev_div+'country/cou_how/cou_how_gcp/cou_how_gcp.html', 'Good Code of Practices', '', 'y');

} 
 else if(level[fol] == "country" && ly == "Contact Us"){
	 gensubtable(lev_div+'country/cou_con/cou_con_faq/cou_con_faq.html', 'Frequently Asked Questions', '', '');
	 gensubtable(lev_div+'country/cou_con/cou_con_con/cou_con_con.asp', 'Contact Us Form', '', '');
	 gensubtable(lev_div+'country/cou_con/cou_con_hot/cou_con_hot.html', '1823 Call Centre', '', '');

} 
 else if(level[fol] == "country" && ly == "Applying Permits"){
	 gensubtable(lev_div+'permit/permit_cou/cou_app_pricp.html', 'Permits Required inside Country Parks', '', '');
	 gensubtable(lev_div+'permit/permit_cou/cou_app_primp.html', 'Permits Required inside Marine Parks', '', '');

} 
 else if(level[fol] == "country" && ly == "Publications and Gallery"){
	 gensubtable('http://www.hknature.net/eng/profiles/index.html', 'Nature Publications', '', '');
	 gensubtable(lev_div+'country/cou_pub/cou_pub_natg/cou_pub_natg.html', 'Nature Gallery', '', 'y');

} 
 else if(level[fol] == "country" && ly == "Learning about Country Parks"){
	 gensubtable(lev_div+'conservation/con_end/con_end.html', 'Ecology', '', '');
	 gensubtable(lev_div+'country/cou_lea/cou_lea_ven/cou_lea_ven.html', 'Venues - Visitor Centres', '', '');
	 gensubtable(lev_div+'country/cou_lea/cou_lea_edu/cou_lea_edu.html', 'Educational Services', '', '');
	 gensubtable('http://www.legislation.gov.hk/blis_ind.nsf/CurAllEngDoc?OpenView&Start=208&Count=30&Expand=208#208', 'Rules and Regulations', '', '');
	 gensubtable(lev_div+'country/cou_lea/cou_lea_use/cou_lea_use.html', 'Useful Statistics', '', '');

} 
 if(level[fol] == "conservation" && ly == "Endangered Species Protection"){ 
	 gensubtable(lev_div+'conservation/con_end/con_end_cites/con_end_cites.html', 'CITES', '', '');
	 gensubtable(lev_div+'conservation/con_end/con_end_doc/con_end_doc.html', 'CITES Official Documents', '', 'y');
	 gensubtable(lev_div+'conservation/con_end/con_end_reg/con_end_reg_ord/con_end_reg_ord.html', 'Regulation in Hong Kong', '', 'y');
	 gensubtable(lev_div+'conservation/con_end/con_end_lc/con_end_lc.html', 'Licences / Certificates', '', 'y');
	 gensubtable(lev_div+'conservation/con_end/con_end_rew/con_end_rew.html', 'Reward Scheme', '', '');
	 gensubtable(lev_div+'conservation/con_end/con_end_pub/con_end_pub.html', 'Publicity and Education', '', 'y');
	 gensubtable(lev_div+'conservation/con_end/con_end_pubmat/con_end_pubmat.html', 'Publicity Materials', '', 'y');
	 gensubtable(lev_div+'conservation/con_end/con_end_info/con_end_info.html', 'Information on Endangered Species', '', 'y');
	 gensubtable(lev_div+'conservation/con_end/con_end_rel/con_end_rel.html', 'Relevant Organizations', '', '');
	 gensubtable(lev_div+'conservation/con_end/con_end_contactus/con_end_contactus.html', 'Contact Us', '', '');
	 gensubtable(lev_div+'conservation/con_end/con_end.html#whatsnew', 'What\'s New', '', '');
 
} 
 else if(level[fol] == "conservation" && ly == "Genetically Modified Organisms Register"){
	 gensubtable(lev_div+'conservation/con_gmo/gmo_intro/gmo_intro.html', 'Introduction', '', '');
	 gensubtable(lev_div+'conservation/con_gmo/gmo_aboutus/gmo_aboutus.html', 'About Us', '', '');
	 gensubtable(lev_div+'conservation/con_gmo/gmo_reg/gmo_reg.html', 'Regulation', '', '');
	 gensubtable(lev_div+'conservation/con_gmo/gmo_approval/gmo_approval.html', 'GMO Approval Application', '', 'y');
	 gensubtable(lev_div+'conservation/con_gmo/gmo_download/gmo_download.html', 'Downloadable Public Forms', '', '');
	 gensubtable(lev_div+'conservation/con_gmo/gmo_search.asp', 'Approved GMOs', '', 'y');
	 gensubtable(lev_div+'conservation/con_gmo/gmo_com/gmo_com.html', 'Competent Authorities', '', '');
	 gensubtable(lev_div+'conservation/con_gmo/gmo_exp/gmo_exp.html', 'Expert Group', '', '');
	 gensubtable(lev_div+'conservation/con_gmo/gmo_edu/gmo_edu.html', 'Education and Publicity', '', 'y');
	 gensubtable(lev_div+'conservation/con_gmo/gmo_faq/gmo_faq.html', 'FAQs', '', '');
	 gensubtable(lev_div+'conservation/con_gmo/gmo_news/gmo_news.html', 'What\'s New', '', '');
	 gensubtable(lev_div+'conservation/con_gmo/gmo_contactus/gmo_contactus.html', 'Contact Us', '', '');

} 
 else if(level[fol] == "conservation" && ly == "Hong Kong Biodiversity"){
	 gensubtable(lev_div+'conservation/hkbiodiversity/aboutus/aboutus.html', 'About Us', '', '');
	 gensubtable(lev_div+'conservation/hkbiodiversity/news/news.asp', 'What\'s New', '', '');
	 gensubtable(lev_div+'conservation/hkbiodiversity/database/search.asp', 'HK Biodiversity Database', '', '');
	 gensubtable(lev_div+'conservation/hkbiodiversity/hkecomap/hkecomap.html', 'HK Live Eco-map', '', '');
	 gensubtable(lev_div+'conservation/hkbiodiversity/speciesgroup/speciesgroup.html', 'HK Species', '', '');
	 gensubtable(lev_div+'conservation/hkbiodiversity/habitat/habitat.html', 'HK Habitats', '', '');
	 gensubtable(lev_div+'conservation/hkbiodiversity/newsletters/newsletters.html', 'Newsletters', '', '');
	 gensubtable(lev_div+'conservation/hkbiodiversity/myfindings/myfindings.html', 'My Findings', '', '');
	 gensubtable(lev_div+'conservation/hkbiodiversity/usefullinks/usefullinks.html', 'Useful Links', '', '');
	 gensubtable(lev_div+'conservation/hkbiodiversity/leaflets/leaflets.html', 'Other Information', '', '');
	 gensubtable(lev_div+'conservation/hkbiodiversity/staff/staff.asp', 'Staff Only', '', '');

} 
 else if(level[fol] == "conservation" && ly == "Nature Conservation"){
	 gensubtable(lev_div+'conservation/con_nat/con_nat_intro/con_nat_intro.html', 'Introduction', '', '');
	 gensubtable(lev_div+'conservation/con_nat/con_nat_eco/con_nat_eco.html', 'Ecological Mitigation Measures', '', '');

} 
 else if(level[fol] == "conservation" && ly == "Marine Conservation"){
	 gensubtable(lev_div+'conservation/con_mar/con_mar_chi/con_mar_chi_chi/con_mar_chi_chi.html', 'Chinese White Dolphin', '', 'y');
	 gensubtable(lev_div+'conservation/con_mar/con_mar_fin/con_mar_fin_fin/con_mar_fin_fin.html', 'Finless Porpoise', '', 'y');
	 gensubtable(lev_div+'conservation/con_mar/con_mar_cor/con_mar_cor.html', 'Corals', '', 'y');
	 gensubtable(lev_div+'conservation/con_mar/con_mar_hor/con_mar_hor.html', 'Horseshoe Crab', '', 'y');
	 gensubtable(lev_div+'conservation/con_mar/con_mar_mar/con_mar_mar.html', 'Marine Benthic Communities', '', 'y');

} 
 else if(level[fol] == "conservation" && ly == "Wetland Conservation"){
	 gensubtable(lev_div+'conservation/con_wet/con_wet_abt/con_wet_abt_gen/con_wet_abt_gen.html', 'About Wetland Conservation', '', 'y');
	 gensubtable(lev_div+'conservation/con_wet/con_wet_look/con_wet_look.html', 'Looking into Mai Po Inner Deep Bay Ramsar Site', '', 'y');
	 gensubtable(lev_div+'conservation/con_wet/con_wet_local/con_wet_local.html', 'Local Wetland Conservation in Action', '', 'y');
	 gensubtable(lev_div+'conservation/con_wet/con_wet_man/con_wet_man.html', 'Mangroves in Hong Kong', '', 'y');
	 gensubtable(lev_div+'conservation/con_wet/con_wet_sea/con_wet_sea.html', 'Seagrasses in Hong Kong', '', '');
	 gensubtable(lev_div+'conservation/con_wet/streams_rivers_hk/streams_rivers_hk.html', 'Streams and rivers in Hong Kong', '', 'y');

} 
 else if(level[fol] == "conservation" && ly == "Fauna Conservation"){
	 gensubtable(lev_div+'conservation/con_fau/con_fau_local/con_fau_local.html', 'Local Protected Wild Animals', '', '');
	 gensubtable(lev_div+'conservation/con_fau/con_fau_mon/con_fau_mon.html', 'Monkey', '', 'y');
	 gensubtable(lev_div+'conservation/con_fau/con_fau_sea/con_fau_sea_bas/con_fau_sea_bas.html', 'Sea Turtle', '', 'y');
	 gensubtable(lev_div+'conservation/con_fau/con_fau_fre/con_fau_fre_the/con_fau_fre_the.html', 'Freshwater Turtle', '', 'y');
	 gensubtable(lev_div+'conservation/con_fau/con_fau_bird/con_fau_bird_bhk/con_fau_bird_bhk.html', 'Bird', '', 'y');
	 gensubtable(lev_div+'conservation/con_fau/con_fau_rom/con_fau_rom_gen/con_fau_rom_gen.html', 'Romer\'s Tree Frog', '', 'y');
	 gensubtable(lev_div+'conservation/con_fau/con_fau_nui/con_fau_nui.html', 'Nuisance caused by Wild Animals', '', 'y');

} 
 else if(level[fol] == "conservation" && ly == "Flora Conservation"){
	 gensubtable(lev_div+'conservation/con_flo/con_flo_intro/con_flo_intro.html', 'Introduction', '', '');
	 gensubtable(lev_div+'conservation/con_flo/con_flo_hkh/con_flo_hkh.html', 'Hong Kong Herbarium', '', '');
	 gensubtable(lev_div+'conservation/con_flo/con_flo_enr/con_flo_enr.html', 'Enriching Our Countryside with Native Flora', '', '');
	 gensubtable(lev_div+'conservation/con_flo/con_flo_con/con_flo_con.html', 'Conserving The Rare And Endangered Flora', '', '');
	 gensubtable(lev_div+'conservation/con_flo/con_flo_for/con_flo_for.html', 'Forestry Regulations', '', '');
	 gensubtable(lev_div+'conservation/con_flo/con_flo_shing/con_flo_shing.html', 'Shing Mun Arboretum', '', '');
	 gensubtable(lev_div+'conservation/con_flo/About_Mikania/about_mikania.html', 'About Mikania', '', '');

} 
 else if(level[fol] == "conservation" && ly == "New Nature Conservation Policy"){
	 gensubtable(lev_div+'conservation/con_nncp/con_nncp_ps/con_nncp_ps.html', 'Policy Statement', '', '');
	 gensubtable(lev_div+'conservation/con_nncp/con_nncp_po/con_nncp_po.html', 'Policy Objectives', '', '');
	 gensubtable(lev_div+'conservation/con_nncp/con_nncp_list/con_nncp_list.html', 'List of Priority Sites for Enhanced Conservation', '', '');
	 gensubtable(lev_div+'conservation/con_nncp/con_nncp_new/con_nncp_new.html', 'New Measures – Pilot Scheme', '', '');
	 gensubtable(lev_div+'conservation/con_nncp/con_nncp_leaf/con_nncp_leaf.html', 'Leaflet on the New Nature Conservation Policy', '', '');
	 gensubtable(lev_div+'conservation/con_nncp/con_nncp_prce/con_nncp_prce.html', 'Policy Review and Consultation Exercise', '', '');

} 
 if(level[fol] == "agriculture" && ly == "Government Wholesale Food Markets"){ 
	 gensubtable(lev_div+'agriculture/agr_gov/agr_gov_csw/agr_gov_csw.html', 'Cheung San Wan Wholesale Food Market', '', '');
	 gensubtable(lev_div+'agriculture/agr_gov/agr_gov_w/agr_gov_w.html', 'Western Wholesale Food Market', '', '');
	 gensubtable(lev_div+'agriculture/agr_gov/agr_gov_cswtemp/agr_gov_cswtemp.html', 'Cheung San Wan Temporary Wholesale Poultry Market', '', '');
	 gensubtable(lev_div+'agriculture/agr_gov/agr_gov_n/agr_gov_n.html', 'North District Temporary Wholesale Market for Agricultural Products', '', '');
	 gensubtable(lev_div+'agriculture/agr_gov/agr_gov.html', 'Further Market Information', '', '');
	 gensubtable(lev_div+'agriculture/agr_gov/agr_gov_faq/agr_gov_faq.html', 'FAQ on Application for Wholesale Market Facilities', '', '');
 
} 
 else if(level[fol] == "agriculture" && ly == "Fresh Food Supply & Consumption"){
	 gensubtable(lev_div+'agriculture/agr_fresh/agr_fresh_fur/agr_fresh_fur.html', 'Further Consumption Statistics', '', '');

} 
 else if(level[fol] == "agriculture" && ly == "Loan Fund & Emergency Relief"){
	 gensubtable(lev_div+'agriculture/agr_loan/agr_loan_erf/agr_loan_erf.html', 'Emergency Relief Fund', '', '');
	 gensubtable(lev_div+'agriculture/agr_loan/agr_loan_kaalf/agr_loan_kaalf.html', 'Kadoorie Agriculture Aid Loan Fund', '', '');
	 gensubtable(lev_div+'agriculture/agr_loan/agr_loan_vmolf/agr_loan_vmolf.html', 'Vegetable Marketing Organization Loan Fund', '', '');
	 gensubtable(lev_div+'agriculture/agr_loan/agr_loan_jtf/agr_loan_jtf.html', 'J.E. Joseph Trust Fund', '', '');

} 
 else if(level[fol] == "agriculture" && ly == "Useful Crop Information"){
	 gensubtable(lev_div+'agriculture/agr_useful/agr_useful_local/agr_useful_local.html', 'Local common vegetable crops', '', '');
	 gensubtable(lev_div+'agriculture/agr_useful/agr_useful_spe/agr_useful_spe.html', 'Specialty vegetable crops', '', '');
	 gensubtable(lev_div+'agriculture/agr_useful/agr_useful_com/agr_useful_com.html', 'Common pests and diseases in vegetable crops and their control', '', 'y');
	 gensubtable(lev_div+'agriculture/agr_useful/agr_useful_cul/agr_useful_cul.html', 'Cultivation techniques', '', '');
	 gensubtable(lev_div+'agriculture/agr_useful/agr_useful_safe/agr_useful_safe.html', 'Safe and proper use of pesticides', '', '');
	 gensubtable(lev_div+'agriculture/agr_useful/agr_useful_farm/agr_useful_farm.html', 'Farm machinery and equipment lending services', '', '');
	 gensubtable(lev_div+'agriculture/agr_hk/agr_hk_app/agr_hk_app.html', 'Application Guide for Letter of Approval for Agricultural Structures', '', '');
	 gensubtable(lev_div+'agriculture/agr_useful/agr_useful_gap/agr_useful_gap.html', 'Good Agricultural Practices for Crop Production', '', '');
	 gensubtable(lev_div+'agriculture/agr_useful/agr_useful_farmfest/agr_useful_farmfest.html', 'FARMFEST', '', '');
	 gensubtable(lev_div+'agriculture/agr_useful/agr_useful_vrs/agr_useful_vrs.html', 'Registration of Local Vegetable Farms', '', '');

} 
 else if(level[fol] == "agriculture" && ly == "Accredited Farm"){
	 gensubtable(lev_div+'agriculture/agr_accfarm/agr_accfarm_intro/agr_accfarm_intro.html', 'Introduction to the Accredited Farm Scheme', '', '');
	 gensubtable(lev_div+'agriculture/agr_accfarm/agr_accfarm_process/agr_accfarm_process.html', 'Process of Accreditation', '', '');
	 gensubtable(lev_div+'agriculture/agr_accfarm/agr_accfarm_num/agr_accfarm_num.html', 'Number and Distribution of Accredited Farms', '', '');
	 gensubtable(lev_div+'agriculture/agr_accfarm/agr_accfarm_market/agr_accfarm_market.html', 'Marketing of Accredited Vegetables', '', '');
	 gensubtable(lev_div+'agriculture/agr_accfarm/agr_accfarm_app/agr_accfarm_app.html', 'Application to join the Accredited Farm Scheme', '', '');

} 
 else if(level[fol] == "agriculture" && ly == "Introduction of Controlled Environment Greenhouse"){
	 gensubtable(lev_div+'agriculture/agr_ceg/agr_ceg_ceg/agr_ceg_ceg.html', 'Controlled Environment Greenhouse', '', '');
	 gensubtable(lev_div+'agriculture/agr_ceg/agr_ceg_plant/agr_ceg_plant.html', 'Planting Schedule', '', '');
	 gensubtable(lev_div+'agriculture/agr_ceg/agr_ceg_new/agr_ceg_new.html', 'Newsletter', '', '');
	 gensubtable(lev_div+'agriculture/agr_hk/agr_hk_app/agr_hk_app.html', 'Application for construction', '', '');

} 
 else if(level[fol] == "agriculture" && ly == "Agriculture in HK"){
	 gensubtable(lev_div+'agriculture/agr_hk/agr_hk_new/agr_hk_new.html', 'New Production Method', '', 'y');
	 gensubtable(lev_div+'agriculture/agr_hk/agr_hk_app/agr_hk_app.html', 'Application Guide for Letter of Approval for Agricultural Structures', '', '');

} 
 else if(ly == "What's New"){ 
	 gensubtable(lev_div+'whatsnew/what_agr/what_agr.html', 'Agriculture', '', '');
	 gensubtable(lev_div+'whatsnew/what_fis/what_fis.html', 'Fisheries', '', '');
	 gensubtable(lev_div+'country/cou_wha/cou_wha.html', 'Country & Marine Parks', '', '');
	 gensubtable(lev_div+'whatsnew/what_con/what_con.html', 'Conservation', '', '');
	 gensubtable(lev_div+'whatsnew/what_qua/what_qua.html', 'Quarantine & Pesticides', '', '');
 
} 
 else if(ly == "Permit and Licence"){ 
	 gensubtable(lev_div+'permit/permit_agr/permit_agr.html', 'Agriculture', '', '');
	 gensubtable(lev_div+'permit/permit_fis/permit_fis.html', 'Fisheries', '', '');
	 gensubtable(lev_div+'permit/permit_cou/permit_cou.html', 'Country & Marine Parks', '', '');
	 gensubtable(lev_div+'permit/permit_con/permit_con.html', 'Conservation', '', '');
	 gensubtable(lev_div+'permit/permit_qua/permit_qua.html', 'Quarantine & Pesticides', '', '');
 
} 
 else if(ly == "Public Forms"){ 
	 gensubtable(lev_div+'pubforms/pubforms_agr/pubforms_agr.html', 'Agriculture', '', '');
	 gensubtable(lev_div+'pubforms/pubforms_fis/pubforms_fis.html', 'Fisheries', '', '');
	 gensubtable(lev_div+'pubforms/pubforms_cou/pubforms_cou.html', 'Country & Marine Parks', '', '');
	 gensubtable(lev_div+'pubforms/pubforms_con/pubforms_con.html', 'Conservation', '', '');
	 gensubtable(lev_div+'pubforms/pubforms_qua/pubforms_qua.html', 'Quarantine & Pesticides', '', '');
 
} 
 else if(ly == "Electronic Services"){ 
	 gensubtable(lev_div+'eservices/eservices_agr/eservices_agr.html', 'Agriculture', '', '');
	 gensubtable(lev_div+'eservices/eservices_fis/eservices_fis.html', 'Fisheries', '', '');
	 gensubtable(lev_div+'eservices/eservices_cou/eservices_cou.html', 'Country & Marine Parks', '', '');
	 gensubtable(lev_div+'eservices/eservices_con/eservices_con.html', 'Conservation', '', '');
	 gensubtable(lev_div+'eservices/eservices_qua/eservices_qua.html', 'Quarantine & Pesticides', '', '');
	 gensubtable(lev_div+'eservices/ecard/ecard.asp', 'E-Card Service', '', '');
 
} 
 else if(ly == "Tender/Leasing Notices"){ 
	 gensubtable(lev_div+'tender/tender_agr/tender_agr.html', 'Agriculture', '', '');
	 gensubtable(lev_div+'tender/tender_fis/tender_fis.html', 'Fisheries', '', '');
	 gensubtable(lev_div+'tender/tender_cou/tender_cou.html', 'Country & Marine Parks', '', '');
	 gensubtable(lev_div+'tender/tender_con/tender_con.html', 'Conservation', '', '');
	 gensubtable(lev_div+'tender/tender_qua/tender_qua.html', 'Quarantine & Pesticides', '', '');
	 gensubtable(lev_div+'tender/tender_rel/tender_rel.html', 'Related Information', '', '');
 
} 
 else if(ly == "About Us"){ 
	 gensubtable(lev_div+'aboutus/vision_mission/abt_vision_mission.html', 'Vision and Mission', '', '');
	 gensubtable(lev_div+'aboutus/abt_role/abt_role.html', 'Role of the Department', '', '');
	 gensubtable(lev_div+'aboutus/abt_perf/abt_perf.html', 'Performance Pledge', '', '');
	 gensubtable(lev_div+'aboutus/abt_org/abt_org.html', 'Organization Chart', '', '');
	 gensubtable(lev_div+'aboutus/abt_adv/abt_adv.html', 'Advisory / Statutory Boards & Committees', '', '');
	 gensubtable(lev_div+'aboutus/abt_car/abt_car.html', 'Career Opportunities / Vacancies', '', '');
 
} 
 else if(ly == "Publications and Press Releases"){ 
	 gensubtable(lev_div+'publications/publications_press/publications_press.html', 'Press Releases', '', '');
	 gensubtable(lev_div+'publications/publications_dep/publications_dep.html', 'Departmental Annual Report', '', '');
	 gensubtable(lev_div+'publications/publications_env/publications_env.html', 'Environmental Report', '', '');
	 gensubtable(lev_div+'publications/publications_agr/publications_agr.html', 'Agriculture', '', '');
	 gensubtable(lev_div+'publications/publications_fis/publications_fis.html', 'Fisheries', '', '');
	 gensubtable(lev_div+'publications/publications_cou/publications_cou.html', 'Country & Marine Parks', '', '');
	 gensubtable(lev_div+'publications/publications_con/publications_con.html', 'Conservation', '', '');
	 gensubtable(lev_div+'publications/publications_qua/publications_qua.html', 'Quarantine & Pesticides', '', '');
	 gensubtable(lev_div+'publications/publications_others/others.html', 'Others', '', '');
 
} 
 else if(ly == "FAQ"){ 
	 gensubtable(lev_div+'faq/faq_agr/faq_agr.html', 'Agriculture', '', '');
	 gensubtable(lev_div+'faq/faq_fis/faq_fis.html', 'Fisheries', '', '');
	 gensubtable(lev_div+'faq/faq_cou/faq_cou.html', 'Country & Marine Parks', '', '');
	 gensubtable(lev_div+'faq/faq_con/faq_con.html', 'Conservation', '', '');
	 gensubtable(lev_div+'faq/faq_qua/faq_qua.html', 'Quarantine & Pesticides', '', '');
 
} 
	
}

// level 3

function genlayer(){	
	//genlaytab(lev_div+'link', 'alt', 'orgcolor', 'overcol','target');

	for(l=0; l<layer.length; l++){
		 if(layer[l] =="Quarantine Detector Dog Programme"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'quarantine/qua_ie/qua_ie_iqddu/qdd_intro.html', 'Introduction', '', '','');
	 genlaytab(lev_div+'quarantine/qua_ie/qua_ie_iqddu/qdd_mission.html', 'Mission', '', '','');
	 genlaytab(lev_div+'quarantine/qua_ie/qua_ie_iqddu/qdd_objective.html', 'Objective', '', '','');
	 genlaytab(lev_div+'quarantine/qua_ie/qua_ie_iqddu/qdd_dog_select.html', 'Dog Selection', '', '','');
	 genlaytab(lev_div+'quarantine/qua_ie/qua_ie_iqddu/qdd_training.html', 'Training', '', '','');
	 genlaytab(lev_div+'quarantine/qua_ie/qua_ie_iqddu/qdd_public_coop.html', 'Public Co-operation', '', '','');
	 genlaytab(lev_div+'quarantine/qua_ie/qua_ie_iqddu/qdd_publicity.html', 'Publicity and Education', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Newsletters - Disease reports"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'quarantine/qua_vetlab/qua_vetlab_ndr/qua_vetlab_ndr_adr/qua_vetlab_ndr_adr.html', 'Animal Disease Reports', '', '','');
	 genlaytab(lev_div+'publications/publications_qua/files/posth5n1.pdf', 'Wild bird avian influenza surveillance after December 2002 to January 2003 H5N1 Outbreak', '', '','_BLANK');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Plant Quarantine"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'quarantine/qua_plants/qua_plants_pq/qua_plants_pq_sm/qua_plants_pq_sm.html', 'Special Message', '', '','');
	 genlaytab(lev_div+'quarantine/qua_plants/qua_plants_pq/qua_plants_pq_ppq/qua_plants_pq_ppq.html', 'Import and Export of Plant', '', '','');
	 genlaytab(lev_div+'quarantine/qua_plants/qua_plants_pq/qua_plants_pq_wpm/qua_plants_pq_wpm.html', 'Wood Packaging Material', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Collection of Animals at Hong Kong International Airport"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'quarantine/qua_ie/qua_ie_ies/qua_ie_ies_prep.html', 'Preparation', '', '','');
	 genlaytab(lev_div+'quarantine/qua_ie/qua_ie_ies/qua_ie_ies_prior.html', 'Prior Document Checking Service', '', '','');
	 genlaytab(lev_div+'quarantine/qua_ie/qua_ie_ies/qua_ie_ies_arrive.html', 'Arrival', '', '','');
	 genlaytab(lev_div+'quarantine/qua_ie/qua_ie_ies/qua_ie_ies_collect.html', 'Collecting', '', '','');
	 genlaytab(lev_div+'quarantine/qua_ie/qua_ie_ies/qua_ie_ies_info.html', 'Important Information', '', '','');
	 genlaytab(lev_div+'quarantine/qua_ie/qua_ie_ies/qua_ie_ies_link.html', 'Useful Links', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Export of Animals & Products of Animal Origin"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'quarantine/qua_ie/qua_ie_eapao/qua_ie_eapao_ioahc/qua_ie_eapao_ioahc.html', 'Animal Health Certificate', '', '','');
	 genlaytab(lev_div+'quarantine/qua_ie/qua_ie_eapao/qua_ie_eapao_iscpao/qua_ie_eapao_iscpao.html', 'Sanitary Certificate for Products of Animal Origin', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Legislation Pertaining to Animals Enforced by Animal Management Division"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'quarantine/qua_awc/qua_awc_leg/qua_awc_leg_pre/qua_awc_leg_pre.html', 'Prevention of Cruelty to Animals', '', '','');
	 genlaytab(lev_div+'quarantine/qua_awc/qua_awc_leg/qua_awc_leg_ani/qua_awc_leg_ani.html', 'Animal Business', '', '','');
	 genlaytab(lev_div+'quarantine/qua_awc/qua_awc_leg/qua_awc_leg_dogs/qua_awc_leg_dogs.html', 'Dogs and Rabies', '', '','');
	 genlaytab(lev_div+'quarantine/qua_awc/qua_awc_leg/qua_awc_leg_pou/qua_awc_leg_pou.html', 'Pounds', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Licensing of Animal Business"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'quarantine/qua_awc/qua_awc_lic/qua_awc_lic_atl/qua_awc_lic_atl.html', 'Animal Trading Licence', '', '','');
	 genlaytab(lev_div+'quarantine/qua_awc/qua_awc_lic/qua_awc_lic_abel/qua_awc_lic_abel.html', 'Animal Boarding Establishment Licence', '', '','');
	 genlaytab(lev_div+'quarantine/qua_awc/qua_awc_lic/qua_awc_lic_rel/qua_awc_lic_rel.html', 'Riding Establishment Licence', '', '','');
	 genlaytab(lev_div+'quarantine/qua_awc/qua_awc_lic/qua_awc_lic_ael/qua_awc_lic_ael.html', 'Animal Exhibition Licence/Animal Temporary Exhibition Permit', '', '','');
	 genlaytab(lev_div+'quarantine/qua_awc/qua_awc_lic/qua_awc_lic_qcl/qua_awc_lic_qcl.html', 'Quarantine Centre Licence', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Animal Control"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'quarantine/qua_awc/qua_awc_ac/qua_awc_ac_dog/qua_awc_ac_dog.html', 'Dog Licensing, Microchip Identification and Vaccination against Rabies', '', '','');
	 genlaytab(lev_div+'quarantine/qua_awc/qua_awc_ac/qua_awc_ac_pro/qua_awc_ac_pro.html', 'Proper Control of Your Animals', '', '','');
	 genlaytab(lev_div+'quarantine/qua_awc/qua_awc_ac/qua_awc_ac_exe/qua_awc_ac_exe.html', 'Exemption Examination for Large Dogs', '', '','');
	 genlaytab(lev_div+'publications/publications_qua/files/apply.pdf', 'Application Form for Exemption Examination for Large Dogs (PDF format)', '', '','_BLANK');
	 genlaytab(lev_div+'quarantine/qua_awc/qua_awc_ac/qua_awc_ac_sch/qua_awc_ac_sch.html', 'Schedule of Exemption Examination for Large Dogs', '', '','');
	 genlaytab(lev_div+'quarantine/qua_awc/qua_awc_ac/qua_awc_ac_exe_exam/qua_awc_ac_exe_exam.html', 'Protocol for Exemption Examination', '', '','');
	 genlaytab(lev_div+'quarantine/qua_awc/qua_awc_ac/qua_awc_ac_con/qua_awc_ac_con.html', 'Control of Dangerous Dogs', '', '','');
	 genlaytab(lev_div+'publications/publications_qua/files/dogcode.pdf', 'Keeping Dogs in Construction Sites', '', '','_BLANK');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Animal Welfare"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'quarantine/qua_awc/qua_awc_aw/qua_am_aw_awag/qua_am_aw_awag.html', 'Animal Welfare Advisory Group', '', '','');
	 genlaytab(lev_div+'quarantine/qua_awc/qua_awc_aw/qua_am_aw_afcd/qua_am_aw_afcd.html', 'AFCD Re-home Scheme', '', '','');
	 genlaytab(lev_div+'publications/publications_qua/files/rehome.pdf', 'Adopting dogs & cats from AFCD', '', '','_BLANK');
	 genlaytab(lev_div+'publications/publications_qua/files/rehome_other.pdf', 'Adopting other animals from AFCD', '', '','_BLANK');
	 genlaytab(lev_div+'quarantine/qua_awc/qua_awc_aw/qua_am_aw_taking/qua_am_aw_taking.html', 'Taking Good Care of Your Animals', '', '','');
	 genlaytab(lev_div+'quarantine/qua_awc/qua_awc_aw/qua_am_aw_awo/qua_am_aw_awo.html', 'Animal Welfare Organisations', '', '','');
	 genlaytab(lev_div+'quarantine/qua_awc/qua_awc_aw/qua_am_aw_ben/qua_am_aw_ben.html', 'The Benefits of Having Your Pet Sterilized', '', '','');
	 genlaytab(lev_div+'quarantine/qua_awc/qua_awc_aw/qua_am_aw_code/qua_am_aw_code.html', 'Code of Practice - Care and Use of Animals for Experimental Purposes', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Import of Animals and Birds"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'quarantine/qua_ie/qua_ie_ipab/qua_ie_ipab_idc/qua_ie_ipab_idc.html', 'Import of Dogs and Cats', '', '','');
	 genlaytab(lev_div+'quarantine/qua_ie/qua_ie_ipab/qua_ie_ipab_ibpo/qua_ie_ipab_ibpo.html', 'Import of Birds, Poultry and Ostriches', '', '','');
	 genlaytab(lev_div+'quarantine/qua_ie/qua_ie_ipab/qua_ie_ipab_irrmpm/qua_ie_ipab_irrmpm.html', 'Import of Reptiles, Rodents and Miscellaneous Pet Mammals', '', '','');
	 genlaytab(lev_div+'quarantine/qua_ie/qua_ie_ipab/qua_ie_ipab_ihea/qua_ie_ipab_ihea.html', 'Import of Horses and Equine Animals', '', '','');
	 genlaytab(lev_div+'quarantine/qua_ie/qua_ie_ipab/qua_ie_ipab_ilpbp/qua_ie_ipab_ilpbp.html', 'Import of Live Pigs for Breeding Purposes', '', '','');
	 genlaytab(lev_div+'quarantine/qua_ie/files/spfee.pdf', 'Fee of Special Permits', '', '','_BLANK');
	 genlaytab(lev_div+'quarantine/qua_ie/qua_ie_ipab/qua_ie_ipab_iap/qua_ie_ipab_iap.html', 'Import of Animal Carcasses and Animal Products', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Mountain Bike Activity"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'country/cou_vis/cou_vis_mou/cou_vis_mou_cod/cou_vis_mou_cod.html', 'Code of Mountain Biking', '', '','');
	 genlaytab(lev_div+'english/country/cou_vis/cou_vis_mou/cou_vis_mou_saf/cou_vis_mou_saf.html', 'Safety Equipment', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_mou/cou_vis_mou_mou/cou_vis_mou_mou.html', 'Safety Equipment', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_mou/cou_vis_mou_app/cou_vis_mou_app.html', 'Applying a permit', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Recreational Facilities"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'country/cou_vis/cou_vis_rec/cou_vis_rec_hin/cou_vis_rec_hin.html', 'Hints for Visitors', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_rec/cou_vis_bar.html', 'Recreational areas', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_rec/cou_vis_dis.html', 'Recreational Facilities for Person with a Disability', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Camp Sites"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'country/cou_vis/cou_vis_rec/cou_vis_rec_hin/cou_vis_rec_hin.html', 'Hints for Campers', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_cam/cou_vis_cam_reg/cou_vis_cam_reg.html', 'Regulations', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_cam/cou_vis_cam_cam/cou_vis_cam_cam.html', 'Camping Sites', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_cam/cou_vis_cam_wat/cou_vis_cam_wat.html', 'Water Source of Camp sites', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Marine Parks"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'country/cou_vis/cou_vis_mar/cou_vis_mar_wha/cou_vis_mar_wha.html', 'What\'s News', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_mar/cou_vis_mar_bac/cou_vis_mar_bac.html', 'Background', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_mar/cou_vis_mar_des/cou_vis_mar_des.html', 'Designated Marine Parks and Marine Reserve', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_mar/cou_vis_mar_pla/cou_vis_mar_pla.html', 'Planning and Management', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_mar/cou_vis_mar_edu/cou_vis_mar_edu.html', 'Education and Publicity', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_mar/cou_vis_mar_mpp/cou_vis_mar_mpp.html', 'Marine Park Permit', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_mar/cou_vis_mar_mpvs/cou_vis_mar_mpvs.html', 'Marine Park Visitor Service', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_mar/cou_vis_mar_mon/cou_vis_mar_mon.html', 'Monitoring', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_mar/cou_vis_mar_faq/cou_vis_mar_faq.html', 'FAQ', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Country Parks"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'country/cou_vis/cou_vis_cou/cou_vis_cou_sm/cou_vis_cou_sm.html', 'Shing Mun', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_cou/cou_vis_cou_ks/cou_vis_cou_ks.html', 'Kam Shan', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_cou/cou_vis_cou_lr/cou_vis_cou_lr.html', 'Lion Rock', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_cou/cou_vis_cou_abe/cou_vis_cou_abe.html', 'Aberdeen', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_cou/cou_vis_cou_tt/cou_vis_cou_tt.html', 'Tai Tam', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_cou/cou_vis_cou_ske/cou_vis_cou_ske.html', 'Sai Kung East', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_cou/cou_vis_cou_skw/cou_vis_cou_skw.html', 'Sai Kung West', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_cou/cou_vis_cou_pc/cou_vis_cou_pc.html', 'Plover Cove', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_cou/cou_vis_cou_ls/cou_vis_cou_ls.html', 'Lantau South', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_cou/cou_vis_cou_ln/cou_vis_cou_ln.html', 'Lantau North & Extension', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_cou/cou_vis_cou_psl/cou_vis_cou_psl.html', 'Pat Sin Leng', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_cou/cou_vis_cou_tl/cou_vis_cou_tl.html', 'Tai Lam', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_cou/cou_vis_cou_tms/cou_vis_cou_tms.html', 'Tai Mo Shan', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_cou/cou_vis_cou_lt/cou_vis_cou_lt.html', 'Lam Tsuen', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_cou/cou_vis_cou_mos/cou_vis_cou_mos.html', 'Ma On Shan', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_cou/cou_vis_cou_kt/cou_vis_cou_kt.html', 'Kiu Tsui', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_cou/cou_vis_cou_pce/cou_vis_cou_pce.html', 'Plover Cove (Ext.)', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_cou/cou_vis_cou_so/cou_vis_cou_so.html', 'Shek O', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_cou/cou_vis_cou_pfl/cou_vis_cou_pfl.html', 'Pok Fu Lam', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_cou/cou_vis_cou_ttqbe/cou_vis_cou_ttqbe.html', 'Tai Tam (Quarry Bay Ext.)', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_cou/cou_vis_cou_cwb/cou_vis_cou_cwb.html', 'Clear Water Bay', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_cou/cou_vis_cou_skwwte/cou_vis_cou_skwwte.html', 'Sai Kung West (Wan Tsai Ext.)', '', '','');
	 genlaytab(lev_div+'country/cou_vis/cou_vis_cou/cou_vis_cou_lfs/cou_vis_cou_lfs.html', 'Lung Fu Shan', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Good Code of Practices"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'country/cou_how/cou_how_gcp/cou_how_gcp_cou/cou_how_gcp_cou.html', 'County code', '', '','');
	 genlaytab(lev_div+'country/cou_how/cou_how_gcp/cou_how_gcp_tak/cou_how_gcp_tak.html', 'Take litter home', '', '','');
	 genlaytab(lev_div+'country/cou_how/cou_how_gcp/cou_how_gcp_con/cou_how_gcp_con.html', 'Control of Dogs', '', '','');
	 genlaytab(lev_div+'country/cou_how/cou_how_gcp/cou_how_gcp_don/cou_how_gcp_don.html', 'Don\'t feed wild animals', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Volunteers"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'country/cou_how/cou_how_vol/cou_how_vol_cpv/cou_how_vol_cpv.html', 'Country Park Volunteers', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Visitor Liaison Group"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'country/cou_how/cou_how_vis/cou_how_vis.html', 'Country Parks Visitor Liaison Group', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Nature Gallery"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'country/cou_pub/cou_pub_natg/cou_pub_natg_lan/cou_pub_natg_lan.html', 'Landscape', '', '','');
	 genlaytab(lev_div+'country/cou_pub/cou_pub_natg/cou_pub_natg_pla/cou_pub_natg_pla.html', 'Plants', '', '','');
	 genlaytab(lev_div+'country/cou_pub/cou_pub_natg/cou_pub_natg_ani/cou_pub_natg_ani.html', 'Animals', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="CITES Official Documents"){ 
	 genlayerheader(l); 
	 genlaytab('http://www.cites.org/eng/res/index.shtml', 'Resolutions', '', '','_BLANK');
	 genlaytab('http://www.cites.org/eng/dec/index.shtml', 'Decisions', '', '','_BLANK');
	 genlaytab('http://www.cites.org/eng/notif/index.shtml', 'Notifications to the Parties', '', '','_BLANK');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Approved GMOs"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'conservation/con_gmo/gmo_search.asp', 'Register Search', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Education and Publicity"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'conservation/con_gmo/gmo_edu/gmo_edu_market.html', 'GMOs in International Market', '', '','');
	 genlaytab(lev_div+'conservation/con_gmo/gmo_edu/Leaflets.html', 'Leaflets', '', '','');
	 genlaytab(lev_div+'conservation/con_gmo/gmo_edu/gmo_edu_information.html', 'Useful Intormation', '', '','');
	 genlaytab(lev_div+'conservation/con_gmo/gmo_edu/gmo_edu_list.html', 'Useful Links', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="GMO Approval Application"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'conservation/con_gmo/gmo_approval/gmo_app_app.html', 'Guideline for GMO Approval Application', '', '','');
	 genlaytab(lev_div+'conservation/con_gmo/gmo_approval/gmo_app_per.html', 'Personal Data Privacy Notice', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Marine Benthic Communities"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'conservation/con_mar/con_mar_mar/con_mar_mar_intro/con_mar_mar_intro.html', 'Introduction', '', '','');
	 genlaytab(lev_div+'conservation/con_mar/con_mar_mar/con_mar_mar_ben/con_mar_mar_ben.html', 'Benthic Organisms', '', '','');
	 genlaytab(lev_div+'conservation/con_mar/con_mar_mar/con_mar_mar_dis/con_mar_mar_dis.html', 'Distribution and Abundance', '', '','');
	 genlaytab(lev_div+'conservation/con_mar/con_mar_mar/con_mar_mar_cha/con_mar_mar_cha.html', 'Characteristic and Seasonal Change', '', '','');
	 genlaytab(lev_div+'conservation/con_mar/con_mar_mar/con_mar_mar_mult/con_mar_mar_mult.html', 'Multimedia Showroom', '', '','');
	 genlaytab(lev_div+'conservation/con_mar/con_mar_mar/con_mar_mar_use/con_mar_mar_use.html', 'Useful Links', '', '','');
	 genlaytab(lev_div+'conservation/con_mar/con_mar_mar/con_mar_mar_ref/con_mar_mar_ref.html', 'References', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Horseshoe Crab"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'conservation/con_mar/con_mar_hor/con_mar_hor_intro/con_mar_hor_intro.html', 'Introduction', '', '','');
	 genlaytab(lev_div+'conservation/con_mar/con_mar_hor/con_mar_hor_life/con_mar_hor_life.html', 'Life History and Behaviour', '', '','');
	 genlaytab(lev_div+'conservation/con_mar/con_mar_hor/con_mar_hor_con/con_mar_hor_con.html', 'Conservation Status', '', '','');
	 genlaytab(lev_div+'conservation/con_mar/con_mar_hor/con_mar_hor_hor/con_mar_hor_hor.html', 'Horseshoe Crabs in Hong Kong', '', '','');
	 genlaytab('javascript:;" onclick="MM_openBrWindow(\''+lev_div+'conservation/con_mar/con_mar_hor/con_mar_hor_make/popup_hor_teach01_03.html\',\'popup\',\'width=50,height=50\')', 'Make yourself a Horseshoe Crab', '', '','_BLANK');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Corals"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'conservation/con_mar/con_mar_cor/con_mar_cor_intro/con_mar_cor_intro.html', 'Introduction', '', '','');
	 genlaytab(lev_div+'conservation/con_mar/con_mar_cor/con_mar_cor_hkcaml/con_mar_cor_hkcaml.html', 'Hong Kong Corals & the Associated Marine Life', '', '','');
	 genlaytab(lev_div+'conservation/con_mar/con_mar_cor/con_mar_cor_con/con_mar_cor_con.html', 'Conservation Status', '', '','');
	 genlaytab(lev_div+'conservation/con_mar/con_mar_cor/con_mar_cor_cor/con_mar_cor_cor.html', 'Coral Field Guide', '', '','');
	 genlaytab(lev_div+'conservation/con_mar/con_mar_cor/con_mar_cor_hkrc/con_mar_cor_hkrc.html', 'Hong Kong Reef Check', '', '','');
	 genlaytab(lev_div+'conservation/con_mar/con_mar_cor/con_mar_cor_mult/con_mar_cor_mult.html', 'Multimedia Showroom', '', '','');
	 genlaytab(lev_div+'conservation/con_mar/con_mar_cor/con_mar_cor_ref/con_mar_cor_ref.html', 'References', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Finless Porpoise"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'conservation/con_mar/con_mar_fin/con_mar_fin_fin/con_mar_fin_fin_int.html', 'Introduction', '', '','');
	 genlaytab(lev_div+'conservation/con_mar/con_mar_fin/con_mar_fin_fin/con_mar_fin_fin_dis.html', 'Distribution & Abundance', '', '','');
	 genlaytab(lev_div+'conservation/con_mar/con_mar_fin/con_mar_fin_fin/con_mar_fin_fin_soc.html', 'Social Organisation, Behaviour & Life History', '', '','');
	 genlaytab(lev_div+'conservation/con_mar/con_mar_fin/con_mar_fin_fin/con_mar_fin_fin_con.html', 'Conservation Status', '', '','');
	 genlaytab(lev_div+'conservation/con_mar/con_mar_fin/con_mar_fin_fin/con_mar_fin_fin_rep.html', 'Report of Stranding', '', '','');
	 genlaytab(lev_div+'conservation/con_mar/con_mar_fin/con_mar_fin_fin/con_mar_fin_fin_fur.html', 'Further Reference', '', '','');
	 genlaytab(lev_div+'publications/publications_con/files/fin_executive_summary.doc', 'Executive Summary', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Chinese White Dolphin"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'conservation/con_mar/con_mar_chi/con_mar_chi_chi/con_mar_chi_chi_int.html', 'Introduction', '', '','');
	 genlaytab(lev_div+'conservation/con_mar/con_mar_chi/con_mar_chi_chi/con_mar_chi_chi_dis.html', 'Distribution', '', '','');
	 genlaytab(lev_div+'conservation/con_mar/con_mar_chi/con_mar_chi_chi/con_mar_chi_chi_abu.html', 'Abundance', '', '','');
	 genlaytab(lev_div+'conservation/con_mar/con_mar_chi/con_mar_chi_chi/con_mar_chi_chi_soc.html', 'Social Organisation & Behaviour', '', '','');
	 genlaytab(lev_div+'conservation/con_mar/con_mar_chi/con_mar_chi_chi/con_mar_chi_chi_life.html', 'Life History', '', '','');
	 genlaytab(lev_div+'conservation/con_mar/con_mar_chi/con_mar_chi_chi/con_mar_chi_chi_con.html', 'Conservation Status', '', '','');
	 genlaytab(lev_div+'conservation/con_mar/con_mar_chi/con_mar_chi_chi/con_mar_chi_chi_rep.html', 'Report of Stranding', '', '','');
	 genlaytab(lev_div+'conservation/con_mar/con_mar_chi/con_mar_chi_chi/con_mar_chi_chi_fur.html', 'Further Reference', '', '','');
	 genlaytab(lev_div+'conservation/con_mar/con_mar_chi/con_mar_chi_vid/con_mar_chi_vid.html', 'Video', '', '','');
	 genlaytab(lev_div+'conservation/con_mar/con_mar_chi/con_mar_chi_wall/con_mar_chi_wall.html', 'Wallpaper', '', '','');
	 genlaytab('http://www.afcd.gov.hk/english/publications/publications_con/files/conpgm.pdf', 'Conservation Programme', '', '','');
	 genlaytab(lev_div+'conservation/con_mar/con_mar_chi/con_mar_chi_dol/con_mar_chi_dol.html', 'Commonly seen Dolphins', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Streams and rivers in Hong Kong"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'conservation/con_wet/streams_rivers_hk/Introduction/intro.html', 'Introduction', '', '','');
	 genlaytab(lev_div+'conservation/con_wet/streams_rivers_hk/Threats_to_NSR/threats_to_nsr.html', 'Threats to Natural Streams and Rivers', '', '','');
	 genlaytab(lev_div+'conservation/con_wet/streams_rivers_hk/Con_NSR/con_nsr.html', 'Conservation of Natural Streams ans Rivers', '', '','');
	 genlaytab(lev_div+'conservation/con_wet/streams_rivers_hk/Showcase_S_Restore/showcase_s_restore.html', 'A Showcase of Stream Restoration', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Mangroves in Hong Kong"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'conservation/con_wet/con_wet_man/con_wet_man_what/con_wet_man_what.html', 'What is Mangrove?', '', '','');
	 genlaytab(lev_div+'conservation/con_wet/con_wet_man/con_wet_man_ada/con_wet_man_ada.html', 'Adaptation of Mangroves', '', '','');
	 genlaytab(lev_div+'conservation/con_wet/con_wet_man/con_wet_man_local/con_wet_man_local.html', 'Local Mangrove Species', '', '','');
	 genlaytab(lev_div+'conservation/con_wet/con_wet_man/con_wet_man_dis/con_wet_man_dis.html', 'Distribution', '', '','');
	 genlaytab(lev_div+'conservation/con_wet/con_wet_man/con_wet_man_val/con_wet_man_val.html', 'Value of Mangroves', '', '','');
	 genlaytab(lev_div+'conservation/con_wet/con_wet_man/con_wet_man_con/con_wet_man_con.html', 'Conservation of Mangroves', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Local Wetland Conservation in Action"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'conservation/con_wet/con_wet_local/con_wet_local_pro/con_wet_local_pro.html', 'Promote Conservation and Wise Use', '', '','');
	 genlaytab(lev_div+'conservation/con_wet/con_wet_local/con_wet_local_land/con_wet_local_land.html', 'Land use and water quality control', '', '','');
	 genlaytab(lev_div+'conservation/con_wet/con_wet_local/con_wet_local_sub/con_wet_local_sub.html', 'Subvention projects', '', '','');
	 genlaytab(lev_div+'conservation/con_wet/con_wet_local/con_wet_local_con/con_wet_local_con.html', 'Consultancy Study on Wetland Compensation', '', '','');
	 genlaytab(lev_div+'conservation/con_wet/con_wet_local/con_wet_local_min/con_wet_local_min.html', 'Minor Conservation Projects', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Looking into Mai Po Inner Deep Bay Ramsar Site"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'conservation/con_wet/con_wet_look/con_wet_look_des/con_wet_look_des.html', 'Designating Mai Po Inner Deep Bay as a Ramsar Site', '', '','');
	 genlaytab(lev_div+'conservation/con_wet/con_wet_look/con_wet_look_gen/con_wet_look_gen.html', 'General Information about Mai Po Ramsar site', '', '','');
	 genlaytab(lev_div+'conservation/con_wet/con_wet_look/con_wet_look_man/con_wet_look_man.html', 'Management Plan of the Mai Po Inner Deep Bay Ramsar Site', '', '','');
	 genlaytab(lev_div+'conservation/con_wet/con_wet_look/con_wet_look_enf/con_wet_look_enf.html', 'Enforcement - Schedule 6', '', '','');
	 genlaytab(lev_div+'conservation/con_wet/con_wet_look/con_wet_look_bas/con_wet_look_bas.html', 'Baseline Ecological Monitoring Programme for the Mai Po Inner Deep Bay Ramsar Site', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="About Wetland Conservation"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'conservation/con_wet/con_wet_abt/con_wet_abt_gen/con_wet_abt_gen.html', 'General Information about Wetland', '', '','');
	 genlaytab(lev_div+'conservation/con_wet/con_wet_abt/con_wet_abt_ram/con_wet_abt_ram.html', 'Ramsar Convention', '', '','');
	 genlaytab(lev_div+'conservation/con_wet/con_wet_abt/con_wet_abt_world/con_wet_abt_world.html', 'World Wetlands Day', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Nuisance caused by Wild Animals"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'conservation/con_fau/con_fau_nui/con_fau_nui_wil/con_fau_nui_wil.html', 'Wild Animal Calls', '', '','');
	 genlaytab(lev_div+'conservation/con_fau/con_fau_nui/con_fau_nui_str/con_fau_nui_str.html', 'Stray Monkey in Residential Area', '', '','');
	 genlaytab(lev_div+'conservation/con_fau/con_fau_nui/con_fau_nui_pig/con_fau_nui_pig.html', 'Crop Damage by Wild Pig', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Romer's Tree Frog"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'conservation/con_fau/con_fau_rom/con_fau_rom_gen/con_fau_rom_gen.html', 'General interests', '', '','');
	 genlaytab(lev_div+'conservation/con_fau/con_fau_rom/con_fau_rom_con/con_fau_rom_con.html', 'Conservation', '', '','');
	 genlaytab(lev_div+'conservation/con_fau/con_fau_rom/con_fau_rom_ref/con_fau_rom_ref.html', 'Reference', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Bird"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'conservation/con_fau/con_fau_bird/con_fau_bird_bhk/con_fau_bird_bhk.html', 'Birds in Hong Kong', '', '','');
	 genlaytab(lev_div+'conservation/con_fau/con_fau_bird/con_fau_bird_int/con_fau_bird_int.html', 'International connections on the conservation of birds', '', '','');
	 genlaytab(lev_div+'conservation/con_fau/con_fau_bird/con_fau_bird_bwhk/con_fau_bird_bwhk.html', 'Bird Watching in Hong Kong', '', '','');
	 genlaytab(lev_div+'conservation/con_fau/con_fau_bird/con_fau_bird_stu/con_fau_bird_stu.html', 'Study and research projects on the conservation of birds commissioned by AFCD', '', '','');
	 genlaytab(lev_div+'conservation/con_fau/con_fau_bird/con_fau_bird_tips/con_fau_bird_tips.html', 'Tips for observing birds', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Freshwater Turtle"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'conservation/con_fau/con_fau_fre/con_fau_fre_the/con_fau_fre_the.html', 'The local freshwater turtles', '', '','');
	 genlaytab(lev_div+'conservation/con_fau/con_fau_fre/con_fau_fre_con/con_fau_fre_con.html', 'Conservation', '', '','');
	 genlaytab(lev_div+'conservation/con_fau/con_fau_fre/con_fau_fre_ref/con_fau_fre_ref.html', 'Reference', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Sea Turtle"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'conservation/con_fau/con_fau_sea/con_fau_sea_bas/con_fau_sea_bas_spe.html', 'Basic facts of the sea turtles', '', '','');
	 genlaytab(lev_div+'conservation/con_fau/con_fau_sea/con_fau_sea_sea/con_fau_sea_sea.html', 'Sea turtles recorded in Hong Kong', '', '','');
	 genlaytab(lev_div+'conservation/con_fau/con_fau_sea/con_fau_sea_con/con_fau_sea_con.html', 'Conservation of sea turtles in Hong Kong', '', '','');
	 genlaytab(lev_div+'conservation/con_fau/con_fau_sea/con_fau_sea_pub/con_fau_sea_pub.html', 'Reference', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Monkey"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'conservation/con_fau/con_fau_mon/con_fau_mon_wild/con_fau_mon_wild.html', 'Wild Monkeys of Hong Kong', '', '','');
	 genlaytab(lev_div+'conservation/con_fau/con_fau_mon/con_fau_mon_the/con_fau_mon_the.html', 'The Feeding Ban', '', '','');
	 genlaytab(lev_div+'conservation/con_fau/con_fau_mon/con_fau_mon_pro/con_fau_mon_pro.html', 'Protect yourself from monkeys', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Information on Endangered Species"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'conservation/con_end/con_end_info/con_end_info_cir/con_end_info_cir.html', 'Circular Letters', '', '','');
	 genlaytab(lev_div+'conservation/con_end/con_end_info/con_end_info_press/con_end_info_press.html', 'Press Releases', '', '','');
	 genlaytab(lev_div+'conservation/con_end/con_end_info/con_end_info_online/con_end_info_online.html', 'Online Sale of Endangered Species', '', '','');
	 genlaytab(lev_div+'conservation/con_end/con_end_info/con_end_info_gazette/con_end_info_gazette.html', 'Gazette', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Publicity Materials"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'conservation/con_end/con_end_pubmat/con_end_pubmat_pam/con_end_pubmat_pam.html', 'Pamphlets & Leaflets', '', '','');
	 genlaytab(lev_div+'conservation/con_end/con_end_pubmat/con_end_pubmat_post/con_end_pubmat_post.html', 'Posters', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Publicity and Education"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'conservation/con_end/con_end_pub/con_end_pub_act/con_end_pub_act.html', 'Activities', '', '','');
	 genlaytab(lev_div+'conservation/con_end/con_end_pub/con_end_pub_esrc/con_end_pub_esrc.html', 'Endangered Species Resource Centre', '', '','');
	 genlaytab(lev_div+'conservation/con_end/con_end_pub/con_end_pub_talks/con_end_pub_talks.html', 'Talks & Exhibitions', '', '','');
	 genlaytab(lev_div+'conservation/con_end/con_end_pub/con_end_pub_data/con_end_pub_data.html', 'Database', '', '','');
	 genlaytab(lev_div+'conservation/con_end/con_end_pub/con_end_pub_online/con_end_pub_online.html', 'Online Game', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Licences / Certificates"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'conservation/con_end/con_end_lc/con_end_lc_how/con_end_lc_how.html', 'How to Apply for a Licence', '', '','');
	 genlaytab(lev_div+'conservation/con_end/con_end_lc/con_end_lc_app/con_end_lc_app.html', 'Application Forms & Supporting Documents', '', '','');
	 genlaytab(lev_div+'conservation/con_end/con_end_lc/con_end_lc_sub/con_end_lc_sub.html', 'Submission', '', '','');
	 genlaytab(lev_div+'conservation/con_end/con_end_lc/con_end_lc_fees/con_end_lc_fees.html', 'Fees', '', '','');
	 genlaytab(lev_div+'conservation/con_end/con_end_lc/con_end_lc_guide/con_end_lc_guide.html', 'Guidelines for Applying Licences', '', '','');
	 genlaytab(lev_div+'conservation/con_end/con_end_faq/con_end_faq.html', 'FAQ', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Regulation in Hong Kong"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'conservation/con_end/con_end_reg/con_end_reg_ord/con_end_reg_ord.html', 'The Ordinance', '', '','');
	 genlaytab(lev_div+'conservation/con_end/con_end_reg/con_end_reg_some/con_end_reg_some_new.html', 'Scheduled Species', '', '','');
	 genlaytab(lev_div+'conservation/con_end/con_end_reg/con_end_reg_lic/con_end_reg_lic.html', 'Licensing and Inspection Requirements', '', '','');
	 genlaytab(lev_div+'conservation/con_end/con_end_reg/con_end_reg_pen/con_end_reg_pen.html', 'Penalties', '', '','');
	 genlaytab(lev_div+'conservation/con_end/con_end_reg/con_end_reg_tra/con_end_reg_tra.html', 'In Transit', '', '','');
	 genlaytab(lev_div+'conservation/con_end/con_end_reg/con_end_reg_tou/con_end_reg_tou.html', 'Personal or Household Effects', '', '','');
	 genlaytab(lev_div+'conservation/con_end/con_end_reg/con_end_reg_tou/con_end_reg_tou.html#tou_c', 'Tourist Souvenir Items', '', '','');
	 genlaytab(lev_div+'conservation/con_end/con_end_reg/con_end_reg_oth/con_end_reg_oth.html', 'Other Regulations', '', '','');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="New Production Method"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'agriculture/agr_useful/agr_useful.html', 'Useful Crop Information', '', '','_BLANK');
	 genlaytab(lev_div+'agriculture/agr_ceg/agr_ceg.html', 'Controlled Environment Greenhouse', '', '','');
	 genlaytab(lev_div+'agriculture/agr_orgfarm/agr_orgfarm.html', 'Organic Farming', '', '','_BLANK');
 
	 genlayerfooter(); 
	 } 
	 if(layer[l] =="Common pests and diseases in vegetable crops and their control"){ 
	 genlayerheader(l); 
	 genlaytab(lev_div+'agriculture/agr_useful/agr_useful_com/agr_useful_com_flea/agr_useful_com_flea.html', 'Integrated Pest Management for flea beetles', '', '','');
	 genlaytab(lev_div+'agriculture/agr_useful/agr_useful_com/agr_useful_com_melon/agr_useful_com_melon.html', 'Integrated Pest Management for melon flies', '', '','');
	 genlaytab(lev_div+'agriculture/agr_useful/agr_useful_com/agr_useful_com_leaf/agr_useful_com_leaf.html', 'Integrated Pest Management for Leaf miner', '', '','');
	 genlaytab(lev_div+'agriculture/agr_useful/agr_useful_com/agr_useful_com_use/agr_useful_com_use.html', 'Use Spodoptera litura Nuclear Polyhedrosis Virus to Control Fall-armyworm Larvae', '', '','');
	 genlaytab(lev_div+'agriculture/agr_useful/agr_useful_com/agr_useful_com_bug/agr_useful_com_bug.html', 'Bug-sucking machine', '', '','');
	 genlaytab(lev_div+'agriculture/agr_useful/agr_useful_com/agr_useful_com_sim/agr_useful_com_sim.html', 'A simple bagging method', '', '','');
	 genlaytab(lev_div+'agriculture/agr_useful/agr_useful_com/agr_useful_com_der/agr_useful_com_der.html', 'Derris root extract', '', '','');
	 genlaytab(lev_div+'agriculture/agr_useful/agr_useful_com/agr_useful_com_mat/agr_useful_com_mat.html', 'Matrine', '', '','');
	 genlaytab(lev_div+'agriculture/agr_useful/agr_useful_com/agr_useful_com_min/agr_useful_com_min.html', 'Mineral oil', '', '','');
	 genlaytab(lev_div+'agriculture/agr_useful/agr_useful_com/agr_useful_com_bac/agr_useful_com_bac.html', 'Bacillus thuringiensis', '', '','');
	 genlaytab(lev_div+'agriculture/agr_useful/agr_useful_com/agr_useful_com_ste/agr_useful_com_ste.html', 'Steinernema nematode', '', '','');
 
	 genlayerfooter(); 
	 } 

	}

}

// end level 3
