//===========================================================================
//基本設定
//==================== 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(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '中國伸黑手 我堅守24邦交國';
	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 = '宏總統2度延訪 外交部：邦交無虞';
	rows[4].link = 'today-fo5.htm';
																										
	rows[5].text = '陷ETC風暴 郭瑤琪請辭 政次蔡堆跟進';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '郭閃電走人 交部一片錯愕';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '扁系全面退出 蘇得扛全責';
	rows[7].link = 'today-fo8.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '319當天 陳鎮慧存入五千萬 調局告知 檢方未要求辦理 北檢斥調局說謊';
	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 = '廖碧英 將任勞保局總經理';
	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 = '誹謗李全教 侯水盛判賠50萬';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '內政部：北纜計畫書 須重新送審';
	rows[8].link = 'today-p9.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "真相學者組織成立  911陰謀論再起";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "度假兼變臉∼ 巴西讓你美夢成";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "菲火山瀕臨爆發 7.5萬人大撤退";
	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 = "《中英對照讀新聞》Park in Hitler's hometown to be named after Nazi objector 希特勒家鄉公園將以反對納粹者命名";
	rows[7].link = 'today-int8.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(16);
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 = '美「奇蹟路」開68億頭彩';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '花蓮金財神香舖 頭獎五次全台最旺';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '女迷魂盜珠寶 再尋獲2鑽石';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '槍戰對峙4小時 擒2綁匪';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '逼債害 5命 錢莊老闆夫婦 強拘到案';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '北所人犯被「藥」死？下週解剖見分曉';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '運將變駭客 入侵法務部網站';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '新竹潑酸女 他被判6年';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '5死凶宅拍賣改建 免費「唱游」';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '酒駕撞2少年 1人腦碎死';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '蘇揆妻舅墜樓 疑自殺';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '9名阿公 義務開路先鋒';
	rows[12].link = 'today-so13.htm';
																										
	rows[13].text = '勇救跳海婦 警被罵雞婆';
	rows[13].link = 'today-so14.htm';
																										
	rows[14].text = '北醫生高山症 直升機救下山';
	rows[14].link = 'today-so15.htm';
																										
	rows[15].text = '夫子仲介愛心 善果結實纍纍';
	rows[15].link = 'today-so16.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
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-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 = '醫事人力大砍 醫團批衛署殺人';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '鹿谷凍頂烏龍 學者：非林鳳池傳入';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '科學教育 淪為考試競拿金牌';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '溫馨父親節 每週騎160公里 探身障兒 11年不歇';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '送按摩椅 先看老爸身體';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '尋子34載 蔡爸永不放棄';
	rows[10].link = 'today-life11.htm';
																										
	rows[11].text = '自行離家失蹤兒 逐年攀升';
	rows[11].link = 'today-life12.htm';
																										
	rows[12].text = '中元祭放水燈 邀宴水中孤魂';
	rows[12].link = 'today-life13.htm';
																										
}
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 = '巨投世代 與傳奇共鳴';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '塞揚 511勝完投率91.9%';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '王建民 獲選美聯最佳球員';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '洋基8月戰雙襪 季後賽關鍵';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '亞運爭金 南韓最怕建仔';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '台灣青棒 連闖兩關奪冠';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '史上最年輕 伍茲50勝';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '克服天敵 莎娃封后';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '南韓世足班底 16日戰台';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '陳純甄失聯 恐無緣亞運';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '瑪娜杜 400自破世界';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '鞍馬王 林祥威凱歸';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '史坦豪兒 3度稱后';
	rows[12].link = 'today-sp13.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-e1.htm';
																										
	rows[1].text = '銀行公會︰謹慎核算還款能力';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '過度投資中國 受薪族受苦';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '台灣GDP成長 亞銀預測4.4%';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '7月貿易出超 年增率74.5%';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '中華電信發行ADR 改公告招標';
	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 = '對中國毛巾課反傾銷稅 前兩月222萬';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '英國石油修補油管 油價大漲';
	rows[9].link = 'today-e10.htm';
																										
	rows[10].text = '櫃買中心總經理 吳裕群將出任';
	rows[10].link = 'today-e11.htm';
																										
	rows[11].text = '適婚年齡群  25.9%男、18%女未婚';
	rows[11].link = 'today-e12.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(16);
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 = '投資東歐基金 十年報酬率達700%';
	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 = '《理財Q&A》美高收益債 投資價值看好';
	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';
																										
	rows[9].text = '併入鴻海 普立爾全球市佔上看20％';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = '新法激勵 美太陽能模組 價格繼漲';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = '《期指觀測站》Fed升息與否 多空攤牌時';
	rows[11].link = 'today-stock12.htm';
																										
	rows[12].text = '歐股午盤重挫 日韓大跌';
	rows[12].link = 'today-stock13.htm';
																										
	rows[13].text = '新機帶動 仁寶7月雙新高';
	rows[13].link = 'today-stock14.htm';
																										
	rows[14].text = '華冠溜滑梯 Q3估衰退逾20%';
	rows[14].link = 'today-stock15.htm';
																										
	rows[15].text = '台塑四寶 台化表現最佳';
	rows[15].link = 'today-stock16.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 = '鋒芝大復活 情癡陳小春想不開？';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '李烈許茹芸 最佳飯友';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '女F4 Fanny新歡曝光 當眾調情';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '言承旭緋聞纏身 自嘆老10歲';
	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 = '葛妮絲變肉圓 要整形抽肥油';
	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(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(16);
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 = '隱匿輻射屋 仲介賺6萬判6月';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = 'Taipei Pass卡 北縣市自由行';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '170年坪頂古圳 鮮活古蹟';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '碧利斯颱風期間 路邊停車格退費<br>只剩7天 還有4萬多張未退費';
	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 = '模範父親表揚 95歲老爸喜獲獎';
	rows[9].link = 'today-taipei10.htm';
																										
	rows[10].text = '天燈師傅巧手獻愛 關懷植物人';
	rows[10].link = 'today-taipei11.htm';
																										
	rows[11].text = '貪吃豬小妹 紅遍樂華夜市';
	rows[11].link = 'today-taipei12.htm';
																										
	rows[12].text = '3幼犬遭棄養 找到新主人';
	rows[12].link = 'today-taipei13.htm';
																										
	rows[13].text = 'PDA在手 李梅樹紀念館輕鬆遊';
	rows[13].link = 'today-taipei14.htm';
																										
	rows[14].text = '居家意外 跌倒墜落最多';
	rows[14].link = 'today-taipei15.htm';
																										
	rows[15].text = '改制1年半 健康中心還是黑機關';
	rows[15].link = 'today-taipei16.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 = '中獎老騙術 詐老師377萬';
	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';
																										
	rows[6].text = '瑞穗9茶行賣好茶 縣府掛保證';
	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(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '檢查密閉船艙 外籍船員1死1傷';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '車禍送醫 毒品掉落送辦';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '會車失控 2車衝進便利店';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '南投議會採購弊案 鄭文銅2子交保';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '公佈疑似長胡志強病歷案開庭';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '扮警擄人強盜 3嫌求處重刑';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '《社會傳真》夾帶禁品 替代役男緩刑';
	rows[6].link = 'today-center7.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 = '揪出肇事者 2神探獲表揚';
	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 = '複驗 白河白骨採DNA';
	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(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 = '《黃天麟專欄》看不到台灣銀行業的未來？--評EIU之對台預測';
	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(6);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '家庭兩性　　→';
		rows[1].submenu = 'family';
		rows[1].link = 'today-family1.htm';
	
		rows[2].text = '健康醫療　　→';
		rows[2].submenu = 'medicine';
		rows[2].link = 'today-medicine1.htm';
	
		rows[3].text = '自由副刊　　→';
		rows[3].submenu = 'article';
		rows[3].link = 'today-article1.htm';
	
		rows[4].text = '藝術文化　　→';
		rows[4].submenu = 'art';
		rows[4].link = 'today-art1.htm';
	
		rows[5].text = '休閒旅遊　　→';
		rows[5].submenu = 'travel';
		rows[5].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '爸爸愛車狂想曲';
	rows[0].link = 'today-fashion1.htm';
																										
	rows[1].text = '真男人 Dandy';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '少年風當道 LKK也愛來';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = '居家用品 趣味創意';
	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(5);
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';
																										
	rows[4].text = '自製水果降壓餐 為爸爸健康把關';
	rows[4].link = 'today-medicine5.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 = '愛讀書《賴聲川的創意學》';
	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 = '以「台灣愛樂」前進新、馬  簡文彬為NSO 20年打造願景';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '為藝術 德國人脫了！';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '溫哥華台灣文化節盛名遠播  加國傳媒爭贊助';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '當代傳奇劇場回味三作品 葉錦添為《暴風雨》二度創作';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '國立台中圖書館推出 圖書小物與詩書展';
	rows[4].link = 'today-art5.htm';
																										
	rows[5].text = '吳丁賢油畫展「線形空間」';
	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';
}
