//===========================================================================
//基本設定
//==================== 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('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.ntat.gov.tw/" target=_blank>台北市國稅局</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 = '肅貪大行動 每季辦30件大案';
	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 = '馬捐助吳銘漢遺孤 4年12萬';
	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(15);
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 = '國務費案12.15開庭';
	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';
																										
	rows[13].text = '楊甦棣：美台三協定 數月內可簽署';
	rows[13].link = 'today-p14.htm';
																										
	rows[14].text = '扁：遇到困難 森喜朗都帶來溫暖';
	rows[14].link = 'today-p15.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 = "全球首例！5腎連環捐 同步活體移植";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "一夫多妻族 挑戰美國道德底線";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "反敘大將 黎巴嫩工業部長遇刺身亡";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "服務科學 全球下一輪經濟引擎";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "全球最不友善國家 美國奪魁";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "日人DIY車子 真能開上路";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "就愛這一味";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "《中英對照讀新聞》California couple faces federal charges for \"overt sexual activity\" on plane flight 加州夫妻因在飛行途中「明目張膽的性活動」而面臨聯邦控訴";
	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 = 'La new自清 將帶兩球員到案';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '等母親復活 老兄妹伴屍7年';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '酒測值達0.58／可安全駕駛 酒駕無罪';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '惡藥商擄逃妻 性侵8天';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '生命點燈人 「徵」情謝謝你';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '勇甩病魔 「蔬」送抗癌經';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '社工無盡的愛 喚回嗑藥援交妹';
	rows[10].link = 'today-so11.htm';
																										
}
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 = '碰麵粉手就癢 麵包師不得不轉行';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '後座人肉子彈  駕駛殺手';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '3限制解除 高鐵通車在望？';
	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(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '抗日驅韓 郭泓志暖身';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '球吻陽仲壽 眼角縫12針';
	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 = '季後分紅 建仔94萬 小郭89萬';
	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 = '開季10勝1敗 爵士獨走';
	rows[8].link = 'today-sp9.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '境外基金 註冊國要課稅';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '職業病、職災認定 即將放寬';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = 'Q3美45大都會房價跌 恐續蔓延';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '需求擴增 亞洲辦公大樓租金上揚';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '美林調降香港三營建商評等';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '勞退基金監理會案 立院下月表決';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '中印經濟競合 延伸到海外';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '台企銀增資 彰銀不參加 土銀台銀設門檻';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '彰銀老總被更換 工會擬抗爭';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '前8月國產酒 市佔率76.93%';
	rows[9].link = 'today-e10.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '更換業務員 保險公司不樂見';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '定期定額基金 月底扣款較有利';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '明年資產配置 看好台股、大中華區';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '退休金專欄／漸進式定期定額 加速獲利';
	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 = '紡織業航向藍海 機能紡品打天下';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = 'Nokia邀約 勝華赴印度設廠';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '群創併購建美 布局中小尺寸';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = 'MOTO獲大單 華寶代工受惠';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = '新晶電盼明年營收持平';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = 'DRAM合約價續揚 可望漲至12月';
	rows[11].link = 'today-stock12.htm';
																										
	rows[12].text = '短線佈局 外資喊進電子、金融';
	rows[12].link = 'today-stock13.htm';
																										
}
menu = null;

menu = getMenu('t');
menu.layer = 0;
menu.menuLayer = 0;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '蘇內閣用人 檢調先摸底';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(17);
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 = '林俊傑12.29破蛋開唱  忌口停機38天';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '阿霈蹂躪男人幫 凌空掛網皮皮剉';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '元若藍帶臘肉 拜師強辯學樂器';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '林美貞會男人 前夫孫興盯著看';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '章家瑄 王俐人 情敵打起來';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '艾芭學生多裘莉2倍 夢幻代課老師NO.1';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '蜘蛛女蛋砸狗仔車';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '姜至奐 金晶恩比悲情 催淚尬收視';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '裴帥衝韓流 公仔正發燒';
	rows[14].link = 'today-show15.htm';
																										
	rows[15].text = '少年Ella 硬跟吳尊搶影帝';
	rows[15].link = 'today-show16.htm';
																										
	rows[16].text = '炎亞綸生日趕場  粉絲送驚喜';
	rows[16].link = 'today-show17.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(7);
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 = '復北機場地下道 29日通車';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '首都客運 接手台北客運';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '金鑽小志工   13歲獲獎';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '馬小九諷政治 部落格超紅';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '公善待越媳 妒婆竟趕人';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = 'SM性愛窒息 改判過失致死';
	rows[6].link = 'today-taipei7.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '文林國中每週一句 分享心智慧';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '竹市恢復拖吊 首日破百輛';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '中油桃煉廠 污水改善年底完工';
	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 = '防竊奏功 基隆刑案破獲率101.7%';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '村里基建經費 被砍剩1元';
	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(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 = '總預算審查 南投縣議會自砍1/10預算';
	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 = '數學教學特優 溪南國中「玩」成';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '援交仙人跳集團 5嫌落網';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '榮民陳屍家門口 2忠狗守護';
	rows[7].link = 'today-center8.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '東興社區 打造部落 希望工程';
	rows[0].link = 'today-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 = '家暴母子夜打113求救 唱空城';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '田徑女大學生 力擒金牌神偷';
	rows[5].link = 'today-south6.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《林保華專欄》紙老胡 看中國前倨後恭';
	rows[0].link = 'today-o1.htm';
																										
	rows[1].text = '郝龍斌打馬';
	rows[1].link = 'today-o2.htm';
																										
	rows[2].text = '與阿輝伯談台聯';
	rows[2].link = 'today-o3.htm';
																										
	rows[3].text = '魔鏡';
	rows[3].link = 'today-o4.htm';
																										
	rows[4].text = '給王建民的信';
	rows[4].link = 'today-o5.htm';
																										
	rows[5].text = '鹽寮灣 比舊香蘭更早';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '藍色烏賊';
	rows[6].link = 'today-o7.htm';
																										
	rows[7].text = '公投連署 投票日擺攤';
	rows[7].link = 'today-o8.htm';
																										
	rows[8].text = '小護士鬼扯 小妹大照紅';
	rows[8].link = 'today-o9.htm';
																										
	rows[9].text = '兩黨政治vs.不可能定理';
	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 = '高調銀飾';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '瑜珈運動 女性王道';
	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(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '送禮惹人嫌 大NG!';
	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';
																										
	rows[4].text = '〈活動看板〉生命教育教師研習';
	rows[4].link = 'today-family5.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(8);
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';
																										
	rows[5].text = '我生命中的圖書館.三';
	rows[5].link = 'today-article6.htm';
																										
	rows[6].text = '被綁架了？';
	rows[6].link = 'today-article7.htm';
																										
	rows[7].text = '愛讀書《彼得潘》';
	rows[7].link = 'today-article8.htm';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
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-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';
																										
	rows[6].text = '名畫返鄉  全球首演';
	rows[6].link = 'today-art7.htm';
																										
	rows[7].text = '金光閃閃的民藝生活';
	rows[7].link = 'today-art8.htm';
																										
	rows[8].text = '留住一花一世界';
	rows[8].link = 'today-art9.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 = '擁抱夢幻 藍色珊瑚礁  馬爾地夫 Maldives';
	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';
}