//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = false;
showHouse = false;
path = '';    //內部為空字串
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-stock1.htm','today-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (showWeekly)
{
	menuNames = menuNames.concat(new Array('weekly'));
	titles = titles.concat(new Array('週末生活版'));
	pages = pages.concat(new Array('today-weekly1.htm'));
}
else
{
	menuNames = menuNames.concat(new Array('supplement'));
	titles = titles.concat(new Array('生活藝文'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
if (showHouse)
{
	menuNames = menuNames.concat(new Array('house'));
	titles = titles.concat(new Array('住宅生活版'));
	pages = pages.concat(new Array('today-house1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','family','medicine','article','art','travel');

names = menuNames.concat(menuNames2);
menus = Array(names.length);
for (i=0; i<menus.length; i++)
{
	menus[i] = new Object();
	menus[i].name = names[i];
}
//====================  end  ================================================

//===========================================================================
//主選單
//==================== begin ================================================
document.write('<TABLE class=block2L cellSpacing=1 cellPadding=3 width=90 border=0>');
document.write('	<TR>');
document.write('		<TD bgColor=#333399>今日要聞</TD>');
document.write('	</TR>');
for (i=0; i<menuNames.length; i++)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tda onMouseOver="showMenu(this,'+menuNames[i]+')" onMouseOut="hideMenu()" style=color:blue;cursor:pointer');
	document.write('				onClick="location.href=\''+path+pages[i]+'\'">'+titles[i]+'</TD>');
	document.write('	</TR>');
}
document.write('	<TR>');
document.write('		<TD bgColor=#cc6600><A class=block2La href="'+path+'Rnews.htm">專題報導</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD bgColor=#666666>服務專區</TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.roclotto.com.tw/" target=_blank>樂透彩券</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'Nnews.htm">統一發票</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><font color=blue><A onmouseover="this.style.cursor=\'pointer\';this.style.color=\'deepskyblue\'" ');
document.write('			onclick="window.open(\'http://www.libertytimes.com.tw/Service/Order.htm\',\'_new\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=770,height=650\');" ');
document.write('			onmouseout="this.style.color=\'blue\'">訂報服務</A></FONT></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '美反對非憲政手段倒扁';
	rows[0].link = 'today-fo1.htm';
																										
	rows[1].text = '916十萬人挺扁 今吹號角';
	rows[1].link = 'today-fo2.htm';
																										
	rows[2].text = '國務費 也款待外國特使團';
	rows[2].link = 'today-fo3.htm';
																										
	rows[3].text = '李君碧350萬元禮券發票疑官邸取走';
	rows[3].link = 'today-fo4.htm';
																										
	rows[4].text = '陳瑞仁：偵訊總統 獲總統本人同意';
	rows[4].link = 'today-fo5.htm';
																										
	rows[5].text = '藍再推罷免 綠促先民生法案';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '工商界：大罷工 台灣經濟先倒';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '激進派綁架 施明德不見了';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '阮銘：民主國家 應在體制內解決';
	rows[8].link = 'today-fo9.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '倒扁阻道 周邊交通塞爆';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '915倒扁轉戰台北車站';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '綠營︰倒扁和平本質改變';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '盧秀燕轉述 美暗示 軍購案十月前要過';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '蘇起：三軍購 藍營只同意一項';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '包機截彎取直 陸委會:歡迎協商';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '聯國不應漠視台灣權益';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '以台灣之名加入聯國 加國台灣同鄉會發聲';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '游錫&#22531;抵美 拚政黨外交';
	rows[8].link = 'today-p9.htm';
																										
	rows[9].text = '外電在地報導 中國要先審查';
	rows[9].link = 'today-p10.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "花束憶故人 莫忘911";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "賓拉丹副手警告 波灣、以色列是新目標";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "工會門口抗爭 香港迪士尼週歲灰頭土臉";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "疆獨鬥士熱比婭 獲諾貝爾和平獎提名";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "全球在位第四長 東加國王病逝";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "準日相安倍表態 不公開續拜靖國";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "救世主東渡日本？青森有個耶穌墓";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "《中英對照讀新聞》Schumacher retires from Formula One 舒馬赫從F1退休";
	rows[7].link = 'today-int8.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '打人出氣！鐵錘打爆路人頭';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '煞星搶劫！ 鐵線勒破運將喉';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '蓋頭賊！法官座車也動';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '血案大突破 吻合命案時間 劉志勤曾買尖嘴鉗';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '故佈疑陣 劉志勤寫求救字條？';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '站牌前偷到空錢包 衰賊算加重竊盜罪';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '家有母老虎 子偷錄毆夫畫面';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '胡瓜詐賭案 田淑玲改供';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '竹監人員 慨助受刑人女兒上學';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '生母拒擔保 16歲女孩沒錢註冊';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '癌母圓了尋子願 昨含笑辭世';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '獲愛心塔位 上進女兒退捐款';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '與天珠邂逅 方季韋寫下新人生觀';
	rows[12].link = 'today-so13.htm';
																										
	rows[13].text = '錢櫃DJ 竊保險箱117萬';
	rows[13].link = 'today-so14.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(15);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '台灣團長白山車禍 2死18傷';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '觀光局慢半拍 交通部狀況外';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '住商騎樓、巷道髒亂 10月開罰';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '刷卡換貼布 花蓮鳳榮骨科罰停業一年';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '無「照」檢舉丟菸蒂 環團批惡法';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = 'KTV空氣品質 76％縣市無檢測設備';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '國際美食賽摘1金1銀1銅 外燴父子檔 泰發光';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '家長泣訴 內壢國中排拒腦麻兒';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '夫子體適能 還要加加油';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '海生館爆卸任館長介入人事';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '五障俱全 登長城挑戰身體極限';
	rows[10].link = 'today-life11.htm';
																										
	rows[11].text = '初秋 台灣黑熊食在辛苦';
	rows[11].link = 'today-life12.htm';
																										
	rows[12].text = '周錫瑋建議︰台北看守所 遷至土城彈藥庫';
	rows[12].link = 'today-life13.htm';
																										
	rows[13].text = '颱風珊珊動向 過幾天明朗';
	rows[13].link = 'today-life14.htm';
																										
	rows[14].text = '工程會主委談平價旅館風波︰BOT、OT議約 將採預評估機制';
	rows[14].link = 'today-life15.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '山塔納 率先18勝';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '費德爾 3連霸';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '霸氣姜建銘－我要成為巨人隊王牌投手';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '8桿之差 德瑞吉輕鬆摘冠';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '台灣電子媒體 被洋基趕出場';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '黃貴裕 一棒打昏獅';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '亞洲盃青少棒錦標賽 我三連霸';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '男子職撞大賽第3站 楊清順 搶進4強';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '年齡 催著車神退休';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '南韓3分砲 轟垮台灣防線';
	rows[9].link = 'today-sp10.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '美元定存 利率向下看';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '美如不升息 宜先簽約鎖定利率';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '提前解約 獲利打八折';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '第三檔ETF 掛牌上市';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '日皇孫景氣 商機逾十億美元';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '菲、印尼股市 燒旺東協冷灶';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '密度冠全球 12吋DRAM廠 台灣明年增五座';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '微軟中心 在台創造產值46億';
	rows[7].link = 'today-e8.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '物價很穩 升息急迫性降低';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '油價跌破66美元 台塑、中油不降價';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '澎湖三筆國有地 百公頃招商';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '高盛預估 明年全球經濟疲軟 台灣續成長';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '和泰車帶頭促銷 車市回溫';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '面板價格回升 零組件廠先受惠';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '月績亮眼 IC設計3雄強攻';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '《國際股市》歐股午盤挫 日港韓大跌';
	rows[7].link = 'today-stock8.htm';
																										
}
menu = null;

menu = getMenu('t');
menu.layer = 0;
menu.menuLayer = 0;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '罷工倒台灣？產值日損300億';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(15);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '胸停蝴蝶  臀露紅印 樂基兒搬家馴黎明';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '鄭元暢淪為遊民 街頭翻垃圾';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '侯佩岑孤枕難眠 老媽夜夜陪睡';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '言承旭慶功超high 拚酒千杯不醉';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '資深港星關海山 驟然病逝';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '杜琪峰搶金馬 自己打自己';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '李佳豫陷三角戀 電到桃太郎';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '李冰冰媚眼勾魂 仔仔超享受';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '孫燕姿跳槽 分身代打送畢業禮';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = 'S.H.E踏入自由 讚嘆第一大報氣派';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '灰狼唱老歌把年輕美眉 羅伯幽默電粉絲';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '西城男孩慶功 尬酒撞球瘋一夜';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '妮可吊菜籃 釣進1億6千萬';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '死神發威 「死亡筆記本」稱霸台北';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '櫻花妹哈勇樣 泡菜妹迷張東健';
	rows[14].link = 'today-show15.htm';
																										
}
menu = null;

menu = getMenu('c');
menu.layer = 5;
menu.menuLayer = 0;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
		rows[0].text = '《今日社論》拜託 台灣需要的是工作不是罷工';
		rows[0].link = 'today-s1.htm';
																	
	rows[1].text = '《自由談》戲子與政客';
	rows[1].link = 'today-f1.htm';
																
		rows[2].text = '《鏗鏘集》站起來、走出去';
		rows[2].link = 'today-f2.htm';
																	
}
menu = null;

menu = getMenu('region');
menu.layer = 11;
menu.menuLayer = 0;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();

	rows[0].text = '大台北新聞　→';
	rows[0].submenu = 'taipei';
	rows[0].link = 'today-taipei0.htm';

	rows[1].text = '北部新聞　　→';
	rows[1].submenu = 'north';
	rows[1].link = 'today-north0.htm';

	rows[2].text = '中部新聞　　→';
	rows[2].submenu = 'center';
	rows[2].link = 'today-center0.htm';

	rows[3].text = '南部新聞　　→';
	rows[3].submenu = 'south';
	rows[3].link = 'today-south0.htm';
}
menu = null;

menu = getMenu('taipei');
menu.layer = 11;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '山坡地考核獎金 被批亂花';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '紅單畫X 300變5萬';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '廚師變洗碗工 上閤屋判付資遣費';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '驗收認知不同 十三行博物館整修 包商槓上縣府';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '國防管理學院遷校 中和爭取代管';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '靜坐阻通勤 繞路卡省時';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '管理事權不一 捷運地下街成公安死角';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '樂觀開朗 百歲人瑞養生有道';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '大樓垃圾丟巷子 鄰居檢舉不停';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '國際無車日 藝人許慧欣代言';
	rows[9].link = 'today-taipei10.htm';
																										
	rows[10].text = '觀音山戰備坑道 預計明年開放';
	rows[10].link = 'today-taipei11.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '假綁匪找對象 班級網頁不設防';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '夫妻吵架 鄰居殺進來';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '路見肇逃 國中女生抄車號 護男童回家';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '基隆公車窗彈弓手 運將落網';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '竹北男子假聊天 偷走50張刮刮樂';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '基隆文昌里竊嫌 偷竊未果全都錄';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '失風賊持刀對峙 加重強盜求7年';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '《社會傳真》農場負責人留遺書 上吊身亡';
	rows[7].link = 'today-north8.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '為中科量身訂做 就服台開張';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '拘留外勞尿遁 和美警分局糗大';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '抽砂船冒火 工人棄船逃';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '賓士撞飛 單車男落地迸腦漿';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '服安眠藥 連撞3車落跑';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '《社會傳真》甩車耍酷上網 駕駛函辦';
	rows[5].link = 'today-center6.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '替代療法戒毒 自首者免繳5萬緩起訴金';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '擄車勒贖 連老友也不放過';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '封口費 3歹徒恐嚇勒索工廠 不從者就砸廠';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '查外勞 高市飛象過河 枋寮員警掛彩';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '走私大陸酒與洋菸被查 丟包逃逸';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = 'KTV尋歡作樂挨打 一男子逃跑被車撞傷';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '收購100多本人頭帳戶 90餘人受害';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '2男子、2姊妹運毒 分被起訴、判刑';
	rows[7].link = 'today-south8.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '你接紅單 他領賞';
	rows[0].link = 'today-o1.htm';
																										
	rows[1].text = '這些人 請先罷工';
	rows[1].link = 'today-o2.htm';
																										
	rows[2].text = 'Responsible China?';
	rows[2].link = 'today-o3.htm';
																										
	rows[3].text = '高牧師的愛心';
	rows[3].link = 'today-o4.htm';
																										
	rows[4].text = '《黃天麟專欄》凱道紅潮超限戰';
	rows[4].link = 'today-o5.htm';
																										
	rows[5].text = '那卡西ＳＰＡ';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '別再考驗男人定力了！';
	rows[6].link = 'today-o7.htm';
																										
	rows[7].text = '我的外省老公';
	rows[7].link = 'today-o8.htm';
																										
	rows[8].text = '請聖嚴法師明察';
	rows[8].link = 'today-o9.htm';
																										
	rows[9].text = '大家一起來畫畫';
	rows[9].link = 'today-o10.htm';
																										
	rows[10].text = '英文秀';
	rows[10].link = 'today-o11.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(6);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '家庭兩性　　→';
		rows[1].submenu = 'family';
		rows[1].link = 'today-family1.htm';
	
		rows[2].text = '健康醫療　　→';
		rows[2].submenu = 'medicine';
		rows[2].link = 'today-medicine1.htm';
	
		rows[3].text = '自由副刊　　→';
		rows[3].submenu = 'article';
		rows[3].link = 'today-article1.htm';
	
		rows[4].text = '藝術文化　　→';
		rows[4].submenu = 'art';
		rows[4].link = 'today-art1.htm';
	
		rows[5].text = '休閒旅遊　　→';
		rows[5].submenu = 'travel';
		rows[5].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '貌合神離 神似機';
	rows[0].link = 'today-fashion1.htm';
																										
	rows[1].text = 'Wow! the Show 場面秀';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '鉑金 渾然天成的美麗';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = 'Alfa Romeo重返台灣<br>Alfa 159 1.9 JTDM搶先試駕';
	rows[3].link = 'today-fashion4.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '綠建築行動 省錢又環保';
	rows[0].link = 'today-family1.htm';
																										
	rows[1].text = '健美體魄 運動員不藏私';
	rows[1].link = 'today-family2.htm';
																										
	rows[2].text = '怕被罵 找媽媽背書';
	rows[2].link = 'today-family3.htm';
																										
	rows[3].text = '換個髮型 對自己好一點';
	rows[3].link = 'today-family4.htm';
																										
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '扁桃腺發炎<br>急慢有分別 療法各不同';
	rows[0].link = 'today-medicine1.htm';
																										
	rows[1].text = '直腸癌手術後<br>排便問題須耐心適應';
	rows[1].link = 'today-medicine2.htm';
																										
	rows[2].text = '組合療法<br>控制藥量 減少副作用';
	rows[2].link = 'today-medicine3.htm';
																										
	rows[3].text = '反應性關節炎<br>易被誤為痛風性關節炎';
	rows[3].link = 'today-medicine4.htm';
																										
	rows[4].text = '口腔若沒傷口<br>親親染Ｂ肝機率低';
	rows[4].link = 'today-medicine5.htm';
																										
	rows[5].text = '迎戰陽光 拒當黑美人';
	rows[5].link = 'today-medicine6.htm';
																										
	rows[6].text = '血尿就怕有腫瘤<br>仔細檢查勿輕忽';
	rows[6].link = 'today-medicine7.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '世紀美聲與愛情';
	rows[0].link = 'today-article1.htm';
																										
	rows[1].text = '孤獨';
	rows[1].link = 'today-article2.htm';
																										
	rows[2].text = '野台戲';
	rows[2].link = 'today-article3.htm';
																										
	rows[3].text = '法國圖書見聞記--下';
	rows[3].link = 'today-article4.htm';
																										
	rows[4].text = '彷彿已經離開';
	rows[4].link = 'today-article5.htm';
																										
	rows[5].text = '夜奔';
	rows[5].link = 'today-article6.htm';
																										
	rows[6].text = '《就是捨不得》';
	rows[6].link = 'today-article7.htm';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '華格納重量級歌手 齊聚台灣<br>NSO破天荒製作《指環》';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '北管代有才人出<br>邱火榮傳人將正式登場';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '幫大提琴找新娘<br>張正傑、趙自強攜手配對';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '柯錫杰掌鏡50年<br>法國出版《Ko Si-Chi（柯錫杰）》攝影集';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '韓國紙藝展';
	rows[4].link = 'today-art5.htm';
																										
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '9月天 出國旅遊揀優惠';
	rows[0].link = 'today-travel1.htm';
																										
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(0);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
	}
	menu = null;
}
if (showHouse)
{
	menu = getMenu('house');
	menu.layer = 14;
	menu.menuLayer = 0;
	menu.rows = new Array(0);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
	}
	menu = null;
}
//====================  end  ================================================

//===========================================================================
//產生tables
//==================== begin ================================================
for (j=0; j<menus.length; j++)
{
	var previousRowType = '';
	if (menus[j].parentMenu == null)
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu(null,null) onMouseOut=hideMenu()>');
	else
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu2(null,null) onMouseOut=hideMenu2()>');

	for (i=0; i<menus[j].rows.length; i++)
	{
		if (previousRowType!='' && menus[j].rows[i].type==null)
		{
			document.write('<tr bgcolor=#00CCFF height=2 style=cursor:default>');
			document.write('	<td></td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].type && menus[j].rows[i].type!=previousRowType)
		{
			document.write('<tr bgcolor=#00CCFF height='+rowHeight+' style="cursor:default">');
			document.write('	<td>《'+menus[j].rows[i].type+'》</td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].submenu)
		{
			document.write('<tr onMouseOver="incell(this);showMenu2(this,'+menus[j].rows[i].submenu+')" onMouseOut="outcell(this);hideMenu2()" bgcolor=#C2E5FF height='+rowHeight+'>');
			if (menus[j].rows[i].link)
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">'+menus[j].rows[i].text+'</td>');
			else
				document.write('	<td>'+menus[j].rows[i].text+'</td>');
			document.write('</tr>');
		}
		else 
		{
			if (menus[j].rows[i].type == null)
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell(this) bgcolor=#C2E5FF height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">◎'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
			else
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell2(this) bgcolor=#41DAAA height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">．'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
		}

		previousRowType = menus[j].rows[i].type==null? '': menus[j].rows[i].type;
	}

	document.write('</table>');
}
//====================  end  ================================================

var activeRow,activeMenu1,activeRow1,activeMenu2;
var protrude1;
var timer,timer2;
var hide,hide2

function getMenu(name)
{
	index = -1;
	for (i=0; i<menus.length; i++)
		if (menus[i].name == name)
		{
			index = i;
			break;
		}
	if (index != -1) return menus[index];
	else return null;
}

function showMenu(row,menu)
{
	if (activeRow)
	{
		hide = true;
		hideAllMenu();
	}
	hide = false;
	if (row)	activeRow = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu1 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu1.id).layer;
	protrude1 = defaultTop-document.body.scrollTop+activeMenu1.offsetHeight-document.body.clientHeight;
	if (protrude1 > 0)	
		activeMenu1.style.top = defaultTop-protrude1;
	else
		activeMenu1.style.top = defaultTop;
		
	activeMenu1.style.visibility = 'visible';
}

function hideMenu()
{
	clearTimeout(timer);
	hide = true;
	timer = setTimeout(hideAllMenu,600);
}

function hideAllMenu()
{
	if (hide)
	{
		activeRow.style.backgroundColor = '#FAF9F5';
		activeMenu1.style.visibility = 'hidden';
	}
}

function showMenu2(row,menu)
{
	if (activeRow1)
	{
		hide2 = true;
		hideAllMenu2();
	}
	hide = false;
	hide2 = false;
	if (row)	activeRow1 = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	activeRow1.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu2 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu2.id).layer;
	protrude2 = defaultTop-document.body.scrollTop+activeMenu2.offsetHeight-document.body.clientHeight;
	if (protrude2 > 0)	
	{
		if (protrude1 > protrude2)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop-protrude2;
	}
	else
	{
		if (protrude1 > 0)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop;
	}
	
	activeMenu1.style.visibility = 'visible';
	activeMenu2.style.visibility = 'visible';
}

function hideMenu2()
{
	hideMenu();
	clearTimeout(timer2);
	hide2 = true;
	timer2 = setTimeout(hideAllMenu2,600);
}

function hideAllMenu2()
{
	if (hide2) {
		activeRow1.style.backgroundColor = '#C2E5FF';
		activeMenu2.style.visibility = 'hidden';
	}
}

function outcell(cell)
{
	cell.style.backgroundColor = '#C2E5FF';
	cell.style.color = 'black';
}

function outcell2(cell)
{
	cell.style.backgroundColor = '#41DAAA';
	cell.style.color = 'black';
}

function incell(cell)
{
	cell.style.backgroundColor = '#FFCCFF';
	cell.style.color = 'blue';
}
