//gen menu ver. 4.0

level_1 = new Array('eindex.html','about_us', 'main_ser', 'centre_det', 'doc_br', 'fee_cha', 'health_info', 'mulit_med', 'reports', 'useful_link', 'contactus', 'sitemap', 'notice', 'search','policy');
//level 1

function genmenu(){
	//gentable(lev_div+'link','alt','img','target','layer');
	gentable(lev_div+'../eindex.html', 'Home', '01', '', '');
	gentable(lev_div+'about_us/about_us.html', 'About Us', '02', '', 'y');
	gentable(lev_div+'main_ser/main_ser.html', 'Main Service Areas', '03', '', 'y');	
	gentable(lev_div+'centre_det/centre_det.html', 'Centre Details', '04', '', 'y');
	gentable(lev_div+'doc_br/doc_br.html', 'Documents to Bring Along/Forms', '05', '', '');
	gentable(lev_div+'fee_cha/fee_cha.html', 'Fees and Charges', '06', '', 'y');
	gentable(lev_div+'health_info/health_info.html', 'Health Information', '07', '', 'y');
	gentable(lev_div+'mulit_med/mulit_med.html', 'Audio-visual Resources', '08', '', 'y');	
	gentable(lev_div+'reports/reports.html', 'Reports', '09', '', '');
	gentable(lev_div+'useful_link/useful_link.html', 'Useful Links', '10', '', '');
	gentable('', 'Useful Link', '', '', '');
	gentable('', 'Contact Us', '', '', '');
	gentable('', 'Site Map', '', '', '');	
	gentable('', 'Important notices', '', '', '');
	gentable('', 'Search', '', '', '');
}


//end level 1


// level 2
function genlayer(){	
	//genlaytab(lev_div+'link', 'alt', 'img', 'no', 'parent no', 'target');

	for(l=0; l<layer.length; l++){
		if(layer[l] == "About Us"){			
			genlayerheader(l);
			genlaytab(lev_div+'about_us/welcome/welcome.html', 'Welcome Message', 'layer_about', '01',l ,'');
			genlaytab(lev_div+'about_us/vision/vision.html', 'Vision, Mission and Values', 'layer_about', '02',l ,'');
			genlaytab(lev_div+'about_us/pref_ple/pref_ple.html', 'Performance Pledge', 'layer_about', '03',l ,'');
			genlaytab(lev_div+'about_us/breast_policy/breast_policy.html', 'Breastfeeding Policy', 'layer_about', '04',l ,'');
			genlaytab(lev_div+'about_us/hotlines/hotlines.html', 'Hotlines', 'layer_about', '05',l ,'');
			genlayerfooter();

		}else if(layer[l] == "Main Service Areas"){			
			genlayerheader(l);
			genlaytab(lev_div+'main_ser/child_health/child_health.html', 'Child Health', 'layer_msa', '01',l ,'');
			genlaytab(lev_div+'main_ser/woman_health/woman_health.html', 'Woman Health', 'layer_msa', '02',l ,'');
			genlayerfooter();

		}else if(layer[l] == "Centre Details"){
			genlayerheader(l);
			genlaytab(lev_div+'centre_det/maternal/maternal.html', 'Maternal and Child Health Centres', 'layer_cd', '01',l ,'');
			genlaytab(lev_div+'centre_det/cent_pwhs/cent_pwhs.html', 'Centres Providing Woman Health Service', 'layer_cd', '02',l ,'');
			genlaytab(lev_div+'centre_det/cent_pcss/cent_pcss.html', 'Centres Providing Cervical Screening Service', 'layer_cd', '03',l ,'');
			genlaytab(lev_div+'centre_det/disable_fac/disable_fac.html', 'Disable Facilities', 'layer_cd', '04',l ,'');
			genlayerfooter();

		}else if(layer[l] == "Fee and Charges"){
			genlayerheader(l);
			genlaytab(lev_div+'fee_cha/general_pub/general_pub.html', 'For General Public', 'layer_fc', '01',l ,'');
			genlaytab(lev_div+'fee_cha/civil_ser/civil_ser.html', 'For Civil Servants', 'layer_fc', '02',l ,'');
			genlayerfooter();

		}else if(layer[l] == "Health Information"){
			genlayerheader(l);
			genlaytab(lev_div+'health_info/class_life/class_life.html', 'Classified by Life Stages', 'layer_hi', '01',l ,'');
			genlaytab(lev_div+'health_info/class_topic/class_topic.html', 'Classified by Topics ', 'layer_hi', '02',l ,'');			
			genlayerfooter();

		}else if(layer[l] == "Audio-visual Resources"){
			genlayerheader(l);
			genlaytab(lev_div+'mulit_med/vcd/vcd.html', 'VCDs', 'layer_mmr', '01',l ,'');
			genlaytab(lev_div+'mulit_med/api/api.html', 'APIs', 'layer_mmr', '02',l ,'');			
			genlayerfooter();
		
		}
	}
}

//end level 2

