//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = false;
showHouse = false;
path = '';    //內部為空字串
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-stock1.htm','today-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (showWeekly)
{
	menuNames = menuNames.concat(new Array('weekly'));
	titles = titles.concat(new Array('週末生活版'));
	pages = pages.concat(new Array('today-weekly1.htm'));
}
else
{
	menuNames = menuNames.concat(new Array('supplement'));
	titles = titles.concat(new Array('生活藝文'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
if (showHouse)
{
	menuNames = menuNames.concat(new Array('house'));
	titles = titles.concat(new Array('住宅生活版'));
	pages = pages.concat(new Array('today-house1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','family','medicine','article','art','travel');

names = menuNames.concat(menuNames2);
menus = Array(names.length);
for (i=0; i<menus.length; i++)
{
	menus[i] = new Object();
	menus[i].name = names[i];
}
//====================  end  ================================================

//===========================================================================
//主選單
//==================== begin ================================================
document.write('<TABLE class=block2L cellSpacing=1 cellPadding=3 width=90 border=0>');
document.write('	<TR>');
document.write('		<TD bgColor=#333399>今日要聞</TD>');
document.write('	</TR>');
for (i=0; i<menuNames.length; i++)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tda onMouseOver="showMenu(this,'+menuNames[i]+')" onMouseOut="hideMenu()" style=color:blue;cursor:pointer');
	document.write('				onClick="location.href=\''+path+pages[i]+'\'">'+titles[i]+'</TD>');
	document.write('	</TR>');
}
document.write('	<TR>');
document.write('		<TD bgColor=#cc6600><A class=block2La href="'+path+'Rnews.htm">專題報導</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD bgColor=#666666>服務專區</TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.roclotto.com.tw/" target=_blank>樂透彩券</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'Nnews.htm">統一發票</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><font color=blue><A onmouseover="this.style.cursor=\'pointer\';this.style.color=\'deepskyblue\'" ');
document.write('			onclick="window.open(\'http://www.libertytimes.com.tw/Service/Order.htm\',\'_new\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=770,height=650\');" ');
document.write('			onmouseout="this.style.color=\'blue\'">訂報服務</A></FONT></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '謝批郝家「公家電話費也貪」';
	rows[0].link = 'today-fo1.htm';
																										
	rows[1].text = '郝斥刻薄「謝跟我父親選嗎」';
	rows[1].link = 'today-fo2.htm';
																										
	rows[2].text = '周玉蔻質疑郝清廉';
	rows[2].link = 'today-fo3.htm';
																										
	rows[3].text = '宋絕不被勸退';
	rows[3].link = 'today-fo4.htm';
																										
	rows[4].text = '總統挺蘇揆 放手衝刺';
	rows[4].link = 'today-fo5.htm';
																										
	rows[5].text = '施拒馬探視 與王長談';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '高市拉鋸  綠、藍中常會將南下造勢';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '羅志明今登記參選';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '檢調掌握中信金外存機密';
	rows[8].link = 'today-fo9.htm';
																										
	rows[9].text = '辜濂松返台：未插手業務 願配合調查';
	rows[9].link = 'today-fo10.htm';
																										
	rows[10].text = '執行出狀況 金改政策打折扣';
	rows[10].link = 'today-fo11.htm';
																										
	rows[11].text = '學者籲勿拿個案推翻金改大局';
	rows[11].link = 'today-fo12.htm';
																										
	rows[12].text = '金檢報告  一週內出爐';
	rows[12].link = 'today-fo13.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 = 'F16首度掛AIM-120出擊';
	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 = '修正NCC組織法 明定人事權';
	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 = '台南地下街案 24日傳訊許添財';
	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(6);
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 = "爭奪安理會席次 拉美雙雄續戰";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "維基百科創辦人 另創市民論壇";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "《中英對照讀新聞》300 monkeys to be banished from New Delhi／300隻猴子將被驅逐出新德里";
	rows[5].link = 'today-int6.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-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 = '誇門號能開運 租2年36萬';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '3兄弟魚肉鄉民／警圍地痞 鎖匠不敢來';
	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';
																										
	rows[9].text = '受贈熱水器 窮嬤孫歡天喜地';
	rows[9].link = 'today-so10.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '致癌物掀波 大閘蟹即起禁攜入境';
	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 = '高鐵北─高1490元 北─中700元';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '安親班娃娃車 超載像運貨';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '李院長最後一夜…中研院搞溫馨';
	rows[8].link = 'today-life9.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
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-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 = '費德爾快打旋風 晉級';
	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 = 'HBL熱賽 11.7開戰';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '培訓高球種子 3名將親指導';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '馬薩放話 要助大舒衛冕';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '曼聯擬花24.8億 買斷魯尼終身約';
	rows[11].link = 'today-sp12.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-e1.htm';
																										
	rows[1].text = '英國女富豪 15年後超越男性';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '女性執行長 今年領風騷';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '林文淵交棒 記者被蒙鼓裡';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '藥神網網拍 年收千萬';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '債市多頭 造福固定收益型基金';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '美暫停升息 MBS、ABS異軍突起';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '歐洲大型股 Q4補漲行情可期';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '非洲經濟加溫 避險基金搶進';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '下撒哈拉經濟成長 連2年破5%';
	rows[9].link = 'today-e10.htm';
																										
	rows[10].text = '3C通路擴點戰 風雲再起';
	rows[10].link = 'today-e11.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(15);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'APEC越南峰會 布希將推自貿改革方案';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '換股比不合理 公股就直接釋出';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = 'MBK買下中嘉網路系統60％股權';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = 'CME與CBOT合併 鞏固全球地位';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '第三季獲利 IBM成長46％';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '遠雄松下概念屋 兼顧環保健康';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '財部暫無調漲營業稅計畫';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '城市牧場餐廳落腳南縣';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '《國情密碼》我國總體健康表現全球第六';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = 'MOTO報憂 法人：手機股仍樂觀';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = '金融股風暴 投信依然看好台股';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = '友達Q4訂單滿檔 瑞信調高目標價';
	rows[11].link = 'today-stock12.htm';
																										
	rows[12].text = '欣興董事長曾子章：手機板Q4不差';
	rows[12].link = 'today-stock13.htm';
																										
	rows[13].text = 'SDRAM超旺 鈺創、晶豪科月績看俏';
	rows[13].link = 'today-stock14.htm';
																										
	rows[14].text = '《國際股市》歐股午盤漲 中國勁揚';
	rows[14].link = 'today-stock15.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(16);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '讀者爆料 信樂團Michael 愛上已婚空姐？';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '霍正奇家中藏2女 六月淚乾想消失';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '1029自由演唱會 飛輪海邀粉絲 貼臉玩遊戲';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = 'Selina開課教串珠 老媽當學生';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = 'Jolin出羊相 馬戲團找第二春';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '小傑瞧蔡依林寫真 瘋狂';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '5大電視台 搶奪金雞王建民';
	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 = '百貨美人Akemi 做1年白工？';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '郭富城發狂 摸遍采妮和蕾蕾';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '侯佩岑大遲到 梁靜茹苦候45分鐘';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '衛斯理8宗罪 40年苦窯難逃';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '媚兒碧帶球走 艾迪墨菲7度當爹';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = 'Rain韓國官網 國旗不見了！';
	rows[14].link = 'today-show15.htm';
																										
	rows[15].text = '全球華語榜 受歡迎5強出爐';
	rows[15].link = 'today-show16.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(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '飲過期礦泉水 9國中生狂吐送醫';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '國際路鏟路降水壓 土城市長率民抵制';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '中國媽媽當志工 民義國小好幫手';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '議員要拚場 首長得捧場 特支獻金 官員擔心';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '會師迎城隍 「藝」同鬥陣';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '花費逾億元 僅改善8778公尺';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '「禮」直氣壯 捷運心文化運動';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '捷運府中站 4線公車改道';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '大貨車呼嘯疾駛 居民夜難眠';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '中小學學習護照 整合有一套';
	rows[9].link = 'today-taipei10.htm';
																										
	rows[10].text = '國中生懲處 引進「停學」新法';
	rows[10].link = 'today-taipei11.htm';
																										
	rows[11].text = '市圖限制級藏書 改閉架收藏 未滿18歲不准借';
	rows[11].link = 'today-taipei12.htm';
																										
	rows[12].text = '跑船阿公當作業 創意得獎';
	rows[12].link = 'today-taipei13.htm';
																										
	rows[13].text = '新移民口譯員 自助助人';
	rows[13].link = 'today-taipei14.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '男夥女友、母親 偷搶三人行';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '不給錢就活埋 嫌犯聲稱討工資';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '偷鐵門被活逮 稱因無力付車租';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '罹癌父猝逝 獨臂兒遺孤';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '男童鼻血流不停...鼻腔藏水蛭';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '《社會傳真》４嫌結夥網鴿勒贖 ３人收押';
	rows[5].link = 'today-north6.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(9);
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 = '方城戰正酣 4惡煞闖入洗劫';
	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 = '小貨車失控 「禍」及3民宅';
	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 = '倒車撞死人 豬農被指故意';
	rows[7].link = 'today-center8.htm';
																										
	rows[8].text = '選舉文宣不實 卸任里長被訴';
	rows[8].link = 'today-center9.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 = '蕉農自救 高縣籌自救會 屏縣10餘人陳情';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '東港迎王祭 21日辦燒王船儀式';
	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 = 'LV集團總裁訂購遊艇 今天交船';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '幫319槍擊案兇嫌買槍 黃維藩被判刑';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '政治算術';
	rows[6].link = 'today-south7.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(11);
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 = '紅蟳vs.大閘蟹';
	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';
																										
}
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(5);
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';
																										
	rows[4].text = '運動電玩大集合';
	rows[4].link = 'today-fashion5.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(8);
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 = '避免脫軌的同理心<br>助人前先將心比心';
	rows[2].link = 'today-medicine3.htm';
																										
	rows[3].text = 'PDT光動力刀術 晚期肺癌治療新法';
	rows[3].link = 'today-medicine4.htm';
																										
	rows[4].text = '父母血清助角膜再生 修補嬰兒受傷眼睛';
	rows[4].link = 'today-medicine5.htm';
																										
	rows[5].text = '低血鈣加甲狀腺亢進<br>男子全身沒力險癱瘓';
	rows[5].link = 'today-medicine6.htm';
																										
	rows[6].text = '勇於面對性障礙 找回性福新生活';
	rows[6].link = 'today-medicine7.htm';
																										
	rows[7].text = '不孕男性別絕後望<br>接受基因檢查 徹底找原因';
	rows[7].link = 'today-medicine8.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
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-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 = '土耳其的良心與榮光<br>新科諾貝爾文學獎得主帕慕克繼續捍衛自由';
	rows[5].link = 'today-article6.htm';
																										
	rows[6].text = '美國大眾讀啥書？鵝毛筆獎票選出爐';
	rows[6].link = 'today-article7.htm';
																										
	rows[7].text = '真實與虛構的道德界線<br>小說家歐慈新作引風波';
	rows[7].link = 'today-article8.htm';
																										
	rows[8].text = '百億「電」力發功<br>日本電子書市的極速成長';
	rows[8].link = 'today-article9.htm';
																										
	rows[9].text = '托爾金未竟之作補完<br>子承父志 2007年4月出版';
	rows[9].link = 'today-article10.htm';
																										
	rows[10].text = '愛，征服空間、時間與歷史';
	rows[10].link = 'today-article11.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 = '畢卡索名畫《夢(Le Reve)》遭破壞？ 收藏家自嘲：還好，是我自己幹的！';
	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';
}