//gen menu ver. 4.0



//level_1 = new Array('scindex.html' ,'whatsnew', 'aboutus', 'centre', 'press', 'health', 'student', 'related', 'resources', 'newsletters', '123', 'tools', 'ecards', 'games', 'contactus', 'sitemap', 'search', 'notices');
//level_1 = new Array('scindex.html' ,'whatsnew', 'aboutus', 'centre', 'health', 'related', 'resources', 'newsletters', 'tools', 'contactus', 'sitemap', 'search', 'notices');
level_1 = new Array('scindex.html' ,'whatsnew', 'aboutus', 'centre', 'health', 'related', 'resources', 'newsletters', 'hdtalk', 'tools', 'ecards', 'contactus', 'sitemap', 'search', 'notices');

//level 1



function genmenu(){

	//gentable(lev_div+'link','alt','img','target','layer');

	gentable(lev_div+'../scindex.html', '主页', '01', '', '');

	gentable(lev_div+'whatsnew/whatsnew.html', '最新消息', '02', '', '');
	gentable(lev_div+'aboutus/aboutus.html', '关于我们', '03', '', 'y');
	gentable(lev_div+'centre/centre.html', '中心资料', '04', '', '');
	//gentable(lev_div+'press/press.html', '新闻稿', '05', '', '');
	gentable(lev_div+'health/health.html', '健康资讯', '06', '', 'y');
	gentable(lev_div+'../wsmash/login.jsp', '学生登入', '07', '', '');
	gentable(lev_div+'related/related.html', '相关网页', '08', '', '');
	gentable(lev_div+'resources/resources.html', '资源下载', '09', '', 'y');
	gentable(lev_div+'newsletters/newsletters.html', '《彩桥》通讯', '10', '', '');
	//gentable('http://www.ahpshs.gov.hk/tc_chi/dow_zon/dow_zon.php', 'AHP 资源下载中心', '14', '_blank', '');
	//20081209 Add Healthtalk 
	//gentable(lev_div+'hdtalk/hdtalk.html', '健康讲座时间表', '11', '', '');
	//gentable(lev_div+'tools/tools.html', '工具下载', '11', '', '');
	gentable(lev_div+'tools/tools.html', '工具下载', '12', '', '');
	//gentable(lev_div+'ecards/index.html', '电子贺卡', '12', '', '');
	gentable(lev_div+'ecards/index.html', '电子贺卡', '13', '', '');

	//gentable(lev_div+'games/games.html', '网络游戏', '13', '', '');
	gentable('', '联络我们', '', '', '');

	gentable('', '网站地图', '', '', '');

	gentable('', '搜寻', '', '', '');

	gentable('', '重要告示', '', '', '');

	gendh();
}





//end level 1





// level 2

function genlayer(){	

	//genlaytab(lev_div+'link', 'alt', 'orgcolor', 'overcol','target', 'layer');



	for(l=0; l<layer.length; l++){

		if(layer[l] == "关于我们"){			

			genlayerheader(l);

			genlaytab(lev_div+'aboutus/aboutus_shs/aboutus_shs.html', '关于学生健康服务', '#5ec219', '#fb7804','','');
			genlaytab(lev_div+'aboutus/aboutus_shscsac/aboutus_shscsac.html', '关于学生健康服务中心/健康评估中心', '#5ec219', '#fb7804','','');
			genlaytab(lev_div+'aboutus/aboutus_ahp/aboutus_ahp.html', '关于青少年健康服务计划', '#5ec219', '#fb7804','','');			
			genlayerfooter();



		}else if(layer[l] == "健康资讯"){			

			genlayerheader(l);

			genlaytab(lev_div+'health/health_hl/health_hl.html', '健康生活', '#5ec219', '#fb7804','','');
			genlaytab(lev_div+'health/health_dn/health_dn.html', '饮食与营养', '#5ec219', '#fb7804','','');
			genlaytab(lev_div+'health/health_pe/health_pe.html', '运动', '#5ec219', '#fb7804','','');
			genlaytab(lev_div+'health/health_bsh/health_bsh.html', '骨骼与脊柱健康', '#5ec219', '#fb7804','','');
			genlaytab(lev_div+'health/health_ev/health_ev.html', '眼睛/视力健康', '#5ec219', '#fb7804','','');
			genlaytab(lev_div+'health/health_ehs/health_ehs.html', '耳朵/听觉健康/声线', '#5ec219', '#fb7804','','');
			genlaytab(lev_div+'health/health_ophp/health_ophp.html', '其他身体健康问题', '#5ec219', '#fb7804','','');
			genlaytab(lev_div+'health/health_se/health_se.html', '性教育', '#5ec219', '#fb7804','','');
			genlaytab(lev_div+'health/health_ph/health_ph.html', '心理社交健康', '#5ec219', '#fb7804','','');
			genlaytab(lev_div+'health/health_sdsa/health_sdsa.html', '烟, 酒, 滥用药物', '#5ec219', '#fb7804','','');
			genlaytab(lev_div+'health/health_lea/health_lea.html', '学习', '#5ec219', '#fb7804','','');
			genlaytab(lev_div+'health/health_cc/health_cc.html', '择业', '#5ec219', '#fb7804','','');
			genlayerfooter();



		}else if(layer[l] == "资源下载"){

			genlayerheader(l);

			genlaytab(lev_div+'resources/resources_forms/resources_forms.html', '表格', '#5ec219', '#fb7804','','');
			genlaytab(lev_div+'resources/resources_bl/resources_bl.html', '单张/小册子', '#5ec219', '#fb7804','','y');
			//genlaytab(lev_div+'hdtalk/hdtalk.html', '健康讲座时间表', '#5ec219', '#fb7804','','');
			genlayerfooter();

		}
	}

}
	
function gensublayer(){
	//genlaytab(lev_div+'link', 'alt', 'orgcolor', 'overcol','target');
	for(l=0; l<sublayer.length; l++){

		if(sublayer[l] == "单张/小册子"){		
			gensublayerheader(l);
			gensublaytab(lev_div+'resources/resources_bl/resources_bl.html#1', '健康生活', '#5ec219', '#fb7804','');
			gensublaytab(lev_div+'resources/resources_bl/resources_bl.html#2', '饮食与营养', '#5ec219', '#fb7804','');
			gensublaytab(lev_div+'resources/resources_bl/resources_bl.html#3', '运动', '#5ec219', '#fb7804','');
			gensublaytab(lev_div+'resources/resources_bl/resources_bl.html#4', '骨骼与脊柱健康', '#5ec219', '#fb7804','');
			gensublaytab(lev_div+'resources/resources_bl/resources_bl.html#5', '眼睛/视力健康', '#5ec219', '#fb7804','');
			gensublaytab(lev_div+'resources/resources_bl/resources_bl.html#6', '耳朵/听觉健康/声线', '#5ec219', '#fb7804','');
			gensublaytab(lev_div+'resources/resources_bl/resources_bl.html#7', '其他身体健康问题', '#5ec219', '#fb7804','');
			gensublaytab(lev_div+'resources/resources_bl/resources_bl.html#8', '性教育', '#5ec219', '#fb7804','');
			gensublaytab(lev_div+'resources/resources_bl/resources_bl.html#9', '心理社交健康', '#5ec219', '#fb7804','');
			gensublaytab(lev_div+'resources/resources_bl/resources_bl.html#10', '烟, 酒, 吸毒', '#5ec219', '#fb7804','');
			gensublaytab(lev_div+'resources/resources_bl/resources_bl.html#11', '学习', '#5ec219', '#fb7804','');
			gensublaytab(lev_div+'resources/resources_bl/resources_bl.html#12', '择业', '#5ec219', '#fb7804','');
			genlayerfooter();
		}
	}

}
//end level 2


