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

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

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

var imagePath;
var locationPath;
var langPath;
var langID;

var topButton;
var printPage;

var exLink;

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

getLocationPath();			// Checking hosting location

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

imagePath = locationPath+langPath;

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

/********************* Variable defined for generate the CLF top menu *********************/
var arClfTopMenu = new Array()
	arClfTopMenu[1] = new Array()
	arClfTopMenu[1][1] = "ht"+"tp://search.info.gov.hk/cgi-bin/se.cgi";
	arClfTopMenu[1][2] = "287";	
	arClfTopMenu[1][3] = "Rating and Valuation Department - The Government of the Hong Kong Special Administrative Region";	/****** Department Name ******/
	arClfTopMenu[1][4] = "9";
	arClfTopMenu[1][5] = "ht"+"tp://www.brandhk.gov.hk/brandhk/eindex.htm";
	arClfTopMenu[1][6] = "Brand Hong Kong - Asia's world city";
	arClfTopMenu[1][7] = "GovHK";
	arClfTopMenu[1][8] = "/eng/";
	arClfTopMenu[1][9] = "/text/";
	arClfTopMenu[1][10] = "Text Only";
	arClfTopMenu[1][11] = "/eng/";
	arClfTopMenu[1][12] = "/tc/";
	arClfTopMenu[1][13] = "繁體版";	
	arClfTopMenu[1][14] = "/eng/";	
	arClfTopMenu[1][15] = "/gb/";	
	arClfTopMenu[1][16] = "簡體版";	
	arClfTopMenu[1][17] = "Search";	
	arClfTopMenu[1][18] = "Site Map";	
	arClfTopMenu[1][19] = "Contact Us";	
	arClfTopMenu[1][20] = "rvd";			/****** Value of variable gr_1 ******/
	arClfTopMenu[1][21] = "Graphic Version";	
	arClfTopMenu[1][22] = "/graphics/";
	arClfTopMenu[1][23] = "ht"+"tp://www.gov.hk/en/residents/";
	
	arClfTopMenu[2] = new Array()
	arClfTopMenu[2][1] = "ht"+"tp://search2.info.gov.hk/cgi-bin/se.cgi";
	arClfTopMenu[2][2] = "288";
	arClfTopMenu[2][3] = "香港特別行政區政府 - 差餉物業估價署";		/****** Department Name ******/
	arClfTopMenu[2][4] = "9";
	arClfTopMenu[2][5] = "ht"+"tp://www.brandhk.gov.hk/brandhk/index.htm";
	arClfTopMenu[2][6] = "香港品牌形象 - 亞洲國際都會";
	arClfTopMenu[2][7] = "香港政府一站通";
	arClfTopMenu[2][8] = "/chi/";
	arClfTopMenu[2][9] = "/text/";
	arClfTopMenu[2][10] = "繁體純文字";
	arClfTopMenu[2][11] = "/tc/";
	arClfTopMenu[2][12] = "/gb/";
	arClfTopMenu[2][13] = "簡體版";
	arClfTopMenu[2][14] = "/chi/";
	arClfTopMenu[2][15] = "/en/";
	arClfTopMenu[2][16] = "English";
	arClfTopMenu[2][17] = "搜尋";
	arClfTopMenu[2][18] = "網頁指南";
	arClfTopMenu[2][19] = "聯絡我們";
	arClfTopMenu[2][20] = "rvd";				/****** Value of variable gr_1 ******/
	arClfTopMenu[2][21] = "繁體圖像版";
	arClfTopMenu[2][22] = "/graphics/";
	arClfTopMenu[2][23] = "ht"+"tp://www.gov.hk/tc/residents/";
	
if(document.URL.toString().search('/gb/') != -1)
{
	arClfTopMenu[2][1] = "ht"+"tp://sc.info.gov.hk/gb/search2.info.gov.hk/cgi-bin/se.cgi";
	arClfTopMenu[2][4] = "10";
	arClfTopMenu[2][5] = "ht"+"tp://sc.info.gov.hk/dsclmr/gb/www.brandhk.gov.hk/brandhk/index.htm";
	arClfTopMenu[2][10] = "簡體純文字";
	arClfTopMenu[2][11] = "/gb/";
	arClfTopMenu[2][12] = "/tc/";
	arClfTopMenu[2][13] = "繁體版";
	arClfTopMenu[2][14] = "/gb/";
	arClfTopMenu[2][15] = "/en/";
	arClfTopMenu[2][16] = "English";
	arClfTopMenu[2][21] = "簡體圖像版";
	arClfTopMenu[2][22] = "/graphics/";
	arClfTopMenu[2][23] = "ht"+"tp://sc.info.gov.hk/TuniS/www.gov.hk/tc/residents/";
}
/********************* End of Variable defined for generate the CLF top menu *********************/

/***** Add Section Start *****/
addMenu(1, "About Us","關於我們", "aboutus/index.htm","nav_01.gif","nav_01-over.gif","L","Y","Y");
addMenu(2, "Hotel Facilities","酒店設施", "issues/index.htm","nav_02.gif","nav_02-over.gif","L","Y","Y");
addMenu(3, "Rooms and Suites","客房及套房", "home/index.htm","nav_01.gif","nav_01-over.gif","L","Y","Y");
addMenu(4, "Restaurants and Bar","餐廳及酒吧", "issues/index.htm","nav_02.gif","nav_02-over.gif","L","Y","Y");
addMenu(5, "Catering","盛會場地", "issues/index.htm","nav_02.gif","nav_02-over.gif","L","Y","Y");
addMenu(6, "Special Offers","特別優惠", "issues/index.htm","nav_02.gif","nav_02-over.gif","L","Y","Y");
addMenu(7, "Information","資訊", "issues/index.htm","nav_02.gif","nav_02-over.gif","L","Y","Y");
addMenu(8, "Membership Corner","會員專區", "red/index.asp","nav_02.gif","nav_02-over.gif","L","Y","Y");
//addMenu(8, "Panda Red Carpet","悅來專利會", "issues/index.htm","nav_02.gif","nav_02-over.gif","L","Y","Y");
//addMenu(9, "Little Panda Club","悅來兒童天地", "issues/index.htm","nav_02.gif","nav_02-over.gif","L","Y","Y");

addMenu(10, "Contact Us","聯絡我們", "","","","N","N","N");
addMenu(11, "Photo Gallery","悅來相集", "","","","N","N","N");
addMenu(12, "Site Map","網頁指南", "","","","N","N","N");
addMenu(13, "Online Reservations","網上預留房間", "","","","N","N","N");

/***** Add Section End *****/

/***** Add Sub Section Start *****/
addSubMenu(1, 1, "Hotel Profile","有關樓宇門牌號數的執行守則", "aboutus/profile.asp","Y","Y");
addSubMenu(1, 2, "Philosophy","有關樓宇門牌號數的執行守則", "aboutus/philosophy.asp","Y","Y");
addSubMenu(1, 3, "Management Team","有關樓宇門牌號數的執行守則", "aboutus/management.asp","Y","Y");
addSubMenu(1, 4, "Awards and Accolades","有關樓宇門牌號數的執行守則", "aboutus/awards.asp","Y","Y");
addSubMenu(1, 5, "Location","有關樓宇門牌號數的執行守則", "aboutus/location.asp","Y","Y");
addSubMenu(1, 6, "Newsletter","有關樓宇門牌號數的執行守則", "aboutus/newsletter.asp","Y","Y");
addSubMenu(1, 7, "Career Opportunities","有關樓宇門牌號數的執行守則", "aboutus/career.asp","Y","Y");

addSubMenu(2, 1, "Business Facilities","有關樓宇門牌號數的執行守則", "facilities/business.asp","Y","Y");
addSubMenu(2, 2, "Recreation Facilities","有關樓宇門牌號數的執行守則", "facilities/recreation.asp","Y","Y");
addSubMenu(2, 3, "Shopping Facilities","有關樓宇門牌號數的執行守則", "facilities/shopping.asp","Y","Y");

addSubMenu(3, 1, "Rooms","有關樓宇門牌號數的執行守則", "rooms/rooms.asp","Y","Y");
addSubMenu(3, 2, "Suites","有關樓宇門牌號數的執行守則", "rooms/suites.asp","Y","Y");

addSubMenu(4, 1, "Panda caf&eacute;","有關樓宇門牌號數的執行守則", "restaurants/cafe.asp","Y","Y");
addSubMenu(4, 2, "Balcony","有關樓宇門牌號數的執行守則", "restaurants/balcony.asp","Y","Y");
addSubMenu(4, 3, "YinYue","有關樓宇門牌號數的執行守則", "restaurants/yinyue.asp","Y","Y");
addSubMenu(4, 4, "Sports Bar","有關樓宇門牌號數的執行守則", "restaurants/sports.asp","Y","Y");

addSubMenu(5, 1, "Banquet and Conference","有關樓宇門牌號數的執行守則", "catering/banquet.asp","Y","Y");
addSubMenu(5, 2, "Wedding","有關樓宇門牌號數的執行守則", "catering/wedding.asp","Y","Y");
addSubMenu(5, 3, "Special Occasions","有關樓宇門牌號數的執行守則", "catering/occasions.asp","Y","Y");
addSubMenu(5, 4, "Capacity","有關樓宇門牌號數的執行守則", "catering/capacity.asp","Y","Y");
addSubMenu(5, 5, "Request a Proposal","有關樓宇門牌號數的執行守則", "catering/request.asp","Y","Y");

addSubMenu(6, 1, "Internet Rates","有關樓宇門牌號數的執行守則", "special/internet.asp","Y","Y");
addSubMenu(6, 2, "Local Promotions","有關樓宇門牌號數的執行守則", "special/local.asp","Y","Y");
addSubMenu(6, 3, "Weekly Packages","有關樓宇門牌號數的執行守則", "special/weekly.asp","Y","Y");
addSubMenu(6, 4, "Long Staying Packages","有關樓宇門牌號數的執行守則", "special/long.asp","Y","Y");
if(document.URL.toString().search('/en/')!=-1){
	addSubMenu(6, 5, "Food & Berverage Promotions","有關樓宇門牌號數的執行守則", "special/promotions.asp?id=1","Y","Y");
}else if(document.URL.toString().search('/tc/')!=-1){
	addSubMenu(6, 5, "Food & Berverage Promotions","有關樓宇門牌號數的執行守則", "special/promotions.asp?id=5","Y","Y");
}else if(document.URL.toString().search('/sc/')!=-1){
	addSubMenu(6, 5, "Food & Berverage Promotions","有關樓宇門牌號數的執行守則", "special/promotions.asp?id=9","Y","Y");
}

addSubMenu(7, 1, "Download","有關樓宇門牌號數的執行守則", "information/download.asp","Y","Y");
addSubMenu(7, 2, "Tourist Attractions","有關樓宇門牌號數的執行守則", "information/tourist.asp","Y","Y");

addSubMenu(8, 1, "Panda Red Carpet","悅來專利會", "red/index.asp","Y","Y");
addSubMenu(8, 4, "Panda Circle","Panda Circle 悅來會", "panda_circle/index.asp","Y","Y");
addSubMenu(8, 5, "Panda Club","Panda Club 悅來會", "panda_club/index.asp","Y","Y");
addSubMenu(8, 2, "Little Panda Club","悅來兒童天地", "club/index.asp","Y","Y");
addSubMenu(8, 3, "Panda Friends","悅來之友", "friends/index.asp","Y","Y");

styleSheet();
