﻿function getList(){
	//Initialize the array
	var arrTitle, arrURL;
	arrTitle = new Array();
	arrURL = new Array();

	arrURL[0] = "../../publish.php";
	arrURL[1] = "maga01.php";
	arrURL[2] = "maga01.php";
	arrURL[3] = "maga01b.php";
	arrURL[4] = "maga02.php";
	arrURL[5] = "maga03.php";
	arrURL[6] = "maga04.php";
	arrURL[7] = "maga05.php";
	arrURL[8] = "maga06.php";
	arrURL[9] = "maga07.php";
	arrURL[10] = "maga08.php";
	arrURL[11] = "maga09.php";
	arrURL[12] = "maga10.php";
	


	arrTitle[0] = "&laquo; 出版刊物主頁";
	arrTitle[1] = "二○○七年三月（第二十三期）&#187;";
	arrTitle[2] = "&nbsp;&nbsp;-- 封面故事 [1]";
	arrTitle[3] = "&nbsp;&nbsp;-- 封面故事 [2]";
	arrTitle[4] = "&nbsp;&nbsp;-- 特別消息";
	arrTitle[5] = "&nbsp;&nbsp;-- 議會速遞";
	arrTitle[6] = "&nbsp;&nbsp;-- 特別消息";
	arrTitle[7] = "&nbsp;&nbsp;-- 社區新知";
	arrTitle[8] = "&nbsp;&nbsp;-- 健安計劃";
	arrTitle[9] = "&nbsp;&nbsp;-- 活動剪影";
	arrTitle[10] = "&nbsp;&nbsp;-- 最新消息 [1]";
	arrTitle[11] = "&nbsp;&nbsp;-- 最新消息 [2]";
	arrTitle[12] = "&nbsp;&nbsp;-- 齊來參與";
	
	

	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;
}