//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = false;
showHouse = false;
path = '';    //內部為空字串
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-stock1.htm','today-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (showWeekly)
{
	menuNames = menuNames.concat(new Array('weekly'));
	titles = titles.concat(new Array('週末生活版'));
	pages = pages.concat(new Array('today-weekly1.htm'));
}
else
{
	menuNames = menuNames.concat(new Array('supplement'));
	titles = titles.concat(new Array('生活藝文'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
if (showHouse)
{
	menuNames = menuNames.concat(new Array('house'));
	titles = titles.concat(new Array('住宅生活版'));
	pages = pages.concat(new Array('today-house1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','family','medicine','article','art','travel');

names = menuNames.concat(menuNames2);
menus = Array(names.length);
for (i=0; i<menus.length; i++)
{
	menus[i] = new Object();
	menus[i].name = names[i];
}
//====================  end  ================================================

//===========================================================================
//主選單
//==================== begin ================================================
document.write('<TABLE class=block2L cellSpacing=1 cellPadding=3 width=90 border=0>');
document.write('	<TR>');
document.write('		<TD bgColor=#333399>今日要聞</TD>');
document.write('	</TR>');
for (i=0; i<menuNames.length; i++)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tda onMouseOver="showMenu(this,'+menuNames[i]+')" onMouseOut="hideMenu()" style=color:blue;cursor:pointer');
	document.write('				onClick="location.href=\''+path+pages[i]+'\'">'+titles[i]+'</TD>');
	document.write('	</TR>');
}
document.write('	<TR>');
document.write('		<TD bgColor=#cc6600><A class=block2La href="'+path+'Rnews.htm">專題報導</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD bgColor=#666666>服務專區</TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.roclotto.com.tw/" target=_blank>樂透彩券</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'Nnews.htm">統一發票</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><font color=blue><A onmouseover="this.style.cursor=\'pointer\';this.style.color=\'deepskyblue\'" ');
document.write('			onclick="window.open(\'http://www.libertytimes.com.tw/Service/Order.htm\',\'_new\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=770,height=650\');" ');
document.write('			onmouseout="this.style.color=\'blue\'">訂報服務</A></FONT></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(13);
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';
																										
	rows[10].text = '公權力真空  台中港務局難辭其咎';
	rows[10].link = 'today-fo11.htm';
																										
	rows[11].text = '公平會︰恐2次觸犯聯合行為';
	rows[11].link = 'today-fo12.htm';
																										
	rows[12].text = '工人自白：碼頭工人抗爭 2公司幕後操控？';
	rows[12].link = 'today-fo13.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 = 'NCC委員決留任 至後年一月底';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '許志雄︰ NCC須服膺政院政策';
	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';
																										
}
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 = "困井50小時 印度男童獲救";
	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 = "挑戰金氏紀錄／101歲老翁滑水";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "《中英對照讀新聞》Hotel group clears the air with smoking ban 旅館集團頒布禁菸令藉以清新空氣";
	rows[8].link = 'today-int9.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-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 = '巨石砸破遊覽車 45遊客驚逃';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '父攜子自焚 男童活活燒死';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '鄰居夜擾 製「噪」糾紛 判賠36萬';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '可愛貼紙車 淫獸誘女童';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '提款機送2萬 男子全歸還';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '勇警故事1／簡訊追追追 桃澎隔空接力搶救生命';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '叔姪4牧師 毗鄰守護寄養兒';
	rows[10].link = 'today-so11.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
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-life1.htm';
																										
	rows[1].text = '東部對號列車停駛 國內航班全部取消';
	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 = '基測預估建中280分 北一女278分';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '防高分落榜 志願多填卡保險';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '北市6狀元 念書各有撇步';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '大學網路選填志願 首日冷清';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '老態龍鍾 沒錢維修 海功號擬解體';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '呂一銘隨船採訪 南極行寫遺書';
	rows[10].link = 'today-life11.htm';
																										
	rows[11].text = '驕傲文化財 漁業界盼保留';
	rows[11].link = 'today-life12.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
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-sp1.htm';
																										
	rows[1].text = '知道建仔厲害了吧？';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '6局8K 鄭錡鴻第8勝';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '台灣棒球百年 老中青齊見證';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '《世界棒球經典賽》我主辦預賽機率 達8成';
	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 = '《小馬聯盟亞洲少棒賽》台灣4連勝 進軍世界賽';
	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 = '《環青海湖自由車賽》馬騰穿黃衫 何欣1秒飲恨';
	rows[12].link = 'today-sp13.htm';
																										
	rows[13].text = '布雷克 美國網壇傳奇';
	rows[13].link = 'today-sp14.htm';
																										
	rows[14].text = '魯尼老家遭小偷 算他識貨';
	rows[14].link = 'today-sp15.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-e1.htm';
																										
	rows[1].text = '債務協商繳款率 逐月升高';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '負債整合？小心代辦騙局';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '中國進口毛巾 可能課徵204.1%反傾銷稅';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = 'Yahoo！拍賣 將收3%交易手續費';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '6月外銷訂單金額 年增率20.6%';
	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 = '首張聯名Visa金融卡 上路';
	rows[8].link = 'today-e9.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 = '日電貿、禾伸堂亮眼 均逾3元';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '華立︰沒有旺季不旺現象';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '類比科攀高 IC設計新股王';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = 'AMD收購ATI 力拚INTEL';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '黃崇仁：7月營收挑戰新高';
	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(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 = '裴帥去年發功印鈔 繳稅2.4億';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = 'S.H.E偷溜逛街 遲到說謊凸槌';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '劉德華掏「心肝」 手機下載削400萬';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '野台Friday開唱 土洋樂團8舞台尬歌';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '陳思璇包小柏 車上90分鐘沒做錯事';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '歌手聯合 搞鬼 開唱無禁忌';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '怪獸整罐呼乾啦 阿信酒醉險脫褲';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '維多利亞神祕進出飯店 否認兼差';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '海利藥不得？ 酒駕撞斷肋骨';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = 'aiko連霸最愛歌手 倖田來未賣騷吸人氣';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '羅比寫歌 訓蓋瑞奇負心';
	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 = '肌肉病變 戴氧氣罩 睡覺20年';
	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 = '建高橋下停車場 擬改24小時收費';
	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 = '三峽藍染節 八月開FUN';
	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 = '基隆色賄案 3警求刑12年';
	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 = '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(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '涉湍溪卡石縫 搏命待援3小時';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '輪流性侵女同學 同學、學長5人全判刑';
	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 = '水里2期重劃通盤檢討 8．10公告完畢';
	rows[5].link = 'today-center6.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '本土登革熱爆13例 前鎮疫級戰區';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '以毒攻毒 台南9月起領先試辦';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '陽光少年單車行 5百公里到台北 颱風無阻';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '他回菁寮做社造 盼子弟也返鄉';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '花火音樂季 菊島定情時';
	rows[4].link = 'today-south5.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '我國被WTO去主權化的新事端';
	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';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(6);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '家庭兩性　　→';
		rows[1].submenu = 'family';
		rows[1].link = 'today-family1.htm';
	
		rows[2].text = '健康醫療　　→';
		rows[2].submenu = 'medicine';
		rows[2].link = 'today-medicine1.htm';
	
		rows[3].text = '自由副刊　　→';
		rows[3].submenu = 'article';
		rows[3].link = 'today-article1.htm';
	
		rows[4].text = '藝術文化　　→';
		rows[4].submenu = 'art';
		rows[4].link = 'today-art1.htm';
	
		rows[5].text = '休閒旅遊　　→';
		rows[5].submenu = 'travel';
		rows[5].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'Q10保養 日本全民運動';
	rows[0].link = 'today-fashion1.htm';
																										
	rows[1].text = '德國設計';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '小露性感夏Bra 耍心機';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = '歐風國產5門掀背車較勁<br>福特Focus 1.8 VS. 日產Tiida 1.8';
	rows[3].link = 'today-fashion4.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
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-family1.htm';
																										
	rows[1].text = '裸體假期樂趣多';
	rows[1].link = 'today-family2.htm';
																										
	rows[2].text = '毛孔粗大 如何收斂';
	rows[2].link = 'today-family3.htm';
																										
}
menu = null;

menu = getMenu('medicine');
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-medicine1.htm';
																										
	rows[1].text = '對抗癌症有新法 氬氦刀崩解腫瘤';
	rows[1].link = 'today-medicine2.htm';
																										
	rows[2].text = '使用新Ｙ型導管  有助降低洗腎併發症';
	rows[2].link = 'today-medicine3.htm';
																										
	rows[3].text = '抑Ｂ肝吃干適能  至少須服用一年以上';
	rows[3].link = 'today-medicine4.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
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 = '愛讀書《腦袋開花——奇想花園66朵》';
	rows[4].link = 'today-article5.htm';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
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 = '站在比101更高的地方<br>齊柏林《從空中看台灣》視野大不同';
	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 = '柏林三大博物館簡介<br>正體中文看得到';
	rows[4].link = 'today-art5.htm';
																										
	rows[5].text = '不期待世界聞名<br>但願走出自己的路';
	rows[5].link = 'today-art6.htm';
																										
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '神仙之島動人物語  日本三景之一：宮島';
	rows[0].link = 'today-travel1.htm';
																										
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(0);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
	}
	menu = null;
}
if (showHouse)
{
	menu = getMenu('house');
	menu.layer = 14;
	menu.menuLayer = 0;
	menu.rows = new Array(0);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
	}
	menu = null;
}
//====================  end  ================================================

//===========================================================================
//產生tables
//==================== begin ================================================
for (j=0; j<menus.length; j++)
{
	var previousRowType = '';
	if (menus[j].parentMenu == null)
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu(null,null) onMouseOut=hideMenu()>');
	else
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu2(null,null) onMouseOut=hideMenu2()>');

	for (i=0; i<menus[j].rows.length; i++)
	{
		if (previousRowType!='' && menus[j].rows[i].type==null)
		{
			document.write('<tr bgcolor=#00CCFF height=2 style=cursor:default>');
			document.write('	<td></td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].type && menus[j].rows[i].type!=previousRowType)
		{
			document.write('<tr bgcolor=#00CCFF height='+rowHeight+' style="cursor:default">');
			document.write('	<td>《'+menus[j].rows[i].type+'》</td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].submenu)
		{
			document.write('<tr onMouseOver="incell(this);showMenu2(this,'+menus[j].rows[i].submenu+')" onMouseOut="outcell(this);hideMenu2()" bgcolor=#C2E5FF height='+rowHeight+'>');
			if (menus[j].rows[i].link)
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">'+menus[j].rows[i].text+'</td>');
			else
				document.write('	<td>'+menus[j].rows[i].text+'</td>');
			document.write('</tr>');
		}
		else 
		{
			if (menus[j].rows[i].type == null)
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell(this) bgcolor=#C2E5FF height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">◎'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
			else
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell2(this) bgcolor=#41DAAA height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">．'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
		}

		previousRowType = menus[j].rows[i].type==null? '': menus[j].rows[i].type;
	}

	document.write('</table>');
}
//====================  end  ================================================

var activeRow,activeMenu1,activeRow1,activeMenu2;
var protrude1;
var timer,timer2;
var hide,hide2

function getMenu(name)
{
	index = -1;
	for (i=0; i<menus.length; i++)
		if (menus[i].name == name)
		{
			index = i;
			break;
		}
	if (index != -1) return menus[index];
	else return null;
}

function showMenu(row,menu)
{
	if (activeRow)
	{
		hide = true;
		hideAllMenu();
	}
	hide = false;
	if (row)	activeRow = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu1 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu1.id).layer;
	protrude1 = defaultTop-document.body.scrollTop+activeMenu1.offsetHeight-document.body.clientHeight;
	if (protrude1 > 0)	
		activeMenu1.style.top = defaultTop-protrude1;
	else
		activeMenu1.style.top = defaultTop;
		
	activeMenu1.style.visibility = 'visible';
}

function hideMenu()
{
	clearTimeout(timer);
	hide = true;
	timer = setTimeout(hideAllMenu,600);
}

function hideAllMenu()
{
	if (hide)
	{
		activeRow.style.backgroundColor = '#FAF9F5';
		activeMenu1.style.visibility = 'hidden';
	}
}

function showMenu2(row,menu)
{
	if (activeRow1)
	{
		hide2 = true;
		hideAllMenu2();
	}
	hide = false;
	hide2 = false;
	if (row)	activeRow1 = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	activeRow1.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu2 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu2.id).layer;
	protrude2 = defaultTop-document.body.scrollTop+activeMenu2.offsetHeight-document.body.clientHeight;
	if (protrude2 > 0)	
	{
		if (protrude1 > protrude2)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop-protrude2;
	}
	else
	{
		if (protrude1 > 0)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop;
	}
	
	activeMenu1.style.visibility = 'visible';
	activeMenu2.style.visibility = 'visible';
}

function hideMenu2()
{
	hideMenu();
	clearTimeout(timer2);
	hide2 = true;
	timer2 = setTimeout(hideAllMenu2,600);
}

function hideAllMenu2()
{
	if (hide2) {
		activeRow1.style.backgroundColor = '#C2E5FF';
		activeMenu2.style.visibility = 'hidden';
	}
}

function outcell(cell)
{
	cell.style.backgroundColor = '#C2E5FF';
	cell.style.color = 'black';
}

function outcell2(cell)
{
	cell.style.backgroundColor = '#41DAAA';
	cell.style.color = 'black';
}

function incell(cell)
{
	cell.style.backgroundColor = '#FFCCFF';
	cell.style.color = 'blue';
}