﻿function getList(){
	//Initialize the array
	var arrTitle, arrURL;
	arrTitle = new Array();
	arrURL = new Array();

	
	arrURL[0] = "photogallery.html";
	arrURL[1] = "photogallery_5thhkopen.html";
	arrURL[2] = "photogallery_skilled-dragon-dance.html";
	arrURL[3] = "photogallery_self-attainment.html";
	arrURL[4] = "photogallery_inter-school_1.html";
	arrURL[5] = "photogallery_inter-school_2.html";
	arrURL[6] = "photogallery_inter-school_3.html";
	arrURL[7] = "photogallery_inter-school_4.html";
	arrURL[8] = "photogallery_inter-school_5.html";
	arrURL[9] = "photogallery_inter-school_6.html";
	arrURL[10] = "photogallery_inter-school_7.html";
	arrURL[11] = "photogallery_inter-school_8.html";
	arrURL[12] = "photogallery_intl-kung-fu-master1.html";
	arrURL[13] = "photogallery_intl-kung-fu-master2.html";
	arrURL[14] = "photogallery_intl-kung-fu-master3.html";
	arrURL[15] = "photogallery_intl-kung-fu-master4.html";
	arrURL[16] = "photogallery_intl-kung-fu-master5.html";
	arrURL[17] = "photogallery_shaolin1.html";
	arrURL[18] = "photogallery_shaolin2.html";
	arrURL[19] = "photogallery_shaolin3.html";
	arrURL[20] = "photogallery_shaolin4.html";
	arrURL[21] = "photogallery_kowloonshing1.html";
	arrURL[22] = "photogallery_kowloonshing2.html";
	arrURL[23] = "photogallery_asia1.html";
	arrURL[24] = "photogallery_asia2.html";
	arrURL[25] = "photogallery_wts-temple1.html";
	arrURL[26] = "photogallery_wts-temple2.html";
	arrURL[27] = "photogallery3.html";
	arrURL[28] = "photogallery_carnival1.html";
	arrURL[29] = "photogallery_carnival2.html";
	arrURL[30] = "photogallery_carnival3.html";
  arrURL[31] = "photogallery16.html";
  arrURL[32] = "photogallery17.html";      
	arrURL[33] = "photogallery18.html";
	arrURL[34] = "photogallery19.html";      
	arrURL[35] = "photogallery20.html";
	arrURL[36] = "photo_chari.html";
	arrURL[37] = "photo_chari2.html";
	
	
	arrTitle[0] = "鱷魚恤世界夜光龍醒獅錦標賽2012記者會";
	arrTitle[1] = "5th Hong Kong Open Northern Lion Dance Competition";
	arrTitle[2] = "2nd HK Open Skilled Dragon Dance Competition";
	arrTitle[3] = "30th Chinese Martial Arts Self-Attainment Award Display";
	arrTitle[4] = "18th Inter-School Dragon & Lion Dance Championship - 1";
	arrTitle[5] = "18th Inter-School Dragon & Lion Dance Championship - 2";
	arrTitle[6] = "18th Inter-School Dragon & Lion Dance Championship - 3";
	arrTitle[7] = "18th Inter-School Dragon & Lion Dance Championship - 4";
	arrTitle[8] = "18th Inter-School Dragon & Lion Dance Championship - 5";
	arrTitle[9] = "18th Inter-School Dragon & Lion Dance Championship - 6";
	arrTitle[10] = "18th Inter-School Dragon & Lion Dance Championship - 7";
	arrTitle[11] = "18th Inter-School Dragon & Lion Dance Championship - 8";
	arrTitle[12] = "世界功夫群英會2011 - 1";
	arrTitle[13] = "世界功夫群英會2011 - 2";
	arrTitle[14] = "世界功夫群英會2011 - 3";
	arrTitle[15] = "世界功夫群英會2011 - 4";
	arrTitle[16] = "世界功夫群英會2011 - 5";
	arrTitle[17] = "第八屆中國鄭州國際少林武術節 - 1";
	arrTitle[18] = "第八屆中國鄭州國際少林武術節 - 2";
	arrTitle[19] = "第八屆中國鄭州國際少林武術節 - 3";
	arrTitle[20] = "第八屆中國鄭州國際少林武術節 - 4";
	arrTitle[21] = "第一屆九龍城武術節2010 - 1";
	arrTitle[22] = "第一屆九龍城武術節2010 - 2";
	arrTitle[23] = "第3屆亞洲室內運動會 - 1";
	arrTitle[24] = "第3屆亞洲室內運動會 - 2";
	arrTitle[25] = "黃大仙廟會2009 - 1";
	arrTitle[26] = "黃大仙廟會2009 - 2";
	arrTitle[27] = "油尖旺區賀國慶迎東亞巡遊匯演";
	arrTitle[28] = "賀國慶迎東亞傷健共融嘉年華 - 1";
	arrTitle[29] = "賀國慶迎東亞傷健共融嘉年華 - 2";
	arrTitle[30] = "賀國慶迎東亞傷健共融嘉年華 - 3";
  arrTitle[31] = "總會成立39週年會慶暨第16屆就職典禮 - 1";
  arrTitle[32] = "總會成立39週年會慶暨第16屆就職典禮 - 2";
  arrTitle[33] = "總會成立39週年會慶暨第16屆就職典禮 - 3";
  arrTitle[34] = "總會成立39週年會慶暨第16屆就職典禮 - 4";
  arrTitle[35] = "總會成立39週年會慶暨第16屆就職典禮 - 5";
  arrTitle[36] = "全港武林四川送暖賬災大會 - 1";	
	arrTitle[37] = "全港武林四川送暖賬災大會 - 2";



	var i, strSelf;
	strSelf = document.location.href

	for (i = 0 ; i < arrURL.length; i++){
		if (strSelf.substring(strSelf.length - arrURL[i].length, strSelf.length) == arrURL[i]){
			document.writeln("<option value='"+arrURL[i]+"' selected>"+arrTitle[i]+"</option>");
		}
		else{
			document.writeln("<option value='"+arrURL[i]+"'>"+arrTitle[i]+"</option>");
		}
	}

	return;
}

function changeURL(strTarget){
	document.location.href = strTarget;
}
