var x = 1;	 //menuObj.length
var y = 1;	 //subMenuObj.length
var z = 1;	 //HomeIconObj.length

var menuObj = new Array();
var subMenuObj = new Array();
var HomeIconObj = new Array();

var Selected_ID;
var Selected_Sub;
var revisionDate;
var reviewDate;

var imagePath;
var locationPath;
var viewingPath;
var langPath;
var langID;
var isText;

var topButton;
var printPage;

var exLink;

var prodURL='';
var HomePath='';

getLocationPath();			// Checking hosting location

if(document.URL.toString().search('/text/')!=-1){
	isText=1;
}

if(!isText){
	document.write('<script language="JavaScript" src="' + locationPath + '/js/swfobject.js"></script>');
};

/*if(location.href.toString().search('westcomzivo')!=-1){			//Setting kanhan Server
	gb_urlPath='common.westcomzivo.com/gb/';
}else{
	gb_urlPath='sc.info.gov.hk/gb/';
}*/

gb_urlPath='';

if(document.URL.toString().search('/gb/')!=-1){
	langID=2;
	langPath='/gb/';
}
else if(document.URL.toString().search('/tc/')!=-1){
	langID=1;
	langPath='/tc/';
}else{
	langID=0;
	langPath='/en/';
}

imagePath = locationPath + '/images' + langPath;

if(window.name=='PrintPage'){
	printPage=1;
}

var headerIndex = new Array();

headerIndex[0]="";
headerIndex[1]="/";
headerIndex[2]="facts";
headerIndex[3]="facts";
headerIndex[4]="FAQ";
headerIndex[5]="basiclawtext";
headerIndex[6]="committee";
headerIndex[7]="materials";
//headerIndex[8]="publications/speeches";
//headerIndex[9]="publications/speeches";
//headerIndex[10]="publications/releases";
headerIndex[8]="speeches";
headerIndex[9]="speeches";
headerIndex[10]="releases";
if(langID==1)
headerIndex[11]="http://www.doj.gov.hk/chi/public/pub20030002.htm";
else if(langID==2)
headerIndex[11]="http://www.doj.gov.hk/sc/public/pub20030002.htm";
else
headerIndex[11]="http://www.doj.gov.hk/eng/public/pub20030002.htm";
headerIndex[12]="multimedia";
headerIndex[13]="multimedia";
headerIndex[14]="games";
headerIndex[15]="highlights";

headerIndex[16]="exhibition";

headerIndex[17]="library";
headerIndex[18]="links";
headerIndex[19]="news";
headerIndex[20]="search";
headerIndex[21]="sitemap";
headerIndex[22]="disclaimer";
headerIndex[23]="copyright";
//headerIndex[23]="highlights";


var directory = new Array();

directory[0]="";
directory[1]="/";
directory[2]="facts";
directory[3]="facts";
directory[4]="materials/FAQ";
directory[5]="basiclawtext";
directory[6]="committee";
directory[7]="materials";
directory[8]="publications/speeches";
directory[9]="publications/speeches";
directory[10]="publications/releases";
if(langID==1)
directory[11]="http://www.doj.gov.hk/chi/public/pub20030002.htm";
else if(langID==2)
directory[11]="http://www.doj.gov.hk/sc/public/pub20030002.htm";
else
directory[11]="http://www.doj.gov.hk/eng/public/pub20030002.htm";
directory[12]="multimedia";
directory[13]="multimedia";
directory[14]="games";
directory[15]="highlights";

directory[16]="exhibition";

directory[17]="library";
directory[18]="links";
directory[19]="news";
directory[20]="search";
directory[21]="sitemap";
directory[22]="disclaimer";
directory[23]="copyright";
directory[24]="highlights";



var title_name= new Array()

title_name[0] = new Array();
title_name[0][0]="What's New ";
title_name[0][1]="Welcome Message";
title_name[0][2]="Some Facts about the Basic Law";
title_name[0][3]="Facts";
title_name[0][4]="FAQ";
title_name[0][5]="Basic Law Full Text";
title_name[0][6]="Basic Law Promotion Steering Committee";
title_name[0][7]="Materials Related to the Interpretation on the Basic Law and Decisions by the Standing Committee of the National People's Congress";
title_name[0][8]="Publications and Press Releases";
title_name[0][9]="Important Speeches";
title_name[0][10]="Government Press Releases";
title_name[0][11]="Basic Law Bulletin";
title_name[0][12]="Multimedia Information";
title_name[0][13]="Basic Law TV Announcements";
title_name[0][14]="Basic Law Web Games";
title_name[0][15]="Activities Highlights";

title_name[0][16]="Exhibition";

title_name[0][17]="Basic Law Library";
title_name[0][18]="Useful Links";
title_name[0][19]="What's New";
title_name[0][20]="Search";
title_name[0][21]="Site Map";
title_name[0][22]="Important Notices";
title_name[0][23]="Copyright Notice";
title_name[0][24]="Copyright Notice";
title_name[1] = new Array();
title_name[1][0]="最新資訊";
title_name[1][1]="歡迎辭";
title_name[1][2]="《基本法》簡介";
title_name[1][3]="簡介";
title_name[1][4]="常見問題";
title_name[1][5]="《基本法》全文";
title_name[1][6]="基本法推廣督導委員會";
title_name[1][7]="與人大常委會解釋基本法及決定的有關資料";
title_name[1][8]="刊物及新聞公報";
title_name[1][9]="重要講辭";
title_name[1][10]="政府新聞公報";
title_name[1][11]="基本法簡訊";
title_name[1][12]="多媒體資訊";
title_name[1][13]="《基本法》宣傳短片";
title_name[1][14]="基本法網上問答遊戲";
title_name[1][15]="活動花絮";

title_name[1][16]="標題展板";

title_name[1][17]="基本法圖書館";
title_name[1][18]="相關網站";
title_name[1][19]="最新資訊";
title_name[1][20]="搜尋";
title_name[1][21]="網站指南";
title_name[1][22]="重要告示";
title_name[1][23]="版權聲明";
title_name[1][24]="版權聲明";
title_name[2] = new Array();
title_name[2][0]="最新资讯";
title_name[2][1]="欢迎辞";
title_name[2][2]="《基本法》简介";
title_name[2][3]="简介";
title_name[2][4]="常见问题";
title_name[2][5]="《基本法》全文";
title_name[2][6]="基本法推广督导委员会";
title_name[2][7]="与人大常委会解释基本法及决定的有关资料";
title_name[2][8]="刊物及新闻公报";
title_name[2][9]="重要讲辞";
title_name[2][10]="政府新闻公报";
title_name[2][11]="基本法简讯";
title_name[2][12]="多媒体资讯";
title_name[2][13]="《基本法》宣传短片";
title_name[2][14]="基本法网上问答游戏";
title_name[2][15]="活动花絮";

title_name[2][16]="标题展板";

title_name[2][17]="基本法图书馆";
title_name[2][18]="相关网站";
title_name[2][19]="最新资讯";
title_name[2][20]="搜寻";
title_name[2][21]="网站指南";
title_name[2][22]="重要告示";
title_name[2][23]="版权声明";
title_name[2][24]="版权声明";
var text_title_level_1 = new Array(1,2,5,6,7,8,12,17,18,19,20,21,22,23);
