var rel_path = "/fhss";

var temp_href = window.location.href;
if (temp_href.indexOf("/text/") != -1) {
		rel_path = rel_path + "/text";
}

var sitemap = new Array();
var sitemapTC = new Array();
var sitemapSC = new Array();
sitemap[1] = new Array("Home",rel_path +"/index.html");

sitemap[2] =  new Array("Dean's Message",rel_path +"/message.html");


sitemap[3] = new Array();
sitemap[3][0] = new Array("About Us",rel_path +"/aboutus.html");
sitemap[3][1] = new Array("History and Development",rel_path +"/aboutus.html");
sitemap[3][2] = new Array("Vision and Mission",rel_path +"/aboutus.html");


sitemap[4] = new Array();
sitemap[4][0] = new Array("Our People",rel_path +"/ourpeople.html");
//sitemap[4][1] = new Array("Non-academic Staff","ourpeople.html");
//sitemap[4][2] = new Array("Academic Staff","ourpeople.html");

sitemap[5] = new Array();
sitemap[5][0] = new Array("Health Database",rel_path +"/healthdatabase.html");
sitemap[5][1] = new Array("Hot News",rel_path +"/healthdatabase.html");
sitemap[5][2] = new Array("Upcoming Events",rel_path +"/healthdatabase.html");
sitemap[5][3] = new Array("Newsletter",rel_path +"/healthdatabase.html");

sitemap[6] = new Array();
sitemap[6][0] = new Array("WIE Corner",rel_path +"/wie.html");
sitemap[6][1] = new Array("About Us",rel_path +"/wie.html");
sitemap[6][2] = new Array("News and Events",rel_path +"/wie.html");
sitemap[6][3] = new Array("Photo Gallery",rel_path +"/wie.html");
sitemap[6][4] = new Array("Credit Card Privilege Programme",rel_path +"/wie.html");
sitemap[6][5] = new Array("Contribution to the Faculty",rel_path +"/wie.html");
sitemap[6][6] = new Array("Free email",rel_path +"/wie.html");
sitemap[6][7] = new Array("Contatct us",rel_path +"/wie.html");
sitemap[6][8] = new Array("Departments' Alumni website link",rel_path +"/wie.html");

sitemap[7] = new Array();
sitemap[7][0] = new Array("Departments",rel_path +"/departments.html");
sitemap[7][1] = new Array("Department of Applied Social Sciences","http://www.polyu.edu.hk/~apss");
sitemap[7][2] = new Array("Department of Health Technology and Informatics","http://www.polyu.edu.hk/hti");
sitemap[7][3] = new Array("Department of Rehabilitation Sciences","http://www.rs.polyu.edu.hk/");
sitemap[7][4] = new Array("School of Nursing","http://sn.polyu.edu.hk/");
sitemap[7][5] = new Array("School of Optometry","http://www.polyu.edu.hk/so");

sitemap[8] = new Array();
sitemap[8][0] = new Array("Academic Programmes",rel_path +"/programmes.html");
sitemap[8][1] = new Array("Postgraduate Programmes",rel_path +"/programmes/postgraduate.html");
sitemap[8][2] = new Array("Undergraduate Degree Programmes",rel_path +"/programmes/undergraduate.html");
sitemap[8][3] = new Array("Sub-Degree Programmes",rel_path +"/programmes/subgraduate.html");

sitemap[9] = new Array();
sitemap[9][0] = new Array("Research and Development",rel_path +"/research.html");
sitemap[9][1] = new Array("Squina International Centre for Infection Control","http://squina-cic.fhss.polyu.edu.hk/");
sitemap[9][2] = new Array("Department of Applied Social Sciences","http://www.polyu.edu.hk/~apss");
sitemap[9][3] = new Array("Department of Health Technology and Informatics","http://www.polyu.edu.hk/hti");
sitemap[9][4] = new Array();
sitemap[9][4][0] = new Array("Department of Rehabilitation Sciences","http://www.rs.polyu.edu.hk/");
sitemap[9][4][1] = new Array("Centre for East-Meets-West Rehabilitation Sciences","http://www.rs.polyu.edu.hk/cemw/html/members.htm");
sitemap[9][5] = new Array();
sitemap[9][5][0] = new Array("School of Nursing","http://sn.polyu.edu.hk/");
sitemap[9][5][1] = new Array("Centre for Integrative Digital Health (Formerly Centre for Telehealth and Telecare)","http://www.i-digitalhealth.org.hk");
sitemap[9][6] = new Array();
sitemap[9][6][0] = new Array("School of Optometry","http://www.polyu.edu.hk/so");
sitemap[9][6][1] = new Array("Centre for Myopia Research","http://www.polyu.edu.hk/so/asd1/htm/centre.htm");
sitemap[9][7] = new Array("Human Subjects Ethics Sub-Committee",rel_path +"/human_sub.html");
sitemap[9][8] = new Array("Faculty Distinguished Thesis Awards",rel_path +"/thesis_award.html");

sitemap[10] = new Array("Awards and Recognitions",rel_path +"/awards.html");
sitemap[11] = new Array("Contact Us",rel_path +"/contactus.html");
sitemap[12] = new Array("Privacy Policy Statement",rel_path +"/privacypolicy.html");

sitemap[13] = new Array("Sitemap",rel_path +"/sitemap.html");
sitemap[14] = new Array("E Card",rel_path +"/ecard.html");

sitemapTC[1] = new Array("",rel_path +"/tc/index.html");
sitemapTC[2] =  new Array("皘杠",rel_path +"/tc/message.html");

sitemapTC[3] = new Array();
sitemapTC[3][0] = new Array("闽и",rel_path +"/tc/aboutus.html");
sitemapTC[3][1] = new Array("History and Development",rel_path +"/tc/aboutus.html");
sitemapTC[3][2] = new Array("Vision and Mission",rel_path +"/tc/aboutus.html");


sitemapTC[4] = new Array();
sitemapTC[4][0] = new Array("毙戮",rel_path +"/tc/ourpeople.html");
//sitemapTC[4][1] = new Array("Non-academic Staff",rel_path +"/tc/ourpeople.html");
//sitemapTC[4][2] = new Array("Academic Staff",rel_path +"/tc/ourpeople.html");

sitemapTC[5] = new Array();
sitemapTC[5][0] = new Array("玂胺畐",rel_path +"/tc/healthdatabase.html");
sitemapTC[5][1] = new Array("胺眃粿初",rel_path +"/tc/healthdatabase.html");
sitemapTC[5][2] = new Array("玂胺戈畐",rel_path +"/tc/healthdatabase.html");
sitemapTC[5][3] = new Array("胺癟",rel_path +"/tc/healthdatabase.html");

sitemapTC[6] = new Array();
sitemapTC[6][0] = new Array("WIE堕","../tc/wie.html");
sitemapTC[6][1] = new Array("闽и",rel_path +"/tc/wie.html");
sitemapTC[6][2] = new Array("News and Events",rel_path +"/tc/wie.html");
sitemapTC[6][3] = new Array("Photo Gallery",rel_path +"/tc/wie.html");
sitemapTC[6][4] = new Array("Credit Card Privilege Programme",rel_path +"/tc/wie.html");
sitemapTC[6][5] = new Array("Contribution to the Faculty",rel_path +"/tc/wie.html");
sitemapTC[6][6] = new Array("Free email",rel_path +"/tc/wie.html");
sitemapTC[6][7] = new Array("Contatct us",rel_path +"/tc/wie.html");
sitemapTC[6][8] = new Array("Departments' Alumni website link",rel_path +"/tc/wie.html");

sitemapTC[7] = new Array();
sitemapTC[7][0] = new Array("厩╰",rel_path +"/tc/departments.html");
sitemapTC[7][1] = new Array("莱ノ穦厩╰*","http://www.polyu.edu.hk/~apss");
sitemapTC[7][2] = new Array("洛励мの戈癟厩╰*","http://www.polyu.edu.hk/hti");
sitemapTC[7][3] = new Array("眃確獀励厩╰*","http://www.rs.polyu.edu.hk/");
sitemapTC[7][4] = new Array("臔瞶厩皘*","http://sn.polyu.edu.hk/");
sitemapTC[7][5] = new Array("泊跌厩皘*","http://www.polyu.edu.hk/so");

sitemapTC[8] = new Array();
sitemapTC[8][0] = new Array("揭祘戈",rel_path +"/tc/programmes.html");
sitemapTC[8][1] = new Array("╯皘揭祘",rel_path +"/tc/programmes/postgraduate.html");
sitemapTC[8][2] = new Array("厩厩揭祘",rel_path +"/tc/programmes/undergraduate.html");
sitemapTC[8][3] = new Array("獶厩揭祘",rel_path +"/tc/programmes/subgraduate.html");

sitemapTC[9] = new Array();
sitemapTC[9][0] = new Array("╯の祇甶",rel_path +"/tc/research.html");
sitemapTC[9][1] = new Array("撤孽瓣悔稰琕北いみ","http://squina-cic.fhss.polyu.edu.hk/");
sitemapTC[9][2] = new Array("莱ノ穦厩╰*","http://www.polyu.edu.hk/~apss");
sitemapTC[9][3] = new Array("洛励мの戈癟厩╰*","http://www.polyu.edu.hk/hti");
sitemapTC[9][4] = new Array();
sitemapTC[9][4][0] = new Array("眃確獀励厩╰*","http://www.rs.polyu.edu.hk/");
sitemapTC[9][4][1] = new Array("い﹁頟笛ぇ眃確厩いみ*","http://www.rs.polyu.edu.hk/cemw/html/members.htm");
sitemapTC[9][5] = new Array();
sitemapTC[9][5][0] = new Array("臔瞶厩皘*","http://sn.polyu.edu.hk/");
sitemapTC[9][5][1] = new Array("挡计絏胺眃いみ (玡ō换禯洛臔いみ)","http://www.i-digitalhealth.org.hk");
//sitemapTC[9][5][1] = new Array("换禯洛臔いみ*",rel_path +"/telehealth.html");
sitemapTC[9][6] = new Array();
sitemapTC[9][6][0] = new Array("泊跌厩皘*","http://www.polyu.edu.hk/so");
sitemapTC[9][6][1] = new Array("跌╯いみ*","http://www.polyu.edu.hk/so/asd1/htm/centre.htm");
sitemapTC[9][7] = new Array("摸龟喷癸禜巨舱〆穦*",rel_path +"/human_sub.html");
sitemapTC[9][8] = new Array("厩皘城阶ゅ贱*",rel_path +"/thesis_award.html");
//sitemapTC[9][7] = new Array("人类实验对象操守小组委员会*",rel_path +"/tc/human_sub.html");

sitemapTC[10] = new Array("贱兜凝",rel_path +"/tc/awards.html");
sitemapTC[11] = new Array("羛蹈и",rel_path +"/tc/contactus.html");
sitemapTC[12] = new Array("╬留現郸羘*",rel_path +"/privacypolicy.html");

sitemapTC[13] = new Array("呼瓜",rel_path +"/tc/sitemap.html");
sitemapTC[14] = new Array("筿禤",rel_path +"/tc/ecard.html");

sitemapSC[1] = new Array("首页",rel_path +"/sc/index.html");
sitemapSC[2] =  new Array("院长的话",rel_path +"/sc/message.html");

sitemapSC[3] = new Array();
sitemapSC[3][0] = new Array("关于我们",rel_path +"/sc/aboutus.html");
sitemapSC[3][1] = new Array("History and Development",rel_path +"/sc/aboutus.html");
sitemapSC[3][2] = new Array("Vision and Mission",rel_path +"/sc/aboutus.html");


sitemapSC[4] = new Array();
sitemapSC[4][0] = new Array("教职员",rel_path +"/sc/ourpeople.html");
//sitemapSC[4][1] = new Array("Non-academic Staff",rel_path +"/sc/ourpeople.html");
//sitemapSC[4][2] = new Array("Academic Staff",rel_path +"/sc/ourpeople.html");

sitemapSC[5] = new Array();
sitemapSC[5][0] = new Array("最新动向",rel_path +"/sc/healthdatabase.html");
sitemapSC[5][1] = new Array("最新消息",rel_path +"/sc/healthdatabase.html");
sitemapSC[5][2] = new Array("最新活动",rel_path +"/sc/healthdatabase.html");
sitemapSC[5][3] = new Array("Newsletter",rel_path +"/sc/healthdatabase.html");

sitemapSC[6] = new Array();
sitemapSC[6][0] = new Array("WIE园地","../sc/wie.html");
sitemapSC[6][1] = new Array("关于我们",rel_path +"/sc/wie.html");
sitemapSC[6][2] = new Array("News and Events",rel_path +"/sc/wie.html");
sitemapSC[6][3] = new Array("Photo Gallery",rel_path +"/sc/wie.html");
sitemapSC[6][4] = new Array("Credit Card Privilege Programme",rel_path +"/sc/wie.html");
sitemapSC[6][5] = new Array("Contribution to the Faculty",rel_path +"/sc/wie.html");
sitemapSC[6][6] = new Array("Free email",rel_path +"/sc/wie.html");
sitemapSC[6][7] = new Array("Contatct us",rel_path +"/sc/wie.html");
sitemapSC[6][8] = new Array("Departments' Alumni website link",rel_path +"/sc/wie.html");

sitemapSC[7] = new Array();
sitemapSC[7][0] = new Array("学系",rel_path +"/sc/departments.html");
sitemapSC[7][1] = new Array("应用社会科学系*","http://www.polyu.edu.hk/~apss");
sitemapSC[7][2] = new Array("医疗科技及资讯学系*","http://www.polyu.edu.hk/hti");
sitemapSC[7][3] = new Array("康复治疗科学系*","http://www.rs.polyu.edu.hk/");
sitemapSC[7][4] = new Array("护理学院*","http://sn.polyu.edu.hk/");
sitemapSC[7][5] = new Array("眼科视光学院*","http://www.polyu.edu.hk/so");

sitemapSC[8] = new Array();
sitemapSC[8][0] = new Array("课程资料",rel_path +"/sc/programmes.html");
sitemapSC[8][1] = new Array("研究院课程",rel_path +"/sc/programmes/postgraduate.html");
sitemapSC[8][2] = new Array("学士学位课程",rel_path +"/sc/programmes/undergraduate.html");
sitemapSC[8][3] = new Array("非学位课程",rel_path +"/sc/programmes/subgraduate.html");

sitemapSC[9] = new Array();
sitemapSC[9][0] = new Array("研究及发展",rel_path +"/sc/research.html");
sitemapSC[9][1] = new Array("雪肌兰国际感染控制中心","http://squina-cic.fhss.polyu.edu.hk/");
sitemapSC[9][2] = new Array("应用社会科学系*","http://www.polyu.edu.hk/~apss");
sitemapSC[9][3] = new Array("医疗科技及资讯学系*","http://www.polyu.edu.hk/hti");
sitemapSC[9][4] = new Array();
sitemapSC[9][4][0] = new Array("康复治疗科学系*","http://www.rs.polyu.edu.hk/");
sitemapSC[9][4][1] = new Array("中西荟萃之康复科学中心*","http://www.rs.polyu.edu.hk/cemw/html/members.htm");
sitemapSC[9][5] = new Array();
sitemapSC[9][5][0] = new Array("护理学院*","http://sn.polyu.edu.hk/");
sitemapSC[9][5][1] = new Array("结合数码健康中心 (前身为遥距医护中心)","http://www.i-digitalhealth.org.hk");
//sitemapSC[9][5][1] = new Array("遥距医护中心*",rel_path +"/telehealth.html");
sitemapSC[9][6] = new Array();
sitemapSC[9][6][0] = new Array("眼科视光学院*","http://www.polyu.edu.hk/so");
sitemapSC[9][6][1] = new Array("近视研究中心*","http://www.polyu.edu.hk/so/asd1/htm/centre.htm");
//sitemapSC[9][7] = new Array("人类实验对象操守小组委员会",rel_path +"/sc/human_sub.html");
sitemapSC[9][7] = new Array("人类实验对象操守小组委员会*",rel_path +"/human_sub.html");
sitemapSC[9][8] = new Array("学院杰出论文奖*",rel_path +"/thesis_award.html");

sitemapSC[10] = new Array("奖项一览",rel_path +"/sc/awards.html");
sitemapSC[11] = new Array("联络我们",rel_path +"/sc/contactus.html");
sitemapSC[12] = new Array("私隐政策声明*",rel_path +"/privacypolicy.html");

sitemapSC[13] = new Array("网站地图",rel_path +"/sc/sitemap.html");
sitemapSC[14] = new Array("电子贺卡",rel_path +"/sc/ecard.html");


function printLink(inArr, popup){
	if (popup == true)
		document.write('<a href="'+inArr[1]+'" target="_blank">'+inArr[0]+'</a>');
	else 
		document.write('<a href="'+inArr[1]+'">'+inArr[0]+'</a>');
}

function printLinkCSS(inArr, popup, classname){
	if (popup == true)
		document.write('<a href="'+inArr[1]+'" target="_blank" class="'+classname+'">'+inArr[0]+'</a>');
	else 
		document.write('<a href="'+inArr[1]+'" style="'+classname+'">'+inArr[0]+'</a>');
}

function engOnly(language){
	if (language == 1) {
		document.write ("<i>* English version only</i>");
		return;
	}
	if (language == 2) {
		document.write ("<i>* 矗ㄑ璣ゅ</i>");
		return;
	}
	if (language == 3) {
		document.write  ("<i>* 只提供英文版</i>");
	}
}