//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
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(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 = '東協加一 我GDP下降0.151％';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '東協加三 我GDP下降0.707％';
	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 = '郝龍斌搶出線 挖新黨牆腳';
	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(10);
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 = '菲推擠意外 踩死73人';
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = '熱賣 巴西妓女日記 性愛指南';
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = '網路性愛 美加4成民眾認為是背叛';
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = '美退役女兵出書 熱愛槍與性';
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = '新酒變陳釀 15秒速成';
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = '《中英對照讀新聞》Zero-tolerance policy on violence against women 對加諸婦女的暴力實行零容忍政策';
	rows[8].link = 'today-int9.htm';
																										
	rows[9].text = '《中日對照讀新聞》';
	rows[9].link = 'today-int10.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '透天厝浴火 灌水破窗 勇鄰救6命';
	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 = '50年同學會 讓我們童在一起';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '歐洲大樂透 3幸運兒瓜分70億';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '性騷擾防治 全台大違法';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '狠女殺情郎 伴屍12小時';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '行員狂捲1646萬現鈔出境';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '酒駕衝市場 1死4傷12車毀';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '行政罰法上路 情有可原、不知法律 微罪不舉';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '熱心李茂山 滅火自動來';
	rows[11].link = 'today-so12.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '重建會921熄燈';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '誤闖ＥＴＣ車道 罰款3000元';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '民眾提早走 國道北上一路通';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '荷蘭疑似污染豬 29萬公斤流向不明';
	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 = '動漫祭！ 2萬同人朝聖';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '天文奧賽競技 追星在望';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '校務行軍 風雨中挺進101';
	rows[8].link = 'today-life9.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 = '羅斯來了 尼克敗戰相迎';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '《泛太平洋女網賽》辛吉絲 66分鐘收拾莎娃';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '40屆超級盃 明晨7時開打';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '《SBL》罰功了得 台啤擺脫幼敏';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '《澳洲女子名人賽》盧曉晴曾雅妮 同列18名';
	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 = '澳隊放蝴蝶 癱瘓台灣打線';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '熊團拜 新洋投報到';
	rows[8].link = 'today-sp9.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-e1.htm';
																										
	rows[1].text = '興建4層樓或14公尺高 輕鋼構 每坪造價8萬內';
	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';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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-stock1.htm';
																										
	rows[1].text = '提前認列呆帳 銀行局樂見';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '能源消費量成長3.1%';
	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 = '求新求變 百貨業改裝搶客人';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '醫學美容商品 搶攻台灣市場';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '大膽台商蔣武彥 敢說敢寫敢批判';
	rows[8].link = 'today-stock9.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(13);
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 = '黃志瑋品味獨特 300雙球鞋當寶貝';
	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 = '斷背山中獎率87.5% 傑克蜜雪兒絕配';
	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 = 'Rain 出輯落中文';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '松本人志大嘴 認了島袋寬子';
	rows[12].link = 'today-show13.htm';
																										
}
menu = null;

menu = getMenu('c');
menu.layer = 5;
menu.menuLayer = 0;
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-s1.htm';
																															
	rows[1].text = '《鏗鏘集》橘子成乾鬥始休！';
	rows[1].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 = '燈海隧道 一路亮到市府';
	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 = '假車禍真搶劫 3惡匪手段凶殘';
	rows[9].link = 'today-taipei10.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
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-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 = '警伯上山救人 卻救到小山羌';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '社會傳真／男子貪杯 喝酒喝到掛';
	rows[5].link = 'today-north6.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 = '雙盜押人劫財 提款20萬放人';
	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 = '詐領113萬理賠金 簡正中判刑2年';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '見警狂奔 綁案嫌犯洩底';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '意外頻傳 投縣5人喪命';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '通盛輪擱淺 自行脫困';
	rows[7].link = 'today-center8.htm';
																										
	rows[8].text = '外孫偷騎機車 外公怒告';
	rows[8].link = 'today-center9.htm';
																										
	rows[9].text = '機車露出刀柄 騎士被逮';
	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(7);
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 = '疑戴綠帽 堂哥刀刺堂弟肚';
	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';
																										
}
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(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('living');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('family');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('medicine');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('article');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('young');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('art');
menu.layer = 19;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('travel');
menu.layer = 20;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(9);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '情人節 送禮暖身操<br>實用禮物包裝術大公開';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '禮物也要打扮一下喔！';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '雙手打造 紙不住的魅力';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '手工紙變奏曲';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '指壓DIY 為工作再出發做好準備';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '看準重點部位  壓出好氣色';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '年後不怕胖<br>瘦身單品穿出好身材';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '想瘦不必減肥<br>穿對衣服最重要';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '超mini 小小說年度展';
		rows[8].link = 'today-weekly9.htm';
																											
	}
	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';
}