//gen menu ver. 4.0



level_1 = new Array('eindex.html' , 'press', 'aboutus', 'main', 'tele', 'statistics', 'useful', 'pub_rec', 'legislative', 'budget', 'vacancies', 'tender', 'links', 'contactus', 'sitemap', 'search', 'notices', 'privacy');

//level 1



function genmenu(){

	//gentable(lev_div+'link','alt','img','target','layer');

	gentable(lev_div+'../eindex.html', 'Home', '02', '', '');
	gentable(lev_div+'press/press.html', 'Press Release', '04', '', '');
	gentable(lev_div+'aboutus/aboutus.html', 'About Us', '05', '', 'y');
	gentable(lev_div+'main/main.html', 'Main Service Areas', '06', '', 'y');
	gentable(lev_div+'tele/tele.html', 'Telephone / Addresses', '07', '', 'y');
	gentable(lev_div+'statistics/statistics.html', 'Statistics', '08', '', 'y');
	
	gentable(lev_div+'useful/useful.html', 'Useful Information', '09', '', 'y');
	gentable(lev_div+'pub_rec/pub_rec.html', 'Publications and Access to Information', '10', '', '');
	gentable(lev_div+'legislative/legislative.html', 'Legislative Council Business ', '11', '', '');		
	gentable(lev_div+'budget/budget.html', 'The Budget', '12', '', 'y');
	gentable(lev_div+'vacancies/vacancies.html', 'Job Vacancies', '13', '', '');
	gentable(lev_div+'tender/tender.html', 'Tender Notices', '14', '', '');
	gentable(lev_div+'links/links.html', 'Related Links', '15', '', 'y');
	gentable(lev_div+'contactus/contactus.html', 'Contact Us', '16', '', 'y');

	gentable('', 'Site Map', '', '', '');
	gentable('', 'Search', '', '', '');
	gentable('', 'Important notices', '', '', '');
	gentable('', 'Privacy policy', '', '', '');

}





//end level 1





// level 2

function genlayer(){	

	//genlaytab(lev_div+'link', 'alt', 'orgcolor', 'overcol','target');



	for(l=0; l<layer.length; l++){

		if(layer[l] == "About Us"){			

			genlayerheader(l);

			genlaytab(lev_div+'aboutus/aboutus_md/aboutus_md.html', 'Message from the Director', '#B9E0FC', '#B9E0FC','');

			genlaytab(lev_div+'aboutus/aboutus_oc/aboutus_oc.html', 'Organisation Chart', '#B9E0FC', '#B9E0FC','');

			genlaytab(lev_div+'aboutus/aboutus_mv/aboutus_mv.html', 'Mission and Vision', '#B9E0FC', '#B9E0FC','');

			genlaytab(lev_div+'aboutus/aboutus_pp/aboutus_pp.html', 'Performance Pledges', '#B9E0FC', '#B9E0FC','');			

			genlayerfooter();



		}else if(layer[l] == "Main Service Areas"){

			genlayerheader(l);

			genlaytab(lev_div+'main/main.html', 'Centre for Health Protection', '#B9E0FC', '#B9E0FC','');

			genlaytab('http://www.dhcas.gov.hk/', 'Child Assessment Service', '#B9E0FC', '#B9E0FC');

			genlaytab(lev_div+'main/main_cm/main_cm.html', 'Chinese Medicine', '#B9E0FC', '#B9E0FC','');

			genlaytab(lev_div+'main/main_cgs/main_cgs.html', 'Clinical Genetic Service', '#B9E0FC', '#B9E0FC','');

			genlaytab(lev_div+'main/main_ds/main_ds.html', 'Dental Service', '#B9E0FC', '#B9E0FC','');

			genlaytab(lev_div+'main/main_ps/main_ps.html', 'Drug Office', '#B9E0FC', '#B9E0FC','');			

			genlaytab(lev_div+'main/main_ehs/main_ehs.html', 'Elderly Health Service', '#B9E0FC', '#B9E0FC','');

			genlaytab(lev_div+'main/main_fhs/main_fhs.html', 'Family Health Service', '#B9E0FC', '#B9E0FC','');

			genlaytab(lev_div+'main/main_fps/main_fps.html', 'Forensic Pathology Service', '#B9E0FC', '#B9E0FC','');

			genlaytab('http://www.mdco.gov.hk/', 'Medical Device Control Office', '#B9E0FC', '#B9E0FC','_blank');

			genlaytab(lev_div+'main/main_mc/main_mc.html', 'Methadone Clinics', '#B9E0FC', '#B9E0FC','');
			
			genlaytab(lev_div+'main/main_orhi/main_orhi.html', 'Office for Registration of Healthcare Institutions', '#B9E0FC', '#B9E0FC','');
			
			genlaytab(lev_div+'main/main_ph/main_ph.html', 'Port Health', '#B9E0FC', '#B9E0FC','');

			genlaytab('http://www.pdqa.gov.hk/', 'Professional Development & Quality Assurance', '#B9E0FC', '#B9E0FC');
	
			genlaytab(lev_div+'main/main_rh/main_rh.html', 'Radiation Health', '#B9E0FC', '#B9E0FC','');
			
			genlaytab(lev_div+'main/main_rhp/main_rhp.html', ' Registration of Healthcare Professionals', '#B9E0FC', '#B9E0FC','');

			genlaytab(lev_div+'main/main_shs/main_shs.html', 'Student Health Service', '#B9E0FC', '#B9E0FC','');
			
			genlaytab(lev_div+'main/main_tco/main_tco.html', 'Tobacco Control Office', '#B9E0FC', '#B9E0FC','');
		
			genlayerfooter();



		}else if(layer[l] == "Publications and Access to information"){

			genlayerheader(l);

			genlaytab(lev_div+'pub_rec/pub_rec_arpis/pub_rec_arpis.html', 'Annual Report, Pamphlets and information sheets', '#B9E0FC', '#B9E0FC','');	

			genlaytab(lev_div+'pub_rec/pub_rec_lpoi/pub_rec_lpoi.html', 'List of Publications and Other Information', '#B9E0FC', '#B9E0FC','');	

			genlayerfooter();



		}else if(layer[l] == "Telephone / Addresses"){

			genlayerheader(l);

			genlaytab(lev_div+'tele/tele_enq/tele_enq.html', 'Enquiries', '#B9E0FC', '#B9E0FC','');		

			genlaytab(lev_div+'tele/tele_htis/tele_htis.html', 'Hotlines/Telephone Information Service', '#B9E0FC', '#B9E0FC','');		

			genlaytab(lev_div+'tele/tele_chc/tele_chc.html', 'List of Clinics and Health Centres', '#B9E0FC', '#B9E0FC','');		

			genlayerfooter();



		}else if(layer[l] == "Statistics"){

			genlayerheader(l);

			genlaytab(lev_div+'statistics/statistics_hs/statistics_hs.html', 'Health Statistics', '#B9E0FC', '#B9E0FC','');

			genlaytab(lev_div+'statistics/statistics_hms/statistics_hms.html', 'Health Manpower Survey', '#B9E0FC', '#B9E0FC','');
			
			genlayerfooter();



		}else if(layer[l] == "Useful Information"){

			genlayerheader(l);
	
			genlaytab(lev_div+'useful/useful.html', 'For Public', '#B9E0FC', '#B9E0FC','');
			
			genlaytab(lev_div+'useful/useful.html#ForHP', 'For Healthcare Professionals', '#B9E0FC', '#B9E0FC','');
			
			genlaytab(lev_div+'useful/useful_forms/useful_forms.html', 'Forms', '#B9E0FC', '#B9E0FC','');
						
			genlayerfooter();
			
			
			
		}else if(layer[l] == "The Budget"){

			genlayerheader(l);

			genlaytab(lev_div+'budget/budget.html', 'Department of Health', '#B9E0FC', '#B9E0FC','');		
			genlaytab('http://www.budget.gov.hk/', 'The Government Budget', '#B9E0FC', '#B9E0FC');
						
			genlayerfooter();
			
			
		}else if(layer[l] == "Related Links"){

			genlayerheader(l);

			genlaytab(lev_div+'links/links_dh.html', 'Websites of Department of Health Services', '#B9E0FC', '#B9E0FC','');		
			genlaytab(lev_div+'links/links_so.html', 'Subvented Organisations', '#B9E0FC', '#B9E0FC','');
			genlaytab(lev_div+'links/links_gdro.html', 'Government Departments and Related Organisations', '#B9E0FC', '#B9E0FC','');
			genlaytab(lev_div+'links/links_cbc.html', 'Professional Bodies', '#B9E0FC', '#B9E0FC','');
			genlaytab(lev_div+'links/links_noha.html', 'National and Overseas Health Authorities', '#B9E0FC', '#B9E0FC','');
			genlaytab(lev_div+'links/links_oo.html', 'Others', '#B9E0FC', '#B9E0FC','');
			
			genlayerfooter();


			}else if(layer[l] == "Contact Us"){

			genlayerheader(l);

			genlaytab(lev_div+'contactus/contactus_enq.html', 'Enquiries', '#B9E0FC', '#B9E0FC','');		
			genlaytab(lev_div+'contactus/contactus_cru.html', 'Client Relations Unit', '#B9E0FC', '#B9E0FC','');		
						
			genlayerfooter();
			

		}

	}

}



//end level 2


