//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = 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'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','living','family','medicine','article','young','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 href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A 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(5);
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 = '吳釗燮：中國阻撓三通 睜眼說瞎話';
	rows[1].link = 'today-fo2.htm';
																										
	rows[2].text = '涉洗錢 獲緩起訴 須立碑悔過';
	rows[2].link = 'today-fo3.htm';
																										
	rows[3].text = '義務勞務後…她變成志工';
	rows[3].link = 'today-fo4.htm';
																										
	rows[4].text = '緩起訴 師法日本';
	rows[4].link = 'today-fo5.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
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-p1.htm';
																										
	rows[1].text = '318遊行反併吞 綠籲朝野參與';
	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 = 'NCC通過委員自律規範';
	rows[6].link = 'today-p7.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
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-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 = '監獄劫囚 以巴駁火';
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = '《中英對照讀新聞》Famous hawks return to posh digs on New York City apartment 著名老鷹重返紐約市公寓的時髦棲所';
	rows[8].link = 'today-int9.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 = '要命！ 路洞吞掉台電車 4人枉斷魂';
	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 = '變態摸臀狼 戴Bra伸色爪';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '刑事局播影帶 駁斥照假';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '319後 王幸男被監聽半年';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '捐助家暴小孩 小慧走出家暴陰影';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '救命之恩 低收入戶月捐500元回饋醫院';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '低收入戶遺愛助學 老村長重諾辦到';
	rows[12].link = 'today-so13.htm';
																										
	rows[13].text = '同窗當雙腳 癱瘓生快樂上課';
	rows[13].link = 'today-so14.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '藥袋6標示 34％診所不配合';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '衛生署：我限30月齡小牛 安全無虞';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '消基會：美牛肉強制下架 暫停進口';
	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 = '全勤者免服務費 六輕泰勞抗爭歡呼落幕';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '要求加薪 寶成越南廠 八千員工罷工';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = 'Ambien安眠藥 吃了會夢遊';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = 'Yahoo!奇摩 音樂頻道上線<br>合法線上音樂 不再一家通吃';
	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';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《WBC》高麗棒 海扁美國';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '《WBC》多明尼加 逼退古巴';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '《WBC》委內瑞拉 雙響砲';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '陳家偉 砲打鯨';
	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 = '《HBL》仇家對決 南山宰能仁';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '《HBL》金甌撂倒淡商';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '奇德本季第6次大三元';
	rows[8].link = 'today-sp9.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-e1.htm';
																										
	rows[1].text = '太陽能模組 未來可在台驗證';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '豐田油電車登台';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '多媒體傳播 報業新挑戰';
	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 = '台新金私募 引進日、美商';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '英研究機構CIR評比台灣101家上市櫃公司 7企業獲評公司治理A級';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '電話行銷保險 可要求錄音';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '北區22宗國有地明標售';
	rows[9].link = 'today-e10.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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-stock1.htm';
																										
	rows[1].text = '《理財Q&A》遺囑信託 保障子女權益';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '台幣走強 升值6.6分';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '摩根：預估Fed升息至5.25%';
	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設計 法人高捧';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '明基本業 上季虧90億';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '利率緊箍咒 金融股價 傷得不輕';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '鴻海新軍 崴強今42元掛牌';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = '台塑科技三寶 開花結果';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = '台股下跌 外資看法 卡債殺傷力 勝過溫家寶';
	rows[11].link = 'today-stock12.htm';
																										
	rows[12].text = '《期指觀測站》外資慣性賣超 操作宜保守';
	rows[12].link = 'today-stock13.htm';
																										
	rows[13].text = '《國際股市》德英午盤走升 日股收低';
	rows[13].link = 'today-stock14.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 = '腦傷失智 三資優生復元';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(12);
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 = '郭品超與女友越洋開打';
	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 = '林志玲撒ㄋㄞ 缺Mr.Right交換禮物';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '眼鼻再加工？潘慧如：肉毒變臉';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '妮可秀大鑽戒 安妮斯頓增胖';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '傑克男男激吻 不敵老姊SM秀';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '韓劇9點檔激戰 Rain打Rain';
	rows[11].link = 'today-show12.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(10);
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 = '助盲友人提款 錢入己袋';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '抽中SPA套組 小心泡湯了';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '徵收民地 未來不再安置';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '戶外餵鳥 開出6張勸導單';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '定點供餐...成功擄獲獨居長者心';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '公幼教師甄選 6000人搶25';
	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 = '睽違多年 三峽祖師廟2樓將開放';
	rows[9].link = 'today-taipei10.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
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-north1.htm';
																										
	rows[1].text = '連搶桃園汽車旅館 2刀匪落網';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '掛名酒店董事長 退休警被砍';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '福斯T4行車電腦竊案 竹北又2起';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '魚貨混藏遊戲光碟 海巡攔截';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '保全員摔出車外慘死 金庫門未上鎖';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '打立委名號推銷藥品 有詐';
	rows[6].link = 'today-north7.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '偷60幾回 贓物…什麼都有';
	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 = '愛滋病患 蓄意割臂搶錢';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '洗錢事件 未發現民代涉案';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '二林車禍 初步找到肇事車';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '說聲你好 拿神像金牌就跑';
	rows[7].link = 'today-center8.htm';
																										
	rows[8].text = '醫療糾紛 彰基女病患勝訴';
	rows[8].link = 'today-center9.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '單親媽媽 8年媒合百場公益活動';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '全國學生音樂菁英 台東比高下';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '捕黑鮪 要避開敏感海域';
	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 = '弱智男猥褻女童 父也被踹';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '仁德焦屍經指認 疑退休員警';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '補習班教師燒炭 家屬錯愕';
	rows[7].link = 'today-south8.htm';
																										
	rows[8].text = '男子遭強押上車 警方救出';
	rows[8].link = 'today-south9.htm';
																										
	rows[9].text = '戒斷藥癮 有藥物可使用';
	rows[9].link = 'today-south10.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(12);
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 = '《曹長青專欄》台灣早該廢棄「民國紀元」';
	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';
																										
	rows[11].text = '搜救總隊 請別白忙';
	rows[11].link = 'today-o12.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	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].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '好品味　　　→';
		rows[1].submenu = 'living';
		rows[1].link = 'today-living1.htm';
	
		rows[2].text = '家庭兩性　　→';
		rows[2].submenu = 'family';
		rows[2].link = 'today-family1.htm';
	
		rows[3].text = '健康醫療　　→';
		rows[3].submenu = 'medicine';
		rows[3].link = 'today-medicine1.htm';
	
		rows[4].text = '自由副刊　　→';
		rows[4].submenu = 'article';
		rows[4].link = 'today-article1.htm';
	
		rows[5].text = '青春美　　　→';
		rows[5].submenu = 'young';
		rows[5].link = 'today-young1.htm';
	
		rows[6].text = '藝術文化　　→';
		rows[6].submenu = 'art';
		rows[6].link = 'today-art1.htm';
	
		rows[7].text = '休閒旅遊　　→';
		rows[7].submenu = 'travel';
		rows[7].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(2);
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 = '女人的雙重個性';
	rows[1].link = 'today-fashion2.htm';
																										
}
menu = null;

menu = getMenu('living');
menu.layer = 14;
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 = '日系進口休旅車戰力大公開<br>豐田Previa vs 日產Quest';
	rows[0].link = 'today-living1.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 15;
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 = 'DIY按摩 放輕鬆找美麗';
	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 = 16;
menu.parentMenu = 'supplement';
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-medicine1.htm';
																										
	rows[1].text = '脂肪細胞 不應盲目消除';
	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 = '手腳麻木、頭暈、耳鳴<br>須提防小中風';
	rows[5].link = 'today-medicine6.htm';
																										
}
menu = null;

menu = getMenu('article');
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 = '破解達文西密碼';
	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';
																										
}
menu = null;

menu = getMenu('young');
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 = '新款婚紗 透露早春 浪漫氛圍';
	rows[0].link = 'today-young1.htm';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 19;
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 = '外籍團員權益受漠視  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 = '由館長變組長<br>林明美從十三行博物館轉戰故宮展覽組';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '鄉村孩子味 林智信台灣人文風情創作展';
	rows[4].link = 'today-art5.htm';
																										
}
menu = null;

menu = getMenu('travel');
menu.layer = 20;
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 = '武陵生態春巡 探望櫻花鉤吻鮭';
	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;
}
//====================  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,700);
}

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,700);
}

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';
}