//===========================================================================
//基本設定
//==================== 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(10);
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';
																										
	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';
																										
	rows[9].text = '曹等被起訴 聯電低調';
	rows[9].link = 'today-fo10.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '恢復軍教課稅 最快97年報稅適用';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '初審過關 財部意外';
	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 = '拚民進黨主席 2王1后與基層搏感情';
	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';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '確認病例14起 土耳其禽流感 擴散超乎預期';
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = '中國裁軍20萬 陸軍比例創新低';
	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 = '坐牢24年 刺殺已故教宗土人 近日假釋';
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = '《國際索隱》美上半年對伊朗開戰?';
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = '《中英對照讀新聞》Norway lifts more than 100-year-old ban on begging 挪威解除逾百年禁乞令';
	rows[6].link = 'today-int7.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-so1.htm';
																										
	rows[1].text = '北縣電玩弊案滾雪球 2警涉通風報信';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '暢飲300喝假酒 4人中毒掛病號';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '窮父育6囝 脫貧迎新生';
	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 = '盧靚自爆：澎哥載我 車上DIY';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '勒殺腦麻女兒 夫羈押妻不捨';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '王小盾猥褻案 離台之前 完成調查';
	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 = '石綿建材致癌 環團轟 石綿瓦未禁用';
	rows[13].link = 'today-so14.htm';
																										
	rows[14].text = '家有犬子 一年少過一年';
	rows[14].link = 'today-so15.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
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-life1.htm';
																										
	rows[1].text = '大台北瓦斯 持房屋權狀可退費';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '國道暫停收費 93小時創紀錄';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '一天賣42萬張 台鐵訂票須三天內取票';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '傑出科技榮譽獎 證實疫苗可防癌';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '98學年起 統測開放高中生應考';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '史地科 重台灣史 試題本土化';
	rows[6].link = 'today-life7.htm';
	rows[6].type = '考前衝刺 老師開講／下篇';
																										
	rows[7].text = '自然科 著重觀念 考題生活化';
	rows[7].link = 'today-life8.htm';
	rows[7].type = '考前衝刺 老師開講／下篇';
																									
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '卡特0.1秒逆轉';
	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 = 'TLPGA 週五關西老爺球場開戰';
	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 = '《高中棒球聯賽》陳俊霖完投 中農2連勝';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '中農雙胞胎 立志打職棒';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '象搞定薪事';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '韋佛琵琶別抱 紅人簽下奧瑞利亞';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '上原浩治 嘆經典不再經典';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '球團：入圍名單 才接受徵召';
	rows[12].link = 'today-sp13.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 = '熱錢湧入 台幣升破32元關卡';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '三公子領軍 績效不輸兄長<br>辜仲立 率中租創新高';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '去年對中港出口比重 創新高';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '去年前11月 海外生產比提高至39%';
	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 = '外資看好亞股 亞幣急升';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '紡織業籲央行阻升台幣';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '索羅斯批美升息過度 拖累經濟';
	rows[9].link = 'today-e10.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(13);
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 = '港人投資 偏愛權證炒短線';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '油價上漲 金價狂飆';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '《理財Q&A》投資泰股 今年好時機';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '瑞士信貸：國巨目標價 上看18.5元';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '聯發科展望 外資不同調';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = 'NAPA登台 筆電廠搶商機';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = 'Xbox 360售13888元 台灣訂3月2日上市';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '友達、奇美電 月績再攻頂';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '都市更新鬆綁利多 營建起高樓';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = '近10年封關前 漲多跌少<br>成交量未失控 紅包行情可期';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = '《國際股市》歐股午盤走高 港股大漲';
	rows[11].link = 'today-stock12.htm';
																										
	rows[12].text = '《期指觀測站》電子期軋空 蓄勢待發';
	rows[12].link = 'today-stock13.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(14);
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 = '伊麵偷養邵美琪 GiGi抓狂變悍婦';
	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 = '王紹偉否認已婚 183 Club猛虧';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '吳建豪 GABE 同床共枕想女人';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '飛兒遭抄襲 粉絲譙OT';
	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 = '恐怖片死變態 撒旦也瘋狂';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '阿湯哥 許奈德 金酸莓獎民調領先';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '宇多田挽老公救婚姻 ISSA穿舊鞋出遊';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '傑米福克斯榮登告示牌冠軍';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '王力宏蓋世無敵江蕙搶第三';
	rows[13].link = 'today-show14.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(12);
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 = '北縣警副分局長 名單出爐';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '火場焦屍 7小時後驚見';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '年貨大街 週五開賣啦';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '散裝豆腐 8成3不合格';
	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 = '學生照過來 來育樂營fun寒假';
	rows[10].link = 'today-taipei11.htm';
																										
	rows[11].text = '換證照過來 淡水業者助貧戶';
	rows[11].link = 'today-taipei12.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 = '恭喜抽中SPA設備！女子被詐';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '行員代辦貸款？ 男子沒拿錢還欠款';
	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';
																										
	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(11);
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 = '父病母工作 5、6歲兄弟灑掃幫忙';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '夥人偷自家車 老爸告兒子';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '大林中山高車禍 1死4傷';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '男子疑切腹 痛得說不出話';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '盜河砂 嘉縣查獲2嫌扣機具';
	rows[7].link = 'today-center8.htm';
																										
	rows[8].text = '王榕笙案 家屬提行政訴訟';
	rows[8].link = 'today-center9.htm';
																										
	rows[9].text = '一審無罪 前台糖3員改判重刑';
	rows[9].link = 'today-center10.htm';
																										
	rows[10].text = '販毒家族 施金都判無期徒刑';
	rows[10].link = 'today-center11.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 = '文德國小遭小偷 液晶螢幕、主機不翼飛';
	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 = '酗酒 男子冷死';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '先進體溫感應器 防賊失效';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '社會走馬燈／友人衝突 七旬老翁吐白沫不治';
	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 = '太平島應建飛機跑道';
	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 = '感謝La new';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '6.6％電鍍假金人';
	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 = '絕版CD賣上萬';
	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(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 = '世足熱! Start';
	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 = '2005精彩手機回顧<br>好看 好聽 好好玩';
	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 = '女人要懂得 多愛自己';
	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(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '白帶 bye bye';
	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';
																										
}
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 = '台灣舞曲<br>江文也的故事-中';
	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 = '《妖物誌》<br>張曼娟著，皇冠出版';
	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(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '台博鎮館寶回來了<br>《康熙台灣輿圖》重新亮相';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '用電影記錄藝術 黃明川發表「裝置藝術10年」';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '平珩給兩廳院打75分';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '國家音樂廳董陽孜書法<br>盼企業界認養';
	rows[3].link = 'today-art4.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 = '漫步勾搭中世紀浪漫<br>荷蘭馬斯垂克';
	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';
}