//===========================================================================
//基本設定
//==================== 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(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '倒扁！倒股？ 暴跌215點';
	rows[0].link = 'today-fo1.htm';
																										
	rows[1].text = '倒扁靜坐 最快周日登場';
	rows[1].link = 'today-fo2.htm';
																										
	rows[2].text = '市民買單 3階段交管 人車讓路';
	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 = '扁助200萬 女兒醫藥費只付20幾萬';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '只有地上權…正常買賣不會如此';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '反制倒扁 綠營基層大串聯';
	rows[8].link = 'today-fo9.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-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 = '蘇揆籲要貢獻所學︰公務員別只想著升官';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '北纜案 建照須重新申請';
	rows[8].link = 'today-p9.htm';
																										
	rows[9].text = '馬樹禮公祭 黨國大老弔唁';
	rows[9].link = 'today-p10.htm';
																										
	rows[10].text = '新黨拚議員 一落馬擬解散';
	rows[10].link = 'today-p11.htm';
																										
	rows[11].text = '指吳乃仁禿鷹 邱毅判無罪';
	rows[11].link = 'today-p12.htm';
																										
	rows[12].text = '真調會 今公布報告';
	rows[12].link = 'today-p13.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 = "報復偷腥夫 捷克總理之妻披敵旗參選";
	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 = "染兔傷風5天 英男子暴斃";
	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 = "《中英對照讀新聞》Fattest  island  launches slimming award 最肥胖的島嶼發起減肥大賽";
	rows[7].link = 'today-int8.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-so1.htm';
																										
	rows[1].text = '成大生逮賊 反被控妨害自由';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '五惡男圍毆砸石 逼人溺死';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '北市道路瀝青弊案 廠商當庭坦承送錢';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '司法院長回應 擬限縮刑案審理合議';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '多此一吻 賊加判3年4月';
	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 = '「大人別吵了」失親兒吐心聲';
	rows[8].link = 'today-so9.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
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-life1.htm';
																										
	rows[1].text = '黑心健素糖 台糖ㄍㄧㄥ著不賠償';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '災變9年 林肯大郡案 北縣府擬全賠';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '挺建仔嗆TV 學運反惡質媒體';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '國中生遭體罰命危 國賠66萬';
	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 = '95年學生團體保險費 漲57元';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '資訊奧林匹亞 我奪3銀1銅';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '喝電解水保肝？衛署醫師：不可能';
	rows[10].link = 'today-life11.htm';
																										
	rows[11].text = '超級雷射光 照得住8成癌細胞';
	rows[11].link = 'today-life12.htm';
																										
	rows[12].text = '腳痛服藥引發中毒？ 疑藥物過敏 全身皮膚脫落';
	rows[12].link = 'today-life13.htm';
																										
	rows[13].text = '畏寒、呼吸急促…頸部劇痛 當心得雷米爾氏症候群';
	rows[13].link = 'today-life14.htm';
																										
	rows[14].text = '陽宏浴火重生 邀100人試穿壓力衣';
	rows[14].link = 'today-life15.htm';
																										
	rows[15].text = '台灣1女遊客 在中國划船溺斃';
	rows[15].link = 'today-life16.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '姜建銘今先發 拚一軍首勝';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '鋒仔作公益 一轟捐一萬';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '吉昂比雙響 洋基逆轉勝紅襪';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '擊退巴拿馬 日本首勝';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '誠泰成立球員部落格';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '伍茲 4大賽 12冠';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '擊敗阿美  譚湘玲首度封后';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '球員們的靈異事件簿';
	rows[7].link = 'today-sp8.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 = 'Q2國際收支順差 近兩年新低';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '勞工政策 工會打41.19分';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '中國毛巾 立委要求採進口救濟措施';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '勞保基金加碼股債 定存將降至32%';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '兆豐銀經營團隊 各就定位';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '鄭深池卸重擔 低調快閃';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '張盛和 升任賦稅署長';
	rows[9].link = 'today-e10.htm';
																										
	rows[10].text = '太陽能產值 電池佔八成';
	rows[10].link = 'today-e11.htm';
																										
	rows[11].text = '微軟亞太區高階經理年會 登場';
	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 = '三大投顧 一致叫進歐股';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '台股大跌 台幣由升轉貶';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '《理財Q&A》投資型保單 較適合剛就業者';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '聯邦銀信用卡 幫你搞定生活瑣事';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '高球桿廠 前7月獲利驚艷';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '券商造市 活絡興櫃股';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = 'DOP報價大漲 聯成股價受惠';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '代理仙境傳說2 橘子取代智冠';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = '面板旺 背光模組廠營收嗆';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = 'NB面板首度漲價 下月可望續漲';
	rows[11].link = 'today-stock12.htm';
																										
	rows[12].text = '海英俊：LCD電視旺到明年初';
	rows[12].link = 'today-stock13.htm';
																										
	rows[13].text = '台達電上半年每股賺2.79元 傲視同業';
	rows[13].link = 'today-stock14.htm';
																										
	rows[14].text = '合併效應 矽格泰林營收大躍進';
	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 = '檢舉亂丟垃圾  最多可賺3000';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '鄭欣宜狂打脈衝光 臉腫起水泡';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '偉仔戴水晶壯陽 助劉嘉玲下蛋';
	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 = '王心凌孝順媽咪 看上5000萬豪宅';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '楊丞琳耍猴戲 挺Energy';
	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 = '8點檔新戲殺進 愈打愈火';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = 'F.I.R.臨檢KTV 阿沁陪唱交際花';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '《青少年最愛獎Surprise》海盜最神戴普奪雙帝 布蘭妮最High推銷老公';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '東洋快散婚姻 里緒奈 3個月創紀錄';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '布萊克凍蒜好哥們 阿湯哥人緣吊車尾';
	rows[13].link = 'today-show14.htm';
																										
}
menu = null;

menu = getMenu('c');
menu.layer = 5;
menu.menuLayer = 0;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
		rows[0].text = '《今日社論》學者切忌淪為政治臨時演員';
		rows[0].link = 'today-s1.htm';
																	
	rows[1].text = '《自由談》假聖人滿街跑';
	rows[1].link = 'today-f1.htm';
																
		rows[2].text = '《鏗鏘集》施明德的格局';
		rows[2].link = 'today-f2.htm';
																	
}
menu = null;

menu = getMenu('region');
menu.layer = 11;
menu.menuLayer = 0;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();

	rows[0].text = '大台北新聞　→';
	rows[0].submenu = 'taipei';
	rows[0].link = 'today-taipei0.htm';

	rows[1].text = '北部新聞　　→';
	rows[1].submenu = 'north';
	rows[1].link = 'today-north0.htm';

	rows[2].text = '中部新聞　　→';
	rows[2].submenu = 'center';
	rows[2].link = 'today-center0.htm';

	rows[3].text = '南部新聞　　→';
	rows[3].submenu = 'south';
	rows[3].link = 'today-south0.htm';
}
menu = null;

menu = getMenu('taipei');
menu.layer = 11;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(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 = '縣府整合8大管道 繳學費e網通';
	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 = '10大拖吊路段 市庫金雞母';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '祖孫夏令營 家族樹尋根';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '閏七夕煙火秀 JAZZ樂相伴';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '黑豆干 防腐劑添加超量';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '過個溫馨中秋 買月餅助學';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '豔紅鹿子百合 縣長期許當縣花';
	rows[9].link = 'today-taipei10.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
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-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 = '基流浪漢偷機車 送辦前歡喜飽餐';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '偷貨車找友借錢 油漆工被警查獲';
	rows[7].link = 'today-north8.htm';
																										
	rows[8].text = '廂型車撞砂石車 駕駛喪命';
	rows[8].link = 'today-north9.htm';
																										
	rows[9].text = '社會傳真／基隆女內衣褲慣竊 求刑矯治';
	rows[9].link = 'today-north10.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '線西電線被剪 路燈漆黑';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '電表倒轉 專業偷電嫌犯落網';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '警署租用白鐵旗桿 竊賊照偷';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '開雙B車應召 美語老師被逮';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '專櫃遭竊 損失上千件內衣褲';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '撞護欄起火 燒死駕駛';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '偷渡被拒上岸 奈籍男子成人球';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '《社會傳真》偷竊電纜 主嫌求刑1年10月';
	rows[7].link = 'today-center8.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 = '暑假症候群 8月性侵暴增20餘件';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '台德菁英計畫 媒合1076人職訓';
	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 = '詐欺現役軍人 8人被起訴';
	rows[6].link = 'today-south7.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 = '檢驗施明德≠人格謀殺';
	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 = '王建民的NO 阿扁的YES';
	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 = '手機蓋有設計';
	rows[0].link = 'today-fashion1.htm';
																										
	rows[1].text = '百貨七不思議超人氣!!';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '珠寶的香氣';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = '\'06WRC芬蘭Rally報導';
	rows[3].link = 'today-fashion4.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '熱浪來襲 法國人找涼方';
	rows[0].link = 'today-family1.htm';
																										
	rows[1].text = '用裸露 幽默政治人物';
	rows[1].link = 'today-family2.htm';
																										
	rows[2].text = '德國爸爸的性教育';
	rows[2].link = 'today-family3.htm';
																										
	rows[3].text = '三杯魚餃';
	rows[3].link = 'today-family4.htm';
																										
}
menu = null;

menu = getMenu('medicine');
menu.layer = 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 = '遠離菸酒 規律運動<br>做個勇骨老爸';
	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 = 'Ｂ肝患者需追蹤定檢<br>減輕肝苦 別亂服藥品、偏方';
	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(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'NSO被開除團員成績應予公布<br>兩廳院動用「私刑」 被教育部糾正';
	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';
																										
}
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';
}